/* =================================================================
 * 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);
    --display-font: "Anzu Moji", 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

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

/* 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; 
}

/* ---------------
 * Cute display font (headings/UI labels)
 * --------------- */
h1, h2, h3, h4, h5, h6,
.site-logo-link,
.section-eyebrow,
.cta-btn,
.btn-link,
.submit-btn,
.secondary-btn,
.tab-btn,
.category-chip,
.category-pill,
.notice-tag,
.notice-text,
.faq-question,
.menu-toggle,
.admin-title,
.admin-lead,
.admin-meta {
    font-family: var(--display-font);
}

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

.site-policy-link {
    display: inline-block;
    font-weight: 700;
    color: #2f6f83;
    transition: color 0.2s ease;
}
.site-policy-link:hover {
    color: #0f7a82;
    text-decoration: underline;
}

/* ---------------
 * 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%; 
    padding-right: calc(5% + 20px);
    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%;
    padding-right: calc(5% + 20px);
    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;
    gap: 20px;
}

.notice-restore-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(15, 80, 86, 0.25);
    background: rgba(255, 255, 255, 0.85);
    color: #0f5056;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    margin-left: 0;
}
.notice-restore-btn.is-visible {
    display: inline-flex;
}
.notice-restore-btn:hover {
    background: rgba(0, 206, 209, 0.12);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

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

.sns-links .sns-link a {
    position: relative; /* 線の基準点 */
    display: flex; 
    padding: 3px; 
    overflow: hidden; 
    /* アイコンのサイズを設定 */
    height: 90px; 
    width: auto;
}
.sns-links .sns-link a img {
    height: 100%;
    width: auto;
    transition: transform 0.3s ease;
    transform: translateY(34px) scale(1.15);
    transform-origin: center;
    clip-path: inset(8% 0 8% 0);
}
.sns-links .sns-link a img[alt="Xロゴ"] {
    /* Xロゴを BOOTHロゴと揃えるために少し小さく */
    height: 84px;
}

/* 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(32px) rotate(3deg) scale(1.15);
}


.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: center;
    gap: 6px;
    width: 30px;
    height: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; 
    color: #333; 
    margin-left: 0; 
    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: 600;
    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. お知らせバナー
 * --------------- */
.notice-banner {
    background: rgba(255, 255, 255, 0.7);
    background-image:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.6) 0, transparent 24%),
      radial-gradient(circle at 80% 0%, rgba(255,255,255,0.5) 0, transparent 20%),
      linear-gradient(135deg, rgba(0,206,209,0.08), rgba(127,255,212,0.07));
    border-bottom: 1px solid rgba(15, 80, 86, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}
