/* ============================================================
   オープンコミュニティスペースみんなの
   メインスタイルシート（非WordPress・クリーン実装）
   ============================================================ */

:root {
    --accent: #ef7d1a;
    --accent-dark: #d96c0e;
    --green: #59a94f;
    --red: #d9534f;
    --text: #333;
    --muted: #888;
    --line: #e8e8e8;
    --bg-soft: #faf8f4;
    --container: 1140px;
    --font: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
    --font-num: "Roboto", sans-serif;
}

/* ---------- リセット ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font);
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
    background: #fff;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
ul { list-style: none; }

/* ---------- 共通レイアウト ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 14px;
}
.section-lead {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 40px;
}
.section-note {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    margin-top: -26px;
    margin-bottom: 34px;
}
#about, #usage, #space, #events, #calendar, #pricing, #access { scroll-margin-top: 70px; }

/* スクロール連動アニメーション */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 右上固定ナビ ---------- */
.nav {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
}
.nav-list {
    display: flex;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .95);
    border-radius: 32px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .16);
    backdrop-filter: blur(4px);
}
.nav-list a {
    display: block;
    padding: 6px 12px;
    border-radius: 20px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.nav-list a:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1200px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
        cursor: pointer;
        position: relative;
        z-index: 10001;
    }
    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: var(--accent);
        border-radius: 2px;
        transition: transform .25s, opacity .2s;
    }
    .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .nav-list {
        position: absolute;
        top: 62px;
        right: 0;
        flex-direction: column;
        gap: 0;
        min-width: 210px;
        padding: 10px;
        border-radius: 16px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav.is-open .nav-list { opacity: 1; visibility: visible; transform: none; }
    .nav-list a { padding: 12px 16px; font-size: 15px; }
}

/* ---------- ヒーロー（動画背景） ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 540px;
    max-height: 960px;
    overflow: hidden;
    background: #000;
}
.hero-video {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 16:9 を画面いっぱいにカバー */
    width: max(100vw, 177.78vh);
    height: max(100vh, 56.25vw);
    transform: translate(-50%, -50%);
    border: 0;
}
.hero-logo {
    position: absolute;
    top: 28px;
    left: 28px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 28px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, .18);
    z-index: 5;
}
.hero-logo img {
    width: 240px;
}
.hero-credit {
    position: absolute;
    right: 0;
    bottom: 14px;
    background: #fff;
    color: #333;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    z-index: 4;
}
@media (max-width: 1024px) {
    .hero-logo { top: 22px; left: 22px; padding: 14px 22px; }
    .hero-logo img { width: 190px; }
}
@media (max-width: 767px) {
    .hero { height: 56vh; min-height: 320px; }
    .hero-logo { top: 16px; left: 16px; padding: 10px 16px; border-radius: 12px; }
    .hero-logo img { width: 140px; }
}

/* ---------- みんなのとは ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-illust { text-align: center; }
.about-illust img { margin: 0 auto; max-width: 420px; }
.about-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 18px;
}
.about-body p { margin-bottom: 22px; }
.sns-buttons { display: flex; gap: 12px; }
.sns-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: opacity .15s;
}
.sns-buttons a:hover { opacity: .8; }
.sns-buttons .is-facebook { background: #3b5998; }
.sns-buttons .is-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sns-buttons svg { width: 22px; height: 22px; fill: #fff; }
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-body h2 { text-align: center; }
    .sns-buttons { justify-content: center; }
}

/* ---------- コンセプト文 ---------- */
.intro p {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2.2;
}

/* ---------- Instagram フィード ---------- */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.insta-item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f4f1ec;
}
.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}
.insta-item:hover img { transform: scale(1.05); }
.insta-follow { text-align: center; margin-top: 26px; }
@media (max-width: 767px) {
    .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .insta-grid .insta-item:nth-child(n+22) { display: none; }
}

/* ---------- いろいろな使い方 ---------- */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.usage-item { text-align: center; }
.usage-item img {
    height: 150px;
    width: auto;
    margin: 0 auto 18px;
    object-fit: contain;
}
.usage-item p { font-size: 15px; text-align: left; line-height: 1.9; }
@media (max-width: 767px) {
    .usage-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .usage-item img { height: 110px; }
    .usage-item p { font-size: 13px; }
}

