/* 074 一棟貸し 夜鷹 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #0d0a14;
  --c-panel: #171222;
  --c-accent: #b794f6;
  --c-light: #f2eff7;
  --c-accent-text: #5b21b6;
  --c-on-dark: #e4def0;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #2c2438;
  --c-line-light: #d9d2e6;
  --c-cloud1: #6d28d9;
  --c-cloud2: #c026d3;
  --c-cloud3: #4338ca;
  --c-glow: #f5c46b;
  --font: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Unbounded", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.95; color: var(--c-on-dark); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.en { font-family: var(--font-en); font-weight: 600; font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 16px; }
.en--dark { color: var(--c-accent-text); }
.h2 { font-weight: 900; font-size: clamp(30px, 4vw, 54px); line-height: 1.3; color: #fff; margin-bottom: 28px; }
.h2--dark { color: var(--c-bg); }
.note { margin-top: 16px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font-weight: 900; text-decoration: none; letter-spacing: .06em; white-space: nowrap; flex: none; transition: background-color .2s, color .2s, transform .2s; }
.btn--accent { background: var(--c-accent); color: var(--c-bg); }
.btn--accent:hover, .btn--accent:focus-visible { background: #fff; }
.btn--line { border: 2px solid var(--c-accent); color: #fff; }
.btn--line:hover { background: var(--c-accent); color: var(--c-bg); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(13, 10, 20, .9); border-bottom: 1px solid var(--c-line); }
.header__inner { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 12px 0 20px; }
.logo { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; white-space: nowrap; flex: none; }
.logo__en { font-family: var(--font-en); font-weight: 800; font-size: 20px; letter-spacing: .06em; color: #fff; }
.logo__ja { font-size: 15px; color: var(--c-accent); }
@media (max-width: 599px) { .logo__ja { display: none; } }
.gnav { display: none; }
.header__btn { margin-left: auto; }
@media (min-width: 1080px) {
  .header__inner { height: 76px; padding: 0 48px; gap: 32px; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; }
  .gnav a:hover { color: var(--c-accent); }
  .header__btn { margin-left: 0; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); padding: 8px 20px 24px; display: flex; flex-direction: column; border-top: 1px solid var(--c-line); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== メインビジュアル（SVG の線画＋ぼかした雲） ===== */
.hero { position: relative; overflow: hidden; padding: 48px 20px 80px; background: var(--c-bg); isolation: isolate; }
.clouds { position: absolute; inset: 0; z-index: -1; filter: blur(70px); opacity: .75; }
.cloud { position: absolute; border-radius: 50%; }
.cloud--1 { width: 70vw; height: 70vw; left: -20vw; top: -10vw; background: var(--c-cloud1); }
.cloud--2 { width: 50vw; height: 50vw; right: -12vw; top: 20%; background: var(--c-cloud2); opacity: .7; }
.cloud--3 { width: 60vw; height: 60vw; left: 20vw; bottom: -30vw; background: var(--c-cloud3); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 10, 20, .2) 0%, rgba(13, 10, 20, .55) 60%, rgba(13, 10, 20, .9) 100%); }
/* 雲がゆっくり形を変える（JSが is-motion を付けたときだけ） */
.is-motion .cloud--1 { animation: drift1 38s ease-in-out infinite alternate; }
.is-motion .cloud--2 { animation: drift2 44s ease-in-out infinite alternate; }
.is-motion .cloud--3 { animation: drift3 52s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 8vw) scale(1.2, .85); border-radius: 40% 60% 55% 45%; } }
@keyframes drift2 { to { transform: translate(-22vw, 10vw) scale(.8, 1.25); border-radius: 60% 40% 45% 55%; } }
@keyframes drift3 { to { transform: translate(-10vw, -14vw) scale(1.3, .9); } }

