/**
 * Shimomiya Theme - Layout
 * ヘッダー、フッター、セクションレイアウト
 * クラフト感テクスチャ + ビタミンカラー強化版
 *
 * @package Shimomiya
 */

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background: var(--color-white);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    transition: background var(--transition-normal),
                border-color var(--transition-normal),
                box-shadow var(--transition-normal);
    border-bottom: 3px solid var(--color-yellow);
}

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

/* ==========================================================================
   Front Page - Transparent Header
   トップページ：初期透過 → スクロールで白背景に変化
   ========================================================================== */

.front-page .site-header {
    position: fixed;
    width: 100%;
    background: transparent;
    border-bottom-color: transparent;
}

.front-page .site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--color-yellow);
    box-shadow: var(--shadow-header);
}

/* Hero padding compensation for fixed header */
.front-page .hero-section {
    padding-top: calc(var(--header-height) + 40px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo a {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-medium);
    color: var(--color-brown-dark);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.site-logo .logo-prefix {
    font-size: var(--font-size-2xl);
}

.site-logo .logo-name {
    font-size: var(--font-size-4xl);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav .nav-link {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xs);
    color: var(--color-brown-dark);
    padding: 8px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-brown-dark);
    transition: var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 991px) {
    .front-page .site-header {
        position: fixed;
    }

    .site-logo .logo-prefix {
        font-size: 20px;
    }

    .site-logo .logo-name {
        font-size: 24px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }

    .header-btn {
        margin-top: 10px;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section - インパクト強化
   ドットテクスチャ背景 + マーカーハイライトキャッチコピー
   ========================================================================== */

/* --- Dot Pattern: Standard (26px間隔・1px) --- */
.hero-section {
    background:
        radial-gradient(circle, rgba(211, 91, 71, 0.22) 4.5px, transparent 5px),
        radial-gradient(circle, rgba(242, 167, 59, 0.20) 4px, transparent 4.5px),
        var(--color-cream);
    background-size: 48px 48px, 48px 48px, auto;
    background-position: 0 0, 24px 24px, 0 0;
    position: relative;
    overflow: hidden;
    padding: 40px 0 80px;
}

.hero-inner {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* 上部エリア */
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    min-height: 220px;
}

.hero-catchcopy-area {
    position: relative;
    padding: 40px 0 20px 60px;
}

/* Circle Decoration - 手書き風ブロブ */
.hero-circle {
    position: absolute;
    left: -200px;
    top: -150px;
    width: 543px;
    height: 543px;
    background: #d35b47;
    border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    z-index: 0;
    animation: blob-morph 12s ease-in-out infinite;
}

/* 太陽光線 - 放射状の短い棒 */
.hero-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 130%;
    transform: translate(-50%, -50%);
    background: repeating-conic-gradient(
        rgba(211, 91, 71, 0.35) 0deg 2deg,
        transparent 2deg 15deg
    );
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle farthest-side, transparent 78%, black 80%, black 90%, transparent 92%);
    mask: radial-gradient(circle farthest-side, transparent 78%, black 80%, black 90%, transparent 92%);
    animation: rays-spin 120s linear infinite;
}

@keyframes rays-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 62% 38% 46% 54% / 60% 44% 56% 40%;
    }
    25% {
        border-radius: 45% 55% 62% 38% / 53% 37% 63% 47%;
    }
    50% {
        border-radius: 55% 45% 38% 62% / 42% 58% 42% 58%;
    }
    75% {
        border-radius: 38% 62% 55% 45% / 58% 46% 54% 42%;
    }
}

