/*
Theme Name: comomo-theme
Author: YourName
Description: こもも不動産投資顧問用テーマ
Version: 8.6
*/



@charset "UTF-8";

/* =========================================
   0. 変数定義 (共通の色やサイズ)
   ========================================= */
:root {
    /* カラーパレット */
    --color-main: #322D61;    /* メインの紺色 */
    --color-accent: #EE8BAA;  /* アクセントのピンク */
    --color-bg-light: #F8F8F8; /* 背景の薄いグレー */
    
    /* サイズ設定 */
    --max-width: 1560px;
    --page-width: min(90vw, 1800px);
    
    /* ヘッダーの高さ（PC固定時） */
    --header-height-pc: 90px;
    --header-border-top: 20px;
}

/* =========================================
   1. 基本リセット & WP調整
   ========================================= */

/* すべての要素の計算方法を統一 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 基本設定 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    line-height: 1.6;
    /* フッターと同じ色にして、スクロール端の余白をごまかす */
    background-color: var(--color-main); 
}

/* リンクの初期化 */
a {
    color: inherit;
    text-decoration: none;
}

/* 画像のレスポンシブ化 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* WP管理バーを非表示（本番公開時用） */
#wpadminbar { display: none !important; }

/* WP管理バー分の余白を強制削除 */
html {
    margin-top: 0 !important;
}

/* WPが自動挿入する余分なタグの無効化 */
p:empty { display: none; }
.wp-block-spacer { display: none; }


/* =========================================
   2. レイアウト共通設定
   ========================================= */


/* コンテンツ全体を包むラッパー（白背景に戻す役割） */
.lp-wrapper {
    background-color: #ffffff;
    width: 100%;
    /*overflow: clip;*/   /* はみ出し防止 */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* メインコンテンツ（はみ出し防止をつける） */
.page-main {
    width: 100%;
    overflow: clip;
}


@media (max-width: 374px) {
    html, body {
        overflow-x: auto; /* この時だけスクロールを許可 */
    }
    .lp-wrapper {
        min-width: 375px; /* コンテンツ幅を375pxに固定 */
    }
}


/* コンテナ（横幅の制限と中央寄せ） */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 20px; /* スマホで端がくっつかないように */
    width: 100%;
}

/* セクションタイトル */
.section-title {
    color: var(--color-main);
    font-size: 70px;
    text-align: center;
    margin-top: 104px;
}

/* ページ固定ヘッダー分の余白確保（PCのみ） */
@media (min-width: 901px) {
    body {
        /* ヘッダー90px + 上ボーダー20px = 110px */
        padding-top: calc(var(--header-height-pc) + var(--header-border-top)) !important;
    }
}


/* =========================================
   3. ヘッダー (PC / SP 統合版)
   ========================================= */

/* --- PC・共通スタイル --- */
.site-header {
    width: 100%;
    background-color: #FFFFFF;
    z-index: 1000;
}

/* PCでは上部に固定 */
@media (min-width: 901px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        border-top: var(--header-border-top) solid var(--color-main);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
}

.site-header__inner {
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    gap: 20px;
    width: var(--page-width);
    max-width: 1800px;
    margin-inline: auto;
    /* PC版の高さ設定 */
    min-height: var(--header-height-pc);
    padding-block: 10px;
}

/* ロゴ */
.site-header__logo {
    display: flex;
    align-items: center;
    height: 55px; /* PC版ロゴ高さ */
    flex-shrink: 0; 
}
.site-header__logo img {
    height: 100%;
    width: auto;
}

/* ナビゲーション */
.site-header__nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.nav { 
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ナビボタン（PC） */
.nav__item {
    min-height: 70px;
    font-size: 16px; 
    padding-inline: 16px;
    border: 1px solid var(--color-main);
    border-radius: 5px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    color: #333;
    transition: all 0.3s;
}

.nav__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ホバー・アクティブ時 */
.nav__item--active,
.nav__item:hover {
    background-color: var(--color-main);
    color: #FFFFFF !important;
    font-weight: bold;
    cursor: pointer;
}


/* --- タブレット・中画面 (901px - 1110px) --- */
@media (min-width: 901px) and (max-width: 1110px) {
    /* ロゴを消してナビを全幅にする */
    .site-header__logo { display: none; }
    .site-header__inner { width: 94vw; justify-content: center; }
    .site-header__nav { width: 100%; }
    .nav { width: 100%; justify-content: space-between; gap: 8px; }
    .nav__item { flex: 1; padding-inline: 0; font-size: 14px; }
}


/* --- スマホ (900px以下) --- */
@media (max-width: 900px) {

    /* 固定ヘッダーの裏にコンテンツが隠れないよう、ヘッダーの高さ分（約128px）余白を開ける */
    body {
        padding-top: 180px;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;

        background-color: var(--color-main);
        border-top: none;
        padding-block: 0;
    }
    
    .site-header__inner {
        flex-direction: column;
        gap: 0;
        min-height: auto;
        padding: 0;
        width: 100%;
    }

    /* ロゴ */
    .site-header__logo {
        width: 100%;
        height: auto;
        padding: 16px 20px;
        justify-content: flex-start;
    }
    .site-header__logo img {
        height: 32px;
        filter: brightness(0) invert(1); /* 白くする */
    }

    /* ナビゲーションエリア */
    .site-header__nav {
        width: 100%;
        background-color: rgba(0, 0, 0, 0.1);
    }
/* --- ナビゲーション全体（SP版） --- */
    .nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;

        /* 強制的に適用 */
        width: calc(100% - 40px) !important;
        margin-inline: auto !important; /* 左右中央 */
        padding-block: 10px !important; /* 上下余白 */

        justify-content: center;
    }

    /* --- ナビボタンの外枠 --- */
    .nav__item {
        width: 100%;
        min-height: 44px;
        font-size: 14px;
        color: #fff;
        background-color: rgba(255,255,255, 0.1);
        border: 1px solid rgba(255,255,255, 0.3);
        border-radius: 4px;
        display: flex;
        padding: 0;
        /* 念のため、外枠自体も中身を中央寄せにする */
        align-items: center;
        justify-content: center;
    }

    /* --- ナビボタンの文字部分 --- */
    .nav__item a {
        display: flex;
        flex-direction: column; /* 中身を「縦積み」にする */
        align-items: center;     /* 左右中央揃え（軸が変わるため） */
        justify-content: center; /* 上下中央揃え（軸が変わるため） */
        width: 100%;
        height: 100%;
        min-height: 44px;
        text-align: center;
        line-height: 1.2;
        /* テキスト装飾のリセット（念の為） */
        text-decoration: none;
        color: inherit;

        /* 崩れ防止の設定 */
        white-space: normal !important;
        word-break: break-all !important;
    }
    
    .nav__item:hover, .nav__item--active {
        background-color: transparent;
        border-bottom: 3px solid #fff;
    }
}