/* ---------- みんなのスペース（ギャラリー） ---------- */
.space-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.space-item {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    cursor: zoom-in;
}
.space-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.space-item:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
    .space-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ライトボックス */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10010;
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ---------- 利用できるもの（みんなのスペース） ---------- */
.amenities { text-align: center; margin-bottom: 30px; }
.amenities-label {
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}
.amenities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.amenities-list li {
    background: #fff;
    border: 1.5px solid #000;
    border-radius: 20px;
    padding: 5px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

/* ---------- みんなの本棚 ---------- */
.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.books-photo img {
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
}
.books-body p { line-height: 2.1; }
@media (max-width: 860px) {
    .books-grid { grid-template-columns: 1fr; gap: 26px; }
    .books-body .section-title { text-align: center !important; }
}

/* ---------- 教室・イベント（カルーセル） ---------- */
.event-carousel {
    position: relative;
    overflow: hidden;
    padding: 8px 48px 46px;
}
.event-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.event-card-img {
    aspect-ratio: 16 / 10;
    background: #f4f1ec;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.event-card-img img { width: 100%; height: 100%; object-fit: cover; }
.event-card-img img.is-placeholder { object-fit: contain; padding: 20px; }
.event-card-body { padding: 14px 16px 18px; }
.event-card-date { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.event-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.events-empty { text-align: center; color: var(--muted); padding: 16px 0 4px; }
.event-carousel .swiper-button-prev,
.event-carousel .swiper-button-next { color: var(--accent); width: 36px; }
.event-carousel .swiper-button-prev::after,
.event-carousel .swiper-button-next::after { font-size: 28px; font-weight: 700; }
.event-carousel .swiper-pagination-bullet-active { background: var(--accent); }
@media (max-width: 767px) {
    .event-carousel { padding: 8px 12px 42px; }
}

/* ---------- 営業日とスタッフ（カレンダー） ---------- */
.calendar-people { max-width: 640px; margin: 0 auto 8px; }
.calendar-staff-btn { text-align: center; margin-bottom: 34px; }
.btn {
    display: inline-block;
    padding: 10px 32px;
    border: 2px solid #000;
    background: #000;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 30px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.btn:hover { background: #fff; color: #000; }
.btn--line {
    background: #fff;
    color: var(--accent);
    border-color: var(--accent);
}
.btn--line:hover { background: var(--accent); color: #fff; }
.calendar-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 14px;
}
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}
.legend-item::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
.legend-item.is-shift::before { background: var(--green); }
.legend-item.is-event::before { background: var(--accent); }
.mn-cal {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    font-size: 14px;
}
.mn-cal .fc-toolbar-title { font-size: 1.4em; color: #000; font-weight: 700; }
.mn-cal .fc-button-primary { background: var(--accent); border-color: var(--accent); }
.mn-cal .fc-button-primary:not(:disabled):hover,
.mn-cal .fc-button-primary:not(:disabled).fc-button-active { background: var(--accent-dark); border-color: var(--accent-dark); }
.mn-cal .fc-daygrid-day-frame { min-height: 96px; }
.mn-cal .fc-event {
    cursor: pointer;
    border: none;
    padding: 5px 9px;
    border-radius: 5px;
}
.mn-cal .fc-daygrid-event-harness { margin-top: 4px; }
.mn-cal .fc-daygrid-day-events { padding-bottom: 4px; }
.mn-cal .cal-line { white-space: normal; line-height: 1.6; }
.mn-cal .cal-time { font-size: .85em; font-weight: 400; }
.mn-cal .fc-event-title { white-space: normal; }
.mn-cal .fc-day-sun .fc-daygrid-day-number { color: var(--red); }
.mn-cal .fc-day-sat .fc-daygrid-day-number { color: #1a6fb3; }
.mn-cal .fc-list-event:hover td { background: #fdf3e9; }
@media (max-width: 767px) {
    .mn-cal { padding: 10px; }
    .mn-cal .fc-toolbar-title { font-size: 1.1em; }
    .mn-cal .fc-list { max-height: 70vh; overflow-y: auto; }
}

/* ---------- ご利用料金（新デザイン） ---------- */
.pricing-groups {
    display: grid;
    gap: 34px;
}
.price-group {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
    overflow: hidden;
}
.price-group-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    padding: 20px 26px;
    background: #000;
    color: #fff;
}
.price-group-head h3 { font-size: 19px; font-weight: 700; }
.price-group-head .sub { font-size: 13px; color: #bbb; }
.price-rows { padding: 6px 0; }
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 26px;
}
.price-row + .price-row { border-top: 1px solid #f0ece6; }
.price-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-name { font-size: 17px; font-weight: 700; color: #000; }
.price-badge {
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    padding: 2px 10px;
    line-height: 1.6;
}
.price-badge.is-osusume { background: var(--red); }
.price-note { color: var(--muted); font-size: 13px; }
.price-amount { white-space: nowrap; color: #000; text-align: right; }
.price-amount .yen { font-size: 15px; font-weight: 700; }
.price-amount .num { font-size: 30px; font-weight: 700; font-family: var(--font-num); }
.price-amount .unit { color: var(--muted); font-size: 13px; margin-left: 3px; }
.price-group-foot {
    padding: 14px 26px 18px;
    background: var(--bg-soft);
    color: #777;
    font-size: 13px;
    line-height: 1.9;
}
.price-group-foot a { color: #000; font-weight: 700; }
@media (min-width: 900px) {
    /* ドロップイン＋レンタサイクルを横に並べ、貸切は全幅 */
    .pricing-groups { grid-template-columns: 1fr 1fr; }
    .price-group.is-wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .price-row { padding: 15px 16px; }
    .price-group-head { padding: 16px 16px; }
    .price-plan { flex: 1 1 100%; }
    .price-note { display: block; width: 100%; font-size: 12px; }
    .price-amount .num { font-size: 24px; }
    .price-group-foot { padding: 12px 16px 16px; }
}

/* ---------- アクセス（WP時代のデザイン） ---------- */
.access-section { padding-bottom: 0; }
.access-divider {
    border: none;
    border-top: 1px solid #ccc;
    max-width: 1140px;
    margin: 0 auto 36px;
}
.access-cols {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px 48px;
    max-width: 960px;
    margin: 0 auto 40px;
}
.access-line {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    font-weight: 700;
    color: #000;
}
.access-icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    fill: #000;
    margin-top: 4px;
}
.access-note {
    font-weight: 400;
    font-size: 13px;
    color: var(--muted);
}
.access-tel {
    color: #c9256e;
    text-decoration: none;
    font-weight: 700;
}
.access-map-band { position: relative; }
.access-map {
    width: 100%;
    height: 660px;
    border: 0;
    display: block;
}
.access-float-photo {
    position: absolute;
    top: -50px;
    right: 14%;
    width: 400px;
    border: 5px solid #3d3d3d;
    background: #fff;
    z-index: 5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}
@media (max-width: 1024px) {
    .access-float-photo { width: 300px; right: 6%; }
}
@media (max-width: 767px) {
    .access-cols { grid-template-columns: 1fr; gap: 4px; }
    .access-float-photo {
        position: static;
        width: min(86%, 400px);
        margin: 0 auto 20px;
        display: block;
    }
    .access-map { height: 360px; }
}

/* ---------- フッター ---------- */
.footer {
    background: #000;
    color: #fff;
    padding: 48px 0 36px;
    text-align: center;
}
.footer-logo {
    width: 190px;
    margin: 0 auto 20px;
    filter: invert(1);
}
.footer .sns-buttons { justify-content: center; margin-bottom: 22px; }
.footer-copy { font-size: 12px; color: #999; }

/* ============================================================
   サブページ（スタッフ一覧・詳細、イベント詳細）
   ============================================================ */
.subpage-header { text-align: center; padding: 30px 16px 6px; }
.subpage-header img { max-width: 240px; margin: 0 auto; }
.page-main { min-height: 55vh; padding-bottom: 70px; }

/* スタッフ一覧 */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 28px;
    margin-top: 40px;
}
.staff-card { text-align: center; text-decoration: none; color: var(--text); display: block; transition: opacity .15s; }
.staff-card:hover { opacity: .82; }
.staff-card-photo {
    display: block;
    width: 72%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
}
.staff-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-card .en { font-size: 17px; font-weight: 700; color: #000; }
.staff-card .ja { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.staff-card .aff {
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin: 0 12px;
}
.staff-card .more { font-size: 12px; color: var(--accent); font-weight: 700; }
.staff-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 44px; }
@media (max-width: 860px) {
    .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
}

/* スタッフ詳細 */
.staff-detail {
    display: flex;
    gap: 44px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 860px;
    margin: 30px auto 0;
    padding: 0 20px;
}
.staff-detail-photo {
    flex: 0 0 260px;
    max-width: 260px;
    margin: 0 auto;
}
.staff-detail-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
}
.staff-detail-info { flex: 1; min-width: 280px; }
.staff-detail-info .en { font-size: 30px; font-weight: 700; color: #000; line-height: 1.3; }
.staff-detail-info .ja { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.detail-divider { width: 64px; border: none; border-top: 3px solid var(--accent); margin: 0 0 24px; }
.detail-block { margin-bottom: 26px; }
.detail-label {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    border-left: 4px solid #000;
    padding-left: 10px;
    margin-bottom: 8px;
}
.detail-block ul { padding-left: 20px; list-style: disc; }
.detail-block a { word-break: break-all; }
.backlink { margin-top: 36px; }

/* イベント詳細 */
.event-detail { max-width: 760px; margin: 30px auto 0; padding: 0 20px; }
.event-detail-date { color: var(--accent); font-weight: 700; font-size: 15px; }
.event-detail h1 { font-size: 28px; color: #000; line-height: 1.5; margin: 4px 0 14px; }
.event-detail-img img { border-radius: 10px; margin: 10px 0 24px; }
.event-detail-body { margin-bottom: 32px; }
.center { text-align: center; }
.pre-line { white-space: pre-line; }
.notfound { text-align: center; padding: 60px 0 20px; font-size: 17px; }
