/* ========================================
   KYABEL - Birthday Menu LP
   UNIQLO-style 3 Column Layout
   Content Width: 500px
======================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D4AF37;
    --gold-light: #E8D48A;
    --gold-dark: #B8960C;
    --black: #111111;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-bg: #f5f5f5;
    --border: #e0e0e0;
    --white: #ffffff;
    --line-green: #06C755;
    --font: 'Noto Sans JP', sans-serif;
    --content-width: 500px;
    --sidebar-width: 280px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* ========================================
   3 Column Layout (PC)
======================================== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* 左サイドバー */
.sidebar-left {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
    background: var(--white);
    z-index: 100;
}

.logo-area {
    text-align: center;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.logo-sub {
    font-size: 12px;
    color: var(--gray);
    letter-spacing: 0.1em;
    margin-top: 8px;
}

.sidebar-left-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-side {
    display: block;
    padding: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: 1px solid var(--black);
    transition: all 0.2s;
}

.btn-side:hover {
    background: var(--black);
    color: var(--white);
    opacity: 1;
}

.btn-side.line {
    background: var(--line-green);
    color: var(--white);
    border-color: var(--line-green);
}

.btn-side.line:hover {
    opacity: 0.8;
}

.line-friends {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    background: var(--gold-dark);
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    position: relative;
}

.line-friends::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--gold-dark);
}

/* 中央コンテンツ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-right: var(--sidebar-width);
    max-width: var(--content-width);
    margin-left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width) * 2 - var(--content-width)) / 2);
    padding: 0;
    background: var(--gray-bg);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* 右サイドバー */
.sidebar-right {
    position: fixed;
    right: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 40px 24px;
    border-left: 1px solid var(--border);
    background: var(--white);
    overflow-y: auto;
    z-index: 100;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-item:hover {
    background: var(--gray-bg);
    opacity: 1;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px;
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.nav-sub {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    margin-top: 2px;
}

.nav-back-link {
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--gray);
    text-align: center;
}

.nav-back-link:hover {
    color: var(--gold);
    opacity: 1;
}

/* ========================================
   First View
======================================== */
.fv {
    padding: 64px 32px;
    background: var(--black);
    text-align: center;
}

.fv-label {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.fv-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--white);
    letter-spacing: 0.05em;
}

.fv-title .gold {
    color: var(--gold);
}

.fv-achieve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 24px;
}

.achieve-circle {
    width: 64px;
    height: 64px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
    text-align: center;
}

.achieve-num {
    font-size: 60px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.achieve-unit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: -6px;
}

.achieve-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.achieve-txt {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
}

.fv-cta {
    margin-top: 32px;
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-dark);
    opacity: 1;
}

.btn-line {
    background: var(--line-green);
    color: var(--white);
}

.btn-line:hover {
    opacity: 0.85;
}

.btn-full {
    display: block;
    width: 100%;
}

/* ========================================
   Features Banner
======================================== */
.features-banner {
    display: flex;
    background: var(--gold);
}

.feature-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    text-align: center;
}

.feature-item:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.feature-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.target-industries {
    text-align: left;
    font-size: 13px;
    color: var(--gray);
    padding: 12px 16px;
    background: var(--gray-bg);
    letter-spacing: 0.02em;
}

/* ========================================
   Sections
======================================== */
.section {
    padding: 56px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.section:nth-child(even) {
    background: var(--gray-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 32px;
}

.section-title-en {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    font-size: 14px;
    color: var(--gray);
    margin-top: -16px;
    margin-bottom: 32px;
}

/* ========================================
   Problems
======================================== */
.problem-list li {
    padding: 16px 0;
    padding-left: 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.problem-list li:last-child {
    border-bottom: none;
}

.problem-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* ========================================
   Service
======================================== */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--gray-bg);
    border-radius: 8px;
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    background: var(--gold);
    border-radius: 8px;
    flex-shrink: 0;
}

.service-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-text p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* ========================================
   Gallery (Horizontal Scroll)
======================================== */
.gallery-scroll-wrapper {
    position: relative;
    margin: 0 -32px;
    padding: 0 32px;
}

.gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    padding: 8px 0;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-scroll.grabbing {
    cursor: grabbing;
}

.gallery-scroll-item {
    flex-shrink: 0;
    height: 300px;
    transition: transform 0.2s;
}

/* 縦長画像 (2000x2830 = 約1:1.415) */
.gallery-scroll-item {
    width: 212px;
}

/* 横長画像 (2000x1414 = 約1.414:1) */
.gallery-scroll-item.horizontal {
    width: 424px;
}

.gallery-scroll-item:hover {
    transform: scale(1.03);
}

.gallery-scroll-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.gallery-more {
    display: block;
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--gold);
    font-weight: 500;
}

.gallery-more:hover {
    opacity: 0.7;
}

/* ========================================
   Plan
======================================== */
.plan-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-item {
    padding: 24px;
    background: var(--gray-bg);
    border-radius: 8px;
    position: relative;
}

.plan-item.popular {
    background: var(--white);
    border: 2px solid var(--gold);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 24px;
    background: var(--gold);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 10px;
}

.plan-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
}

.plan-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
}

.plan-item ul {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.plan-item li {
    font-size: 14px;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-dark);
}

.plan-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.plan-breakdown {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    font-size: 13px;
    color: var(--gray-dark);
}

.plan-breakdown p {
    margin-bottom: 4px;
}

.plan-breakdown .plan-total {
    margin-top: 8px;
    font-weight: 700;
    color: var(--black);
}

.plan-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-top: 24px;
}

/* ========================================
   Options
======================================== */
.options-list {
    background: var(--gray-bg);
    border-radius: 8px;
    overflow: hidden;
}

