/* ==========================================================================
   泉松会について (/about/) ページ専用スタイル
   ========================================================================== */

/* ────────────────────────────────────────────
   カラー変数（このページ専用）
──────────────────────────────────────────── */
.p-about-hero,
.p-about-wrap {
    --about-gold:    #bfa67a;
    --about-green:   #00552e;
    --about-text:    #2c3a2e;
    --about-beige:   #f7f3e9;
}

/* ────────────────────────────────────────────
   読みやすいフォント設定（ページ全体）
──────────────────────────────────────────── */
.p-about-hero,
.p-about-wrap {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.p-about-wrap {
    font-size: var(--fs-16);
    line-height: 2.1;
    letter-spacing: 0.04em;
    color: var(--about-text);
}

/* ────────────────────────────────────────────
   インナー幅（ヘッダーと同じく padding: 0 var(--corp-gutter)、max-width なし）
──────────────────────────────────────────── */
.p-about-inner {
    padding-left:  var(--corp-gutter, 56px);
    padding-right: var(--corp-gutter, 56px);
}

/* セクション見出し共通 */
.p-about-sec-head {
    margin-bottom: clamp(32px, 5vw, 56px);
}
.p-about-sec-head__en {
    display: block;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: var(--fs-12);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--about-gold);  /* ゴールドアクセント */
    margin-bottom: 10px;
}
.p-about-sec-head__ja {
    font-family: var(--font-heading, 'Zen Kaku Gothic New', sans-serif);
    font-size: clamp(24px, 3.4vw, 40px);
    font-weight: 700;
    color: var(--about-green, #00552e);
    line-height: 1.3;
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--about-gold);  /* ゴールドアクセント */
    display: block;
}

/* ────────────────────────────────────────────
   ページヒーロー（緑・センタリング）
──────────────────────────────────────────── */
.p-about-hero {
    position: relative;
    background-color: #00552e;
    background-size: cover;
    background-position: center center;
    padding: calc(100px + 64px) 0 72px;
    overflow: hidden;
    text-align: center;
}
/* 緑グラデーションマスク（画像の上に重ねて視認性確保） */
.p-about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(0,55,30,0.82) 0%,
        rgba(0,70,36,0.70) 50%,
        rgba(10,80,48,0.60) 100%);
    z-index: 0;
}
.p-about-hero__inner {
    position: relative;
    z-index: 1;
    padding: 0 clamp(20px, 4vw, 48px) 52px;
}
.p-about-hero__en {
    display: block;
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: var(--fs-13);
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin: 0 0 16px;
}
.p-about-hero__title {
    font-family: var(--font-heading, 'Zen Kaku Gothic New', sans-serif);
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    letter-spacing: 0.06em;
}


/* ────────────────────────────────────────────
   ページ本文ラッパー
──────────────────────────────────────────── */
.p-about-wrap {
    position: relative;
    background-color: var(--about-beige);
    background-image:
        linear-gradient(180deg, rgba(0,85,46,0.05) 0%, rgba(0,85,46,0) 180px),
        radial-gradient(ellipse at 80% 35%, rgba(191,166,122,0.07) 0%, transparent 55%),
        linear-gradient(180deg, transparent 60%, rgba(255,252,244,0.6) 100%);
}
/* コンテンツをパーティクルの手前に */
.p-about-bread,
.p-about-layout {
    position: relative;
    z-index: 1;
}

