/* =================================================================
 * style.css 最終版 (SNSリンク追加・スマホ対応済み・リファクタリング済)
 * ================================================================= */

/* style.css の最も先頭（基本設定の前）に追記 */
:root {
    /* 透明感のあるアクア×ピンクパレット */
    --accent-color: #00ced1;
    --accent-color-hover: #19a3b0;
    --accent-soft: #d4f6f6;
    --pink-accent: #00ced1;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 14px 28px rgba(0, 0, 0, 0.18);
}

/* =================================================================
 * プロレベルの滑らかさ（グローバル設定）
 * ================================================================= */

/* 1. スムーズスクロールの有効化 */
html {
    scroll-behavior: smooth;
}

/* 2. グローバルなトランジションの適用 */
/* ユーザーが操作する全ての要素に、0.3秒の緩やかな変化を適用 */
a, button, .tab-btn, .submit-btn, .gallery-grid .work-card, 
.faq-icon, .faq-item.active .faq-question {
    /* 色、背景、影、変形など、ほぼ全ての変化を滑らかにします */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---------------
 * 1. 基本設定（リセット・タイポグラフィ）
 * --------------- */
body {
    margin: 0;
    /* サイト全体にモダンで読みやすいフォントを設定 */
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #333;
    
    /* 読みやすさのため行間を広げる */
    line-height: 1.8; 
    
    /* ベースを透明感のあるパターンに変更 */
    background-color: #f7fbfc; 
    background-image:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.65) 0, transparent 22%),
      radial-gradient(circle at 80% 0%, rgba(255,255,255,0.55) 0, transparent 18%),
      linear-gradient(135deg, rgba(0,206,209,0.06), rgba(127,255,212,0.05));
    background-attachment: fixed; 
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------------
 * 2. 共通レイアウト
 * --------------- */
.wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 1. 見出しH2のプロ化 */
h2 {
    text-align: center;
    font-size: 2.5em; /* 大きく */
    font-weight: 700;
    margin-bottom: 50px;
    padding-bottom: 10px;
    
    /* 水色のグラデーション（既存の--accent-colorを使用） */
    border-bottom: 3px solid #eee; 
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -3px; 
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* 短いラインで強調 */
    height: 3px;
    /* 既存の変数を使ったグラデーションライン */
    background: var(--accent-color); 
}

/* ---------------
 * 3. ヘッダー (ハンバーガーメニュー対応)
 * --------------- */

/* 1. ヘッダーの基本構成: タイトルとコントロールを左右に配置 */
header {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 15px 5%; 
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.78); 
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: padding 0.2s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

header.is-scrolled {
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
    border-color: rgba(0, 0, 0, 0.06);
}

/* サイトロゴの表示制御 */
.site-logo-link {
    display: inline-block;
    height: 70px; 
    width: auto; 
    padding: 0;
    margin: 0;
}

.site-logo {
    height: 100%; 
    max-width: 100%; 
    width: auto;
    display: block;
}

.site-title {
    /* グラデーションテキストは、画像ロゴ優先のため非表示 */
    display: none; 
}

/* 2. SNSリンクとボタンをまとめるコンテナ */
.header-controls {
    display: flex;
    align-items: center;
}

/* 3. SNSリンクの調整 */
.sns-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 15px; 
    align-items: center;
}

.sns-links .sns-link a {
    position: relative; /* 線の基準点 */
    display: flex; 
    padding: 3px; 
    overflow: hidden; 
    /* アイコンのサイズを設定 */
    height: 20px; 
    width: auto;
}
.sns-links .sns-link a img {
    height: 100%;
    width: auto;
    transition: transform 0.3s ease;
}
.sns-links .sns-link a img[alt="Xロゴ"] {
    /* Xロゴを BOOTHロゴと揃えるために少し小さく */
    height: 18px;
}

/* SNSホバーアニメーション */
.sns-links .sns-link a::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 3px; 
    background: var(--accent-color); 
    transform-origin: left;
    transform: scaleX(0); 
    transition: transform 0.3s ease-out; 
}

.sns-links .sns-link a:hover::after {
    transform: scaleX(1); 
}

.sns-links .sns-link a:hover img {
    transform: translateY(-2px) rotate(3deg);
}


