/* =================================================================
   DEAREST ARK - スタイルシート (style.css)
   雰囲気: dreamy fantasy, watercolor, soft storybook, elegant
   ================================================================= */

/* =================================================================
   1. デザインシステム & CSS変数 (COLORS & FONTS)
   後から色やフォントを簡単に変更できるようにここで一元管理しています。
   ================================================================= */
:root {
    /* カラーパレット (ミッドナイトブルー / ラベンダー / ダスティピンク / ペールゴールド / ミスティホワイト) */
    --color-midnight-dark: #121824;
    /* 深い夜空のようなブルー（テキスト用） */
    --color-midnight-medium: #1f2a3f;
    /* やや明るい夜空ブルー（ボタン、アクセント） */
    --color-lavender-dark: #7a6e91;
    /* 深みのあるラベンダー（見出し、サブタイトル） */
    --color-lavender-light: #eae5f3;
    /* 淡いラベンダー（背景、ホバー効果） */
    --color-dusty-pink: #d99fa5;
    /* くすんだ上品なピンク（アクセント、リンク） */
    --color-pale-gold: #dfb66c;
    /* 上品な淡いゴールド（プライマリボタン、星の装飾） */
    --color-pale-gold-light: #f7e6c4;
    /* 明るい淡いゴールド */
    --color-misty-white: #f5f6f8;
    /* 霞がかった白（セクション背景など） */

    /* カード背景（水彩背景とブレンドさせる半透明の白） */
    --color-card-bg: rgba(255, 255, 255, 0.72);
    --color-card-border: rgba(255, 255, 255, 0.5);
    --color-card-border-gold: rgba(223, 182, 108, 0.2);

    /* テキストカラー */
    --color-text-main: #2d3748;
    /* 読みやすさを重視したメインテキスト */
    --color-text-muted: #5a6474;
    /* 補足用・少し薄いテキスト */
    --color-text-light: #ffffff;
    /* 明るい背景用のテキスト */

    /* フォントファミリー */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    /* 上品なセリフ体（見出し用） */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* 読みやすいサンセリフ体（本文用） */

    /* トランジション（滑らかなアニメーション用） */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease-in-out;
}

/* =================================================================
   2. リセット & ベーススタイル
   ================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.8;
    background-color: #f6f2ea;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

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

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

/* 水彩背景の上に薄く重ねるグラデーションレイヤー（全体背景削除に伴い非表示化） */
.watercolor-overlay {
    display: none;
}

.main-content {
    position: relative;
    z-index: 2;
    /* 背景やオーバーレイより上にコンテンツを表示 */
}

/* =================================================================
   固定背景（スクロールしても動かない・薄め・ヒーローには自然に隠れる）
   ================================================================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('assets/images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.45; /* 薄める（0=透明〜1=濃い） */
    pointer-events: none;
}

/* 背景の上にうっすらクリームのベールを重ねて、文字の可読性を確保 */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: rgba(218, 212, 255, 0.288);
    pointer-events: none;
}

/* =================================================================
   3. レイアウト共通コンテナ
   ================================================================= */
.section-container {
    width: 100%;
    max-width: 960px;
    /* 最大幅 960px 程度 */
    margin: 0 auto;
    padding: 5rem 1.5rem;
    /* スマホ用に左右に十分な余白を設定 */
}

@media (min-width: 768px) {
    .section-container {
        padding: 7rem 2rem;
        /* PC版では余白を広めにしてゆとりを演出 */
    }
}

/* セクション共通見出し */
.section-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-midnight-medium);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    position: relative;
}

.section-title::after {
    content: "✦";
    display: block;
    font-size: 1rem;
    color: var(--color-pale-gold);
    margin-top: 0.5rem;
    text-align: center;
    letter-spacing: normal;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-lavender-dark);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem auto;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* =================================================================
   4. ボタンコンポーネント (丸みのあるpill型)
   ================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    /* pill型 */
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

/* ゴールドボタン (メインアクション) */
.btn-primary {
    background: linear-gradient(135deg, var(--color-pale-gold) 0%, #d4ab5c 100%);
    color: var(--color-midnight-dark);
    box-shadow: 0 4px 15px rgba(223, 182, 108, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 182, 108, 0.4);
    background: linear-gradient(135deg, #ebd09b 0%, var(--color-pale-gold) 100%);
}

/* ラベンダー/ダークボタン (セカンダリアクション) */
.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-midnight-medium);
    border: 1px solid rgba(122, 110, 145, 0.3);
    box-shadow: 0 4px 15px rgba(122, 110, 145, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--color-lavender-light);
    border-color: var(--color-lavender-dark);
    box-shadow: 0 6px 20px rgba(122, 110, 145, 0.15);
}

