/* 075 ひだまり映像舎 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f6f1e8;
  --c-paper: #fffdf8;
  --c-dark: #2d241d;
  --c-main: #3a2e25;
  --c-accent: #c49a6c;
  --c-accent-text: #85592f;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #e3d8c8;
  --font: "Noto Serif JP", serif;
  --font-en: "Fraunces", serif;
  --font-mono: "DM Mono", monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 2; letter-spacing: .05em; color: var(--c-text); 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: 300; font-size: 20px; color: var(--c-accent-text); margin-bottom: 12px; }
.title { font-weight: 600; font-size: clamp(28px, 3vw, 42px); line-height: 1.6; letter-spacing: .08em; color: var(--c-main); margin-bottom: 24px; }
.title--sm { font-size: clamp(24px, 2.4vw, 32px); }
.tc { font-family: var(--font-mono); font-size: 15px; letter-spacing: .1em; color: var(--c-accent-text); margin-bottom: 16px; }
.tc--light { color: var(--c-accent); }
.note { font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; text-decoration: none; letter-spacing: .1em; white-space: nowrap; flex: none; font-weight: 600; transition: background-color .6s, color .6s; }
.btn--main { background: var(--c-accent-text); color: #fff; }
.btn--main:hover, .btn--main:focus-visible { background: var(--c-main); }
.btn--light { background: var(--c-paper); color: var(--c-main); }
.btn--light:hover { background: var(--c-accent); color: var(--c-dark); }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: rgba(246, 241, 232, .94); color: var(--c-main); }
.header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 12px 0 20px; }
.logo { display: flex; align-items: baseline; gap: 12px; min-height: 48px; align-items: center; text-decoration: none; white-space: nowrap; flex: none; }
.logo__ja { font-weight: 600; font-size: 19px; letter-spacing: .12em; }
.logo__en { font-family: var(--font-en); font-weight: 300; font-size: 17px; color: var(--c-accent-text); }
@media (max-width: 599px) { .logo__en { display: none; } }
.gnav { display: none; }
.header__btn { margin-left: auto; }
@media (min-width: 1080px) {
  :root { --header-h: 80px; }
  .header__inner { 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; letter-spacing: .1em; }
  .gnav a:hover { color: var(--c-accent-text); }
  .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; }
.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: 22px; height: 1.5px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.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-paper); padding: 8px 20px 24px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(45, 36, 29, .1); }
.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; } }

/* ===== A04：ロゴだけの幕（is-motion のときだけ） ===== */
.curtain { display: none; }
.is-motion .curtain.is-on { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--c-bg); pointer-events: none; }
.curtain__logo { display: flex; align-items: baseline; gap: 12px; color: var(--c-main); white-space: nowrap; transform-origin: 0 50%; }
.curtain__logo span { font-weight: 600; font-size: 19px; letter-spacing: .12em; }
.curtain__logo em { font-family: var(--font-en); font-weight: 300; font-size: 17px; color: var(--c-accent-text); }

/* ===== 縦並び（スマホ・JSなし）が基本 ===== */
.panel { position: relative; padding: 96px 20px; }

