/* =========================================================================
   ジョブソワ船橋 トップページ拡張スタイル（3Dアトリエ・動き・導線強化）
   既存の style.css（アースカラー＆温かみトーン）を活かした追加レイヤー
========================================================================= */

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* スクロール連動フェードインアニメーション */
:where(.reveal-enabled) .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ハンドメイドらしいステッチ（縫い目）風の装飾ライン */
.stitch-divider {
    max-width: 960px;
    width: 88%;
    margin: 0 auto;
    height: 2px;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(232, 168, 124, 0.65) 0px,
        rgba(232, 168, 124, 0.65) 9px,
        transparent 9px,
        transparent 16px
    );
    border: none;
}

.stitch-divider-wrap {
    padding: 4px 0;
    background-color: transparent;
}

/* =========================================================================
   ヘッダーの微調整（電話番号ボタン追加）
========================================================================= */
.header-tel {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background-color: var(--color-bg-light);
    color: var(--color-text) !important;
    border: 1px solid rgba(142, 184, 151, 0.35);
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.header-tel:hover {
    border-color: var(--color-accent);
    background-color: #fff;
}

@media screen and (min-width: 900px) {
    .header-tel {
        display: inline-flex;
    }
}

/* =========================================================================
   ヒーローセクション：既存背景写真(1-gazou-top.jpeg) × 3Dアトリエ 2カラム
========================================================================= */
.hero.hero-atelier {
    height: auto;
    min-height: 620px;
    padding: 44px 0 56px;
}

.hero.hero-atelier::after {
    background: linear-gradient(
        135deg,
        rgba(250, 250, 248, 0.88) 0%,
        rgba(250, 250, 248, 0.72) 52%,
        rgba(244, 241, 234, 0.84) 100%
    );
}

.hero-atelier-grid {
    position: relative;
    z-index: 3;
    width: 92%;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}

.hero-atelier-grid > * {
    min-width: 0;
    width: 100%;
}

.hero.hero-atelier .hero-content {
    max-width: 100%;
    text-align: left;
    padding: 24px 18px;
    background-color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(238, 215, 182, 0.65);
    box-shadow: 0 14px 36px rgba(74, 74, 74, 0.08);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-badge-green {
    background-color: rgba(142, 184, 151, 0.18);
    color: #467350;
    border: 1px solid rgba(142, 184, 151, 0.4);
}

.hero-badge-orange {
    background-color: rgba(232, 168, 124, 0.16);
    color: #a95a2b;
    border: 1px solid rgba(232, 168, 124, 0.4);
}

.hero.hero-atelier .hero-text {
    font-size: 1.15rem;
    line-height: 1.75;
    margin-bottom: 18px;
    font-weight: 500;
}

.hero.hero-atelier .hero-info {
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.65;
}

.hero.hero-atelier .hero-actions {
    margin-top: 20px;
    gap: 12px;
}

.hero.hero-atelier .btn-primary,
.hero.hero-atelier .btn-secondary {
    font-size: 0.96rem;
    padding: 13px 18px;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .hero.hero-atelier .hero-content {
        padding: 30px 26px;
    }

    .hero.hero-atelier .hero-text {
        font-size: 1.4rem;
    }

    .hero.hero-atelier .btn-primary,
    .hero.hero-atelier .btn-secondary {
        font-size: 1rem;
        padding: 13px 24px;
        width: auto;
    }
}

/* =========================================================================
   3Dハンドメイド・アトリエ カード
========================================================================= */
.atelier-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    padding: 16px;
    border: 1px solid rgba(238, 215, 182, 0.75);
    box-shadow: 0 16px 40px rgba(74, 74, 74, 0.1);
}

.atelier-stage {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 18px;
    background: radial-gradient(
        circle at 50% 42%,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(244, 241, 234, 0.55) 68%,
        rgba(238, 215, 182, 0.35) 100%
    );
    border: 1px dashed rgba(232, 168, 124, 0.45);
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.atelier-stage:active {
    cursor: grabbing;
}

.atelier-stage canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}

.atelier-guide-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.atelier-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
    animation: atelierPulse 1.8s ease-in-out infinite;
}

@keyframes atelierPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

.atelier-fallback {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

.atelier-fallback img {
    width: 100%;
    border-radius: 18px;
}

.atelier-fallback figcaption {
    margin: 10px 4px 0;
}

.atelier-controls {
    margin-top: 14px;
    background: rgba(250, 250, 248, 0.92);
    border-radius: 16px;
    padding: 14px;
    border: 1px solid rgba(74, 74, 74, 0.07);
}

.atelier-controls-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.atelier-controls-prompt {
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
}

.atelier-craft-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #a95a2b;
    background: rgba(232, 168, 124, 0.18);
    padding: 4px 10px;
    border-radius: 999px;
}

.atelier-model-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.atelier-model-btn {
    appearance: none;
    border: 1px solid rgba(74, 74, 74, 0.14);
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-base);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 9px 6px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.3;
}

.atelier-model-btn:hover {
    background: var(--color-bg-light);
    border-color: var(--color-accent);
}