.btn-arrow {
    margin-left: 0.5rem;
    display: inline-block;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn-secondary:hover .btn-arrow {
    transform: translate(2px, -2px);
}

/* =================================================================
   5. HEADER & NAVIGATION (ヘッダー)
   ================================================================= */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 100;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-midnight-medium);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    display: block;
    opacity: 0.85;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.2rem 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-dusty-pink);
    transition: var(--transition-fast);
}

.main-nav a:hover {
    color: var(--color-midnight-medium);
}

.main-nav a:hover::after {
    width: 100%;
}

/* 言語切り替えトグル */
.lang-switcher {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    border-radius: 4px;
}

.lang-btn.active {
    color: var(--color-midnight-medium);
    background-color: rgba(122, 110, 145, 0.12);
}

.lang-btn:hover:not(.active) {
    color: var(--color-dusty-pink);
}

.lang-separator {
    color: rgba(122, 110, 145, 0.3);
    margin: 0 0.1rem;
}

/* ハンバーガーボタン（PC: 非表示） */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 110;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-midnight-medium);
    border-radius: 2px;
    transition: var(--transition-smooth);
    transform-origin: center;
}

/* ハンバーガー → × (クロス) アニメーション */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* =================================================================
   モバイルナビゲーション (768px以下)
   ================================================================= */
@media (max-width: 768px) {

    /* ヘッダーコンテナ: 横並びのまま維持 */
    .header-container {
        flex-wrap: wrap;
        padding: 0.8rem 1rem;
        position: relative;
    }

    /* ハンバーガーボタンを表示 */
    .hamburger-btn {
        display: flex;
        order: 3;
    }

    /* ロゴを左端に固定 */
    .logo {
        order: 1;
    }

    /* 言語切り替えをハンバーガーの左隣に配置 */
    .lang-switcher {
        order: 2;
        margin-left: auto;
        margin-right: 0.8rem;
    }

    /* ナビゲーション: スライドダウンメニュー */
    .main-nav {
        order: 4;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
            opacity 0.3s ease;
        opacity: 0;
    }

    /* メニュー開いたとき */
    .main-nav.open {
        max-height: 300px;
        /* リンク数に十分な高さ */
        opacity: 1;
    }

    /* リンクを縦並びに変更 */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.8rem 0 0.4rem 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(122, 110, 145, 0.08);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
        color: var(--color-text-main);
        letter-spacing: 0.06em;
    }

    .main-nav a:hover {
        color: var(--color-pale-gold);
        background-color: rgba(223, 182, 108, 0.05);
    }

    /* モバイルではアンダーラインホバーエフェクトを無効化 */
    .main-nav a::after {
        display: none;
    }
}

/* =================================================================
   6. HERO SECTION (ヒーロー)
   ================================================================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 75vh;
    padding: 4rem 1.5rem;
    position: relative;
    /* ::after用の配置基準 */
    background-image: url('assets/images/top_hero_a.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* フェードのはみ出し防止 */
}

/* ヒーローの下端に、画像が霞んで消えていくフェードを追加 */
.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* ヒーローの高さの約30% */
    background: linear-gradient(to bottom, rgba(240, 236, 245, 0) 0%, #f0ecf5 100%);
    pointer-events: none;
    z-index: 1;
    /* コンテンツより背面 */
}

/* ヒーローの光の粒演出用キャンバスのスタイル */
#particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* 背景画像の上、かつテキスト・ボタン(z-index:2)より背面に配置 */
    pointer-events: none;
    /* マウスクリックやドラッグ操作を邪魔しない */
}