/* =========================================
   4. トップページ：メインビジュアル (Hero)
   ========================================= */
.hero { background-color: transparent; }
.hero__bg {
    width: var(--page-width);
    max-width: 1800px;
    background-color: var(--color-main);
    margin-inline: auto;
    height: clamp(400px, 40vw, 768px);
    overflow: hidden;
}
.hero__inner {
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-inline: clamp(24px, 5vw, 60px);
}

/* クマのビジュアル */
.hero__visual {
    width: min(52vw, 936px);
    aspect-ratio: 1 / 1;
    background-color: #FFFFFF;
    border-radius: 50%;
    margin-top: clamp(40px, 4vw, 80px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* クマの耳 */
.hero__visual::before, .hero__visual::after {
    content:"";
    position: absolute;
    width: min(22vw, 404px);
    aspect-ratio: 1 / 1;
    background-color: #FFFFFF;
    border-radius: 50%;
    top: -10px;
}
.hero__visual::before { left: -15%; }
.hero__visual::after { right: -15%; }

/* キャッチコピー */
.hero__catchcopy {
    font-family:"ヒラギノ丸ゴ Pro W4", sans-serif;
    font-weight: bold;
    font-size: clamp(18px, 3vw, 40px);
    letter-spacing: 0.1em;
    color: var(--color-main);
    margin-top: clamp(100px, 12vw, 192px);
    position: relative;
    z-index: 1;
}

/* 中央ロゴ */
.hero__logo {
    width: min(40vw, 734px);
    position: relative;
    z-index: 1;
}
.hero__logo img {
    width: 100%;
    margin-top: clamp(40px, 4vw, 64px);
}

/* --- Hero SP調整 --- */
@media (max-width: 900px) {
    .hero__bg {
        height: 70vw;
        width: 100%;
        min-height: 263px;
    }

    .hero__visual {
        width: 80vw;
        min-width: 300px;
        min-height: 300px;
        margin-top: 10vw;
    }

    .hero__visual::before,
    .hero__visual::after {
        width: 30vw;
        min-width: 113px;
        min-height: 113px;
    }
    .hero__visual::before { left: -10%; } 
    .hero__visual::after { right: -10%; }
    .hero__catchcopy {
        font-size: 16px;
        margin-top: max(18vw, 68px);/*18vwか68pxどちらか大きい方を採用*/
    }
    .hero__logo {
        width: 55vw;
        min-width: 207px;
    } 
    .hero__logo img { margin-top: 25px; }
}
@media (min-width: 601px) and (max-width: 900px) {
    .c { font-size: 24px; }
}


/* =========================================
   5. トップページ：サービス紹介 (Intro & List)
   ========================================= */

/* イントロダクション */
.services-intro {
    padding-block: clamp(160px, 30vh, 280px);
    background-color: var(--color-bg-light);
}
.services-intro__inner {
    position: relative;
    z-index: 1;
    max-width: 1048px;
    padding-left: clamp(40px, 5vw, 80px);
}
/* 背景のグリッド装飾 */
.services-intro__inner::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    transform: translate(-40px, -40px);
    width: clamp(680px, 32vw, 1000px);
    height: clamp(280px, 26vw, 320px);
    background-image:
        linear-gradient(#D2D2D2 1px, transparent 1px),
        linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: clamp(40px, 4vw, 64px) clamp(40px, 4vw, 64px);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}
.services-intro__text p {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1.5;
    color: var(--color-main);
}
.services-intro__highlight {
    background: linear-gradient(to top, #ffd7ea 80%, transparent 80%);
    padding-inline: 0.05em;
}

/* サービスリスト（丸いアイコン） */
.services-list__container { 
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 176px);
    list-style: none;
    padding: 0;
    margin-top: 104px;
    margin-bottom: 100px;
}
.services-item {
    width: clamp(280px, 30vw, 380px);
    aspect-ratio: 1 / 1;
    background-color: #D6D5DF;
    padding: 20px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: min(15vh, 224px);
}
.services-item__number {
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(80px, 8vw, 100px);
    font-weight: bold;
    color: var(--color-main);
    line-height: 1.5;
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.services-item__icon {
    width: 30%;
    margin-bottom: 16px;
}
.services-item__icon img {
    filter: brightness(0) invert(1) drop-shadow(0px 5px 6px rgba(0, 0, 0, 0.25));
}
.services-item__text p {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: bold;
    color: var(--color-main);
    line-height: 1.5;
    margin: 0;
}

/* --- Service List SP調整 --- */
@media (max-width: 900px) {
    .services-intro { padding-block: 70px 60px; }
    .services-intro__text p { font-size: 16px; line-height: 1.7; margin-block: 0.5em; }
    .services-intro__inner::before { width: 90%; height: 200px; transform: translate(-20px, -30px); }
    
    .section-title { font-size: 40px; margin-top: 50px; }
    
    .services-list__container { flex-direction: column; align-items: center; gap: 120px; margin-block: 100px; }
    .services-item { width: 280px; margin-bottom: 0; }
    .services-item__number { top: -65px; }
}


/* =========================================
   6. 共通エリア：お問い合わせ (Contact)
   ========================================= */
.contact {
    background-color: var(--color-bg-light);
    padding-top: clamp(80px, 10vw, 144px);
}
.contact__bg-wrapper {
    width: 100%;
    padding-block: clamp(60px, 8vw, 100px);
    background-image: linear-gradient(#D2D2D2 1px, transparent 1px), linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: clamp(40px, 4vw, 64px) clamp(40px, 4vw, 64px);
}
.contact__grid {
    max-width: 1200px;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    gap: clamp(40px, 4vw, 80px);
    align-items: center;
    margin-inline: auto;
}
.contact-info__title {
    font-size: 30px;
    margin-bottom: 40px;
    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    width: fit-content;
    position: relative; 
    z-index: 1;    
}

.contact-info__mail, .contact-info__phone {
    font-size: clamp(24px, 2.5vw, 40px);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    width: fit-content;
    position: relative; 
    z-index: 1;
}

.contact-info__mail img, .contact-info__phone img {
    width: clamp(32px, 3vw, 48px);
}
.contact-info__attention {
    font-size: 14px;
    line-height: 1.8;
}
.contact-info__text {
    font-size: 18px;
    color: #CD0040;
    margin-top: 16px;
    line-height: 1.8; */
    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px 10px rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    width: fit-content;
    position: relative; 
    z-index: 1;    
}

/* キャラクターと吹き出し */
.contact__character-icon {
    position: relative;
    width: fit-content;
    position: relative; 
    z-index: 2;     
}
.contact__character-icon img {
    width: 100%;
    max-width: 168px;
    filter: drop-shadow(0px 5px 6px rgba(0, 0, 0, 0.25));
}
.contact__fukidashi {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 20px);
    background-color: #F8D2E2;
    color: var(--color-accent);
    padding: 8px 32px;
    border-radius: 50px;
    font-weight: bold;
    white-space: nowrap;
}
.contact__fukidashi::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 0 5px 10px 5px;
    border-color: transparent transparent #F8D2E2 transparent;
}


.contact__decoration {
    margin-top: clamp(80px, 16vw, 140px);
    text-align: center;
    width: 100%;
    max-width: 416px;
    margin-inline: auto;
    aspect-ratio: 416 / 101;
    overflow: hidden;
}

.contact__decoration img {
    width: 100%;
    height: auto;
}


/* --- Contact SP調整 --- */
@media (max-width: 900px) {
    .contact__grid {
        display: block;
        position: relative;
        max-width: 400px;
    }
    .contact-info__title {
        text-align: left;
        padding-right: 90px;
        margin-left: 40px;
        font-size: 20px;
    }
    .contact-info__mail, .contact-info__phone {
        justify-content: center;
        font-size: 20px;
    }
    .contact-info__text {
        font-size: 16px;
        margin: 16px;
    }
    
    .contact__character-icon {
        position: absolute;
        top: -40px;
        right: 5px;
        width: 80px;
    }
    .contact__fukidashi {
        bottom: 140%;
        top: auto;
        left: 50%; 
        ransform: translate(-50%, -10%);
        padding: 4px 12px;
        font-size: 11px;
    }
    .contact__fukidashi::before {
        top: 100%;
        border-width: 6px 4px 0 4px;
        border-color: var(--color-accent) transparent transparent transparent;
    }
    .contact__decoration {
        margin-top: 60px;
        max-width: 260px;
    }
}


/* =========================================
   7. 共通エリア：フッター (Footer)
   ========================================= */
.site-footer {
    background-color: var(--color-main);
    color: #fff;
    padding-top: 40px;
    padding-bottom: 24px;
    position: relative;
    z-index: 10;
}
.site-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    padding-inline: clamp(40px, 5vw, 80px);
    padding-right: 120px;
}
.site-footer__logo a {
    display: flex;
    width: 180px;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}
.site-footer__logo a:hover { opacity: 0.8; }
.site-footer__logo img { width: 75%; }

.site-footer__list {
    display: flex;
    gap: 32px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav__item a {
    font-weight: bold;
    font-size: 16px;
    color: #fff !important;
    transition: opacity 0.3s;
}
.footer-nav__item a:hover { opacity: 0.7; text-decoration: underline; }
.site-footer__copyright {
    text-align: center;
    font-size: 16px;
    opacity: 0.7;
}
/* フッター内のpタグ等の余白削除 */
.site-footer p, .site-footer small { margin-bottom: 0 !important; }

/* --- Footer SP調整 --- */
@media (max-width: 900px) {
    .site-footer { padding-top: 40px; }
    .site-footer__content { flex-direction: column; padding-right: clamp(40px, 5vw, 80px); gap: 40px; }
    .site-footer__logo a { margin-inline: auto; }
    .site-footer__list { flex-direction: column; align-items: center; gap: 20px; }
    .site-footer__copyright { text-align: center; }
}


/* =========================================
   8. 下層ページ：業務案内 (Service Page)
   ========================================= */

/* ページタイトルヘッダー */
.service-header {
    background-color: var(--color-main);
    padding-block: clamp(40px, 5vw, 60px);
    text-align: center;
    width: 100%;
}
.service-header__title {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.1em;
}

/* カード一覧セクション */
.services-card {
    background-color: var(--color-bg-light);
    background-image: linear-gradient(#D2D2D2 1px, transparent 1px), linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: clamp(40px, 4vw, 64px) clamp(40px, 4vw, 64px);
    padding-block: clamp(60px, 8vw, 120px);
}
.services-card__container {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(60px, 8vw, 100px);
}

/* カード共通スタイル */
.card-item {
    background-color: #fff;
    border-radius: 10px;
    padding: clamp(40px, 6vw, 80px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    max-width: 1000px;
    margin-inline: auto;
    width: 100%;
    overflow: hidden; /* 背景アイコンのはみ出しをカット */
    z-index: 1;
}

/* 数字 */
.card-item__number {
    position: absolute;
    top: 20px;
    left: 40px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(60px, 8vw, 100px);
    color: var(--color-main);
    line-height: 1;
}

/* 背景アイコン（右下） */
.card-item__icon {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 250px;
    margin: 0;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}
/* アイコンを強制的に紺色にするフィルター */
.card-item__icon img {
    width: 100%;
    filter: invert(16%) sepia(38%) saturate(963%) hue-rotate(203deg) brightness(91%) contrast(87%);
}

/* カードタイトル */
.card-item__title {
    font-size: clamp(24px, 3vw, 40px);
    color: var(--color-main);
    text-align: center;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 32px;
}
/* 本文 */
.card-item__text {
    font-size: clamp(14px, 1.5vw, 18px);
    text-align: center;
    line-height: 2;
    margin-bottom: 40px;
    color: var(--color-main);
}
.card-item__text--highlight {
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5em;
    color: var(--color-main);
}

/* --- Card 01: ミニカード（3列） --- */
.minicard__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}
.minicard-item {
    border: 2px solid #AAB0C3;
    border-radius: 10px;
    padding: 20px;
    padding-left: 30px; /* ドット用の余白 */
    font-size: 14px;
    color: var(--color-main);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff;
    line-height: 1.6;
    position: relative;
}
/* ミニカードのドット装飾 */
.minicard-item::before {
    content: "";
    position: absolute;
    top: 10px; left: 10px;
    width: 10px; height: 10px;
    border-radius: 50%;
}
.minicard-item:nth-child(1)::before { background-color: #EE8AA9; }
.minicard-item:nth-child(2)::before { background-color: #FFEB77; }
.minicard-item:nth-child(3)::before { background-color: #90CCF0; }


/* --- Card 02: 準備中エリア（左右分割） --- */
.card-item__flex-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
    padding-top: 40px;
    padding-inline: 10px;
    border-top: 1px solid #E0E0E0;
}
.card-item__text-group {
    flex: 1;
    width: 50%;
}
.card-item__content-title {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--color-main);
    margin-bottom: 24px;
    text-align: center;
}
.card-item__content-desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-main);
}
/* --- 親要素（アイコン画像） --- */
.card-item__character-icon {
    flex: 1;
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /*基準点*/
}

.card-item__character-icon img {
    width: 140px;
    filter: drop-shadow(0px 5px 6px rgba(0, 0, 0, 0.25));
}

/* --- 吹き出し本体 --- */
.card-item__fukidashi {
    position: absolute;
    /* 親（アイコン）の下端(100%)から少し離す */
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    
    background-color: #F8D2E2;
    color: var(--color-accent);
    padding: 6px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

/* --- 吹き出しの三角（上向き） --- */
.card-item__fukidashi::before {
    content: "";
    position: absolute;
    /* 吹き出しの上端(-8px)にくっつける */
    top: -8px; 
    left: 50%;
    transform: translateX(-50%);
    
    /* 三角形（上向き） */
    border-style: solid;
    border-width: 0 6px 8px 6px; /* 上0、横6、下8 */
    border-color: transparent transparent #F8D2E2 transparent; /* 下辺だけ色をつける */
}



/* --- Service Page SP調整 --- */
@media (max-width: 900px) {
    /* ヘッダー白抜き化 */
    .service-header {
        background-color: #fff;
        padding-block: 20px 40px;
    }
    .service-header__title {
        color: var(--color-main);
        font-size: 20px;
    }

    /* カード余白調整 */
    .card-item {
        padding: 60px 24px 40px;
    }
    .card-item__number {
        font-size: 40px;
        top: 20px;
        left: 20px;
    }
    .card-item__icon {
        width: 180px;
        bottom: -20px;
        right: -20px;
    }

    /* ミニカード縦積み */
    .minicard__container { grid-template-columns: 1fr; gap: 16px; }
    .minicard-item { padding: 16px; padding-left: 40px; min-height: auto; }
    .minicard-item::before { left: 10px; top: 10px; }

    /* Card 02 縦積み */
    .card-item__flex-box {
        flex-direction: column;
        text-align: center;
        gap: 80px;
    }
    .card-item__text-group {
        width: 100%;
        text-align: center;
    }
    .card-item__content-desc {
        text-align: left; /* 本文は左揃え */
    }
    .card-item__character-icon {
        width: 100%;
    }

    .card-item__fukidashi {
        position: relative; /* 絶対配置(absolute)をやめる */
        top: auto;          /* PC版の指定をリセット */
        left: auto;         /* PC版の指定をリセット */
        transform: none;    /* PC版の中央揃え計算をリセット */
        margin-top: 15px;   /* アイコンとの距離はここで調整 */
        margin-inline: auto; /* 念のため中央揃えを強化 */
    }
}

/* =========================================
   9. 代表者挨拶ページ (Top Message)
   ========================================= */

/* --- ヘッダー（業務案内と同じスタイルを適用） --- */
.top-message-header {
    background-color: var(--color-main);
    padding-block: clamp(40px, 5vw, 60px);
    text-align: center;
    width: 100%;
}
.top-message-header__title {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.1em;
}

/* --- メインコンテンツエリア --- */

.top-message {
    padding-block: clamp(60px, 8vw, 120px);
    background-color: #fff;
}

/* コンテナ設定：中央寄せ＆最大幅指定 */
.top-message__inner {
    display: grid;
    gap: 40px;
    max-width: 1048px;     /* コンテンツ幅を制限 */
    margin-inline: auto;   
}

/* --- PC以上（901px〜）のレイアウト指定 --- */
@media (min-width: 901px) {
    .top-message__inner {
        /* 左列(400px) 右列(残り) */
        grid-template-columns: 400px 1fr;
        
        /* 行の高さを「写真の高さ」「残り」と定義 */
        grid-template-rows: min-content 1fr auto;
        
        gap: 0 80px; /* 縦のgapを0にして、要素同士のmarginで調整 */
    }

    /* 1. 写真：左列・1行目 */
    .top-image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        margin-bottom: 60px; /* 写真と経歴の間の余白 */
    }
    
    /* 2. 本文：右列・1行目〜2行目をぶち抜き（span 2） */
    .top-message__text {
        grid-column: 2 / 3;
        grid-row: 1 / 3; 
        margin-top: -0.8em; /* 文頭の位置調整 */
    }

    /* 3. 名前：右列・3行目（一番下） */
    .top-message__name {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        justify-self: end;    /* 右寄せ */
        align-self: end;      /* 下揃え */
        margin-top: 40px;     /* 本文との余白 */
    }

    /* 4. 経歴：左列・2行目（写真のすぐ下から開始） */
    .career-list {
        grid-column: 1 / 2;
        grid-row: 2 / 4; /* 最後まで伸ばす */
        align-self: start; /* 上詰めにする（これをしないと中央に来てしまう） */
    }
}

/* --- 写真 --- */
.top-image img {
    width: 100%;
    height: auto;
}

/* --- 本文 --- */
.top-message__text p {
    font-size: 16px;
    font-family: "Noto Serif JP", serif; /* 明朝体 */
    line-height: 2;
    margin-bottom: 2em;
    color: var(--color-main);
    text-align: justify;
}

/* --- 名前 --- */
.top-message__name {
    font-size: 24px;
    font-family: "Noto Serif JP", serif; /* 明朝体 */
    color: var(--color-main);
    margin-bottom: 0;
}
.top-title {
    font-size: 16px;
    margin-right: 3em;
}


/* --- 経歴リスト（年表デザイン） --- */
.career-list {
    list-style: none;
    padding: 0;
    margin: 0;

    position: relative; /* 線の基準位置 */
    
    margin-left: 8px;
    padding-left: 40px; 
    padding-bottom: 10px; 
    
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

/* 縦線を描画する専用の要素 */
.career-list::before {
    content: "";
    position: absolute;
    /* 丸(●)の中心位置に合わせて開始位置を調整 */
    top: 9px;   
    bottom: 0;  /* 下端まで伸ばす */
    left: 0;    /* 左端に配置 */
    width: 2px; /* 線の太さ */
    background-color: var(--color-main);
}

.career-item {
    display: block; 
    position: relative; 
    font-family: "Noto Serif JP", serif;
    color: var(--color-main);
}

/* 丸（ドット）のデザイン */
.career-item::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -45px; /* 線の位置(left:0)を中心に持ってくるよう調整 (padding 40px + 半径分) */
    
    width: 12px;
    height: 12px;
    background-color: var(--color-main);
    border-radius: 50%;
    
    /* 線の上に丸が乗るようにz-indexを指定 */
    z-index: 1; 
}

.career-item__year {
    font-size: 18px;
    margin-bottom: 16px; /* 年号と本文の間隔 */
}
.career-item__text {
    font-size: 16px;
    line-height: 1.8;
}


/* --- 保有資格エリア --- */
.certification {
    background-color: var(--color-bg-light);
    background-image: 
        linear-gradient(#D2D2D2 1px, transparent 1px),
        linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: 40px 40px;
    padding-block: clamp(60px, 8vw, 100px);
}

.certification__inner {
    max-width: 1048px;
    margin-inline: auto;
}


.certification__title {
    font-size: clamp(24px, 3vw, 40px);
    color: var(--color-main);
    margin-bottom: 60px;
    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    width: fit-content;
    position: relative; 
    z-index: 1;
}

.certification__group {
    margin-bottom: 60px;
}
.certification__group:last-child {
    margin-bottom: 0;
}

.certification__sub-title {
    font-size: 20px;
    color: var(--color-main);
    border-left: 6px solid var(--color-main);
    padding-left: 16px;
    margin-bottom: 32px;
    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    width: fit-content;
    position: relative; 
    z-index: 1;
}

/* 資格リスト（グリッド配置） */
.certification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    /* ★PCでは2列固定にする */
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
}

.certification-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    padding-left: 40px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-main);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 3色ドット */
.certification-item::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
}
.certification-item:nth-child(3n+1)::before { background-color: #EE8AA9; }
.certification-item:nth-child(3n+2)::before { background-color: #FFEB77; }
.certification-item:nth-child(3n+3)::before { background-color: #90CCF0; }

.supplement {
    font-size: 12px;
    font-weight: normal;
    margin-top: 8px;
    opacity: 0.8;
}

/* --- SP調整 (900px以下) --- */
@media (max-width: 900px) {

    /* ヘッダー白抜き化 */
    .top-message-header {
        background-color: #fff;
        padding-block: 20px 40px;
    }
    .top-message-header__title {
        color: var(--color-main);
        font-size: 20px;
    }


    /*スマホの時だけメインエリアの上余白を消す*/
    .top-message {
        padding-top: 0;
    }


    /* コンテナの中央寄せ解除（スマホは幅いっぱい使うため） */
    .top-message__inner {
        max-width: 100%;
        gap: 40px;
    }

    /* 写真を画面幅いっぱいに（ネガティブマージン） */
    .top-image {
        margin-inline: -20px;     /* コンテナのpadding(20px)を打ち消す */
        width: calc(100% + 40px); /* その分幅を広げる */
        margin-bottom: 0;
    }

    .top-message__text {
        text-align: left;
        margin-top: 0;
    }
    .top-message__name {
        text-align: right;
        margin-top: 0;
    }
    
    /* 資格リストはスマホで1列 */
    .certification-list {
        grid-template-columns: 1fr;
    }
    .certification-item {
        font-size: 14px;
        padding: 20px;
        padding-left: 35px;
    }
    .certification-item::before {
        top: 10px;
        left: 10px;
    }
}

/* =========================================
   10. 写メ日記 (Photo Diary)
   ========================================= */

/* --- ヘッダー（他ページと共通デザイン） --- */
.photo-diary-header {
    background-color: var(--color-main);
    padding-block: clamp(40px, 5vw, 60px);
    text-align: center;
    width: 100%;
}
.photo-diary-header__title {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.1em;
}

/* --- メインエリア --- */
.photo-diary {
    padding-block: clamp(40px, 8vw, 80px);
    background-color: #fff;
    /* 背景のグリッド（他ページと共通） */
    background-image: 
        linear-gradient(#D2D2D2 1px, transparent 1px),
        linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 60vh; /* コンテンツが少ないので最低高さを確保 */
}

.photo-diary__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* 説明テキスト */
.photo-diary__explanation {
    font-size: clamp(16px, 2vw, 20px);
    margin: 0;

    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7); /* 背景を白（少しだけ透過）に */
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.7); /* 周りに白いボカシを広げる */
    border-radius: 5px; /* 角を少し丸める */
    width: fit-content;  /* 文字の幅に合わせて背景を止める */
    position: relative; 
    z-index: 1;

}

/* 準備中メッセージ */
.photo-diary__message {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: bold;
    margin-top: 15px;

    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    width: fit-content;
    position: relative; 
    z-index: 1;

}

/* --- キャラクターアイコン（専用スタイル） --- */
.photo-diary__icon {
    position: relative;
    width: fit-content; /* 中身に合わせる */
    margin-top: 20px;
    position: relative; 
    z-index: 2;
}
.photo-diary__icon img {
    width: 140px; /* サイズ指定 */
    height: auto;
    filter: drop-shadow(0px 5px 6px rgba(0, 0, 0, 0.25));
}

/* 吹き出し（業務案内のスタイルをベースに調整） */
.photo-diary__fukidashi {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    
    background-color: #F8D2E2;
    color: var(--color-accent);
    padding: 4px 28px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.photo-diary__fukidashi::before {
    content: "";
    position: absolute;
    top: -8px; 
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 0 4px 8px 4px;
    border-color: transparent transparent #F8D2E2 transparent;
}

/* --- SP調整 --- */
@media (max-width: 900px) {

    .photo-diary {
        padding-top: 60px; /* スマホ時の上余白確保 */
    }

    /* ヘッダー白抜き化 */
    .photo-diary-header {
        background-color: #fff;
        padding-block: 20px 40px;
    }
    .photo-diary-header__title {
        color: var(--color-main);
        font-size: 20px;
    }
}

/* =========================================
   10. 写メ日記 (Photo Diary) - 記事一覧版
   ========================================= */

/* --- メインエリア設定（共通） --- */
.photo-diary {
    padding-block: clamp(60px, 8vw, 120px);
    background-color: #fff;
    background-image: 
        linear-gradient(#D2D2D2 1px, transparent 1px),
        linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 60vh;
}

/* --- カードグリッド（PCは3列、スマホは1列） --- */
.diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
}

/* --- カード本体 --- */
.diary-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.diary-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 画像エリア（アスペクト比を固定してトリミング） */
.diary-card__img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* 横長の見やすい比率 */
    background-color: #eee;
    overflow: hidden;
}

.diary-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいにトリミング */
    transition: transform 0.5s ease;
}

/* ホバー時に画像をズームさせる演出 */
.diary-card:hover .diary-card__img {
    transform: scale(1.05);
}

/* テキストエリア */
.diary-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 高さを揃える */
}