.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f7a82 0%, #00ced1 50%, #7fffd4 100%);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 22px rgba(0, 206, 209, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(0, 206, 209, 0.38);
}
.cta-btn.outline {
    background: transparent;
    color: #0f7a82;
    border-color: rgba(0, 206, 209, 0.45);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.cta-btn.outline:hover {
    background: rgba(0, 206, 209, 0.12);
    box-shadow: 0 10px 20px rgba(0, 206, 209, 0.22);
}
.header-cta {
    margin-left: 15px;
}

/* 4. ハンバーガーボタンの基本スタイル（常時表示） */
.menu-toggle {
    display: flex; 
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; 
    color: #333; 
    margin-left: 15px; 
    transition: all 0.3s ease-in-out; 
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 10px;
    transition: all 0.3s ease-in-out; 
    transform-origin: left; 
}

/* ハンバーガーメニューが開いた時のアニメーション */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg); 
    width: 32px; 
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0; 
    transform: translateX(20px); 
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg); 
    width: 32px; 
}


/* 5. ナビゲーションメニュー本体（モバイル用） */
header nav {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    background-color: rgba(255, 255, 255, 0.98); 
    padding-top: 80px; 
    
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; 
    
    display: block; 
    overflow-y: auto;
    z-index: 999; 
}

header nav.open {
    opacity: 1; 
    visibility: visible; 
}

/* 6. ナビゲーションリストの縦並び */
header nav ul {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none; 
}

header nav ul li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #eee;
}

header nav ul li a {
    display: block;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    
    /* ★【修正箇所】アニメーションのための設定を追加★ */
    position: relative;
    overflow: hidden; 
}

header nav ul li a:hover {
    color: var(--accent-color-hover); /* ホバーで色が変わる */
}

/* ★【修正箇所】ホバー時の下線アニメーションを追加★ */
header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color); 
    transform-origin: left;
    transform: scaleX(0); 
    transition: transform 0.3s ease-out; 
}

header nav ul li a:hover::after {
    transform: scaleX(1); 
}

/* 7. スクロール禁止用CSS (JavaScriptでbodyに付与) */
body.no-scroll {
    overflow: hidden;
}

/* ---------------
 * 4. カテゴリタブ
 * --------------- */
.category-tabs {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 10px; 
}
.tab-btn {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.08) 0%, rgba(127, 255, 212, 0.08) 100%);
    border: 1px solid rgba(0, 206, 209, 0.2);
    padding: 11px 20px;
    margin: 0; 
    font-size: 16px;
    font-weight: bold;
    color: #0f5056;
    cursor: pointer;
    border-bottom: 2px solid transparent; /* 下線アニメ用の土台は保持 */
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    white-space: nowrap; 
    
    /* タブボタンのフィードバック強化 */
    transition: all 0.3s;
}
.tab-btn:hover:not(.active) {
    opacity: 0.95; 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 206, 209, 0.18);
}
.tab-btn:hover {
    color: #333;
}
.tab-btn.active {
    background: linear-gradient(135deg, #00ced1 0%, #19a3b0 50%, #7fffd4 100%);
    color: white;
    border: none;
    box-shadow: 0 12px 25px rgba(0, 206, 209, 0.45); 
    transform: translateY(-1px) scale(1.03); /* 拡大効果を統合 */
}


/* ---------------
 * 5. ギャラリー & ホバーエフェクト
 * --------------- */
.gallery-grid {
    display: grid;
    /* PC: 3〜4列、スマホ: 2列 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.work-card {
    background-color: #fff;
    /* カードに立体感と丸みを加えて、より現代的なデザインに */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); /* 影を少し強め */
    border: 1px solid rgba(255, 255, 255, 0.85); /* 白い枠線を追加 */
    overflow: hidden;
    /* 上のグローバル設定でtransitionが適用されます */
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
/* ホバー時の効果を強化（少し持ち上げて、影を濃くする） */
.work-card:hover {
    transform: translateY(-5px) scale(1.02); /* 上に5px持ち上げ、1.02倍にわずかに拡大 */
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2); /* 影を劇的に強調 */
    border-color: rgba(0, 206, 209, 0.35);
}

.item {
    position: relative;
    display: block; 
    overflow: hidden;
    aspect-ratio: 16 / 9; 
    height: auto; 
}
.item img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.55s ease;
}
.item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.32) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}
.item:hover img {
    transform: scale(1.03);
}
.item:hover::after {
    opacity: 1;
}

