/* ================================================
   川端道場 DoDojo — Public Site Stylesheet
   ================================================ */

/* === Base === */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

/* === Hero (top page) === */
.hero {
    background:
        linear-gradient(rgba(var(--ca-rgb),0.68), rgba(var(--ca-rgb),0.78)),
        url("hero.png") center/cover no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.eyebrow {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #8fb3d9;
    font-weight: bold;
}
.hero h1 { font-size: 42px; margin: 10px 0; letter-spacing: 0.05em; }
.lead { font-size: 18px; color: #e5eef7; margin: 0; }
.hero-actions { margin-top: 32px; }

/* === Page header (inner pages) === */
.page-header {
    background: var(--cp);
    color: white;
    padding: 44px 20px;
    text-align: center;
}
.page-header h1 { margin: 0; font-size: 28px; letter-spacing: 0.05em; }
.page-header p { margin: 8px 0 0; font-size: 14px; color: #cbd5e1; }

/* === Navigation === */
.global-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 16px;
}
.nav-logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 10px 16px 10px 0;
    margin-right: 8px;
    border-right: 1px solid #e8e8e8;
    flex-shrink: 0;
}
.nav-logo-en {
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #8fb3d9;
    font-weight: bold;
}
.nav-logo-ja {
    font-size: 14px;
    font-weight: bold;
    color: var(--cp);
}
.nav-logo:hover .nav-logo-ja { color: var(--ca); }
.nav-logo-img { height: 40px; width: auto; display: block; }
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ca);
    border-radius: 2px;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    padding: 4px 0;
}
.nav-links a {
    color: var(--ca);
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    margin: 0 10px;
    padding: 10px 0 8px;
    border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--ca); }
/* drawer-only elements — hidden on desktop */
.nav-overlay { display: none; }
.nav-drawer-header { display: none; }
.ni { display: none; }
.na { display: none; }

/* === Section label === */
.section-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #8fb3d9;
    font-weight: bold;
    margin: 0 0 4px;
}