/* Background Blobs - 背景装飾ブロブ（薄色） */
.hero-blob {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.hero-blob--yellow {
    width: 360px;
    height: 360px;
    background: rgba(255, 229, 102, 0.12);
    border-radius: 52% 48% 40% 60% / 55% 40% 60% 45%;
    right: -60px;
    top: 30%;
    animation: blob-drift-a 18s ease-in-out infinite;
}

.hero-blob--green {
    width: 280px;
    height: 280px;
    background: rgba(93, 160, 68, 0.10);
    border-radius: 40% 60% 55% 45% / 48% 58% 42% 52%;
    left: 8%;
    bottom: 5%;
    animation: blob-drift-b 20s ease-in-out infinite;
}

.hero-blob--orange {
    width: 200px;
    height: 200px;
    background: rgba(242, 167, 59, 0.08);
    border-radius: 58% 42% 48% 52% / 42% 55% 45% 58%;
    right: 15%;
    top: 2%;
    animation: blob-drift-c 16s ease-in-out infinite;
}

@keyframes blob-drift-a {
    0%, 100% {
        border-radius: 52% 48% 40% 60% / 55% 40% 60% 45%;
        transform: translate(0, 0);
    }
    33% {
        border-radius: 45% 55% 58% 42% / 42% 60% 40% 58%;
        transform: translate(-15px, 10px);
    }
    66% {
        border-radius: 60% 40% 45% 55% / 50% 45% 55% 50%;
        transform: translate(10px, -8px);
    }
}

@keyframes blob-drift-b {
    0%, 100% {
        border-radius: 40% 60% 55% 45% / 48% 58% 42% 52%;
        transform: translate(0, 0);
    }
    33% {
        border-radius: 55% 45% 42% 58% / 60% 42% 58% 40%;
        transform: translate(12px, -10px);
    }
    66% {
        border-radius: 48% 52% 60% 40% / 45% 55% 45% 55%;
        transform: translate(-8px, 8px);
    }
}

@keyframes blob-drift-c {
    0%, 100% {
        border-radius: 58% 42% 48% 52% / 42% 55% 45% 58%;
        transform: translate(0, 0);
    }
    33% {
        border-radius: 42% 58% 55% 45% / 55% 42% 58% 42%;
        transform: translate(-10px, 12px);
    }
    66% {
        border-radius: 50% 50% 42% 58% / 58% 48% 52% 42%;
        transform: translate(8px, -6px);
    }
}

@media (max-width: 768px) {
    .hero-blob--yellow {
        width: 220px;
        height: 220px;
        right: -40px;
    }

    .hero-blob--green {
        width: 170px;
        height: 170px;
    }

    .hero-blob--orange {
        width: 120px;
        height: 120px;
    }
}

/* Catchcopy - 太字化 + マーカーハイライト */
.hero-catchcopy {
    position: relative;
    z-index: 2;
}

.hero-catchcopy p {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    color: var(--color-brown-dark);
    line-height: 1.5;
    letter-spacing: 3.36px;
    margin: 0;
    white-space: nowrap;
    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.9),
        0 0 24px rgba(255, 255, 255, 0.7),
        0 0 40px rgba(255, 255, 255, 0.4);
}

/* キーワードにマーカーハイライト効果 */
.hero-catchcopy .text-large {
    font-size: 52px;
    background: linear-gradient(transparent 55%, rgba(255, 229, 102, 0.5) 55%);
    padding: 0 3px;
}

.hero-catchcopy .text-small {
    font-size: 40px;
}

/* Elderly Illustration */
.hero-illustration {
    width: 578px;
    height: 219px;
    flex-shrink: 0;
}

.hero-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hero Frame - イラスト全体表示（比率維持） */
.hero-frame {
    position: relative;
    width: 100%;
    border: var(--hero-border-width) solid var(--color-accent-red);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(211, 91, 71, 0.15);
    background: var(--color-cream);
}

.hero-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   Map Pins - クラフト風マップピン
   #d35b47 × ステッチ × ハイライト光沢
   ========================================================================== */

.map-pin {
    position: absolute;
    z-index: 5;
    transform: translate(-50%, -100%);
    animation: pin-float 2.6s ease-in-out infinite;
    cursor: pointer;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18));
    transition: filter 0.2s;
}

.map-pin:hover {
    filter: drop-shadow(0 6px 10px rgba(211, 91, 71, 0.35));
    animation-play-state: paused;
}

/* ピン頭部 - クラフトボタン風 */
.map-pin::before {
    content: '';
    display: block;
    width: 34px;
    height: 34px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.85) 4.5px, transparent 5.5px),
        radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.3) 0%, transparent 55%),
        #d35b47;
    border: 2.5px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* ピン先端 */
.map-pin::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid #d35b47;
    margin: -5px auto 0;
}