.card-title {
    margin: 0;
    padding: 12px 15px 12px;
    text-align: left;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.45;
    color: #1f1f1f;
    border-top: 1px solid #eee;
    background-color: #fdfefe;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item .card-info {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    max-width: calc(100% - 12px);
    padding: 3px 6px;
    background: rgba(14, 31, 42, 0.3);
    border-radius: 11px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.item .type-icon {
    font-size: 10px;
    font-weight: 700;
    color: #f7fcfd;
    padding: 3px 8px;
    border-radius: 9px;
    background: linear-gradient(135deg, #00ced1 0%, #19a3b0 60%, #7fffd4 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.item .image-icon, .item .category-summary {
    font-size: 10px;
    color: #eef5f7;
    padding: 3px 7px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}
.item:hover .hover-overlay {
    opacity: 1;
}
.hover-overlay p {
    margin: 5px 0;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}
.hover-overlay .category-tags {
    font-size: 14px;
    font-weight: normal;
    margin-top: 10px;
}
.work-card.hidden {
    display: none;
}

/* 「もっと見る」ボタンを確実に中央に配置するためのCSS */
#load-more-container {
    text-align: center; 
    margin-top: 30px; 
}

.section-head {
    text-align: center;
    margin-bottom: 12px;
}
.section-eyebrow {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f4fbfb 0%, #e7f6f6 100%);
    color: #0f7a82;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 13px;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 20px rgba(0,0,0,0.08);
}
.section-head h2 {
    margin: 10px 0 4px;
}
.section-subtitle {
    margin: 0;
    color: #5d6a6f;
    font-size: 13px;
}
.cta-inline {
    margin-top: 12px;
}


/* ---------------
 * 6. フォーム 
 * --------------- */
.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px 12px 44px;
    border: 1px solid #e1e8ea; /* 薄いボーダー */
    border-radius: 12px; /* 角を丸く */
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease-in-out;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.04) 0%, rgba(127, 255, 212, 0.04) 100%);
}
/* フォーカス時のデザイン */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: transparent; /* 元のボーダーを透明に */
    /* 注: --main-colorは未定義のため、ここではアクセントカラーを使用 */
    box-shadow: 0 3px 0 0 var(--accent-color-hover, #19A3B0); 
    outline: none; 
    background: #fff;
}

.input-wrap {
    position: relative;
    display: block;
}
.input-wrap::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0.7;
    font-size: 18px;
}
.icon-name::before { content: '👤'; }
.icon-mail::before { content: '✉️'; }
.icon-message::before { content: '📝'; top: 18px; }

/* ラジオボタンのデザイン */
.contact-form .radio-group {
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
    margin-top: 5px;
    margin-bottom: 20px;
}

.contact-form .radio-group input[type="radio"] {
    position: absolute; 
    left: -9999px; 
    opacity: 0;
    width: 0;
    height: 0;
}

.contact-form .radio-group label {
    cursor: pointer;
    display: inline-flex; 
    align-items: center;
    padding: 8px 18px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 
    transition: all 0.2s ease;
    font-weight: normal; 
    color: #555;
    white-space: nowrap; 
}

.contact-form .radio-group label:hover {
    border-color: #7FFFD4; 
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 206, 209, 0.15);
}

.contact-form .radio-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #00CED1 0%, #7FFFD4 100%); 
    border-color: #00CED1; 
    color: white; 
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 206, 209, 0.4); 
    transform: translateY(-1px);
}

.style-picker-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.06) 0%, rgba(127, 255, 212, 0.06) 100%);
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.style-picker-toggle:hover {
    border-color: #00CED1;
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.2);
}