.diary-card__date {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
}

.diary-card__title {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-main);
    margin: 0 0 20px 0;
    line-height: 1.5;
    
    /* 3行以上は「...」で省略する設定 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.diary-card__more {
    margin-top: auto; /* 一番下に配置 */
    font-size: 14px;
    color: var(--color-accent);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- もっと見るボタン --- */
.note-more-wrapper {
    margin-top: 60px; /* 記事一覧との隙間 */
    text-align: center; /* 中央寄せ */
}

.note-more {
    display: inline-flex;
    align-items: center;
    gap: 10px; /* 文字とアイコンの隙間 */
    justify-content: center;
    
    background-color: var(--color-accent); /* ピンク色 */
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    
    width: 300px;        /* ボタンの幅 */
    max-width: 100%;     /* スマホではみ出さない設定 */
    padding: 16px 24px;  /* ボタンの高さ（厚み） */
    border-radius: 50px; /* 丸角 */
    
    box-shadow: 0 4px 10px rgba(238, 139, 170, 0.4); /* ふんわりした影 */
    transition: all 0.3s ease;
}

/* ホバー時の動き */
.note-more:hover {
    background-color: #ff9cc0; /* 少し明るく */
    transform: translateY(-3px); /* 浮き上がる */
    box-shadow: 0 6px 15px rgba(238, 139, 170, 0.6);
}