/* 各ピンの時間差アニメーション */
.map-pin:nth-child(2)  { animation-delay: 0s; }
.map-pin:nth-child(3)  { animation-delay: 0.35s; }
.map-pin:nth-child(4)  { animation-delay: 0.7s; }
.map-pin:nth-child(5)  { animation-delay: 1.05s; }
.map-pin:nth-child(6)  { animation-delay: 0.2s; }
.map-pin:nth-child(7)  { animation-delay: 0.55s; }
.map-pin:nth-child(8)  { animation-delay: 0.9s; }
.map-pin:nth-child(9)  { animation-delay: 1.25s; }
.map-pin:nth-child(10) { animation-delay: 0.15s; }

@keyframes pin-float {
    0%, 100% {
        transform: translate(-50%, -100%);
    }
    50% {
        transform: translate(-50%, calc(-100% - 10px));
    }
}

@media (max-width: 768px) {
    .map-pin::before {
        width: 24px;
        height: 24px;
        border-width: 2px;
    }

    .map-pin::after {
        border-left-width: 7px;
        border-right-width: 7px;
        border-top-width: 11px;
        margin-top: -3px;
    }
}

/* ==========================================================================
   Map Gallery Modal - クラフト風ポップアップギャラリー
   ========================================================================== */

.map-gallery-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 27, 14, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.map-gallery-overlay.active {
    opacity: 1;
    visibility: visible;
}

.map-gallery-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 3px dashed #d35b47;
    padding: 40px;
    max-width: 760px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s;
}

.map-gallery-overlay.active .map-gallery-card {
    transform: translateY(0) scale(1);
}

/* 閉じるボタン */
.map-gallery-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    background: var(--color-cream);
    border: 2px dashed rgba(45, 27, 14, 0.15);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: var(--color-brown-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.map-gallery-close:hover {
    background: #d35b47;
    color: var(--color-white);
    border-color: #d35b47;
}

/* タイトル */
.map-gallery-title {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: 22px;
    color: var(--color-brown-dark);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* タイトル前のピンアイコン */
.map-gallery-title::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background: #d35b47;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.map-gallery-subtitle {
    font-family: var(--font-zen);
    font-size: 16px;
    color: #999;
    margin: 0 0 24px;
}

/* 写真グリッド */
.map-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* 各写真 - ポラロイド風 */
.map-gallery-item {
    aspect-ratio: 4 / 3;
    background: var(--color-white);
    padding: 5px;
    border-radius: var(--radius-sm);
    box-shadow: 2px 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.map-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-sm) - 3px);
}

/* ダミープレースホルダー */
.map-gallery-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle, rgba(180, 155, 120, 0.06) 1px, transparent 1px),
        var(--color-cream);
    background-size: 12px 12px, auto;
    border-radius: calc(var(--radius-sm) - 3px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b9a8;
    font-family: var(--font-zen);
    font-size: 16px;
}