.style-picker-toggle:focus-visible {
    outline: 2px solid var(--accent-color, #00CED1);
    outline-offset: 2px;
}

.style-picker-toggle.selected .style-picker-text {
    font-weight: 600;
    color: #0d545a;
}

.style-picker-caret {
    font-size: 0.85rem;
    color: #0d545a;
    transition: transform 0.2s ease;
}

.style-picker-toggle[aria-expanded="true"] .style-picker-caret {
    transform: rotate(180deg);
}

.style-options {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #e5f4f4;
    border-radius: 12px;
    background: #f9fbfb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.style-options.open {
    display: flex;
}

.style-option {
    border: 1px solid #d8f1f1;
    background: white;
    color: #345;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.style-option:hover {
    border-color: #00CED1;
    box-shadow: 0 4px 10px rgba(0, 206, 209, 0.2);
    transform: translateY(-1px);
}

.style-option[aria-selected="true"] {
    background: linear-gradient(135deg, #00CED1 0%, #7FFFD4 100%);
    border-color: #00CED1;
    color: white;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 206, 209, 0.35);
    transform: translateY(-1px);
}

/* 送信ボタンの強化 */
.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    /* グラデーションとシャドウを適用 */
    background: var(--accent-color);
    box-shadow: var(--shadow-light);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.submit-btn:hover {
    /* ホバーで色が濃くなり、影が強くなる */
    background: var(--accent-color-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}


/* ---------------
 * 7. FAQ (アコーディオン) 
 * --------------- */
.faq-container {
    max-width: 760px;
    margin: 36px auto 0;
    background: linear-gradient(180deg, rgba(0, 206, 209, 0.06) 0%, rgba(127, 255, 212, 0.05) 100%);
    border: 1px solid rgba(0, 206, 209, 0.12);
    border-radius: 16px;
    padding: 18px;
}
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding-bottom: 8px;
}
.faq-question {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #1f1f1f;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    text-align: left;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    line-height: 1.5;
}
.faq-question:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 206, 209, 0.2);
}
.faq-item:nth-child(even) .faq-question {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.04) 0%, rgba(127, 255, 212, 0.03) 100%);
    border-color: rgba(0, 206, 209, 0.1);
}
.faq-icon {
    font-size: 16px;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00CED1 0%, #7FFFD4 100%);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 14px rgba(0, 206, 209, 0.35);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 4px;
}
.faq-answer p {
    padding: 12px 14px 10px 14px;
    margin: 0;
    line-height: 1.7;
}
.faq-list {
    margin: 0 14px 14px 14px;
    padding-left: 18px;
    color: #234;
    line-height: 1.6;
}
.faq-note {
    margin: 0 14px 16px 14px;
    color: #0f5056;
    font-weight: 600;
    background: rgba(0, 206, 209, 0.08);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 206, 209, 0.15);
}
.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-item.active .faq-question {
    color: #0f5056; /* 青緑系 */
    border-color: rgba(0, 206, 209, 0.3);
    box-shadow: 0 14px 28px rgba(0, 206, 209, 0.18);
}
.btn-link {
    display: inline-block;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}
.btn-link:hover {
    background-color: #555;
}

.admin-wrapper {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
}
.admin-header h1 {
    margin-bottom: 8px;
}
.admin-lead {
    margin: 0 0 16px;
    color: #234;
}
.admin-panel {
    display: grid;
    gap: 20px;
}
.admin-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}
.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.admin-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    color: #234;
    margin-bottom: 12px;
}
.admin-label input,
.admin-label select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 15px;
}
.admin-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-items: end;
}
.admin-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.admin-form .submit-btn {
    width: auto;
    padding: 12px 18px;
}
.secondary-btn {
    background: #f5f7f9;
    color: #234;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.secondary-btn:hover {
    background: #e6eef2;
    border-color: rgba(0, 0, 0, 0.15);
}
.admin-note {
    color: #0f5056;
    font-size: 14px;
    margin-top: 6px;
}
.admin-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}
.admin-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: #fafafa;
    margin-bottom: 8px;
}
.admin-list-item .work-title {
    flex: 1;
}
.admin-list-actions {
    display: flex;
    gap: 8px;
}
.drag-handle {
    cursor: grab;
    font-weight: 700;
    color: #0f5056;
    user-select: none;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    margin-left: 6px;
}
.badge.mute {
    background: #f1f1f1;
    color: #666;
}


/* ---------------
 * 8. 料金表ページ関連 (依頼フロー、料金表)
 * --------------- */

/* 依頼フロー (PC設定 - 横並び) */
.flow-container {
    display: flex;
    justify-content: space-between;
    gap: 30px; 
    margin-top: 40px;
    padding: 0 20px;
}

.flow-step {
    flex: 1 1 180px; 
    text-align: center;
    position: relative;
    padding: 0 10px;
    
    background: #fff;
    border-radius: 8px;
    /* 影を適用 */
    box-shadow: var(--shadow-light); 
    transition: transform 0.3s ease;
    overflow: hidden;
}

.flow-step:hover {
    transform: scale(1.03); /* ホバーで少し拡大 */
}

/* 流れの区切り線（PC用） */
.flow-step:not(:last-child)::after {
    content: "▶";
    position: absolute;
    top: 50px;
    right: -25px; 
    font-size: 1.5em;
    color: #ddd;
    font-weight: 300;
    transform: translateY(-50%);
}

