/* ゆうなぎ荘（架空）— Duna DESIGN.md の色・形・余白を基準に、日本語組みと動きを設計。
   フォント：Shippori Mincho（見出し）/ Zen Kaku Gothic New（本文）— いずれも SIL OFL 1.1 */
:root {
  --ink: #1b0624; --espresso: #160f0c; --graphite: #444444; --ash: #766a7c; --stone: #898683;
  --charcoal: #292421; --paper: #ffffff; --linen: #f7f7f5; --bone: #edece7;
  --muted-text: #5c5956;
  --ring: rgba(0, 0, 0, 0.05);
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1200px;
  --nav-h: 72px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--linen); color: var(--ink); font-family: var(--sans); font-weight: 400;
  font-size: 16px; line-height: 1.9; letter-spacing: 0.02em;
  line-break: strict; word-break: normal; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; font-feature-settings: "palt" 0;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--espresso); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--ring); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.08em; }
.links { display: flex; gap: 40px; font-size: 14px; color: var(--charcoal); position: absolute; left: 50%; transform: translateX(-50%); }
.links a { position: relative; padding: 6px 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.links a:hover::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid #d9d7d2; border-radius: 999px; background: transparent; position: relative; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.menu-btn i:nth-child(1) { top: 18px; } .menu-btn i:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.sheet { display: none; background: var(--paper); padding: 8px var(--gutter) 28px; border-top: 1px solid var(--ring); }
.sheet a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 20px; border-bottom: 1px solid var(--bone); }
.sheet .pill { margin-top: 24px; width: 100%; }
.sheet { max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--espresso); color: #fff; border-radius: 999px; padding: 12px 22px; font-size: 14px; letter-spacing: 0.06em; transition: background .2s ease, transform .2s ease; }
.pill:hover { background: #2b211c; transform: translateY(-1px); }
.pill--sm { padding: 10px 20px; }
.pill--lg { border-radius: 60px; padding: 20px 36px; font-size: 16px; }
.ghost { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #b9b6b1; border-radius: 60px; padding: 19px 32px; font-size: 16px; letter-spacing: 0.06em; background: transparent; transition: border-color .2s ease, background .2s ease; }
.ghost:hover { border-color: var(--espresso); background: var(--paper); }

/* hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; }
.hero__stack { display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }
.tag { background: var(--espresso); color: #fff; border-radius: 999px; padding: 5px 16px; font-size: 13px; line-height: 1.7; letter-spacing: 0.1em; }
h1 { margin-top: 28px; max-width: 100%; font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 9.4vw, 88px); line-height: 1.15; letter-spacing: 0.01em; text-wrap: balance; }
.lead { margin-top: 24px; max-width: 34em; font-size: clamp(15px, 1.8vw, 18px); line-height: 2; color: var(--graphite); }
.hero__cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__media { margin: clamp(48px, 7vw, 80px) auto 0; width: min(1320px, 100% - var(--gutter) * 2); aspect-ratio: 16 / 7.4; border-radius: 24px; overflow: hidden; background: var(--bone); box-shadow: inset 0 0 0 1px var(--ring); position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; transform: scale(1.06); transition: transform 2.4s cubic-bezier(.2,.7,.2,1); }
.hero__media.is-in img { transform: scale(1); }

/* shared type */
.eyebrow { font-size: 13px; letter-spacing: 0.22em; color: var(--ash); }
h2 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.02em; text-wrap: balance; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.5; letter-spacing: 0.04em; }
section { padding-top: clamp(80px, 11vw, 128px); }
.sec-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(25px, 3.6vw, 40px); line-height: 1.6; max-width: 22em; }
.sec-sub { color: var(--graphite); max-width: 34em; }
.sec-head--left { align-items: flex-start; text-align: left; }
.note { margin-top: 24px; font-size: 13px; color: var(--muted-text); text-align: center; }

/* intro */
.intro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: clamp(96px, 13vw, 160px); }
.intro .eyebrow { font-family: var(--sans); font-weight: 400; }
.intro__text { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 3vw, 32px); line-height: 2; max-width: 28em; letter-spacing: 0.03em; }

