/* ==========================================================
   未来亭WOWWOW 公式サイト 基本スタイル
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
    --font: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
    --accent: #b5502f;
    --n50:  #faf9f7;
    --n100: #f2f0ec;
    --n200: #e3ddd2;
    --n300: #d0c8b8;
    --n400: #a3987f;
    --n500: #79705d;
    --n600: #564f41;
    --n700: #3c362c;
    --n800: #262220;
    --n900: #171512;

    --page-pad-sm: 1.25rem;
    --page-pad-md: 3.5rem;
    --content-max: 1080px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--n800);
    background: var(--n50);
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- レイアウト基盤 ---------- */
.page-wrap {
    width: 100%;
    padding-left: var(--page-pad-sm);
    padding-right: var(--page-pad-sm);
}
@media (min-width: 768px) {
    .page-wrap { padding-left: var(--page-pad-md); padding-right: var(--page-pad-md); }
}

.page-inner {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
}

.section { padding-top: 4.5rem; padding-bottom: 4.5rem; scroll-margin-top: 72px; }
.section--white { background: #fff; }
.section--gray  { background: var(--n50); }

@media (max-width: 639px) {
    .section { padding-top: 3rem; padding-bottom: 3rem; }
}

.section-head { margin-bottom: 2rem; }
.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}
@media (min-width: 768px) { .section-title { font-size: 1.9rem; } }

.section-title__line {
    display: block;
    width: 3rem;
    height: 2px;
    background: var(--accent);
}

.section-empty {
    padding: 2.5rem 0;
    text-align: center;
    color: var(--n400);
    font-size: 0.95rem;
    border-top: 1px solid var(--n200);
    border-bottom: 1px solid var(--n200);
}

/* ---------- ヘッダー ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    background: var(--n900);
    transition: background 0.3s ease;
}

body.has-hero .site-header:not(.is-scrolled) {
    background: transparent;
}

.site-header__inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__logo {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.site-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
}

.site-header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(2) {
    opacity: 0;
}
.site-header__burger[aria-expanded="true"] .site-header__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- フルスクリーンメニュー ---------- */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: var(--n900);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.4s ease;
    pointer-events: none;
}

.menu-overlay.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.menu-overlay__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.menu-overlay__menu a {
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    transition: color 0.2s;
}
.menu-overlay__menu a:hover { color: var(--accent); }

html.wowwow-menu-open,
body.wowwow-menu-open {
    overflow: hidden;
    height: 100%;
}

/* ---------- ヒーロー ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--n900);
}

.hero__track { position: absolute; inset: 0; }

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.6) 100%);
}

.hero__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 6vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    text-align: center;
}

.hero__dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}
.hero__dot.is-active { background: #fff; transform: scale(1.3); }

/* ---------- おすすめ公演情報 ---------- */
.featured-live__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.75rem;
}

.featured-live__item { color: inherit; display: block; }

.featured-live__thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--n100);
}
.featured-live__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.featured-live__item:hover .featured-live__thumb img { transform: scale(1.06); }

.featured-live__title {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- お知らせ ---------- */
.news-list__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--n200); }

.news-list__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--n200);
}
@media (min-width: 640px) {
    .news-list__item { flex-direction: row; align-items: baseline; gap: 2rem; }
}

.news-list__item--clickable {
    transition: background 0.2s;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    margin-left: -0.875rem;
    margin-right: -0.875rem;
    border-radius: 0.375rem;
}
.news-list__item--clickable:hover { background: rgba(0, 0, 0, 0.03); }

.news-list__cover-link { position: absolute; inset: 0; z-index: 1; }

.news-list__date {
    position: relative;
    z-index: 2;
    color: var(--n500);
    font-size: 0.9rem;
    min-width: 6.5rem;
    flex-shrink: 0;
    pointer-events: none;
}
.news-list__title {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    line-height: 1.65;
    pointer-events: none;
}