/* --- 記事がない時（準備中）のスタイル --- */
/* PHP側の条件分岐で「記事0件」の時に表示されるエリア用 */
.photo-diary__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    grid-column: 1 / -1; /* グリッド全体を使う */
}



/* =========================================
   11. 用語一覧 (Glossary)
   ========================================= */

/* --- ヘッダー（他ページと共通デザイン） --- */
.glossary-header {
    background-color: var(--color-main);
    padding-block: clamp(40px, 5vw, 60px);
    text-align: center;
    width: 100%;
}
.glossary-header__title {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.1em;
}

/* --- メインエリア --- */
.glossary {
    padding-block: clamp(40px, 8vw, 80px);
    background-color: #fff;
    /* 背景のグリッド（他ページと共通） */
    background-image: 
        linear-gradient(#D2D2D2 1px, transparent 1px),
        linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 60vh; /* コンテンツが少ないので最低高さを確保 */
}

.glossary__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* 説明テキスト */
.glossary__explanation {
    font-size: clamp(16px, 2vw, 20px);
    margin: 0;

    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7); /* 背景を白（少しだけ透過）に */
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.7); /* 周りに白いボカシを広げる */
    border-radius: 5px; /* 角を少し丸める */
    width: fit-content;  /* 文字の幅に合わせて背景を止める */
    position: relative; 
    z-index: 1;

}