.flow-step h3 {
    /* ステップのヘッダーをより目立たせる */
    background-color: #e0f7fa; /* 薄い水色 */
    border-bottom: 3px solid #00CED1;
    margin: 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center; /* PCでは中央寄せ */
}
.flow-step .step-num {
    /* ステップ番号にグラデーションを適用 */
    background: var(--accent-color); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    flex-shrink: 0;
}
.flow-step p {
    padding: 0 20px 20px 20px;
    margin: 15px 0 0;
    line-height: 1.7;
}

/* 料金表グリッド */
.price-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.price-card {
    background: #fff;
    border-radius: 8px;
    /* 影を適用 */
    box-shadow: var(--shadow-light);
    padding: 30px;
    transition: box-shadow 0.3s ease;
}
.price-card h3 {
    text-align: center;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    /* 料金プランの見出しを華やかに */
    color: #19A3B0; 
    border-bottom: 2px dotted #00CED1;
    padding-bottom: 10px;
}
.price-desc {
    text-align: center;
    color: #666;
    margin-top: 0;
    margin-bottom: 25px;
}
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 450px;
    margin: 0 auto;
}
.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}
.price-list li:last-child {
    border-bottom: none;
}
.price-list li span:first-child {
    font-weight: bold;
    color: #333;
    flex: 1;
    padding-right: 15px;
    word-break: break-word !important; /* 長すぎる項目名の強制改行 */
    flex-grow: 1 !important;
    min-width: 0 !important;
}
.price-list li span:last-child {
    font-size: 1.2em; /* 価格を強調 */
    font-weight: bold;
    color: #19A3B0; /* 価格を強調 */
    flex-shrink: 0;
}
.price-list .price-group-title {
    font-weight: bold;
    color: #555;
    padding-top: 20px;
    border-bottom: none;
    justify-content: flex-start;
}
.price-list .price-group-title + li {
    border-top: 1px dashed #ddd;
}
.price-note {
    text-align: center;
    margin-top: 25px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}
.note-alert {
    color: #008080; /* 濃いターコイズ */
    font-weight: bold;
}