/* facts */
.facts { padding-top: clamp(56px, 8vw, 96px); }
.facts dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.facts dt { font-size: 13px; letter-spacing: 0.22em; color: var(--ash); }
.facts dd:not(.fact__description) { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 4px; }
.facts b { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 7.2vw, 80px); line-height: 1.2; letter-spacing: 0; }
.facts dd span { font-size: 16px; color: var(--graphite); }
.facts .fact__description { font-size: 14px; color: var(--muted-text); line-height: 1.8; max-width: 16em; margin: 4px auto 0; }

/* cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--paper); border-radius: 16px; padding: 32px; box-shadow: inset 0 0 0 1px var(--ring); display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--graphite); font-size: 15px; }
.card .meta { font-size: 13px; color: var(--ash); letter-spacing: 0.06em; }
.ico { width: 32px; height: 32px; color: var(--charcoal); margin-bottom: 14px; }
.card--plain { background: transparent; box-shadow: none; padding: 8px 4px 0; border-top: 1px solid #cfcdc8; border-radius: 0; padding-top: 24px; }
.n { font-family: var(--serif); font-size: 15px; color: var(--ash); letter-spacing: 0.12em; }

/* meals */
.meals__panel { background: var(--bone); border-radius: 24px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.meals__panel .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 32px); }
.timeline { list-style: none; padding: 0; }
.timeline li { display: grid; grid-template-columns: 7em 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid #d3d1cb; }
.timeline li:last-child { border-bottom: 1px solid #d3d1cb; }
.timeline time { font-family: var(--serif); font-size: 18px; letter-spacing: 0.04em; padding-top: 2px; }
.timeline p { margin-top: 8px; color: var(--graphite); font-size: 15px; }

/* info / closing */
.info { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid #cfcdc8; padding-top: 24px; }
.info dt { font-size: 13px; letter-spacing: 0.16em; color: var(--ash); }
.info dd { margin-top: 2px; font-size: 16px; }
.closing { padding-top: clamp(80px, 11vw, 128px); padding-bottom: clamp(80px, 11vw, 128px); }
.closing__box { background: var(--paper); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--ring); text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 20px; }
.closing h2 { font-size: clamp(25px, 3.6vw, 40px); line-height: 1.6; }
.closing p { color: var(--graphite); max-width: 30em; }
.closing .pill { margin-top: 12px; }

/* footer */
.footer { border-top: 1px solid #deddd8; padding: 40px 0 48px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 28px; font-size: 14px; color: var(--charcoal); }
.demo-note { margin-top: 28px; font-size: 12.5px; line-height: 1.9; color: var(--muted-text); }

/* dialog */
.demo { border: 0; border-radius: 24px; padding: 0; width: min(520px, 100% - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.demo::backdrop { background: rgba(27, 6, 36, .38); }
.demo form { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.demo h2 { font-size: 24px; line-height: 1.6; }
.demo p:not(.eyebrow) { color: var(--graphite); font-size: 15px; }
.steps { padding-left: 1.4em; color: var(--graphite); font-size: 15px; }
.demo__actions { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.demo__actions .ghost { padding: 11px 24px; font-size: 14px; }

/* motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .hero__media img { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* tablet / mobile */
@media (max-width: 900px) {
  .links, .nav__right .pill { display: none; }
  .menu-btn { display: block; }
  .sheet:not([hidden]) { display: block; }
  .grid--3 { grid-template-columns: 1fr; gap: 28px; }
  .meals__panel { grid-template-columns: 1fr; }
  .meals__panel .sec-head { position: static; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 15px; }
  .grid--2 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .hero__media { aspect-ratio: 4 / 5; border-radius: 20px; }
  .hero__cta { flex-direction: column; width: 100%; max-width: 320px; }
  .hero__cta > * { width: 100%; }
  .facts dl { grid-template-columns: 1fr; gap: 36px; }
  .info { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .footer__nav { flex-wrap: wrap; gap: 14px 24px; }
  .demo form { padding: 28px 24px; }
}

/* Runway-generated fictional imagery; responsive delivery, original copy retained. */
.section-photo { overflow: hidden; border-radius: 20px; background: var(--bone); }
.section-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.room-photo { aspect-ratio: 16 / 9; margin-bottom: 28px; }
.room-photo img { object-position: 50% 58%; }
.breakfast-photo { aspect-ratio: 4 / 3; margin: 16px 0; border-radius: 12px; }
@media (max-width: 640px) {
  .hero__media img { object-position: 76% 50%; }
  .room-photo { aspect-ratio: 4 / 3; }
}