/* === Container === */
.container {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
}
.page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* === Cards === */
.card, section {
    background: white;
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card h2, section h2 {
    margin-top: 0;
    color: var(--cp);
    border-left: 5px solid var(--cp);
    padding-left: 12px;
}
.today-card { border-top: 5px solid var(--ca); }

/* === Grid === */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* === Lists === */
ul { list-style: none; padding: 0; margin: 0; }
li { padding: 10px 0; border-bottom: 1px solid #eee; }
li:last-child { border-bottom: none; }

.info-list li {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
.date { font-size: 12px; color: #888; white-space: nowrap; }
.time { font-weight: bold; color: var(--ca); min-width: 90px; }
.empty { color: #888; font-size: 14px; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 6px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    font-size: 15px;
}
.btn-main {
    background: #ffffff;
    color: var(--ca);
    font-size: 16px;
    padding: 16px 36px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.btn-main:hover { background: #f0f4f8; }
.btn-sub {
    border: 1px solid rgba(255,255,255,0.7);
    color: white;
}
.btn-sub:hover { background: rgba(255,255,255,0.12); }
.btn.primary {
    background: var(--ca);
    color: white;
}
.btn.primary:hover { background: var(--cd); }
.btn.secondary {
    background: white;
    color: var(--ca);
    border: 2px solid var(--ca);
}
.btn.secondary:hover { background: #f0f4f8; }

/* === Text link === */
.text-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--ca);
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
}
.text-link:hover { text-decoration: underline; }

/* === Price === */
.price-list { list-style: none; padding: 0; margin: 0; }
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
.price-item:last-child { border-bottom: none; }
.price-item .amount { font-weight: bold; font-size: 18px; color: var(--ca); }

/* === About === */
.feature-list li, .target-list li { padding: 10px 4px; }

/* === Schedule table === */
.schedule-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; }
.schedule-table th {
    background: var(--cp);
    color: white;
    padding: 12px 18px;
    text-align: left;
    font-size: 14px;
}
.schedule-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table .day-col { font-weight: bold; color: var(--ca); width: 60px; }

/* === Access === */
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.location-panel { display: none; }
.location-panel.active { display: block; }
.access-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.access-card--main {
    padding: 32px;
}
.access-map-embed {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}
.access-map-embed iframe {
    width: 100%;
    height: 240px;
    border: none;
}
.access-card--main h3 { font-size: 20px; }
.access-main-body { display: flex; gap: 32px; }
.access-main-info { flex: 1; }
.access-card h3 { margin: 0 0 12px; color: var(--cp); font-size: 16px; }
.access-card .access-badge {
    display: inline-block;
    background: var(--cp);
    color: white;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.access-card p { margin: 6px 0; font-size: 14px; color: #555; }
.access-card a { color: var(--ca); }
.btn-map {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #f0faf4;
    color: var(--cp);
    border: 1px solid var(--cp);
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-map:hover { background: var(--cp); color: white; }

/* === FAQ === */
.faq-item { margin-bottom: 0; padding: 0; border-bottom: 1px solid #eee; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    font-weight: bold;
    color: var(--cp);
    padding: 16px 0 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.faq-q::before { content: "Q"; background: var(--cp); color: white; border-radius: 4px; padding: 1px 7px; font-size: 13px; flex-shrink: 0; }
.faq-a {
    padding: 0 0 16px 34px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}

/* === Inquiry form === */
.inquiry-form .form-group { margin-bottom: 20px; }
.inquiry-form label { display: block; font-weight: bold; margin-bottom: 6px; color: #333; }
.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--ca);
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form .submit-area { text-align: center; margin-top: 24px; }
.inquiry-form button[type="submit"] {
    background: var(--ca);
    color: white;
    border: none;
    padding: 14px 48px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.inquiry-form button[type="submit"]:hover { background: var(--cd); }

/* === CTA section === */
.cta-section {
    text-align: center;
    background: #f5f1e8;
    padding: 40px 20px;
    border-radius: 16px;
    margin-top: 8px;
}
.cta-section h2 { color: var(--cp); margin-top: 0; }
.cta-section p { color: #666; }

/* === Notice box === */
.notice {
    background: #e8f4f8;
    border-left: 4px solid var(--ca);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* === Campaign banner === */
.campaign-banner {
    background: linear-gradient(135deg, #b8460b, #e65100);
    color: white;
    padding: 36px 20px;
    text-align: center;
}
.campaign-inner { max-width: 760px; margin: 0 auto; }
.campaign-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    margin: 0 0 8px;
}
.campaign-banner h2 {
    font-size: 24px;
    margin: 0 0 12px;
    color: white;
    border: none;
    padding: 0;
}
.campaign-banner p {
    margin: 0 0 16px;
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
}
.campaign-period {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-top: 12px !important;
}

/* === Tab bar (shared: schedule / access / gallery) === */
.tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 6px 16px;
    border: 2px solid var(--cp);
    border-radius: 999px;
    background: white;
    color: var(--cp);
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tab-btn.active,
.tab-btn:hover {
    background: var(--cp);
    color: white;
}

/* === Gallery === */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}
.gallery-caption { padding: 10px 12px; }
.gallery-title { font-weight: bold; font-size: 13px; margin: 0 0 4px; color: var(--cp); }
.gallery-text  { font-size: 12px; color: #777; margin: 0; }

/* === Lightbox === */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
#lightbox.active { display: flex; }
#lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* === News image === */
.news-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 12px 0 16px;
    display: block;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 24px;
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid #e8e8e8;
    margin-top: 40px;
}
.sns-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}
.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.sns-link:hover { opacity: 0.8; transform: scale(1.1); }
.sns-link svg { width: 20px; height: 20px; }
.sns-facebook  { background: #1877f2; }
.sns-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sns-blog      { background: #ff6600; }

/* === Responsive === */
@media (max-width: 700px) {
    .hero h1 { font-size: 30px; }
    .hero { padding: 60px 16px; }
    .grid { grid-template-columns: 1fr; }
    .access-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: flex; }
    .global-nav { padding: 0 12px; }

    /* overlay */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 99;
        transition: opacity 0.25s;
        opacity: 0;
        pointer-events: none;
    }
    .global-nav.open .nav-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    /* slide-in drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 340px;
        height: 100%;
        background: white;
        z-index: 100;
        display: flex !important;
        flex-direction: column;
        flex-wrap: nowrap;
        padding: 0;
        overflow-y: auto;
        transition: right 0.28s cubic-bezier(0.4,0,0.2,1);
        box-shadow: -6px 0 28px rgba(0,0,0,0.16);
    }
    .global-nav.open .nav-links { right: 0; }

    /* close button row */
    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 10px 14px;
        border-bottom: 1px solid #f0f0f0;
        min-height: 52px;
        flex-shrink: 0;
    }
    .nav-close {
        background: none;
        border: none;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        color: #666;
        padding: 4px 8px;
    }
    .nav-close:hover { color: #111; }

    /* drawer links */
    .nav-links a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 15px 20px;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        border-left: none;
        font-size: 15px;
        color: var(--cd);
        font-weight: 600;
        text-decoration: none;
    }
    .nav-links a:hover { background: #f7f8fa; }

    /* icon */
    .ni {
        display: block;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
        color: var(--cp);
        opacity: 0.8;
    }
    /* label */
    .nl { flex: 1; }
    /* arrow */
    .na {
        display: block;
        color: #bbb;
        font-size: 20px;
        font-weight: 300;
        line-height: 1;
    }
    .btn-main { padding: 14px 28px; font-size: 15px; }
    .hero-actions .btn { display: inline-block; width: auto; }
    .page { padding: 24px 16px; }
    .container { margin: 20px auto; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