/* パンくず（波線右下・右寄せ） */
.p-about-bread {
    padding: 14px 0 0;
}
.p-about-bread .p-about-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-14);
    color: #8a9e8e;
    letter-spacing: 0.03em;
}
.p-about-bread a {
    color: #8a9e8e;
    text-decoration: none;
    transition: color 0.2s;
}
.p-about-bread a:hover { color: var(--color-primary, #00552e); }
.p-about-bread--bottom {
    padding: 40px 0 0;
    border-top: 1px solid rgba(0,85,46,0.1);
}
.p-about-bread--bottom .p-about-inner,
.p-about-bread--bottom {
    justify-content: flex-start;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: var(--fs-14);
    color: #8a9e8e;
    letter-spacing: 0.03em;
}
/* 現在ページ */
.p-about-bread__current {
    color: #1a2b1e;
    font-weight: 700;
}

/* ────────────────────────────────────────────
   2カラムレイアウト（メイン＋サイドナビ）
──────────────────────────────────────────── */
.p-about-layout {
    padding-top: 16px;
    padding-bottom: 40px;
}
.p-about-layout__inner {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: start;
}

/* ────────────────────────────────────────────
   メインコンテンツ
──────────────────────────────────────────── */
.p-about-main {
    min-width: 0;
    order: 2;  /* DOM順は main→aside だが視覚上は右に */
}
.p-about-sidenav {
    order: 1;  /* 視覚上は左に */
}

/* セクション共通 */
.p-about-section {
    padding: clamp(56px, 7vw, 88px) 0;
    border-bottom: 1px solid rgba(0,85,46,0.1);
    scroll-margin-top: 110px;
}
.p-about-section:first-child {
    padding-top: 0;
    border-bottom: none;
}

/* スクロール連動フェードイン */
.p-about-section {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}
.p-about-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.p-about-section:last-child { border-bottom: none; }

/* 理念セクション背景なし（全体がベージュ） */

/* ────────────────────────────────────────────
   理念
──────────────────────────────────────────── */
.p-about-rinen__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.p-about-rinen__item {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: start;
    gap: 0 28px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(0,85,46,0.08);
}
.p-about-rinen__item:first-child { border-top: 1px solid rgba(0,85,46,0.08); }

.p-about-rinen__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary, #00552e);
    color: rgba(255,255,255,0.92);
    font-family: var(--font-heading, 'Zen Kaku Gothic New', sans-serif);
    font-size: var(--fs-20);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 4px;
}
.p-about-rinen__text {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 600;
    line-height: 2.05;
    color: #1a2b1e;
    margin: 0;
    padding-top: 12px;
    letter-spacing: 0.04em;
}

/* ────────────────────────────────────────────
   基本方針
──────────────────────────────────────────── */
.p-about-policy__card {
    position: relative;
    background: rgba(0, 85, 46, 0.04);
    border-radius: 8px;
    padding: clamp(32px, 4.5vw, 48px) clamp(28px, 4vw, 48px);
    box-shadow: none;
}
.p-about-policy__text {
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 2.2;
    color: #2a3d2f;
    margin: 0;
    position: relative;
    text-indent: 1em;
}

/* ────────────────────────────────────────────
   ロゴマークの由来
──────────────────────────────────────────── */
.p-about-logo__body {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    align-items: center;
}
/* 本文の級数・行間・段落間は理事長挨拶（.p-about-greeting__texts p）に合わせる。
   ここだけ 15.5px / 行間2.1 と小さく、ページ内で不揃いだったため。 */
.p-about-logo__text {
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 2.2;
    color: #3a4a3e;
}
.p-about-logo__text p { margin: 0 0 22px; text-indent: 1em; }
.p-about-logo__text p:last-child { margin-bottom: 0; }

.p-about-logo__mark {
    display: flex;
    align-items: center;
    justify-content: center;
}
.p-about-logo__mark img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

/* ────────────────────────────────────────────
   理事長挨拶
──────────────────────────────────────────── */
.p-about-section--greeting {
    scroll-margin-top: 110px;
}
#greeting { /* トップからのアンカージャンプ調整 */
    scroll-margin-top: 110px;
}

.p-about-greeting__body {
    display: block;
}
.p-about-greeting__visual {
    width: 100%;
    margin-bottom: 40px;
}
.p-about-greeting__visual img {
    width: 100%;
    max-height: 480px;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 6px 28px rgba(0,0,0,0.1);
}
.p-about-greeting__caption {
    font-size: var(--fs-12);
    color: #7a9480;
    text-align: center;
    margin: 10px 0 0;
    letter-spacing: 0.05em;
}

