/* ===========================================
   Hidamari Dental Theme - main.css
   =========================================== */

/* -------------------------------------------
   CSS カスタムプロパティ（デザイントークン）
------------------------------------------- */
:root {
    --color-primary:     #4a9c8c;   /* メインカラー（ティールグリーン）*/
    --color-primary-dark:#367d6f;
    --color-primary-light:#e8f5f2;
    --color-accent:      #f5a623;   /* アクセント（オレンジ）*/
    --color-text:        #333333;
    --color-text-light:  #666666;
    --color-bg:          #ffffff;
    --color-bg-alt:      #f9fafb;
    --color-border:      #e5e7eb;

    --font-base:         'Noto Sans JP', sans-serif;
    --font-size-base:    16px;
    --line-height-base:  1.8;

    --max-width:         1200px;
    --section-padding:   80px 20px;
    --radius:            8px;
    --shadow:            0 2px 12px rgba(0, 0, 0, 0.08);
    --transition:        0.25s ease;

    --header-height:     70px;
}

/* -------------------------------------------
   リセット・ベース
------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* -------------------------------------------
   共通ユーティリティ
------------------------------------------- */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.section-desc {
    margin-top: 16px;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}


/* -------------------------------------------
   ヘッダー
------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    flex-shrink: 0;
}

.site-title-link {
    display: flex;
    flex-direction: column;
    color: inherit;
}

.site-title-link:hover {
    color: var(--color-primary);
}

.site-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.site-tagline {
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.global-nav .nav-list {
    display: flex;
    gap: 4px;
}

.global-nav .nav-list a {
    display: block;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius);
    transition: background-color var(--transition), color var(--transition);
}

.global-nav .nav-list a:hover,
.global-nav .nav-list .current-menu-item a {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

/* ハンバーガー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* -------------------------------------------
   メインコンテンツ（ヘッダー分の余白）
------------------------------------------- */
.site-main {
    padding-top: var(--header-height);
}


/* -------------------------------------------
   HERO セクション
------------------------------------------- */
.section-hero {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 60%);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-catch {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-title span {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-light);
    font-weight: 400;
    display: block;
    margin-top: 6px;
}

.hero-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: 16px;
    box-shadow: var(--shadow);
}


/* -------------------------------------------
   お知らせバー
------------------------------------------- */
.section-news-bar {
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
}

.news-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.news-label {
    flex-shrink: 0;
    background-color: #fff;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.news-text {
    font-size: 0.875rem;
}


/* -------------------------------------------
   医院について
------------------------------------------- */
.section-about {
    background-color: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.about-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.about-features {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.feature-icon {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
}


/* -------------------------------------------
   診療案内
------------------------------------------- */
.section-services {
    background-color: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.7;
}


/* -------------------------------------------
   診療時間
------------------------------------------- */
.section-hours {
    background-color: var(--color-bg);
}

.hours-content {
    max-width: 700px;
    margin: 0 auto;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: center;
}

.hours-table th,
.hours-table td {
    padding: 14px 10px;
    border: 1px solid var(--color-border);
}

.hours-table thead th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.hours-table td.time-label {
    text-align: left;
    font-weight: 500;
    background-color: var(--color-bg-alt);
}

.hours-table .weekend {
    color: var(--color-primary);
    font-weight: 700;
}

.hours-table .holiday {
    color: #e74c3c;
    font-weight: 700;
}

.hours-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}


/* -------------------------------------------
   アクセス
------------------------------------------- */
.section-access {
    background-color: var(--color-bg-alt);
}

.access-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.access-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 24px;
    font-size: 0.9rem;
}

.access-detail dt {
    font-weight: 700;
    color: var(--color-primary);
    padding-top: 2px;
    white-space: nowrap;
}

.access-detail dd {
    color: var(--color-text);
    line-height: 1.7;
}

.access-detail a {
    font-weight: 700;
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    gap: 8px;
}