/* 準備中メッセージ */
.glossary__message {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: bold;
    margin-top: 15px;

    /* グリッドをぼかすための設定 */
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px 20px rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    width: fit-content;
    position: relative; 
    z-index: 1;

}

/* --- キャラクターアイコン（専用スタイル） --- */
.glossary__icon {
    position: relative;
    width: fit-content; /* 中身に合わせる */
    margin-top: 20px;
    position: relative; 
    z-index: 2;
}
.glossary__icon img {
    width: 140px; /* サイズ指定 */
    height: auto;
    filter: drop-shadow(0px 5px 6px rgba(0, 0, 0, 0.25));
}

/* 吹き出し（業務案内のスタイルをベースに調整） */
.glossary__fukidashi {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    margin-top: 15px;
    
    background-color: #F8D2E2;
    color: var(--color-accent);
    padding: 4px 28px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}
.glossary__fukidashi::before {
    content: "";
    position: absolute;
    top: -8px; 
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 0 4px 8px 4px;
    border-color: transparent transparent #F8D2E2 transparent;
}

/* --- SP調整 --- */
@media (max-width: 900px) {

    .glossary {
        padding-top: 60px; /* スマホ時の上余白確保 */
    }

    /* ヘッダー白抜き化 */
    .glossary-header {
        background-color: #fff;
        padding-block: 20px 40px;
    }
    .glossary-header__title {
        color: var(--color-main);
        font-size: 20px;
    }
}