@media (max-width: 600px) {
    .map-gallery-card {
        padding: 28px 20px;
    }

    .map-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .map-gallery-title {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .front-page .hero-section {
        padding-top: calc(var(--header-height) + 30px);
    }

    .hero-section {
        padding: 30px 0 40px;
    }

    .hero-top {
        min-height: 180px;
    }

    .hero-catchcopy-area {
        padding: 30px 0 15px 40px;
    }

    .hero-catchcopy .text-large {
        font-size: 36px;
    }

    .hero-catchcopy .text-small {
        font-size: 28px;
    }

    .hero-illustration {
        width: 400px;
        height: auto;
    }

    .hero-circle {
        width: 400px;
        height: 400px;
        left: -150px;
        top: -100px;
    }
}

@media (max-width: 991px) {
    .hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero-illustration {
        width: 350px;
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .site-logo .logo-prefix {
        font-size: 16px;
    }

    .site-logo .logo-name {
        font-size: 20px;
    }

    .front-page .hero-section {
        padding-top: calc(var(--header-height) + 20px);
    }

    .hero-section {
        padding: 20px 0 30px;
    }

    .hero-top {
        min-height: auto;
    }

    .hero-catchcopy-area {
        padding: 20px 0 10px 20px;
    }

    .hero-catchcopy .text-large {
        font-size: 24px;
    }

    .hero-catchcopy .text-small {
        font-size: 18px;
    }

    .hero-catchcopy p {
        letter-spacing: 1.5px;
    }

    .hero-illustration {
        display: none;
    }

    .hero-circle {
        width: 250px;
        height: 250px;
        left: -80px;
        top: -60px;
    }
}

/* ==========================================================================
   Thumbnail Section
   ========================================================================== */

.thumbnail-section {
    background:
        radial-gradient(circle, rgba(211, 91, 71, 0.22) 4.5px, transparent 5px),
        radial-gradient(circle, rgba(242, 167, 59, 0.20) 4px, transparent 4.5px),
        var(--color-cream);
    background-size: 48px 48px, 48px 48px, auto;
    background-position: 0 0, 24px 24px, 0 0;
    padding: 20px 0 56px;
    overflow-x: clip;
    overflow-y: visible;
    width: 100%;
}

/* ==========================================================================
   News Section - ドットテクスチャ + ステッチ枠カード
   ========================================================================== */

/* --- Dot Pattern: 2-color grid (赤×オレンジ 規則的ポルカドット) --- */
.news-section {
    background:
        radial-gradient(circle, rgba(211, 91, 71, 0.22) 4.5px, transparent 5px),
        radial-gradient(circle, rgba(242, 167, 59, 0.20) 4px, transparent 4.5px),
        var(--color-cream);
    background-size: 48px 48px, 48px 48px, auto;
    background-position: 0 0, 24px 24px, 0 0;
    padding: var(--section-padding-sm) 0;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 35px 49px;
    border: 3px dashed var(--color-accent-green);
    box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
    .news-card {
        padding: 25px 20px;
    }
}

/* ==========================================================================
   About Section - ドットテクスチャ + ポラロイド写真フレーム
   ========================================================================== */

/* --- Dot Pattern: Multi-color stamp (多色ドット) --- */
.about-section {
    background:
        radial-gradient(circle, rgba(211, 91, 71, 0.14) 1.6px, transparent 1.7px),
        radial-gradient(circle, rgba(93, 160, 68, 0.12) 1.3px, transparent 1.4px),
        radial-gradient(circle, rgba(242, 167, 59, 0.13) 1.1px, transparent 1.2px),
        radial-gradient(circle, rgba(255, 229, 102, 0.16) 1.4px, transparent 1.5px),
        var(--color-yellow-light);
    background-size: 44px 44px, 36px 36px, 28px 28px, 52px 52px, auto;
    background-position: 0 0, 18px 10px, 8px 22px, 30px 5px, 0 0;
    padding: var(--section-padding-lg) 0;
    position: relative;
}

.about-inner {
    display: flex;
    gap: var(--gap-xl);
    align-items: flex-start;
    position: relative;
}

/* About image - ポラロイド風白枠フレーム */
.about-image {
    width: var(--about-image-width);
    height: var(--about-image-height);
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-white);
    padding: 10px;
    box-shadow: var(--shadow-photo);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 6px);
}

.about-content {
    flex: 1;
    padding-top: 71px;
}

.about-text {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-sm);
    color: var(--color-brown-dark);
    letter-spacing: 0.6px;
    line-height: 2.0;
    margin: 25px 0 30px;
}

.about-illustration {
    position: absolute;
    right: 0;
    bottom: -100px;
    width: 258px;
}

@media (max-width: 1399px) {
	.about-illustration {
		width: 278px;
	}
}

@media (max-width: 991px) {
    .about-inner {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        width: 100%;
        height: 300px;
    }

    .about-content {
        padding-top: 0;
    }

    .about-illustration {
        display: none;
    }
}

/* ==========================================================================
   Service Section - テクスチャ背景 + ステッチヘッダー
   ========================================================================== */

.service-section {
    position: relative;
}

/* --- Dot Pattern: Coarse (36px間隔・1.5px・大粒) --- */
.service-bg-yellow {
    background:
        radial-gradient(circle, rgba(180, 140, 100, 0.05) 1.5px, transparent 1.5px),
        var(--color-yellow-light);
    background-size: 36px 36px, auto;
    padding-top: var(--section-padding-xl);
}