/* -------------------------------------------
   お問い合わせ
------------------------------------------- */
.section-contact {
    background-color: var(--color-primary-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-tel-block,
.contact-form-block {
    background-color: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: var(--shadow);
}

.contact-tel-label,
.contact-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.contact-tel-number {
    display: block;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.contact-tel-number:hover {
    color: var(--color-primary);
}

.contact-tel-hours {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.form-placeholder {
    min-height: 120px;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    gap: 8px;
}


/* -------------------------------------------
   フッター
------------------------------------------- */
.site-footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.85);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: start;
}

.footer-clinic-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-address,
.footer-tel {
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.footer-tel a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.footer-tel a:hover {
    color: #fff;
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-nav-list a:hover {
    color: #fff;
}

.footer-bottom {
    background-color: #1a252f;
    text-align: center;
    padding: 16px 24px;
}

.footer-bottom small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}


/* -------------------------------------------
   アクセシビリティ
------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* -------------------------------------------
   共通：セクションヘッダー左寄せ
------------------------------------------- */
.section-header--left {
    text-align: left;
}

.section-header--left .section-title::after {
    left: 0;
    transform: none;
}


/* -------------------------------------------
   共通：ボタンサイズバリエーション
------------------------------------------- */
.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-xl {
    padding: 20px 48px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.btn-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -2px;
}


/* -------------------------------------------
   1. HERO
------------------------------------------- */
.section-hero {
    position: relative;
    background: linear-gradient(140deg, var(--color-primary-light) 0%, #fff 65%);
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-eyecatch {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    background-color: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    padding: 6px 18px;
    margin-bottom: 20px;
}

.hero-clinic-name {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--color-text);
}

.hero-clinic-name span {
    display: block;
    margin-top: 8px;
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.08em;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* スクロールインジケーター */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--color-primary));
    animation: scroll-down 1.6s ease infinite;
}

.scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    font-weight: 700;
}

@keyframes scroll-down {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}


/* -------------------------------------------
   2. お知らせ
------------------------------------------- */
.section-news {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.section-inner--wide {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}

.section-inner--wide .section-header--left {
    margin-bottom: 0;
}

.section-inner--wide .section-title::after {
    display: none;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.news-item:first-child {
    border-top: 1px solid var(--color-border);
}

.news-date {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.news-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.news-badge--new {
    background-color: var(--color-accent);
    color: #fff;
}

.news-badge--info {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.news-body {
    font-size: 0.9rem;
    color: var(--color-text);
    flex: 1;
    min-width: 0;
}


/* -------------------------------------------
   3. 当院の特徴
------------------------------------------- */
.section-features {
    background-color: var(--color-bg-alt);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.feature-card--reverse {
    direction: rtl;
}

.feature-card--reverse > * {
    direction: ltr;
}

.feature-card-img img {
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

.feature-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary-light);
    line-height: 1;
    margin-bottom: 8px;
    font-family: Georgia, serif;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.9;
}


/* -------------------------------------------
   4. 診療メニュー
------------------------------------------- */
.section-menus {
    background-color: var(--color-bg);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.menu-card {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.menu-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.menu-card-body {
    padding: 20px 22px 24px;
}

.menu-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-card-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.menu-card-desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.75;
}


/* -------------------------------------------
   5. 初めての方へ
------------------------------------------- */
.section-firstvisit {
    background-color: var(--color-primary-light);
}

.firstvisit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.firstvisit-lead {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.firstvisit-message p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
    line-height: 1.9;
}

.firstvisit-message .btn {
    margin-top: 8px;
}

.firstvisit-flow-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-step {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px dashed var(--color-border);
    position: relative;
}

.flow-step:last-child {
    border-bottom: none;
}

.flow-step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.flow-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.flow-step-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.7;
}


/* -------------------------------------------
   6. 院長あいさつ
------------------------------------------- */
.section-greeting {
    background-color: var(--color-bg);
}

.greeting-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: start;
}

.greeting-figure {
    text-align: center;
}

.greeting-figure img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.greeting-caption {
    margin-top: 16px;
    font-size: 0.875rem;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.greeting-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.greeting-name span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.greeting-message {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.greeting-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.9;
    margin-bottom: 16px;
}


/* -------------------------------------------
   7. 院内紹介
------------------------------------------- */
.section-gallery {
    background-color: var(--color-bg-alt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-figure {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.gallery-figure img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 18px 20px 22px;
}

.gallery-caption-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.gallery-caption-desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.7;
}


/* -------------------------------------------
   8. 診療時間・アクセス
------------------------------------------- */
.section-info {
    background-color: var(--color-bg);
}

.info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.info-sub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--color-primary);
}

/* 診療時間テーブル */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 12px;
}

.hours-table th,
.hours-table td {
    padding: 12px 8px;
    border: 1px solid var(--color-border);
}

.hours-table thead th {
    background-color: var(--color-primary);
    color: #fff;
    font-weight: 700;
}

.hours-table th.time-label {
    text-align: left;
    background-color: var(--color-bg-alt);
    font-weight: 500;
    white-space: nowrap;
    padding-left: 12px;
}

.hours-table .col-weekend {
    color: var(--color-primary);
    font-weight: 700;
}

.hours-table .col-holiday {
    color: #e74c3c;
    background-color: #fff5f5;
}

.hours-table tbody td.col-holiday {
    color: #e74c3c;
    font-weight: 700;
}

.hours-note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 6px;
}

/* アクセス詳細 */
.access-address {
    font-style: normal;
    margin-bottom: 24px;
}

.access-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    font-size: 0.9rem;
}

.access-detail dt {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
}

.access-detail dd {
    color: var(--color-text);
    line-height: 1.7;
}

.access-tel {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    transition: color var(--transition);
}

.access-tel:hover {
    color: var(--color-primary);
}

.access-map {
    border-radius: 12px;
    overflow: hidden;
}

.access-map iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

.map-placeholder {
    width: 100%;
    height: 280px;
    background-color: var(--color-bg-alt);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.875rem;
    gap: 8px;
}


/* -------------------------------------------
   9. 予約CTA
------------------------------------------- */
.section-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d8c7c 100%);
    color: #fff;
}