.option-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.option-row:last-child {
    border-bottom: none;
}

.option-row span:last-child {
    font-weight: 700;
}

/* ========================================
   Flow
======================================== */
.flow-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--gray-bg);
    border-radius: 8px;
}

.flow-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.flow-text h3 {
    font-size: 15px;
    font-weight: 700;
}

.flow-text p {
    font-size: 13px;
    color: var(--gray);
}

/* ========================================
   Spec
======================================== */
.spec-list {
    background: var(--gray-bg);
    border-radius: 8px;
    overflow: hidden;
}

.spec-row {
    display: flex;
    padding: 16px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    width: 80px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--gold);
}

/* ========================================
   FAQ
======================================== */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px 32px 20px 0;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 300;
    color: var(--gray);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 0 20px;
    font-size: 14px;
    color: var(--gray);
}

/* ========================================
   Contact Form
======================================== */
.contact-form {
    background: var(--gray-bg);
    padding: 32px 24px;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.req {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-family: var(--font);
    border: 1px solid var(--border);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.radio-group input {
    accent-color: var(--gold);
}

.form-group.checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.form-group.checkbox input {
    accent-color: var(--gold);
}

.form-group.checkbox a {
    text-decoration: underline;
}

/* ========================================
   Company
======================================== */
.company-info {
    background: var(--gray-bg);
    border-radius: 8px;
    overflow: hidden;
}

.info-row {
    display: flex;
    padding: 16px 20px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    width: 80px;
    flex-shrink: 0;
    color: var(--gray);
}

/* ========================================
   Footer
======================================== */
.footer {
    padding: 40px 32px;
    text-align: center;
    background: var(--black);
    color: var(--white);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ========================================
   Nav Active State
======================================== */
.nav-item.active {
    background: var(--gray-bg);
}

.nav-item.active .nav-icon {
    background: var(--gold);
    color: var(--white);
}

/* ========================================
   Scroll Animation
======================================== */
.animate-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   SP Header (非表示 on PC)
======================================== */
.sp-header,
.sp-bottom-nav,
.sp-fixed-cta {
    display: none;
}

/* ========================================
   Responsive (SP)
======================================== */
@media screen and (max-width: 1100px) {
    .layout {
        display: block;
    }

    .sidebar-left,
    .sidebar-right {
        display: none;
    }

    .main-content {
        margin: 0;
        max-width: 100%;
        padding-top: 56px;
        padding-bottom: 72px;
        box-shadow: none;
        border: none;
    }

    /* SP Header */
    .sp-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        padding: 0 20px;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        z-index: 1000;
    }

    .sp-header .logo {
        font-size: 18px;
    }

    .menu-btn {
        width: 24px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        position: relative;
    }

    .menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--black);
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* ハンバーガー → X 変形 */
    .menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* SP Fixed CTA */
    .sp-fixed-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 72px;
        background: var(--white);
        border-top: 1px solid var(--border);
        z-index: 999;
        padding: 12px 16px;
        gap: 8px;
    }

    .sp-cta-btn {
        flex: 1.3;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        border: none;
        cursor: pointer;
        font-family: var(--font);
    }

    .sp-cta-btn.estimate {
        background: var(--gold);
        color: var(--white);
    }

    .sp-cta-btn.line {
        background: var(--line-green);
        color: var(--white);
    }

    .sp-line-friends {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 900;
        color: var(--white);
        background: var(--gold-dark);
        border-radius: 4px;
        text-align: center;
    }

    .sp-cta-btn {
        font-weight: 700;
    }

    /* SP Bottom Nav */
    .sp-bottom-nav {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        z-index: 1001;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sp-bottom-nav.active {
        transform: translateY(0);
    }

    /* Overlay */
    .sp-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sp-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sp-nav-content {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .sp-nav-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        background: var(--gray-bg);
        border-radius: 8px;
    }

    .sp-nav-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: var(--gold);
        border: 1px solid var(--gold);
        border-radius: 8px;
        flex-shrink: 0;
    }

    .sp-nav-title {
        display: block;
        font-size: 15px;
        font-weight: 700;
        color: var(--gold);
    }

    .sp-nav-sub {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: var(--gray);
    }

    .sp-nav-back {
        display: block;
        text-align: center;
        padding: 16px;
        margin-top: 8px;
        font-size: 13px;
        font-weight: 700;
        color: var(--gray);
        border-top: 1px solid var(--border);
    }

    .sp-nav-back:hover {
        color: var(--gold);
        opacity: 1;
    }

    .sp-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 20px;
        background: var(--black);
        color: var(--white);
        border: none;
        font-size: 16px;
        font-family: var(--font);
        cursor: pointer;
    }

    .close-icon {
        font-size: 20px;
    }

    /* FV調整 */
    .fv {
        padding: 48px 24px;
    }

    .fv-title {
        font-size: 24px;
    }

    .fv-achieve {
        gap: 8px;
        margin: 10px 0 10px;
    }

    .achieve-circle {
        width: 52px;
        height: 52px;
        font-size: 12px;
    }

    .achieve-num {
        font-size: 42px;
    }

    .achieve-count {
        font-size: 16px;
    }

    .achieve-txt {
        font-size: 12px;
    }

    /* Section調整 */
    .section {
        padding: 48px 20px;
    }

    /* Gallery SP調整 */
    .gallery-scroll-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .gallery-scroll-item {
        height: 200px;
        width: 141px;
    }

    .gallery-scroll-item.horizontal {
        width: 283px;
    }

    .gallery-nav {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .fv-title {
        font-size: 26px;
    }

    .fv-stats {
        flex-direction: column;
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}