.atelier-model-btn.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(142, 184, 151, 0.35);
}

.atelier-palette-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.atelier-palette-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
}

.atelier-palette-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atelier-palette-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atelier-palette-btn:hover {
    transform: scale(1.12);
}

.atelier-palette-btn.is-active {
    transform: scale(1.12);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-accent);
}

.atelier-palette-btn[data-palette="sakura"] { background-color: #E57A77; }
.atelier-palette-btn[data-palette="matcha"] { background-color: #6B8E78; }
.atelier-palette-btn[data-palette="sora"] { background-color: #6E9BC5; }
.atelier-palette-btn[data-palette="hidamari"] { background-color: #EAB34B; }

/* =========================================================================
   できること（5つのステップ：番号バッジ＋カードデザイン）
========================================================================= */
.step-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-white);
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(238, 215, 182, 0.75);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(232, 168, 124, 0.18);
}

.step-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(232, 168, 124, 0.18);
    color: #b55d2c;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.step-card:hover .step-badge {
    background: var(--color-accent);
    color: #fff;
}

.step-card-text {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}

/* 既存写真に柔らかなホバー演出 */
.empathy-image img,
.works-image img,
.zaitaku-gallery img,
.routine-image img,
.wage-image img,
.procurement-teaser-image img,
.access-image {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.empathy-image img:hover,
.works-image img:hover,
.zaitaku-gallery img:hover,
.wage-image img:hover,
.procurement-teaser-image img:hover,
.access-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* =========================================================================
   通い方は3つのパターン（3カラムカード＋ホバー浮き上がり）
========================================================================= */
.style-patterns.style-pattern-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.style-patterns.style-pattern-cards li {
    max-width: none;
    border-left: none;
    border-top: 4px solid var(--color-accent);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.style-patterns.style-pattern-cards li:nth-child(2) {
    border-top-color: var(--color-primary);
}

.style-patterns.style-pattern-cards li:nth-child(3) {
    border-top-color: #D8B06B;
}

.style-patterns.style-pattern-cards li:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(74, 74, 74, 0.1);
}

.style-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--color-bg-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.style-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 700;
}

.style-card-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #666;
    background: var(--color-bg-light);
    padding: 4px 12px;
    border-radius: 999px;
}

/* =========================================================================
   よくある質問（FAQアコーディオン）
========================================================================= */
.faq-item.faq-accordion {
    border: 1px solid rgba(142, 184, 151, 0.25);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item.faq-accordion.is-open {
    border-color: rgba(232, 168, 124, 0.65);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.faq-q-btn {
    width: 100%;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-base);
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-q-btn:hover {
    background-color: rgba(142, 184, 151, 0.18);
}

.faq-q-btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: -3px;
}

.faq-q-inner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.faq-chevron {
    width: 22px;
    height: 22px;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.faq-a-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.faq-item.is-open .faq-a-panel {
    max-height: 420px;
    opacity: 1;
}

/* =========================================================================
   中間セクションの問い合わせ導線バー
========================================================================= */
.section-cta-bar {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.section-cta-bar .btn-primary,
.section-cta-bar .btn-secondary {
    font-size: 1rem;
    padding: 13px 26px;
}

/* =========================================================================
   スマホ表示時の下部固定バー（電話＋見学申込の2ボタン）
   フッターと重ならないよう下部余白を確保
========================================================================= */
.floating-cta.floating-cta-dual {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(74, 74, 74, 0.1);
}

.floating-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.btn-cta-tel,
.btn-cta-web {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
    padding: 9px 6px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-tel {
    background-color: #eef5f0;
    color: #3f6e49;
    border: 1.5px solid rgba(142, 184, 151, 0.65);
}

.btn-cta-web {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(232, 168, 124, 0.4);
}

.btn-cta-tel:active,
.btn-cta-web:active {
    transform: scale(0.97);
}

.floating-cta-small {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.92;
}

.floating-cta-large {
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer {
    padding-bottom: 112px;
}

/* =========================================================================
   PC向けレスポンシブ調整
========================================================================= */
@media screen and (min-width: 768px) {
    .style-patterns.style-pattern-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .atelier-stage {
        height: 340px;
    }

    /* PCでは右下にすっきりした縦2ボタンまたはコンパクト追従バー */
    .floating-cta.floating-cta-dual {
        bottom: 24px;
        right: 24px;
        left: auto;
        width: auto;
        background: transparent;
        backdrop-filter: none;
        border-top: none;
        box-shadow: none;
        padding: 0;
    }

    .floating-cta-grid {
        display: flex;
        flex-direction: row;
        gap: 10px;
        max-width: none;
    }

    .btn-cta-tel,
    .btn-cta-web {
        padding: 11px 20px;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .btn-cta-tel:hover,
    .btn-cta-web:hover {
        transform: translateY(-3px);
    }

    .footer {
        padding-bottom: 44px;
    }
}

@media screen and (min-width: 960px) {
    .hero-atelier-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 36px;
    }

    .hero.hero-atelier .hero-text {
        font-size: 1.55rem;
    }

    .atelier-stage {
        height: 360px;
    }
}