.hero-content {
    position: relative;
    /* 背面フェードより前面に配置 */
    z-index: 2;
    max-width: 680px;
    background: transparent;
    /* 白の透明カード背景をPC版でも削除 */
    padding: 3rem 2rem;
    border-radius: 0;
    backdrop-filter: none;
    /* すりガラス効果を削除 */
    -webkit-backdrop-filter: none;
    border: none;
    /* 枠線を削除 */
    box-shadow: none;
    /* 影を削除 */
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 500;
    color: #2e2a4a;
    /* 黒から濃いネイビー紫に変更 */
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /* 背景画像の上での可読性を確保するため、ふんわりとした光彩を重ねる */
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.95),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(240, 236, 245, 0.7);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #433c65;
    /* 同系統のネイビー紫に調和 */
    /* 視認性のために少し暗めの青に変更 */
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 500;
    /* サブタイトル用の文字影（ふんわりとした光彩を重ねる） */
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.95),
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(240, 236, 245, 0.7);
}

/* フェードインアニメーション */
.animate-fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.hero-subtitle.animate-fade-in {
    animation-delay: 0.2s;
}

.hero-actions.animate-fade-in {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        padding: 4rem 3rem;
    }
}

/* スマホ版ヒーロー: ガラス風カードを非表示にし、背景画像上に直接テキスト配置 */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 4.5rem 1.2rem 3rem 1.2rem;
        /* 上下の余白を増やしてヘッダー直下を避け、背景を広く見せる */
    }

    .hero-content {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 1.85rem;
        /* 現在(2.2rem)の約85%に縮小 */
        /* 白〜薄ラベンダー系のやわらかい光彩を重ね、可読性とふんわり感を両立 */
        text-shadow:
            0 0 8px rgba(255, 255, 255, 0.95),
            0 0 16px rgba(255, 255, 255, 0.8),
            0 0 24px rgba(240, 236, 245, 0.7);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-shadow:
            0 0 6px rgba(255, 255, 255, 0.95),
            0 0 12px rgba(255, 255, 255, 0.8),
            0 0 18px rgba(240, 236, 245, 0.7);
    }

    /* ボタンを一回り小さく調整 */
    .hero-actions .btn {
        padding: 0.65rem 1.8rem;
        font-size: 0.85rem;
    }
}

/* =================================================================
   7. ABOUT SECTION (アバウト・手紙風)
   ================================================================= */
.about-section {
    padding-top: 2rem;
    display: flex;
    justify-content: center;
}