.notice-banner:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}
.notice-banner.is-hidden {
    display: none;
}
.notice-banner .wrapper {
    margin: 0 auto;
}
.notice-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 320px;
    padding: 12px 16px;
    position: relative;
}
.notice-slider {
    position: relative;
    flex: 1;
    min-height: 280px;
    display: flex;
    align-items: center;
    padding: 0;
}
.notice-track {
    position: relative;
    width: min(980px, 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}
.notice-slide {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(980px, 100%);
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    padding: 0 48px;
    box-sizing: border-box;
    opacity: 0;
    transform: translate(-50%, 26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.notice-slide.is-active {
    opacity: 1;
    transform: translate(-50%, 20px);
    pointer-events: auto;
}
.notice-slide.is-exiting {
    opacity: 0;
    transform: translate(-50%, 14px);
}
.notice-slide.has-link {
    cursor: pointer;
}
.notice-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.notice-slide:hover .notice-card {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}
.notice-image {
    width: 430px;
    height: 242px;
    object-fit: cover;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.notice-image-placeholder {
    width: 430px;
    height: 242px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(15, 80, 86, 0.25);
    border-radius: 10px;
    padding: 0;
}

@font-face {
    font-family: "Anzu Moji";
    src: url("fonts/AP.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
.notice-placeholder-text {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: rgba(15, 80, 86, 0.7);
    letter-spacing: 0;
    line-height: 1.1;
    transform: translateX(-6px);
}
.notice-placeholder-icon {
    width: 140px;
    height: auto;
    opacity: 0.9;
}
.notice-text {
    margin: 0;
    font-weight: 600;
    color: #0f4a5c;
    line-height: 1.4;
    font-size: 1.2rem;
}
.notice-card {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 20px 22px 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(15, 80, 86, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    width: 430px;
    max-width: 430px;
    min-height: 242px;
    height: 242px;
    box-sizing: border-box;
}
.notice-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}
.notice-tag {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #0f7a82;
    padding: 2px 0;
    border-radius: 0;
    border: none;
}
.notice-date {
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
}
.notice-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(15, 80, 86, 0.2);
    background: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 10px;
}
.notice-close:hover {
    background: rgba(15, 80, 86, 0.08);
}
.notice-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    width: min(980px, 100%);
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    box-sizing: border-box;
}
.notice-arrow.prev {
    position: relative;
    left: -40px;
}
.notice-arrow.next {
    position: relative;
    right: -40px;
}
.notice-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(15, 80, 86, 0.25);
    background: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.notice-arrow:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}
.notice-arrow .arrow-glyph {
    display: inline-block;
    transform: translateY(-1.5px);
}
.notice-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 0 20px;
}
.notice-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(15, 80, 86, 0.2);
    padding: 0;
    background: rgba(15, 80, 86, 0.2);
    cursor: pointer;
}
.notice-dot.is-active {
    background: #0f7a82;
    border-color: #0f7a82;
}

@media (max-width: 768px) {
    .notice-inner {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        min-height: auto;
        padding: 16px;
    }
    .notice-banner {
        overflow: hidden;
    }
    .notice-banner .wrapper {
        margin: 0 auto;
    }
    .notice-controls {
        display: none;
    }
    .notice-slide {
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        opacity: 1;
        margin: 0 auto;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        padding: 0 16px;
    }
    .notice-slide.is-active,
    .notice-slide.is-exiting {
        transform: none;
    }
    .notice-slide:not(.is-active) {
        display: none;
    }
    .notice-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        padding: 0 22px 0;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
    }
    .notice-slider {
        min-height: auto;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .notice-track {
        min-height: auto;
        width: 100%;
        display: flex;
        box-sizing: border-box;
        justify-content: center;
    }
    .notice-text {
        font-size: 0.95rem;
    }
    .notice-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        display: block;
        max-width: 350px;
        margin: 0 auto;
    }
    .notice-image-placeholder {
        padding: 16px;
        width: 100%;
        aspect-ratio: 16 / 9;
        align-items: center;
        text-align: center;
        max-width: 350px;
        margin: 0 auto;
    }
    .notice-placeholder-text {
        font-size: 18px;
        transform: none;
    }
    .notice-placeholder-icon {
        width: 120px;
        margin: 0 auto;
    }
    .notice-controls {
        inset: 0;
    }
    .notice-arrow {
        width: 36px;
        height: 36px;
    }
    .notice-dots {
        padding: 14px 0 18px;
    }
}