/* --- JS用：スクロールでヘッダーを隠すクラス --- */
@media (max-width: 900px) {
    .site-header {
        transition: transform 0.3s ease;
        /* 念のため、普段の位置を明示 */
        transform: translateY(0);
    }
    
    /* 上に隠れる */
    .site-header.is-hidden {
        transform: translateY(-100%);
    }
}

/*======ブラッシュアップ======*/
/* カードに動きの準備（transition）をつける */
.card-item, 
.minicard-item, 
.certification-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスが乗った時（hover）の変化 */
.card-item:hover, 
.minicard-item:hover, 
.certification-item:hover {
    transform: translateY(-5px); /* 上に5pxだけ浮く */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); /* 影を濃く・広くして奥行きを出す */
}


/* 文字選択時の色設定 */
::selection {
    background: var(--color-accent); /* ピンク */
    color: #fff; /* 文字は白 */
}



/* フェードイン前の状態 */
.fade-up {
    opacity: 0;
    transform: translateY(30px); /* 少し下にいる */
    transition: opacity 1s ease, transform 1s ease;
}

/* フェードイン後の状態（JSでこのクラスをつける） */
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 【20260210追加】Card 02: note埋め込みエリア --- */
.card-item__note-embed {
    flex: 1;
    width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card-item__note-embed iframe {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* --- Card 02: バッジ --- */
.card-item__badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.card-item__badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    background-color: var(--color-accent);
    color: #fff;
}



/* サブテキスト（サンプル案内） */
.card-item__content-desc--sub {
    margin-top: 20px;
}


/* --- 【20260121追加】業務案内ページ＆写メ日記ページ_note解説ボックス --- */
.note-info {
    background-color: #E9E8EE;
    padding-inline: 32px;
    padding-block: 30px;
    border-radius: 8px;
    margin-top: 80px;
}

.note-info__title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-main);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 10px;
}