.letter-card {
    background-color: transparent;
    /* about.webp を背景として設定。白背景と不要な枠線を削除 */
    background-image: url('assets/images/about.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    box-shadow: none;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    width: 93vw;
    /* スマホ表示では画面幅に収まるよう width: 92vw〜94vw 程度で調整 */
    max-width: 740px;
    /* PC表示では最大幅を 700〜760px 程度に設定 */
    margin: 0 auto;
}

.letter-card::before {
    display: none;
    /* 点線フレームを削除 */
}

.letter-content {
    /* 画像＋テキストの自然な高さに背景が追従するよう relative に変更 */
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 9% 8% 10% 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.letter-seal {
    display: block;
    text-align: center;
    font-size: clamp(1rem, 0.8rem + 0.5vw, 1.5rem);
    color: var(--color-pale-gold);
    margin-bottom: clamp(0.5rem, 0.3rem + 1vw, 2rem);
}

/* About Me プロフィール画像 */
.about-me-photo {
    width: clamp(80px, 12vw, 130px);
    height: clamp(80px, 12vw, 130px);
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto clamp(0.8rem, 0.5rem + 1.5vw, 1.5rem) auto;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 20px rgba(122, 110, 145, 0.2);
    flex-shrink: 0;
}

.about-me-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.letter-body {
    max-width: 85%;
    /* テキストが紙画像からはみ出さないように最大幅を制限 */
    margin: 0 auto;
    font-size: clamp(0.7rem, 0.55rem + 0.75vw, 1rem);
    /* スマホで縮小されるよう clamp を適用 */
    color: var(--color-text-main);
    letter-spacing: 0.03em;
    text-align: center;
    line-height: 1.6;
}

/* 英語表示時のみのAboutテキスト調整 (文字サイズを1段階小さくし、行間をゆったり化) */
html[lang="en"] .letter-body {
    font-size: clamp(0.65rem, 0.5rem + 0.7vw, 0.9rem);
    line-height: 1.8;
}

.letter-body p {
    margin-bottom: clamp(0.4rem, 0.3rem + 0.5vw, 1.2rem);
}

.letter-body p:last-child {
    margin-bottom: 0;
}

.letter-closing {
    font-family: var(--font-serif);
    font-size: clamp(0.75rem, 0.65rem + 0.75vw, 1.1rem);
    font-style: italic;
    color: var(--color-midnight-medium);
    margin-top: clamp(0.6rem, 0.4rem + 1vw, 1.8rem);
    border-top: 1px solid rgba(122, 110, 145, 0.15);
    padding-top: clamp(0.5rem, 0.3rem + 0.8vw, 1.2rem);
    line-height: 1.5;
}

/* スマホ: 手紙カードを親コンテナ内で中央配置し、はみ出しを防ぐ */
@media (max-width: 768px) {
    .about-section {
        padding-top: 0.5rem;
    }

    .about-section .section-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .letter-card {
        width: 90%;
        max-width: none;
        margin: 0 auto;
        height: auto !important;
        aspect-ratio: auto !important;
    }

    .letter-content {
        position: relative;
        width: 100%;
        height: auto;
        padding: 3.5rem 1.5rem 4.5rem 1.5rem;
        /* 下部の余白（padding-bottom）を3remから4.5remに増加 */
        /* 手紙の上下余白を確保しつつテキストを収める */
    }

    .letter-body {
        max-width: 95%;
        font-size: 0.95rem;
        /* スマホで読みやすい大きさを維持 */
        line-height: 1.7;
    }

    /* スマホ英語表示時のみのAboutテキスト調整 */
    html[lang="en"] .letter-body {
        font-size: 0.85rem;
        /* スマホ英語時のみ縮小 */
        line-height: 1.85;
    }

    .letter-closing {
        font-size: 0.9rem;
    }
}

/* =================================================================
   8. SERVICES SECTION (サービス)
   ================================================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 769px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(122, 110, 145, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--color-pale-gold);
    box-shadow: 0 12px 35px rgba(223, 182, 108, 0.12);
}

.service-icon {
    font-size: 1.2rem;
    color: var(--color-pale-gold);
    margin-bottom: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(223, 182, 108, 0.1);
}

.service-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--color-midnight-medium);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

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

/* =================================================================
   9. PROCESS SECTION (プロセス・4ステップ)
   ================================================================= */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    position: relative;
}

@media (min-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    /* ステップ間の矢印ライン装飾 */
    .process-steps::before {
        content: "";
        position: absolute;
        top: 2.2rem;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(to right,
                rgba(223, 182, 108, 0.1) 0%,
                rgba(223, 182, 108, 0.5) 50%,
                rgba(223, 182, 108, 0.1) 100%);
        z-index: 1;
    }
}

.step-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 30px rgba(122, 110, 145, 0.03);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 35px rgba(122, 110, 145, 0.08);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-pale-gold);
    background-color: var(--color-misty-white);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    border: 1px solid rgba(223, 182, 108, 0.3);
    box-shadow: 0 2px 8px rgba(223, 182, 108, 0.1);
}

.step-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-midnight-medium);
    margin-bottom: 0.8rem;
}

.step-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* =================================================================
   10. SELECTED WORKS SECTION (作品実績) - 横スクロールカルーセル
   ================================================================= */

/* 横スクロールコンテナ */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    /* ナビボタンが画像に重ならないよう左右に60pxのパディングを設定（スナップ中央揃えの基準にもなる） */
    padding: 1rem 60px;
    /* スクロールバー非表示 */
    -ms-overflow-style: none;
    /* IE, Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* スクロールバー非表示 (Chrome, Safari) */
.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    /* PC: カード幅 280px 固定、縮まない */
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
    /* 常に1枚が画面中央にスナップするようcenterに変更 */
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 0.8rem;
    box-shadow: 0 8px 30px rgba(122, 110, 145, 0.03);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(122, 110, 145, 0.08);
}

.gallery-image-wrapper {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* 正方形 */
    position: relative;
    background-color: var(--color-lavender-light);
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* 画像に重ねるホバー時のオーバーレイ表示 */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 24, 36, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    padding: 1rem;
}

.gallery-item-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-text-light);
    letter-spacing: 0.08em;
    text-align: center;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-item-title {
    transform: translateY(0);
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.06);
}

/* スマホ表示: カード幅を240pxに縮小、パディング調整 */
@media (max-width: 768px) {
    .gallery-grid {
        padding: 1rem 48px;
        /* スマホ用ナビボタン（36px）が重ならないよう左右48pxに調整 */
    }

    .gallery-item {
        flex: 0 0 240px;
        width: 240px;
        scroll-snap-align: center;
    }
}