@media (max-width: 480px) {
    .notice-inner {
        padding: 12px 0;
    }
    .notice-slider {
        padding: 0;
        overflow: visible;
    }
    .notice-slide {
        position: static;
        left: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        align-items: center;
        box-sizing: border-box;
    }
    .notice-slide.is-active,
    .notice-slide.is-exiting {
        transform: none;
    }
    .notice-slide {
        gap: 16px;
        max-width: 100%;
        padding: 0 16px;
    }
    .notice-card {
        padding: 0 14px 0;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
        aspect-ratio: 16 / 9;
        height: auto;
        min-height: 0;
    }
    .notice-tag {
        font-size: 0.7rem;
    }
    .notice-arrow {
        display: none;
    }
    .notice-controls {
        display: none;
    }
    .notice-image,
    .notice-image-placeholder {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .notice-image-placeholder {
        align-items: center;
        text-align: center;
    }
    .notice-placeholder-icon {
        margin: 0 auto;
    }
    .notice-placeholder-icon {
        width: 100px;
    }
}

/* ---------------
 * 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: 20px;
    font-weight: 600;
    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:not(.active) {
    opacity: 0.7;
}
.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;
    font-weight: 700;
    opacity: 1;
    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: 18px;
    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: 28px;
}
.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.6;
}
.contact-form .required {
    font-size: 13px;
    font-weight: 600;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    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 input[type="text"],
.input-wrap input[type="email"],
.input-wrap textarea {
    padding-left: 44px;
}
.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: 12px; 
    margin-top: 10px;
    margin-bottom: 28px;
}

.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: 10px 20px;
    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);
}

.contact-form .submit-btn {
    margin-top: 36px;
    padding: 16px 32px;
}

.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: nowrap;
    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;
    flex-direction: column;
}

.style-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid #d8f1f1;
    background: white;
    color: #345;
    padding: 9px 14px;
    border-radius: 12px;
    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;
    min-width: 28px;
    min-height: 28px;
    flex-shrink: 0;
    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 Page
 * --------------- */
.admin-app {
    max-width: 1200px;
    margin: 28px auto 60px;
    padding: 0 20px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(247, 251, 252, 0.86);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 206, 209, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "title actions"
        "status status";
    gap: 12px;
}

.admin-topbar-left {
    grid-area: title;
}

.admin-title {
    margin: 0 0 4px;
    font-size: 1.65rem;
    letter-spacing: 0.02em;
    font-family: "Anzu Moji", 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

.admin-lead {
    margin: 0;
    color: #234;
    font-size: 0.95rem;
    font-family: "Anzu Moji", 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}
.admin-meta {
    margin: 6px 0 0;
    color: #4a5d64;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: "Anzu Moji", 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

.admin-topbar-actions {
    grid-area: actions;
    display: none;
    gap: 10px;
    align-items: start;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.admin-topbar-actions.is-active {
    display: flex;
}

.admin-topbar .submit-btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 16px;
}

.admin-topbar .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-status {
    grid-area: status;
    min-height: 1.2em;
    color: #0f5056;
    font-size: 0.95rem;
}

.admin-status.error {
    color: #c0392b;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin: 14px 0 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    border: 1px solid rgba(0, 206, 209, 0.16);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.admin-tab {
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.7);
    color: #234;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.admin-tab.is-active {
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.16), rgba(127, 255, 212, 0.12));
    border-color: rgba(0, 206, 209, 0.5);
    color: #0f5056;
    box-shadow: 0 8px 18px rgba(0, 206, 209, 0.18);
}
.admin-tab::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: rgba(6, 182, 212, 0.8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.admin-tab.is-active::after {
    transform: scaleX(1);
}
.admin-tab:hover {
    background: rgba(6, 182, 212, 0.08);
}

.admin-tab-panel {
    display: none;
    margin-top: 18px;
}

.admin-tab-panel.is-active {
    display: block;
    animation: tabFade 0.4s ease;
}

.admin-tab-panel.is-active .admin-card {
    animation: cardFade 0.45s ease;
}

.admin-tab-panel.is-active .admin-card:nth-child(2) {
    animation-delay: 0.08s;
}
.admin-tab-panel.is-active .admin-card:nth-child(3) {
    animation-delay: 0.16s;
}
.admin-tab-panel.is-active .admin-card:nth-child(4) {
    animation-delay: 0.24s;
}

@keyframes tabFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.admin-sidebar,
.admin-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.admin-logs,
.admin-settings {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    align-items: start;
}

.admin-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.1);
}

.admin-card h2 {
    text-align: left;
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
    border: none;
}

.admin-card h2::after {
    content: none;
}

.admin-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.admin-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 650;
    color: #234;
    margin-bottom: 12px;
}

.admin-label input,
.admin-label select,
.admin-label textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-label input[type="file"] {
    max-width: 100%;
}

.admin-label input:focus,
.admin-label select:focus,
.admin-label textarea:focus {
    outline: none;
    border-color: rgba(0, 206, 209, 0.8);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.25);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.admin-checkbox {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.admin-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00ced1;
}

.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;
    flex-wrap: wrap;
}

.admin-label-title {
    font-weight: 650;
    color: #234;
}

.category-picker {
    display: grid;
    gap: 10px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #234;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.category-chip.is-active {
    border-color: var(--chip-color);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.05));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    color: #0f5056;
    transform: scale(1.05);
}

.category-selected {
    min-height: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #5b6d74;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--pill-color);
    color: #234;
    font-size: 12px;
    font-weight: 700;
}

.category-custom {
    display: flex;
    gap: 8px;
    align-items: center;
}

.category-custom input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.category-preview {
    margin-top: 6px;
    border-radius: 14px;
    border: 1px solid rgba(0, 206, 209, 0.16);
    background: rgba(255, 255, 255, 0.8);
    padding: 12px;
}

.category-preview-head {
    font-weight: 700;
    color: #0f5056;
    margin-bottom: 8px;
}