/* 複合料金表の強制2列レイアウト (PC) */
.price-inner-grid {
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.price-col {
    min-width: 0 !important; 
}

.price-col h4 {
    margin-top: 0;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.price-col .price-list {
    max-width: none;
}
.price-col .price-note {
    text-align: left;
}
.image-showcase {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.image-showcase img {
    width: 100%;
    border-radius: 4px;
}


/* ---------------
 * 9. モーダル（ポップアップ）スタイル 
 * --------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%; 
    max-width: 900px;
    position: relative;
}
.close-btn {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    z-index: 1010;
}
.close-btn:hover,
.close-btn:focus {
    color: #00CED1;
    text-decoration: none;
    cursor: pointer;
}
.modal-content .modal-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 15px 0;
    padding-top: 20px;
    padding-right: 40px;
    color: #333;
}
.modal-body {
    padding-top: 10px;
}
.modal-body img {
    width: 100%;
    height: auto;
    display: block;
}
.modal-body iframe {
    width: 100%;
    height: 500px;
    display: block;
}


/* ---------------
 * 10. フッター
 * --------------- */
footer {
    text-align: center;
    padding: 30px 0;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* ---------------
 * 11. ページ遷移時のローディング画面
 * --------------- */
#loading-overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 背景を不透明な白に */
    background-color: #fff; 
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* 初期状態を可視（透明度1）に設定 */
    opacity: 1; 
    visibility: visible; 
    
    /* 霧が晴れる時間（1秒）を設定 */
    transition: opacity 1.0s ease-out, visibility 1.0s ease-out; 
    z-index: 9999; 
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; 
    border-top: 5px solid var(--accent-color-hover, #19A3B0); 
    border-radius: 50%; 
    animation: spin 1s linear infinite; 
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ローダー非表示用のクラス（「霧が晴れる」状態） */
#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.0s ease-out, visibility 0s 1.0s; 
}

/* ---------------
 * 12. クーポンポップアップ専用スタイル
 * --------------- */
.coupon-modal .modal-content {
    background-color: transparent !important; 
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: none !important;
}

.coupon-modal {
    display: none; 
    position: fixed;
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); 
    backdrop-filter: blur(5px); 
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.coupon-modal.is-active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.coupon-modal-content {
    background-color: #fff; 
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%; 
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
}
.coupon-modal.is-active .coupon-modal-content {
    transform: translateY(0);
}

.coupon-close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.coupon-close-btn:hover {
    color: var(--accent-color-hover, #19A3B0);
}

.coupon-title {
    background: var(--accent-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 10px;
}
.coupon-desc {
    color: #555;
    font-size: 1em;
    margin-bottom: 25px;
}

.coupon-code-container {
    display: flex;
    border: 2px solid var(--accent-color-hover, #19A3B0);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}
#couponCode {
    flex-grow: 1;
    padding: 15px 10px;
    border: none;
    background-color: #f7f7f7;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    color: var(--accent-color-hover, #19A3B0);
    user-select: all; 
    cursor: pointer;
}

.copy-btn {
    padding: 15px;
    background-color: var(--accent-color-hover, #19A3B0);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}
.copy-btn:hover {
    background-color: #0E7E89;
}

.coupon-contact-btn {
    display: block;
    width: 80%;
    margin: 20px auto 0;
    padding: 12px 0;
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.open-coupon-btn {
    background: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.open-coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


/* -------------------------------------------
 * 13. モバイル対応 (max-width: 768px 以下)
 * ------------------------------------------- */
@media (max-width: 768px) {
    /* 全体のパディングを調整 */
    .wrapper {
        padding: 20px 15px;
        margin: 20px auto;
    }
    h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    /* ヘッダーの調整 */
    header {
        padding: 15px 15px;
    }
    header.is-scrolled {
        padding: 12px 15px;
    }

    .site-logo-link {
        height: 50px; /* ロゴを小さく */
    }

    /* ギャラリーを2列にする */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* タブボタンの文字を小さく */
    .tab-btn {
        font-size: 14px;
        padding: 10px 14px;
    }

/* ヘッダーCTAはモバイルで非表示にしてメニュー優先 */
.header-cta {
    display: none;
}
    /* ギャラリーカード内バッジを小さくして視界を遮らないように */
    .item .card-info {
        top: 6px;
        left: 6px;
        gap: 3px;
        padding: 2px 5px;
        max-width: calc(100% - 12px);
        justify-content: flex-start;
        background: rgba(0, 0, 0, 0.28);
    }
    .item .type-icon {
        font-size: 10px;
        padding: 3px 7px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }
    .item .image-icon, .item .category-summary {
        font-size: 10px;
        padding: 3px 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.26);
    }

    /* モーダルの動画サイズをスマホ用に調整 */
    .modal-body iframe {
        height: 300px;
    }

    /* 料金表のパディングを調整 */
    .price-card {
        padding: 20px;
    }

    /* 複合料金表を強制的に1列に固定 */
    .price-inner-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* ご依頼の流れ (フロー図) - ★縦並びを強制★ */
    .flow-container {
        flex-direction: column !important; 
        display: flex !important; 
        gap: 0; 
        padding: 0;
    }
    
    .flow-step {
        flex: 0 0 100% !important; 
        width: 100% !important;
        margin-bottom: 25px;
        text-align: left;
        padding: 0 10px;
        border-bottom: 1px dashed #ddd; 
        padding-bottom: 20px;
    }
    
    /* 矢印を縦の区切り線（▼）で表現 */
    .flow-step:not(:last-child)::after {
        content: "▼";
        position: absolute;
        bottom: -15px; 
        left: 30px; 
        right: unset;
        font-size: 1.2em;
        color: var(--accent-color-hover, #19A3B0);
        transform: none; 
    }
    
    .flow-step:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .flow-step h3 {
        justify-content: flex-start; /* ステップタイトルを左寄せ */
    }
}

/* -------------------------------------------
 * 14. モバイル対応 (max-width: 600px 以下 - ラジオボタン)
 * ------------------------------------------- */
@media (max-width: 600px) {
    .contact-form .radio-group {
        justify-content: center; 
        gap: 8px; 
    }
    .contact-form .radio-group label {
        padding: 6px 14px;
        font-size: 14px;
    }
}

/* -------------------------------------------
 * 15. モバイル対応 (max-width: 480px 以下 - クーポン)
 * ------------------------------------------- */
@media (max-width: 480px) {
    .coupon-modal-content {
        padding: 20px;
    }
    .coupon-title {
        font-size: 1.5em;
    }
    .coupon-code-container {
        flex-direction: column;
    }
    #couponCode {
        padding: 10px;
        border-radius: 5px 5px 0 0;
    }
    .copy-btn {
        padding: 10px;
        border-radius: 0 0 5px 5px;
    }
    .coupon-contact-btn {
        width: 100%;
        font-size: 1em;
    }
}