/* ギャラリーラッパー（ボタン配置の基準） */
.gallery-wrapper {
    position: relative;
}

/* ナビゲーションボタン共通スタイル */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(122, 110, 145, 0.2);
    background: rgba(255, 255, 255, 0.95); /* 不透明度を上げて視認性を高め、backdrop-filter依存を解消 */
    color: var(--color-midnight-medium);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(122, 110, 145, 0.08);
    outline: none; /* フォーカス時のブラウザ標準の暗い矩形アウトラインをクリア */
}

/* キーボード操作でのフォーカス時にソフトなゴールドのシャドウで強調 */
.gallery-nav:focus-visible {
    border-color: var(--color-pale-gold);
    box-shadow: 0 0 0 3px rgba(223, 182, 108, 0.35), 0 4px 15px rgba(122, 110, 145, 0.08);
}

/* 左ボタン位置 */
.gallery-nav-prev {
    left: 8px;
}

/* 右ボタン位置 */
.gallery-nav-next {
    right: 8px;
}

/* ホバー時: 金色のアクセント */
.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-pale-gold);
    color: var(--color-pale-gold);
    box-shadow: 0 6px 20px rgba(223, 182, 108, 0.2);
    transform: translateY(-50%) scale(1.05);
}

/* ドラッグ中のカーソル変更 */
.gallery-grid.grabbing {
    cursor: grabbing;
    scroll-snap-type: none;
    /* ドラッグ中はスナップを一時解除 */
    user-select: none;
}

/* PC表示でのドラッグ可能カーソル */
@media (min-width: 769px) {
    .gallery-grid {
        cursor: grab;
    }
}

/* スマホではナビボタンを小さく調整 */
@media (max-width: 768px) {
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .gallery-nav-prev {
        left: 6px;
    }

    .gallery-nav-next {
        right: 6px;
    }
}

/* =================================================================
   10.5. PROCESS SECTION - キャラクターカード拡張スタイル
   ================================================================= */
.step-card--character {
    padding: 1.5rem 1rem;
}

.step-character-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0.8rem auto 0.6rem auto;
    border: 2px solid rgba(223, 182, 108, 0.3);
    box-shadow: 0 4px 16px rgba(122, 110, 145, 0.1);
    background-color: var(--color-lavender-light);
}

.step-character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.step-card--character:hover .step-character-image img {
    transform: scale(1.06);
}

.step-character-name {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-pale-gold);
    text-align: center;
    margin-bottom: 0.3rem;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0.6rem 0 0 0;
    text-align: center;
}

.step-list li {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    position: relative;
}

.step-list li::before {
    content: "·";
    color: var(--color-pale-gold);
    margin-right: 0.3rem;
}

/* =================================================================
   10.6. SELECTED WORKS - 4枚カードグリッド
   ================================================================= */
.works-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.works-card {
    display: block;
    text-decoration: none;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 30px rgba(122, 110, 145, 0.03);
}

.works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(122, 110, 145, 0.1);
    border-color: rgba(223, 182, 108, 0.4);
}

.works-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: var(--color-lavender-light);
}

.works-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.works-card:hover .works-card-image img {
    transform: scale(1.06);
}

.works-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 36, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.works-card:hover .works-card-overlay {
    opacity: 1;
}

.works-card-view {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.works-card-info {
    padding: 1rem 1.2rem;
}

.works-card-category {
    font-size: 0.72rem;
    color: var(--color-pale-gold);
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.works-card-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-midnight-medium);
    letter-spacing: 0.02em;
}

/* 日本語表示時はカードのタイトル・カテゴリをゴシック体で読みやすく */
html[lang="ja"] .works-card-title,
html[lang="ja"] .works-card-category,
html[lang="ja"] .works-card-view {
    font-family: var(--font-sans);
}

html[lang="ja"] .works-card-title {
    font-weight: 600;
}

.works-more {
    text-align: center;
    margin-top: 1rem;
}

/* スマホ: 2カラム維持 */
@media (max-width: 480px) {
    .works-cards-grid {
        gap: 1rem;
    }

    .works-card-info {
        padding: 0.8rem;
    }

    .works-card-title {
        font-size: 0.9rem;
    }
}

/* =================================================================
   11. BEFORE / AFTER SECTION (ビフォーアフター)
   ================================================================= */
.comparison-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.comparison-box {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 10px 35px rgba(122, 110, 145, 0.03);
    width: 100%;
    max-width: 440px;
    position: relative;
    transition: var(--transition-smooth);
}