.hero { padding: 0; min-height: 100vh; display: flex; align-items: flex-end; background: var(--c-dark); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(45, 36, 29, .8) 0%, rgba(45, 36, 29, .5) 50%, rgba(45, 36, 29, .12) 88%); }
.hero__copy { position: relative; z-index: 1; padding: 0 20px 64px; color: #fff; }
.hero__en { font-family: var(--font-en); font-size: 20px; color: #f1e3cf; margin-bottom: 8px; }
.hero__title { font-weight: 600; font-size: clamp(34px, 5.6vw, 80px); line-height: 1.45; letter-spacing: .06em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero__lead { margin: 16px 0 28px; color: #f6efe4; }

.about p + p { margin-top: 16px; }

.film { overflow: hidden; }
.film__word { font-family: var(--font-en); font-weight: 300; font-size: 40vw; line-height: .9; letter-spacing: -.02em; color: var(--c-accent-text); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .film__word { background: url("images/work4.webp") 0% 50% / auto 140%; -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.film__text { margin-top: 24px; }

.pano { margin-top: 40px; border-left: 1px solid var(--c-accent); }
.pano__item { position: relative; padding: 0 0 40px 24px; }
.pano__item::before { content: ""; position: absolute; left: -6px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-accent-text); }
.pano__tc { font-family: var(--font-mono); font-size: 26px; color: var(--c-accent-text); line-height: 1.4; }
.pano__item h3 { font-weight: 600; font-size: 21px; color: var(--c-main); margin: 4px 0; }
.pano__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 16px; }

.works__list { display: grid; gap: 32px; margin-top: 32px; }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.work__len { margin-top: 12px; font-family: var(--font-mono); font-size: 15px; color: var(--c-accent-text); }
.work h3 { font-weight: 600; font-size: 20px; color: var(--c-main); }
.work p:last-child { font-size: 15px; color: var(--c-sub); }

.plans { display: grid; gap: 16px; margin-top: 32px; }
.plan { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 16px; padding: 28px; min-width: 0; }
.plan--rec { border: 2px solid var(--c-accent-text); }
.plan__len { font-family: var(--font-mono); font-size: 28px; color: var(--c-accent-text); }
.plan h3 { font-weight: 600; font-size: 22px; color: var(--c-main); margin: 4px 0 8px; }
.plan__price { margin-top: 12px; font-weight: 600; color: var(--c-main); }

.contact { background: var(--c-dark); color: #efe6da; text-align: center; padding: 120px 20px; }
.contact__title { font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.55; color: #fff; margin-bottom: 20px; }
.contact .btn { margin-top: 32px; }
.contact__tel { margin-top: 16px; font-size: 15px; }

.company { padding: 96px 20px; background: var(--c-paper); }
.company__inner { max-width: 960px; margin: 0 auto; }
.info div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-weight: 600; color: var(--c-main); }
@media (min-width: 768px) {
  .panel { padding: 120px 48px; }
  .hero { padding: 0; }
  .hero__copy { padding: 0 64px 96px; }
  .works__list { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .info div { grid-template-columns: 9em 1fr; gap: 24px; }
}

.footer { background: var(--c-dark); color: #efe6da; padding: 64px 20px 40px; text-align: center; font-size: 15px; }
.footer__logo { font-weight: 600; font-size: 24px; letter-spacing: .14em; 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; }

/* PCでJSが無いとき（縦並びのまま）：写真と文字の幅をおさえる */
@media (min-width: 1080px) {
  html:not(.is-h) .about, html:not(.is-h) .flow, html:not(.is-h) .works, html:not(.is-h) .price { max-width: 1200px; margin: 0 auto; }
  html:not(.is-h) .film__word { font-size: 28vw; }
  html:not(.is-h) .pano__item img { max-width: 640px; }
}

.tline { display: none; }

/* ===== 横の旅（PC・JSあり。script.js が .is-h を付ける） ===== */
@media (min-width: 1080px) {
  .is-h .hwrap { height: 100vh; overflow: hidden; }
  .is-h .htrack { display: flex; height: 100vh; width: max-content; }
  .is-h .panel { flex: none; height: 100vh; padding: calc(var(--header-h) + 32px) 5vw 120px; display: flex; flex-direction: column; justify-content: center; }

  .is-h .hero { width: 100vw; padding: 0; justify-content: flex-end; }
  .is-h .hero__copy { padding: 0 8vw 150px; }
  .is-h .hero__title { font-size: min(5.4vw, 10vh); }

  .is-h .about { width: 46vw; padding-right: 3vw; }
  .is-h .about > * { max-width: 30em; }

  .is-h .film { width: 92vw; flex-direction: row; align-items: center; gap: 4vw; }
  .is-h .film__word { font-size: min(28vw, 52vh); flex: none; }
  .is-h .film__text { margin: 0; max-width: 24em; }

  .is-h .flow { width: 250vw; flex-direction: row; align-items: center; gap: 5vw; }
  .is-h .flow__head { width: 22vw; flex: none; }
  .is-h .pano { display: flex; align-items: flex-start; gap: 0; margin: 0; border-left: 0; border-top: 1px solid var(--c-accent); padding-top: 28px; flex: 1; }
  .is-h .pano__item { flex: 1; padding: 0 3vw 0 0; }
  .is-h .pano__item::before { left: 0; top: -34px; }
  .is-h .pano__item--photo { flex: 1.8; }
  .is-h .pano__item img { height: 36vh; width: 100%; aspect-ratio: auto; }
  .is-h .pano__tc { font-size: 34px; }

  .is-h .works { width: 120vw; flex-direction: row; align-items: center; gap: 4vw; }
  .is-h .works__head { width: 18vw; flex: none; }
  .is-h .works__list { display: flex; gap: 2.4vw; margin: 0; }
  .is-h .work { width: 22vw; }
  .is-h .work:nth-child(even) { margin-top: 12vh; }
  .is-h .work img { height: 30vh; aspect-ratio: auto; }

  .is-h .price { width: 100vw; flex-direction: row; align-items: center; gap: 4vw; }
  .is-h .price__head { width: 20vw; flex: none; }
  .is-h .plans { display: flex; gap: 1.6vw; margin: 0; }
  .is-h .plan { width: 20vw; }

  .is-h .contact { width: 100vw; align-items: center; }

  /* タイムライン */
  .is-h .tline { display: flex; align-items: center; gap: 24px; position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: 72px; padding: 0 48px; background: rgba(255, 253, 248, .92); border-top: 1px solid var(--c-line); transition: opacity .6s; }
  .is-h .tline__tc { font-family: var(--font-mono); font-size: 18px; color: var(--c-main); letter-spacing: .08em; width: 9em; flex: none; }
  .is-h .tline__ruler { position: relative; flex: 1; height: 28px; background: repeating-linear-gradient(90deg, var(--c-accent) 0 1px, transparent 1px 12px) bottom / 100% 8px no-repeat, repeating-linear-gradient(90deg, var(--c-accent-text) 0 1px, transparent 1px 120px) bottom / 100% 16px no-repeat; }
  .is-h .tline__mark { position: absolute; top: -4px; font-family: var(--font-mono); font-size: 15px; line-height: 1; color: var(--c-sub); transform: translateX(-50%); }
  .is-h .tline__head { position: absolute; top: -10px; bottom: -6px; left: 0; width: 2px; background: #c2410c; }
  .is-h .tline__head::before { content: ""; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid #c2410c; }
  .is-h .tline__name { font-family: var(--font-mono); font-size: 15px; color: var(--c-accent-text); letter-spacing: .14em; width: 7em; flex: none; text-align: right; }
  .is-h.is-hdone .tline { opacity: 0; }
}

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