.category-preview-card {
    display: grid;
    gap: 8px;
}

.category-preview-title {
    font-size: 16px;
    font-weight: 700;
    color: #234;
}

.category-preview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-preview-tags.muted {
    color: #6b7c82;
    font-size: 12px;
}

.tag-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #6b7c82;
}

.tag-pill {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    color: #0f5056;
    font-weight: 700;
    animation: tagPop 0.3s ease;
}

@keyframes tagPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.file-drop {
    border: 2px dashed rgba(6, 182, 212, 0.45);
    border-radius: 12px;
    padding: 10px;
    background: rgba(6, 182, 212, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.file-drop:hover {
    border-style: solid;
    background: rgba(6, 182, 212, 0.12);
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

.submit-btn.is-loading .btn-label {
    opacity: 0.7;
}

.submit-btn.is-loading .btn-spinner {
    display: inline-block;
}

.upload-success {
    opacity: 0;
    transform: scale(0.5);
    color: #0f7a82;
    font-weight: 800;
    font-size: 18px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.upload-success.show {
    opacity: 1;
    transform: scale(1);
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.6); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.35);
    transform: scale(0);
    animation: ripple 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.admin-form .submit-btn {
    width: auto;
    padding: 12px 18px;
    border-radius: 12px;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.8);
    color: #234;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.secondary-btn {
    text-decoration: none;
}

.secondary-btn:hover {
    background: rgba(230, 238, 242, 0.9);
    border-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-1px);
}
.secondary-btn:active,
.submit-btn:active {
    transform: scale(0.98);
}

.admin-wide-btn {
    width: 100%;
}

.admin-result-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.admin-result {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 206, 209, 0.18);
    background: linear-gradient(180deg, rgba(0, 206, 209, 0.06), rgba(127, 255, 212, 0.04));
    color: #234;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-icon-btn {
    white-space: nowrap;
}

.admin-note {
    color: #0f5056;
    font-size: 14px;
    margin: 8px 0 0;
}

.admin-list-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(140px, 0.6fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.admin-label-inline {
    margin-bottom: 0;
}

.admin-inline-check {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    white-space: nowrap;
}

.admin-toolbar-note {
    grid-column: 1 / -1;
    margin: 0;
}

.admin-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
}

.admin-assets-grid {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.asset-slot-tabs {
    display: inline-flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin: 8px 0 12px;
    position: relative;
}

.asset-slot-tab {
    border: 1px solid transparent;
    background: transparent;
    color: #234;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.asset-slot-tab.is-active {
    background: rgba(0, 206, 209, 0.12);
    border-color: rgba(0, 206, 209, 0.35);
    color: #0f5056;
}

.asset-slot-indicator {
    position: absolute;
    height: 2px;
    bottom: 3px;
    left: 6px;
    width: 0;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.7);
    transition: transform 0.3s ease, width 0.3s ease;
    pointer-events: none;
}

.asset-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.asset-slot {
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    display: grid;
    gap: 8px;
    cursor: pointer;
}

.asset-slot.is-active {
    border-color: rgba(0, 206, 209, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.15);
}

.asset-slot-label {
    font-weight: 700;
    color: #234;
}

.asset-slot-preview {
    height: 120px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 206, 209, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.asset-slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-slot-url {
    font-size: 12px;
    color: #456;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-slot-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.asset-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.asset-card:hover {
    border-color: rgba(0, 206, 209, 0.38);
    box-shadow: 0 0 0 3px rgba(0, 206, 209, 0.12);
}

.is-spinning {
    animation: spin 0.7s linear;
}

.asset-thumb-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 206, 209, 0.08);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.asset-thumb.placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
}

.asset-info {
    min-width: 0;
}

.asset-name {
    font-weight: 700;
    font-size: 13px;
    color: #234;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-meta {
    font-size: 12px;
    color: #567;
}

.asset-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-log-row {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.admin-log-title {
    font-weight: 700;
    color: #234;
    margin-bottom: 4px;
}

.admin-log-meta {
    font-size: 12px;
    color: #556;
}

.admin-log-diff {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 206, 209, 0.16);
    background: rgba(0, 206, 209, 0.05);
}

.admin-log-summary {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 14px;
    color: #234;
}

.admin-log-raw {
    margin-top: 12px;
}

.admin-log-raw summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f5056;
}