.comparison-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(122, 110, 145, 0.06);
}

.comparison-label {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    background: rgba(18, 24, 36, 0.75);
    color: var(--color-text-light);
    font-family: var(--font-serif);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.comparison-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: var(--color-lavender-light);
}

.comparison-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-pale-gold);
    font-size: 2.2rem;
    font-family: var(--font-serif);
    margin: 0.5rem 0;
    transform: rotate(90deg);
    /* デフォルトスマホ（縦並び）用は下向き矢印 */
}

/* PC/タブレット表示（横並び） */
@media (min-width: 768px) {
    .comparison-container {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .comparison-box {
        width: calc(50% - 2.5rem);
    }

    .comparison-arrow {
        transform: rotate(0deg);
        /* PC（横並び）用は右向き矢印 */
        margin: 0 0.5rem;
        font-size: 1.8rem;
    }
}

/* =================================================================
   12. WORK WITH ME SECTION (仕事の相談)
   ================================================================= */
.contact-section {
    text-align: center;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .contact-buttons {
        flex-direction: row;
        max-width: none;
    }

    .contact-buttons .btn {
        min-width: 200px;
    }
}

/* =================================================================
   13. FOOTER SECTION (フッター)
   ================================================================= */
.site-footer {
    background: rgba(18, 24, 36, 0.03);
    border-top: 1px solid rgba(122, 110, 145, 0.1);
    padding: 4rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 960px;
    margin: 0 auto;
}

.footer-copyright {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-midnight-medium);
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

/* =================================================================
   14. スクロール時のアニメーション効果 (Scroll Reveal)
   JSと組み合わせて画面に入った要素をふわっとフェードインさせます。
   ================================================================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =================================================================
   15. レスポンシブ修正（768px以下 / 480px以下）
   ================================================================= */

/* --- 768px以下: Servicesカードの余白・文字を微調整 --- */
@media (max-width: 768px) {
    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-name {
        font-size: 1.2rem;
    }

    .service-desc {
        font-size: 0.85rem;
    }
}

/* --- 768px以下: Processカードを2カラム×2行にする --- */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .step-card {
        padding: 1.5rem 1.2rem;
    }

    .step-title {
        font-size: 1.05rem;
    }

    .step-desc {
        font-size: 0.8rem;
    }
}

/* --- 480px以下: Processカードも1カラムにする + さらなるスマホ向け微調整 --- */
@media (max-width: 480px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .step-card {
        padding: 1.5rem 1.2rem;
    }

    .step-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .step-desc {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .service-card {
        padding: 1.8rem 1.3rem;
    }

    .service-name {
        font-size: 1.1rem;
    }

    .service-desc {
        font-size: 0.82rem;
        line-height: 1.6;
    }
}

/* =================================================================
   14.5. スクロール連動にじみフェードイン (Scroll Reveal - Ink Fade)
   dearest-ark-effects-demo.html より移植
   ================================================================= */
.reveal {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(22px);
    transition: opacity 1.1s ease, filter 1.1s ease, transform 1.1s ease;
}

.reveal.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* カードを少しずつ時間差で出すディレイ設定 */
.reveal:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal:nth-child(3) {
    transition-delay: 0.24s;
}

.reveal:nth-child(4) {
    transition-delay: 0.36s;
}

/* 動きを減らす設定（アクセシビリティ対応） */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
}

/* =================================================================
   14.6. 金色シマーボタンエフェクト (Gold Shimmer Button)
   dearest-ark-effects-demo.html より移植
   ================================================================= */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    /* 光の帯がボタンからはみ出さないようにクリップ */
}

.btn-shimmer::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -60%;
    width: 34%;
    height: 140%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    animation: shimmer 5.5s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    72% {
        left: -60%;
    }

    88% {
        left: 130%;
    }

    100% {
        left: 130%;
    }
}

/* 動きを減らす設定時のシマーの対応 */
@media (prefers-reduced-motion: reduce) {
    .btn-shimmer::after {
        animation: none;
    }
}

/* =================================================================
   14.7. マウスカーソル光の軌跡用キャンバス (Cursor Trail Canvas)
   ================================================================= */
#cursor-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* マウスイベントを透過させて操作を阻害しない */
    z-index: 9999;
    /* 全てのコンテンツより最前面に配置 */
}