.p-about-greeting__catch {
    font-family: var(--font-heading, 'Zen Kaku Gothic New', sans-serif);
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    line-height: 1.7;
    color: var(--about-green, #00552e);
    margin: 0 0 28px;
    letter-spacing: 0.04em;
}
.p-about-greeting__texts {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.p-about-greeting__texts p {
    font-size: clamp(16px, 1.9vw, 20px);
    line-height: 2.2;
    color: #3a4a3e;
    margin: 0;
    text-indent: 1em;
}
.p-about-greeting__sig {
    margin: 36px 0 0;
    line-height: 1.9;
    text-align: right;
}
.p-about-greeting__sig-org {
    display: block;
    font-size: clamp(14px, 1.5vw, 17px);
    color: #5a6e5e;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.p-about-greeting__sig-name {
    display: block;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    color: #1a2b1e;
    letter-spacing: 0.1em;
}
.p-about-greeting__sig-title {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 400;
    color: #5a6e5e;
    margin-right: 0.5em;
    vertical-align: middle;
}
.p-about-greeting__sig ruby { ruby-position: over; }
.p-about-greeting__sig rt {
    font-size: 0.5em;
    font-weight: 400;
    color: #7a8e7e;
    letter-spacing: 0.05em;
}

/* ────────────────────────────────────────────
   理事長 経歴・保有資格（泉松クリニック院長データを流用）
   ※泉松会（about）のフォント・配色トークンに合わせて別途スタイリング
──────────────────────────────────────────── */
.p-about-career {
    margin-top: clamp(40px, 5vw, 64px);
    /* 2カラムは廃止し、全幅の1カラムで経歴→保有資格を縦積み。
       横幅を確保することで各行が折り返しにくくなる。 */
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
}
.p-about-career__label {
    font-family: var(--font-heading, 'Zen Kaku Gothic New', sans-serif);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    color: #1a2b1e;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--about-gold);
}

/* 経歴：年 → 内容の2カラム定義リスト */
.p-about-career__list {
    margin: 0;
}
.p-about-career__item {
    display: grid;
    /* 年の列は固定幅にして、「1996年～1998年」のような期間付きでも
       desc（内容）の開始位置を全行で揃える。 */
    grid-template-columns: 130px 1fr;
    gap: 4px 18px;
    padding: 10px 0;
    border-bottom: 1px dotted #d8ddd4;
}
.p-about-career__item:last-child { border-bottom: none; }
.p-about-career__year {
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 600;
    color: var(--about-green, #00552e);
    letter-spacing: 0.02em;
    line-height: 1.8;
    white-space: nowrap;
}
.p-about-career__desc {
    margin: 0;
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.8;
    color: #3a4a3e;
}
.p-about-career__sub {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}
.p-about-career__sub li {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.7;
    color: #5a6e5e;
}
.p-about-career__sub-role { margin-right: 0.2em; }
.p-about-career__sub-year { color: #7a8e7e; }

/* 保有資格：◆ 箇条書き */
.p-about-career__quals {
    list-style: none;
    margin: 0;
    padding: 0;
}
.p-about-career__quals li {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dotted #d8ddd4;
}
.p-about-career__quals li:last-child { border-bottom: none; }
.p-about-career__quals-bullet {
    color: var(--about-gold);
    font-size: var(--fs-13);
    flex-shrink: 0;
    align-self: center;
}
/* 資格名を1行目、「学会評議員（年号）」を2行目に縦積みで表示する */
.p-about-career__quals-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.p-about-career__quals-text {
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.7;
    color: #3a4a3e;
}
/* 「学会評議員（年号）」は本文と同じサイズ・同じ色で、役職名の直後に年号を置く */
.p-about-career__quals-sub {
    display: flex;
    align-items: baseline;
    gap: 0.4em;
    flex-wrap: wrap;
}
.p-about-career__quals-sub-role,
.p-about-career__quals-year {
    font-size: clamp(15px, 1.7vw, 18px);
    line-height: 1.7;
    color: #3a4a3e;
    letter-spacing: 0.02em;
}

@media (max-width: 600px) {
    /* モバイルでは年を独立行にし、desc を全幅に落として読みやすくする */
    .p-about-career__item {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }
    .p-about-career__year {
        margin-bottom: 2px;
    }
}

/* ────────────────────────────────────────────
   運営法人概要
──────────────────────────────────────────── */
.p-about-corp__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0,85,46,0.06);
}
.p-about-corp__table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(15px, 1.7vw, 18px);
    table-layout: fixed;
}
.p-about-corp__table tr {
    border-bottom: 1px solid #e8e4da;
}
.p-about-corp__table tr:last-child { border-bottom: none; }
.p-about-corp__table th {
    width: 110px;
    padding: 18px 16px;
    font-weight: 700;
    color: var(--about-green, #00552e);
    background: #f0ede4;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    font-size: clamp(14px, 1.5vw, 16px);
    letter-spacing: 0.06em;
    border-right: 1px solid #ddd;
}
.p-about-corp__table td {
    padding: 18px 24px;
    color: #1a2b1e;
    line-height: 1.8;
    vertical-align: middle;
    background: #fff;
}
.p-about-corp__table tr:nth-child(even) td {
    background: #faf8f4;
}
.p-about-corp__sub {
    display: inline-block;
    font-size: 0.85em;
    color: #5a6e5e;
}

/* ────────────────────────────────────────────
   スティッキーサイドナビ
──────────────────────────────────────────── */
.p-about-sidenav {
    position: sticky;
    top: 120px;
    /* グリッドの右カラムに収まる */
}

/* サイドナビ ヘッダーブロック */
.p-about-sidenav__header {
    background: var(--about-green, #00552e);
    border-radius: 6px 6px 0 0;
    padding: 16px 18px 14px;
    margin-bottom: 0;
}
.p-about-sidenav__guide {
    font-family: var(--font-en, 'Montserrat', sans-serif);
    font-size: var(--fs-12);
    font-weight: 700;
    letter-spacing: 0.45em;
    color: rgba(255,255,255,0.55);
    margin: 0 0 6px;
}
.p-about-sidenav__page {
    font-size: var(--fs-17);
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.12em;
    line-height: 1.5;
}

.p-about-sidenav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(0,85,46,0.12);
    border-top: none;
    border-radius: 0 0 6px 6px;
}
.p-about-sidenav__list li {
    border-bottom: 1px solid rgba(0,85,46,0.08);
}
.p-about-sidenav__list li:last-child { border-bottom: none; }

.p-about-sidenav__link {
    display: block;
    font-size: var(--fs-16);
    line-height: 1.5;
    color: #7a8a7e;
    text-decoration: none;
    padding: 14px 0 14px 18px;
    border-left: 3px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
    letter-spacing: 0.06em;
}
.p-about-sidenav__link:hover {
    color: var(--color-primary, #00552e);
    border-left-color: rgba(0,85,46,0.3);
}
.p-about-sidenav__link.is-active {
    color: var(--color-primary, #00552e);
    font-weight: 700;
    border-left-color: var(--color-primary, #00552e);
}

/* ────────────────────────────────────────────
   レスポンシブ
──────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* サイドナビを非表示にしてシングルカラムに */
    .p-about-layout__inner {
        grid-template-columns: 1fr;
    }
    .p-about-sidenav { display: none; }
}

@media (max-width: 860px) {
    .p-about-hero { padding: calc(60px + 28px) 0 36px; }

    .p-about-greeting__visual img { max-height: 320px; }
    .p-about-greeting__sig { text-align: right; }

    .p-about-logo__body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .p-about-logo__mark {
        order: -1;
    }
    .p-about-logo__mark img { max-width: 160px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .p-about-rinen__item {
        grid-template-columns: 48px 1fr;
        gap: 0 16px;
        padding: 22px 0;
    }
    .p-about-rinen__marker {
        width: 40px;
        height: 40px;
        font-size: var(--fs-17);
    }
    .p-about-corp__table { table-layout: auto; }
    .p-about-corp__table th { width: auto; min-width: 60px; font-size: var(--fs-12); padding: 12px 10px; text-align: center; }
    .p-about-corp__table td { padding: 12px 12px; font-size: var(--fs-14); }
}