.admin-log-raw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.admin-code {
    background: #0f1b1e;
    color: #e5f4f4;
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    max-height: 320px;
    overflow: auto;
}

.admin-list-item {
    display: grid;
    grid-template-columns: 18px 56px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    min-width: 0;
}

.admin-log-item {
    grid-template-columns: 1fr;
}

.admin-log-item .admin-log-row {
    display: block;
    width: 100%;
}

#assets-list .admin-thumb {
    background: rgba(15, 80, 86, 0.06);
}

.admin-list-item:hover,
.admin-list-item:focus-within {
    border-color: rgba(0, 206, 209, 0.38);
    box-shadow: 0 0 0 4px rgba(0, 206, 209, 0.12);
}

.work-summary {
    min-width: 0;
}

.work-title-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.work-badges {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.admin-list-item .work-title {
    display: block;
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
}

.work-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #566;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.drag-handle {
    cursor: grab;
    font-weight: 800;
    color: #0f5056;
    user-select: none;
    width: 18px;
    text-align: center;
}

.admin-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 206, 209, 0.06);
    object-fit: cover;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.badge.mute {
    background: rgba(0, 0, 0, 0.04);
    color: #566;
}

.admin-toast {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 50;
    max-width: min(520px, calc(100vw - 36px));
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 206, 209, 0.22);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
    color: #234;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.admin-toast.error {
    border-color: rgba(192, 57, 43, 0.32);
}

.admin-login {
    background: radial-gradient(circle at top, rgba(0, 206, 209, 0.08), rgba(255, 255, 255, 0.9));
    min-height: 100vh;
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(0, 206, 209, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.login-title {
    margin: 0 0 6px;
    font-size: 1.6rem;
    color: #0f5056;
}

.login-lead {
    margin: 0 0 18px;
    color: #4a5d64;
    font-size: 0.95rem;
}

.login-form .submit-btn {
    margin-top: 8px;
}

.login-remember {
    margin-top: 6px;
}

@media (max-width: 980px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-logs,
    .admin-settings {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "actions"
            "status";
    }
    .admin-topbar-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .admin-list-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .admin-list-item {
        grid-template-columns: 18px 44px 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "drag thumb title"
            "drag thumb actions";
        align-items: start;
    }
    .admin-list-item .drag-handle {
        grid-area: drag;
        margin-top: 12px;
    }
    .admin-list-item .admin-thumb {
        grid-area: thumb;
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .work-summary {
        grid-area: title;
    }
    .admin-list-actions {
        grid-area: actions;
        justify-content: flex-start;
    }
    .admin-result-row {
        flex-wrap: wrap;
    }
    .admin-icon-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ---------------
 * 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 20px;
    }
    header.is-scrolled {
        padding: 12px 20px;
    }

    .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) {
    /* ギャラリーカードのタグ（バッジ）をさらに小さく */
    .item .card-info {
        top: 4px;
        left: 4px;
        gap: 1px;
        padding: 1px 3px;
        border-radius: 8px;
        flex-wrap: wrap;
        max-width: calc(100% - 8px);
    }
    .item .type-icon {
        font-size: 6px;
        line-height: 1.1;
        padding: 1px 4px;
        border-radius: 6px;
    }
    .item .image-icon, .item .category-summary {
        font-size: 6px;
        line-height: 1.1;
        padding: 1px 4px;
        border-radius: 6px;
    }

    .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;
    }
}

/* Coupon apply (contact) */
.coupon-apply .coupon-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coupon-apply input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 15px;
}

.coupon-apply .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-width: 72px;
    white-space: nowrap;
    flex: 0 0 auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 206, 209, 0.35);
    background: rgba(0, 206, 209, 0.12);
    color: #0f5056;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.coupon-apply .secondary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.coupon-apply .secondary-btn:disabled {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.coupon-help {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #6b7b82;
}

.coupon-status {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #0f7a82;
    opacity: 0;
    height: 0;
    transition: opacity 0.2s ease, height 0.2s ease;
}

.coupon-status.is-active {
    opacity: 1;
    height: auto;
}

.coupon-status.is-error {
    color: #c0392b;
}

@media (max-width: 600px) {
    .coupon-apply .coupon-row {
        flex-direction: column;
        align-items: stretch;
    }
    .coupon-apply .secondary-btn {
        width: 100%;
    }
}