.note-info__title i {
    color: var(--color-main);
    font-size: 1.2em;
}

.note-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-info__item {
    position: relative;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-main);
    margin-bottom: 12px;
}

.note-info__item:last-child {
    margin-bottom: 0;
}


.note-info__item::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--color-main);
    font-weight: bold;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 900px) {
    .note-info {
        padding: 24px 20px;
        margin-top: 30px;
    }
    .note-info__title {
        font-size: 18px;
    }
    .note-info__item {
        font-size: 14px;
        line-height: 1.6;
    }

    .card-item__note-embed {
        width: 100%;
    }
    .card-item__note-embed iframe {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 230px !important;
    }

}


/* =========================================
この街に住め！ 一覧（archive-town-review.php）
========================================== */

  /* ヘッダー */
  .town-review-header {
    background-color: var(--color-main);
    padding-block: clamp(40px, 5vw, 60px);
    text-align: center;
  }
  .town-review-header__title {
    color: #fff;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0;
  }
  
  /* メイン */
  .town-review-list {
    background-color: #fff;
    background-image:
      linear-gradient(#D2D2D2 1px, transparent 1px),
      linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: 40px 40px;
    padding-block: clamp(60px, 8vw, 120px);
  }
  
  /* 説明文 */
  .town-review-list__intro {
    text-align: center;
    margin-bottom: 40px;
  }
  .town-review-list__explanation {
    font-size: clamp(16px, 2vw, 20px);
    background-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 20px 20px rgba(255,255,255,0.7);
    border-radius: 5px;
    width: fit-content;
    margin: 0 auto;
  }
  
  /* グリッド */
  .town-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin-inline: auto;
  }
  
  /* カード */
  .town-review-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .town-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  }
  
  .town-review-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  /* 画像 */
  .town-review-card__img-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
  }
  .town-review-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
  }
  .town-review-card:hover .town-review-card__img {
    transform: scale(1.05);
  }
  
  /* 本文 */
  .town-review-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .town-review-card__date {
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
  }
  .town-review-card__title {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-main);
    line-height: 1.5;
    margin: 0 0 20px;
  }
  .town-review-card__more {
    margin-top: auto;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-accent);
  }
  
  /* 投稿が0件の時 */
  .town-review-empty{
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
  }
  
  .town-review-empty__inner{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  
  .town-review-empty__icon{
    position: relative;
    width: fit-content;
    margin-top: 20px;
  }
  
  .town-review-empty__icon img{
    width: 140px;
    filter: drop-shadow(0 5px 6px rgba(0,0,0,.25));
  }
  
  .town-review-empty__fukidashi{
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 12px;
    background: #F8D2E2;
    color: var(--color-accent);
    padding: 4px 24px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
  }
  
  .town-review-empty__fukidashi::before{
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 0 4px 8px 4px;
    border-color: transparent transparent #F8D2E2 transparent;
  }
  
  .town-review-empty__message{
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(255,255,255,0.7);
    box-shadow: 0 0 20px 20px rgba(255,255,255,0.7);
    border-radius: 5px;
    width: fit-content;
    position: relative;
    z-index: 1;
    padding: 0 8px;
  }

  /* 本文プレビュー（途中からフェードして全文を見せない） */
  .town-review-card__excerpt{
    position: relative;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-main);

    /* ここで「見える高さ」を固定 */
    max-height: 10.8em; 
    overflow: hidden;
  }

    /* フェード（下に向かって透明） */
 .town-review-card__excerpt.is-fade::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2em; /* フェードの長さ（好みで調整） */
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
  }

  /* =========================================
   この街に住め！ 詳細（single-town-review.php）
   ========================================= */

 .town-review-article {
    background-color: #fff;
    background-image:
      linear-gradient(#D2D2D2 1px, transparent 1px),
      linear-gradient(90deg, #D2D2D2 1px, transparent 1px);
    background-size: 40px 40px;
    padding-block: clamp(40px, 6vw, 100px);
  }
  
  .town-review-post {
    max-width: 1048px;
    margin-inline: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: clamp(24px, 4vw, 56px);
  }
  
  .town-review-post__header {
    text-align: center;
    margin-bottom: 24px;
  }
  
  .town-review-post__date {
    display: inline-block;
    font-size: 14px;
    color: #888;
    margin-bottom: 12px;
  }
  
  .town-review-post__title {
    margin: 0;
    color: var(--color-main);
    font-size: clamp(22px, 2.8vw, 34px);
    line-height: 1.4;
    letter-spacing: 0.03em;
  }
  
  .town-review-post__eyecatch {
    margin: 24px 0 32px;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .town-review-post__eyecatch img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* 投稿本文（WPブロックのデフォルトを崩さない範囲で整える） */
  .town-review-post__content {
    color: var(--color-main);
    line-height: 2;
    font-size: 16px;
  }
  
  .town-review-post__content p {
    margin: 0 0 1.6em;
  }
  
  .town-review-post__content h2,
  .town-review-post__content h3 {
    color: var(--color-main);
    line-height: 1.4;
    margin: 2.2em 0 0.8em;
  }
  
  .town-review-post__content h2 {
    font-size: 22px;
    border-left: 6px solid var(--color-main);
    padding-left: 12px;
  }
  
  .town-review-post__content img {
    border-radius: 10px;
  }
  
  /* 前後ナビ */
  .town-review-post__nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }
  
  .town-review-post__nav a {
    font-weight: bold;
    color: var(--color-main);
  }
  
  .town-review-post__back {
    text-align: center;
    margin-top: 28px;
  }
  
  .town-review-post__back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-accent);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    padding: 14px 26px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(238, 139, 170, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .town-review-post__back-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(238, 139, 170, 0.55);
  }
  
  /* SP微調整 */
  @media (max-width: 900px) {
    .town-review-post {
      border-radius: 10px;
      padding: 24px 18px;
    }
    .town-review-post__nav {
      flex-direction: column;
      align-items: stretch;
    }
  }

/* この街に住め！ 並び替え */
.town-review .town-review-sort { margin: 0 0 28px; }

.town-review .town-review-sort__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.town-review .town-review-sort__label {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-main);
}