/* ---------- 出演情報 ---------- */
.live-list__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.live-list__tab {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--n300);
    background: #fff;
    color: var(--n700);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.live-list__tab:hover,
.live-list__tab.is-active {
    background: var(--n900);
    color: #fff;
    border-color: var(--n900);
}

.live-list__items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }

.live-list__item {
    position: relative;
    background: #fff;
    border-left: 4px solid var(--accent);
    border-radius: 0 0.5rem 0.5rem 0;
    transition: box-shadow 0.2s, background 0.2s;
}
.live-list__item:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); background: var(--n50); }

.live-list__cover-link { position: absolute; inset: 0; z-index: 1; }

.live-list__inner {
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
}
@media (min-width: 640px) {
    .live-list__inner { flex-direction: row; align-items: center; gap: 1.5rem; }
}

.live-list__date { flex-shrink: 0; min-width: 7rem; color: var(--n600); }
.live-list__title { margin: 0 0 0.25rem; font-size: 1.1rem; font-weight: 500; }
.live-list__meta { margin: 0; font-size: 0.9rem; color: var(--n500); }

/* ---------- プロフィール ---------- */
.profile__grid {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .profile__grid { grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: center; }
}

.profile__photo {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--n200);
    max-width: 320px;
}
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }

.profile__name { font-size: 1.4rem; font-weight: 500; margin: 0 0 1rem; }
.profile__text { font-size: 1rem; color: var(--n700); margin: 0; }

/* ---------- 過去の出演 ---------- */
.history-list__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 640px) {
    .history-list__grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.history-list__item {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.history-list__item:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12); transform: translateY(-2px); }

.history-list__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--n100); }
.history-list__thumb img { width: 100%; height: 100%; object-fit: cover; }

.history-list__body { padding: 0.875rem 1rem; }
.history-list__date { display: block; font-size: 0.78rem; color: var(--n500); margin-bottom: 0.3rem; }
.history-list__title { margin: 0; font-size: 0.9rem; line-height: 1.5; }

/* ---------- 詳細ページ共通（公演・お知らせ） ---------- */
.detail-page__date { color: var(--n500); margin: 0 0 0.5rem; }
.detail-page__title { font-size: 1.6rem; font-weight: 500; margin: 0 0 1.75rem; line-height: 1.4; }

.detail-page__info {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.6rem 1rem;
    margin: 0 0 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--n200);
}
.detail-page__info dt { color: var(--n500); }
.detail-page__info dd { margin: 0; }

.detail-page__body { color: var(--n700); margin-bottom: 2rem; }

.detail-page__images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.detail-page__images img { border-radius: 0.5rem; }

.detail-page__comment {
    color: var(--n700);
    padding: 1.25rem;
    background: var(--n50);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.detail-page__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- 予約フォーム ---------- */
.live-reservation { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--n200); }
.live-reservation__remaining { font-size: 1rem; color: var(--n700); margin: 0 0 1rem; }

/* ---------- フォーム共通 ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1.75rem; max-width: 560px; }
.form-field { display: flex; flex-direction: column; }

.form-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--n500);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.6rem 0;
    border: none;
    border-bottom: 1px solid var(--n300);
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--n900);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus { border-bottom-color: var(--accent); }
.form-textarea { resize: none; min-height: 8rem; }

.form-submit { padding-top: 0.5rem; }

.btn-submit {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2.5rem;
    background: var(--n900);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    border-radius: 0.25rem;
    transition: background 0.25s;
}
.btn-submit:hover { background: var(--accent); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-message {
    display: none;
    padding: 0.875rem 1.125rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.form-message.is-visible,
.form-message:not([hidden]) {
    display: block;
    background: var(--n100);
    color: var(--n700);
}

/* ---------- フッター ---------- */
.site-footer {
    background: var(--n900);
    color: #fff;
    padding: 3rem 0;
}
.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.site-footer__logo { font-weight: 500; letter-spacing: 0.06em; margin: 0; }
.site-footer__copyright { font-size: 0.8rem; color: var(--n400); margin: 0; }
