/* About サイト — 紫は使わず。チャットヘッダー（.chat-header + .language-selector）と揃える */

@import url('scrollbar.css');

body.about-page {
    margin: 0;
    position: relative;
    box-sizing: border-box;
    min-height: 100dvh;
    min-height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-x: hidden;
    text-align: left;
    -webkit-text-size-adjust: 100%;
    /* 淡いグリーン〜グレー（医療系の落ち着いたトーン、紫なし） */
    background: linear-gradient(165deg, #e8f2ec 0%, #eef2f5 42%, #e4e8ec 100%);
    background-attachment: fixed;
}

html.about-doc {
    height: 100%;
    min-height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
}

/* ビューポート右端のスクロールバー用に全幅。ヘッダー下〜画面下端まで flex で占有 */
body.about-page > .about-scroll {
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    align-self: stretch;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.about-root {
    box-sizing: border-box;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    /* 短いページでもスクロール枠いっぱいに伸ばし、下端までレイアウト領域を確保 */
    min-height: 100%;
    /* 上はヘッダー直下のため 0（左右・下のみガター） */
    padding: 0 clamp(10px, 2.5vw, 18px) clamp(20px, 4vw, 32px);
}

body.about-page > .about-skip {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 0.55rem 1rem;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

body.about-page > .about-skip:focus {
    left: clamp(12px, 3vw, 24px);
    top: clamp(12px, 3vw, 24px);
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.about-root .about-layout {
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        0 12px 36px rgba(15, 60, 40, 0.1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    /* ヘッダー直下の本文カードとの余白 */
    margin-top: clamp(10px, 2.2vw, 16px);
}

/* チャットと同じ緑ヘッダー：ビューポート幅（100vw は使わず横スクロールを防ぐ） */
body.about-page .about-header.about-header--about.about-header--site-top {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-top: env(safe-area-inset-top, 0);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 2000;
    /* 上端は画面幅いっぱいなので角は下側のみ丸める */
    border-radius: 0 0 16px 16px;
    /* 言語ドロップダウンがヘッダー外に出るため hidden にしない */
    overflow: visible;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 6px 20px rgba(15, 60, 40, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

body.about-page .about-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 4px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    overflow: visible;
}

body.about-page .about-header-top-left {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px 12px;
    flex: 1;
    min-width: 0;
}

/* main.css の absolute を打ち消し、言語トグルを通常フローに */
body.about-page .about-header--about .language-selector {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 1100;
    flex-shrink: 0;
    overflow: visible;
}

/* .chat-header の color:white 継承で白地に白文字になるのを防ぐ */
body.about-page .about-header--about .lang-dropdown {
    top: calc(100% + 4px);
    left: 0;
    margin-top: 0;
    z-index: 1101;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

body.about-page .about-header--about .lang-dropdown .lang-option {
    color: #1a1a1a;
    background: #fff;
}

body.about-page .about-header--about .lang-dropdown .lang-option:hover {
    background: #f0f4f1;
    color: #1a1a1a;
}

body.about-page .about-header--about .lang-dropdown .lang-option.active {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

body.about-page .about-nav--below {
    position: relative;
    z-index: 1;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding: 10px 10px 8px;
    flex: none;
}

body.about-page .about-nav--below .about-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

body.about-page .about-nav--below .about-nav-list a {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease;
}

body.about-page .about-nav--below .about-nav-list a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.55);
}

body.about-page .about-nav--below .about-nav-list a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.about-page .about-nav--below .about-nav-list a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.38);
    border-color: rgba(255, 255, 255, 0.75);
}

body.about-page .about-header-chat-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

body.about-page .about-header-chat-icon:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(-1px);
}

body.about-page .about-header-chat-icon:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

body.about-page .about-header-chat-icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

body.about-page .language-selector a.lang-option {
    box-sizing: border-box;
    text-decoration: none;
}

body.about-page .about-brand--header {
    margin: 0;
    padding: 0 4px 0 0;
    text-align: left;
    font-size: clamp(0.85rem, 2.4vw, 1.05rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: #fff;
    flex: 1;
    min-width: 0;
}

@media (max-width: 520px) {
    body.about-page .about-nav--below .about-nav-list a {
        font-size: 11px;
        padding: 5px 8px;
    }

    body.about-page .about-brand--header {
        font-size: 0.88rem;
    }
}

.about-root .about-shell {
    padding: clamp(14px, 3vw, 22px) clamp(14px, 3vw, 24px) clamp(20px, 4vw, 32px);
}

.about-root .about-breadcrumb {
    margin-bottom: 0.85rem;
}

.about-root .about-breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0.45rem 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    color: #495057;
    background: #f8faf9;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.about-root .about-breadcrumb-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.about-root .about-breadcrumb-list li:not(:last-child)::after {
    content: "›";
    color: #adb5bd;
    font-weight: 500;
    margin-left: 0.35rem;
    font-size: 0.95em;
}

.about-root .about-breadcrumb-list a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
}

.about-root .about-breadcrumb-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-root .about-breadcrumb-list a:focus-visible {
    outline: 2px solid var(--focus-color, #4CAF50);
    outline-offset: 2px;
    border-radius: 4px;
}

.about-root .about-breadcrumb-list li[aria-current="page"] {
    font-weight: 700;
    color: #212529;
}

.about-root .about-main {
    padding: clamp(4px, 1vw, 8px) 0 0;
}

.about-root .about-subheading {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin: 1.75rem 0 0.75rem;
    font-weight: 700;
    color: #1b5e20;
    letter-spacing: 0.01em;
}

.about-root .about-prose h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    margin: 0 0 1.1rem;
    color: #212529;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 0 0 0 0.65rem;
    border-left: 4px solid #4CAF50;
}

.about-root .about-prose h2 {
    font-size: clamp(1.02rem, 2.4vw, 1.15rem);
    margin: 1.65rem 0 0.55rem;
    color: #2e7d32;
    font-weight: 700;
    line-height: 1.4;
}

.about-root .about-prose h2:first-of-type {
    margin-top: 0.25rem;
}

.about-root .about-prose p {
    margin: 0 0 1rem;
    color: #37474f;
    max-width: 62ch;
    line-height: 1.75;
    font-size: clamp(0.9375rem, 2.2vw, 1.02rem);
}

.about-root .about-intro p:last-child {
    margin-bottom: 0;
}

/* 概要ページ：本文のあとに1枚だけ参考スクリーン（キャプション付き） */
.about-root .about-hero {
    margin: 1.35rem 0 0.25rem;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #f8faf9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.about-root .about-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    object-fit: contain;
    object-position: center center;
}

.about-root .about-hero-caption {
    margin: 0;
    padding: 0.55rem 0.75rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #546e7a;
    background: #f1f8f4;
    border-top: 1px solid #e8f0ea;
}

.about-root .about-subpages {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

@media (min-width: 560px) {
    .about-root .about-subpages {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
}

.about-root .about-subpages a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(180deg, #fafbfc 0%, #f1f3f5 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.about-root .about-subpages a::after {
    content: "→";
    color: #4CAF50;
    font-weight: 700;
    flex-shrink: 0;
}

.about-root .about-subpages a:hover {
    border-color: rgba(76, 175, 80, 0.45);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.about-root .about-subpages a:focus-visible {
    outline: 2px solid var(--focus-color, #4CAF50);
    outline-offset: 2px;
}

.about-root .about-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.65rem;
    padding: 0.82rem 1.65rem;
    background: linear-gradient(135deg, #66bb6a 0%, #4CAF50 45%, #43a047 100%);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    box-shadow:
        0 2px 8px rgba(76, 175, 80, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.about-root .about-cta-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.about-root .about-cta-primary:focus-visible {
    outline: 3px solid #2e7d32;
    outline-offset: 3px;
}

.about-root .about-footer-cta {
    margin-top: 2.25rem;
    padding-top: 1.35rem;
    border-top: 1px solid #e9ecef;
}

.about-root .about-footer-cta .about-cta-primary {
    margin-top: 0;
}

.about-root .about-footer-note {
    margin-top: 0.85rem;
    font-size: 0.8125rem;
    color: #6c757d;
    max-width: 62ch;
    line-height: 1.55;
}

.about-root .about-h1 {
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    margin: 0 0 1rem;
    line-height: 1.25;
    color: #1b5e20;
}

.about-root .about-modal-mirror {
    margin-top: 0.25rem;
    text-align: left;
}

.about-root .about-modal-mirror .info-section {
    text-align: left;
}

.about-root hr.about-policies-separator {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #dee2e6;
}

/* /about/policies: 免責 + プライバシーをアコーディオン（初期 open） */
.about-root .about-policy-accordion {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #fafcfb;
    overflow: hidden;
}

.about-root .about-policy-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 700;
    color: #2e7d32;
    border-bottom: 2px solid #4caf50;
    user-select: none;
}

.about-root .about-policy-accordion summary::-webkit-details-marker {
    display: none;
}

.about-root .about-policy-accordion summary::after {
    content: "";
    float: right;
    width: 0.5em;
    height: 0.5em;
    margin-top: 0.35em;
    border-right: 2px solid #2e7d32;
    border-bottom: 2px solid #2e7d32;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.about-root .about-policy-accordion[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 0.55em;
}

.about-root .about-policy-accordion-panel {
    padding: 12px 14px 18px;
    background: #fff;
}

.about-root .about-policy-accordion-panel .info-section {
    margin-bottom: 0;
}

/* サイト共通フッター（本文カード .about-layout とは別ブロック） */
.about-root .about-site-footer {
    margin-top: clamp(14px, 2.8vw, 22px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.05),
        0 8px 28px rgba(15, 60, 40, 0.08);
    padding: 1rem clamp(14px, 3vw, 22px) 1.25rem;
    font-size: 0.875rem;
    color: #5c636a;
    background: #f4f7f5;
}

.about-root .about-site-footer-inner {
    max-width: 72ch;
    margin: 0 auto;
}

.about-root .about-site-footer-note {
    margin: 0 0 0.6rem;
    line-height: 1.55;
}

.about-root .about-site-footer-links {
    margin: 0 0 0.5rem;
}

.about-root .about-site-footer-links a {
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
}

.about-root .about-site-footer-links a:hover {
    text-decoration: underline;
}

.about-root .about-site-footer-sep {
    display: inline-block;
    padding: 0 0.4rem;
    color: #adb5bd;
    font-weight: 400;
}

.about-root .about-site-footer-rights {
    margin: 0;
    font-size: 0.8125rem;
    color: #868e96;
}