.section-cta .section-inner {
    text-align: center;
}

.cta-heading {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.8;
    margin-bottom: 48px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-web {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cta-web .btn-primary {
    background-color: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.cta-web .btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.cta-web-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.cta-divider {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
}

.cta-tel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.cta-tel-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.cta-tel-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    transition: opacity var(--transition);
}

.cta-tel-number:hover {
    color: #fff;
    opacity: 0.85;
}

.cta-tel-hours {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: center;
}


/* -------------------------------------------
   スクロールフェードインアニメーション
------------------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* -------------------------------------------
   スマートフォン対応（768px以下）
------------------------------------------- */
@media screen and (max-width: 768px) {

    :root {
        --section-padding: 56px 20px;
    }

    /* ヘッダー */
    .hamburger {
        display: flex;
    }

    .global-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow);
        padding: 16px 0;
        z-index: 999;
    }

    .global-nav.is-open {
        display: block;
    }

    .global-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .global-nav .nav-list a {
        padding: 14px 24px;
        border-radius: 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    /* ヒーロー */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 20px 64px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* お知らせ */
    .section-inner--wide {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 特徴 */
    .feature-card,
    .feature-card--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 24px;
    }

    /* 診療メニュー */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* 初めての方へ */
    .firstvisit-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* 院長あいさつ */
    .greeting-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .greeting-figure {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 20px;
        align-items: center;
        text-align: left;
    }

    .greeting-figure img {
        aspect-ratio: 3 / 4;
    }

    /* 院内紹介 */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 診療時間・アクセス */
    .info-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hours-table {
        font-size: 0.8rem;
    }

    .hours-table th,
    .hours-table td {
        padding: 10px 6px;
    }

    /* CTAセクション */
    .cta-actions {
        flex-direction: column;
        gap: 24px;
    }

    .cta-divider {
        transform: rotate(90deg);
    }

    /* フッター */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px;
    }

    .footer-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 20px;
    }
}

@media screen and (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }

    /* 診療メニュー 1列 */
    .menu-grid {
        grid-template-columns: 1fr;
    }

    /* 院長挨拶 1列 */
    .greeting-figure {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