.town-review .town-review-sort__select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.town-review .town-review-sort__select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px 44px 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}

.town-review .town-review-sort__select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-main);
  pointer-events: none;
}

/* この街に住め！ 点数表示（詳細） */
.town-review-single .town-review-scores {
  margin: 0 0 28px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.town-review-single .town-review-scores__head {
  text-align: center;
  margin-bottom: 10px;
}

.town-review-single .town-review-scores__total {
  margin: 0;
  color: var(--color-main);
  font-weight: bold;
  font-size: 16px;
}

.town-review-single .town-review-scores__total strong {
  font-size: 22px;
}

.town-review-single .town-review-scores__list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  color: var(--color-main);
  font-size: 14px;
}

.town-review-single .town-review-scores__list li {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 900px) {
  .town-review-single .town-review-scores {
    padding: 16px;
    border-radius: 10px;
  }
  .town-review-single .town-review-scores__list {
    grid-template-columns: 1fr;
  }
}


/* 路線価：別枠（1行・スコアと同格） */
.town-review-single .town-review-rosenka-box{
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
}

.town-review-single .town-review-rosenka-box__row{
  margin: 0;
  font-size: 14px;
  color: var(--color-main);
  line-height: 1.6;
}

.town-review-single .town-review-rosenka-box__row strong{
  font-weight: bold;
}

@media (max-width: 900px) {
  .town-review-single .town-review-rosenka-box{
    padding: 16px;
    border-radius: 10px;
  }
}