/* --- Dot Pattern: Dense tiny (12px間隔・0.6px・超微細) --- */
.service-bg-gray {
    background:
        radial-gradient(circle, rgba(170, 150, 120, 0.04) 0.6px, transparent 0.6px),
        var(--color-bg-light);
    background-size: 12px 12px, auto;
    padding-bottom: var(--section-padding-lg);
}

.service-wave {
    position: absolute;
    top: 199px;
    left: 0;
    right: 0;
    height: 187px;
    z-index: 1;
}

.service-wave svg {
    width: 100%;
    height: 100%;
}

.service-inner {
    position: relative;
    z-index: 2;
}

.service-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Service header 中央配置の見出しバー */
.service-header .section-heading-en,
.service-header .section-heading-ja {
    /* base.css の section-heading スタイルを継承 */
}

.service-header .section-heading-ja::after {
    left: 50%;
    transform: translateX(-50%);
}

.service-illustration {
    position: absolute;
    left: -93px;
    top: -94px;
    width: 470px;
    z-index: 3;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, var(--service-card-width));
    gap: var(--gap-lg);
    justify-content: center;
}

@media (max-width: 1200px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-illustration {
        display: none;
    }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

/* --- Dot Pattern: Subtle large (40px間隔・薄い大粒・白背景) --- */
.gallery-section {
    background:
        radial-gradient(circle, rgba(180, 155, 120, 0.035) 1.2px, transparent 1.2px),
        var(--color-white);
    background-size: 40px 40px, auto;
    padding: var(--section-padding-md) 0;
    overflow: hidden;
}

/* ==========================================================================
   Contact Section - ドットテクスチャ + ポラロイド写真フレーム
   ========================================================================== */

/* --- Dot Pattern: Dense tiny (12px間隔・0.6px) --- */
.contact-section {
    background:
        radial-gradient(circle, rgba(180, 155, 120, 0.04) 0.6px, transparent 0.6px),
        var(--color-cream);
    background-size: 12px 12px, auto;
    position: relative;
    padding: var(--section-padding-lg) 0;
}

.contact-inner {
    display: flex;
    gap: var(--gap-xl);
    align-items: flex-start;
}

/* Contact image - ポラロイド風白枠フレーム */
.contact-image {
    width: var(--about-image-width);
    height: var(--about-image-height);
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-white);
    padding: 10px;
    box-shadow: var(--shadow-photo);
    border-radius: var(--radius-md);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-md) - 6px);
}

.contact-content {
    flex: 1;
    padding-top: 71px;
}

.contact-text {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-sm);
    color: var(--color-brown-dark);
    letter-spacing: 0.6px;
    line-height: 2.0;
    margin: 25px 0 30px;
}

.contact-content .btn-outline {
    /* alt green color inherited from component */
}

@media (max-width: 991px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-inner {
        flex-direction: column;
        gap: 30px;
    }

    .contact-image {
        width: 100%;
        height: 300px;
    }

    .contact-content {
        padding-top: 0;
    }
}

/* ==========================================================================
   Footer - ダークブラウン + 微細テクスチャ
   ========================================================================== */

.site-footer {
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        var(--color-brown-footer);
    background-size: 20px 20px, auto;
    padding: 48px 0 0;
}

.footer-content {
    row-gap: 30px;
}

.footer-logo a {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-medium);
    color: var(--color-white);
    display: inline;
    white-space: nowrap;
}

.footer-logo .logo-prefix {
    font-size: var(--font-size-lg);
    display: block;
}

.footer-logo .logo-name {
    font-size: var(--font-size-3xl);
    display: block;
}

.footer-nav-column h4 {
    font-family: var(--font-noto);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 28px;
}

.footer-nav-column ul li {
    margin-bottom: 13px;
}

.footer-nav-column ul li a {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    color: var(--color-white);
    line-height: 24px;
}

.footer-bottom {
    border-top: 1px solid var(--color-brown-border);
    margin-top: 48px;
    padding: 35px 0 18px;
    text-align: center;
}

.footer-copyright {
    font-family: var(--font-zen);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xs);
    color: var(--color-white);
    line-height: 20px;
}

@media (max-width: 991px) {
    .footer-nav-column {
        margin-top: 20px;
    }
}