.house { width: 100%; max-width: 560px; margin: 0 auto; display: block; overflow: visible; }
.house__moon { fill: none; stroke: #fff; stroke-width: 2; }
.house__line { fill: none; stroke: var(--c-accent); stroke-width: 4; stroke-linecap: square; }
.house__lattice { fill: none; stroke: #fff; stroke-width: 1.5; }
.house__noren { fill: none; stroke: var(--c-cloud2); stroke-width: 6; }
.house__lantern { fill: none; stroke: var(--c-glow); stroke-width: 3; }
.house__bird { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.house__alley { fill: none; stroke: var(--c-accent); stroke-width: 1.5; opacity: .7; }
.house__glow rect { fill: var(--c-glow); opacity: .85; }
.hero__text { position: relative; margin-top: 8px; }
.hero__en { font-family: var(--font-en); font-weight: 800; font-size: 15vw; line-height: 1; letter-spacing: -.02em; color: #fff; }
.hero__title { margin-top: 8px; font-weight: 900; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.3; color: #fff; }
.hero__lead { margin: 16px 0 28px; color: var(--c-on-dark); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1080px) {
  .hero { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 0 3vw; padding: 32px 5vw 56px; min-height: calc(100vh - 76px); }
  .house { grid-column: 2; grid-row: 1; width: 100%; max-width: none; max-height: 78vh; }
  .hero__text { grid-column: 1; grid-row: 1; margin: 0; }
  .hero__en { font-size: min(8.4vw, 17vh); }
}

/* ===== F03：墨のにじみ・ちぎれた縁で写真を切り抜く ===== */
.ragged { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M3 4 L18 1 L30 5 L44 2 L58 6 L71 1 L86 4 L98 2 L96 18 L99 33 L95 47 L99 62 L96 77 L99 92 L97 99 L82 96 L68 99 L54 95 L39 99 L24 96 L10 99 L2 97 L5 82 L1 67 L4 52 L0 37 L4 22 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M3 4 L18 1 L30 5 L44 2 L58 6 L71 1 L86 4 L98 2 L96 18 L99 33 L95 47 L99 62 L96 77 L99 92 L97 99 L82 96 L68 99 L54 95 L39 99 L24 96 L10 99 L2 97 L5 82 L1 67 L4 52 L0 37 L4 22 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

.about { padding: 96px 20px; display: grid; gap: 40px; max-width: 1240px; margin: 0 auto; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 32px; }
.chips li { display: flex; flex-direction: column; padding: 16px 12px; border: 2px solid var(--c-accent); min-width: 0; font-family: var(--font-en); font-weight: 600; font-size: 15px; color: var(--c-accent); line-height: 1.4; }
.chips__big { font-weight: 800; font-size: clamp(32px, 4vw, 52px); color: #fff; line-height: 1.1; font-family: var(--font-en), var(--font); }
.chips__ja { font-family: var(--font); color: var(--c-on-dark); margin-top: 6px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 6vw; align-items: center; padding: 140px 6vw; } }

/* ===== 部屋（CSSだけの横スライド） ===== */
.rooms { padding: 80px 0 140px; }
.rooms__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; padding: 0 20px; margin-bottom: 32px; }
.rooms__head .en { width: 100%; margin: 0; }
.rooms__head .h2 { margin: 0; }
.rooms__ctrl { display: flex; gap: 8px; margin-left: auto; }
.rooms__ctrl[hidden] { display: none; }
.ctrl { width: 56px; height: 56px; border: 2px solid var(--c-accent); background: transparent; color: #fff; font: inherit; font-size: 20px; cursor: pointer; }
.ctrl:hover, .ctrl:focus-visible { background: var(--c-accent); color: var(--c-bg); }
.rooms__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; padding: 0 20px 16px; -webkit-overflow-scrolling: touch; scrollbar-color: var(--c-accent) var(--c-panel); }
.rooms__track:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.room { flex: none; width: 84%; max-width: 560px; scroll-snap-align: start; background: var(--c-panel); }
.room img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.room__body { padding: 20px 24px 28px; }
.room__no { font-family: var(--font-en); font-weight: 600; font-size: 15px; color: var(--c-accent); letter-spacing: .1em; }
.room h3 { font-weight: 900; font-size: 24px; color: #fff; margin: 4px 0 6px; }
@media (min-width: 1080px) {
  .rooms__head { padding: 0 6vw; }
  .rooms__track { padding: 0 6vw 16px; scroll-padding: 0 6vw; gap: 24px; }
  .room { width: 40vw; max-width: none; }
}

/* ===== 明るい区切り（ちぎれ紙の縁で入って出る） ===== */
.price { position: relative; background: var(--c-light); color: var(--c-text); padding: 72px 20px 96px; }
.tear { position: absolute; left: 0; width: 100%; height: 48px; display: block; }
.tear--top { top: -47px; fill: var(--c-light); }
.tear--bottom { bottom: 0; fill: var(--c-bg); }
.price__inner { max-width: 1200px; margin: 0 auto; display: grid; gap: 56px; }
.flow li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-top: 2px solid var(--c-bg); }
.flow span { font-family: var(--font-en); font-weight: 800; font-size: 24px; color: var(--c-accent-text); }
.flow h3 { font-weight: 900; font-size: 19px; color: var(--c-bg); }
.fees div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line-light); }
.fees dt { font-weight: 900; color: var(--c-bg); }
.fees--dark div { border-color: var(--c-line); }
.fees--dark dt { color: #fff; }
@media (min-width: 900px) { .price__inner { grid-template-columns: 1fr 1fr; gap: 96px; } .fees div { grid-template-columns: 1fr auto; gap: 24px; } }

.faq { position: relative; background: var(--c-light); color: var(--c-text); padding: 32px 20px 140px; }
.faq__inner { max-width: 880px; margin: 0 auto; }
.qa { border-top: 2px solid var(--c-bg); }
.qa:last-child { border-bottom: 2px solid var(--c-bg); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; cursor: pointer; font-weight: 900; color: var(--c-bg); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--font-en); font-size: 24px; color: var(--c-accent-text); }
.qa[open] summary::after { content: "−"; }
.qa p { padding: 0 0 20px; }

.reserve { padding: 96px 20px 112px; text-align: center; position: relative; overflow: hidden; }
.reserve__en { display: block; width: 130%; margin: 0 0 24px -5%; overflow: visible; }
.reserve__en text { font-family: var(--font-en); font-weight: 800; font-size: 150px; fill: none; stroke: var(--c-accent); stroke-width: 1.5; opacity: .7; }
.reserve__title { font-weight: 900; font-size: clamp(30px, 4.4vw, 60px); color: #fff; margin-bottom: 12px; }
.reserve .btn { margin-top: 32px; }

.access { padding: 80px 20px 96px; border-top: 1px solid var(--c-line); }
.access__inner { max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) { .fees--dark div { grid-template-columns: 10em 1fr; } }

.footer { padding: 64px 20px 40px; text-align: center; font-size: 15px; background: #08060d; }
.footer__logo { font-family: var(--font-en); font-weight: 800; font-size: 32px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin: 16px 0 24px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
