/* こもる五所川原 */
:root {
  --bg: #f9f7f2;
  --ink: #2f2f2d;
  --sub: #77736b;
  --line: #d9d4c8;
  --pad: clamp(20px, 6vw, 96px);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: .08em;
  font-feature-settings: "palt" 0;
}
body.lang-zh { font-family: "Noto Serif TC", "Shippori Mincho", serif; }
body.lang-en { letter-spacing: .03em; line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { opacity: .65; }
p { margin: 0 0 1.4em; }
figure { margin: 0; }

/* header */
.site-header {
  position: absolute; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 32px var(--pad) 0;
  z-index: 10;
}
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo img { width: 56px; }
.h-right { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.h-lang { margin: 0; font-size: 12px; letter-spacing: .12em; line-height: 1; }
.h-lang a { text-decoration: none; }
.h-lang span { margin: 0 .6em; color: var(--sub); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.site-nav a { text-decoration: none; font-size: 14px; }
.site-nav a { transition: opacity .2s; }
.site-nav ul:has([aria-current]) a:not([aria-current]) { opacity: .3; }
.site-nav ul:has([aria-current]) a:not([aria-current]):hover { opacity: .8; }
.site-nav:not(.is-h) li { writing-mode: vertical-rl; letter-spacing: .3em; line-height: 1.5; }
.site-nav.is-h a { letter-spacing: .15em; }

/* main */
main { padding: 200px var(--pad) 0; max-width: 1080px; margin: 0 auto; }
.center { text-align: center; }
.small { font-size: 13px; color: var(--sub); }
.prose { max-width: 36em; margin-left: auto; margin-right: auto; }
.lang-en .prose { text-align: left; }
.lead { margin-top: 64px; }

.page-title {
  writing-mode: vertical-rl;
  font-size: 18px; font-weight: 400; letter-spacing: .5em;
  margin: 0 auto 72px; display: block; width: fit-content;
}
.page-title.is-h { writing-mode: horizontal-tb; letter-spacing: .3em; text-transform: lowercase; }

/* home */
.home { display: flex; flex-direction: column; align-items: center; }
.home-photo { width: min(400px, 78vw); margin: 0 auto 80px; }
.vtext {
  writing-mode: vertical-rl;
  height: 26.4em; margin: 0 auto; width: fit-content; max-width: 100%;
  font-size: 15px; line-height: 2.4; letter-spacing: .14em;
}
.vtext p { margin: 0 0 0 3.2em; }
.vtext p:last-child { margin-left: 0; }
.home-name { text-align: center; letter-spacing: .25em; margin-top: 40px; }

/* photos & slider */
.photo, .slider { width: min(720px, 100%); margin: 0 auto 48px; }
.photo.wide { width: min(880px, 100%); }
.slider { position: relative; }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; aspect-ratio: 3 / 2; background: #ebe7de;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 64px; border: 0; background: transparent; cursor: pointer;
  color: #fff; font-size: 34px; line-height: 1; text-shadow: 0 0 8px rgba(0,0,0,.45);
  font-family: inherit;
}
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }
.slider-btn[disabled] { opacity: .25; cursor: default; }

/* rooms */
.wide .slider, .wide .photo { width: min(800px, 100%); }
.room {
  display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 550px);
  justify-content: center; align-items: start; gap: 0 48px;
  max-width: 1000px; margin: 140px auto;
}
.room-photo .slider, .room-photo .photo { width: 100%; margin: 0; }
.room-text { font-size: 13px; }
.room-no { font-weight: 400; font-size: 18px; letter-spacing: .08em; margin: 0 0 24px; }
.room-text .prose { margin: 0; }
.plan { width: min(280px, 100%); margin: 8px 0 28px; }
.plan img { mix-blend-mode: multiply; max-height: 240px; width: auto; }
.room-area { font-size: 12px; color: var(--sub); }
.sub { margin: 160px auto; }
.sub-title {
  writing-mode: vertical-rl; font-weight: 400; font-size: 17px; letter-spacing: .5em;
  margin: 0 auto 48px; width: fit-content;
}
.sub-title.is-h { writing-mode: horizontal-tb; letter-spacing: .1em; }
.ext { font-size: 14px; }

/* inabe */
.price-box { text-align: center; margin: 56px auto; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 480px; }
.price-main { font-size: 18px; letter-spacing: .2em; margin-bottom: .4em; }
.price-box .small { margin: 0; }
.price-box h3 { font-size: 13px; font-weight: 600; letter-spacing: .2em; margin: 20px 0 8px; color: var(--sub); }
.price-box ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; line-height: 2; }
.price-cook { font-size: 14px; margin-bottom: 12px; }
.sub-tight { margin: 96px auto; }
.kits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.kit h3 { font-size: 14px; font-weight: 600; letter-spacing: .15em; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 0 0 12px; }
.kit ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.kit li { margin-bottom: .4em; }
.steps { list-style: none; padding: 0; margin: 0 0 24px; }
.steps li { display: flex; gap: 20px; margin-bottom: 20px; font-size: 14px; }
.steps .n { color: #9a6a4a; font-size: 18px; line-height: 1.6; flex: none; width: 2em; }
.steps h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; letter-spacing: .1em; }
.steps p { margin: 0; }
.caution { background: #ece8df; padding: 16px 20px; font-size: 13px; }
.small-photo { width: min(420px, 100%); margin: 32px auto; }

/* trio: 縦長写真を3枚並べる */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: min(800px, 100%); margin: 48px auto 0; }
.trio figure { aspect-ratio: 2 / 3; overflow: hidden; background: #ebe7de; }
.trio img { width: 100%; height: 100%; object-fit: cover; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 880px; margin: 120px auto 0; }
.gallery figure { aspect-ratio: 3 / 2; overflow: hidden; background: #ebe7de; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* buttons */
.btn {
  display: inline-block; border: 1px solid var(--ink); padding: 14px 48px; margin: 24px 0 8px;
  text-decoration: none; letter-spacing: .2em; font-size: 14px; transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); opacity: 1; }

/* reserve */
.table-wrap { overflow-x: auto; max-width: 720px; margin: 0 auto 24px; }
.price { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; white-space: nowrap; }
.price th, .price td { padding: 16px 10px; border-bottom: 1px solid var(--line); font-weight: 400; }
.price thead th { font-size: 12px; color: var(--sub); }
.price tbody th { letter-spacing: .15em; }
.features {
  list-style: none; padding: 0; margin: 56px auto; max-width: 720px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 13px;
}
.features li::before { content: "—"; margin-right: .5em; color: var(--sub); }
.info { max-width: 720px; margin: 96px auto; }
.info .prose { margin-left: 0; }
.info h2 { font-size: 15px; font-weight: 600; letter-spacing: .2em; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 48px 0 16px; }
.dots { list-style: none; padding: 0; margin: 0 0 24px; font-size: 14px; }
.dots li { padding-left: 1.2em; text-indent: -1.2em; margin-bottom: .4em; }
.dots li::before { content: "・"; display: inline-block; width: 1.2em; text-indent: 0; }
.faq, .route { border-bottom: 1px solid var(--line); }
.faq summary, .route summary { cursor: pointer; padding: 14px 0; list-style: none; position: relative; padding-right: 2em; font-size: 14px; }
.faq summary::-webkit-details-marker, .route summary::-webkit-details-marker { display: none; }
.faq summary::after, .route summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--sub); }
.faq[open] summary::after, .route[open] summary::after { content: "−"; }
.faq summary span { margin-right: .8em; color: var(--sub); }
.faq p { font-size: 14px; padding: 0 0 8px 2.6em; }

/* around */
.flow { list-style: none; padding: 4px 0 20px; margin: 0; font-size: 14px; }
.flow li { position: relative; padding-left: 20px; }
.flow li::before { content: ""; position: absolute; left: 4px; top: .85em; width: 7px; height: 7px; border: 1px solid var(--ink); border-radius: 50%; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 7.5px; top: 1.6em; bottom: -.4em; border-left: 1px solid var(--line); }
.flow .via { display: block; color: var(--sub); font-size: 13px; padding: 4px 0 10px; }
.flow .via em { font-style: normal; margin-left: 1em; }
.flow + .flow { border-top: 1px dashed var(--line); padding-top: 16px; }
.spots { max-width: 720px; margin: 140px auto; }
.spot { border-top: 1px solid var(--line); padding: 28px 0 8px; font-size: 14px; }
.spot h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; letter-spacing: .12em; }
.spot h3 a { text-decoration: none; }
.spot-time { font-size: 12px; color: var(--sub); margin-bottom: .6em; }
.spot-addr, .spot-info { font-size: 13px; color: var(--sub); margin-bottom: .6em; }

.notfound { padding: 80px 0; }

/* footer */
.site-footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  font-size: 12px; line-height: 1.9; padding: 0 var(--pad) 40px; margin-top: 200px;
}
.site-footer p { margin: 0 0 .5em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { opacity: .5; }
.f-right { text-align: right; }
.f-sns a { margin-left: 1.2em; }
.f-copy { font-size: 10px; color: var(--sub); margin-top: 1em !important; }
.f-logo { display: block; text-align: center; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .3em; line-height: 1.2; padding-left: .3em; }
.f-logo span { display: block; font-size: 8px; font-weight: 400; letter-spacing: .25em; }

/* menu follows on scroll */
.h-right { position: fixed; top: 32px; right: var(--pad); z-index: 20; }
.h-right a, .h-right span { transition: opacity .8s ease; }
/* スクロール中は薄く */
body.is-scrolled .h-right a,
body.is-scrolled .h-right span { opacity: .22 !important; }
body.is-scrolled .h-right a[aria-current] { opacity: .45 !important; }
/* カーソルが当たった文字だけ濃く */
body.is-scrolled .h-right a:hover,
body.is-scrolled .h-right a:focus-visible { opacity: 1 !important; transition: opacity .2s ease; }
/* 一番上に戻ると、インクがにじむように黒へ */
.h-right.ink { animation: ink 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ink {
  0%   { opacity: .22; filter: blur(5px); }
  45%  { opacity: .75; filter: blur(2px); }
  100% { opacity: 1;   filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .h-right.ink { animation: none; }
}

/* mobile: 最初は文字のメニュー、スクロールすると縦型ハンバーガーに */
.menu-btn { display: none; }
@media (max-width: 700px) {
  /* 一番上：文字のメニュー（ページと一緒に流れる） */
  .h-right { position: absolute; top: 20px; right: var(--pad); gap: 16px; transition: opacity .5s ease, visibility 0s; }
  .h-lang { font-size: 11px; }
  .site-nav ul { gap: 6px; }
  .site-nav a { font-size: 13px; }
  body.is-scrolled .h-right a, body.is-scrolled .h-right span, body.is-scrolled .h-right a[aria-current] { opacity: 1 !important; }

  /* スクロール後：文字は消えて、縦線3本のボタンが付いてくる */
  body.is-scrolled:not(.menu-open) .h-right { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
  .menu-btn {
    display: flex; gap: 6px; position: fixed; top: 22px; right: var(--pad); z-index: 40;
    width: 32px; height: 32px; padding: 4px 6px; border: 0; background: transparent; cursor: pointer;
    justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s;
  }
  body.is-scrolled .menu-btn, body.menu-open .menu-btn { opacity: .55; visibility: visible; transition: opacity .5s ease; }
  body.menu-open .menu-btn { opacity: 1; }
  .menu-btn span { display: block; width: 1px; height: 24px; background: var(--ink); transition: transform .4s ease, opacity .3s ease; }
  body.menu-open .menu-btn span:nth-child(1) { transform: translateX(7px) rotate(35deg); }
  body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-btn span:nth-child(3) { transform: translateX(-7px) rotate(-35deg); }

  /* 開いたとき：全画面のメニュー */
  body.menu-open { overflow: hidden; }
  body.menu-open .h-right {
    position: fixed; inset: 0; z-index: 30; background: var(--bg);
    flex-direction: column-reverse; justify-content: center; align-items: center; gap: 56px;
    animation: menu-in .5s ease both;
  }
  body.menu-open .h-right .site-nav ul { gap: 28px; }
  body.menu-open .h-right .site-nav a { font-size: 17px; }
  body.menu-open .h-right .site-nav.is-h ul { flex-direction: column; align-items: center; gap: 20px; }
  body.menu-open .h-right .h-lang { font-size: 13px; }
  .site-nav ul:has([aria-current]) a:not([aria-current]) { opacity: .4 !important; }
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }

/* mobile */
@media (max-width: 700px) {
  body { font-size: 14px; }
  .site-header { padding-top: 20px; }
  .logo img { width: 40px; }
  main { padding-top: 150px; }
  .lang-ja .prose, .lang-zh .prose { text-align: left; }
  .lang-ja .prose.center br, .lang-zh .prose.center br { display: none; }
  .vtext { font-size: 14px; }
  .room { grid-template-columns: 1fr; margin: 100px auto; gap: 24px; }
  .room-photo { order: -1; margin: 0 calc(-1 * var(--pad)); }
  .room-photo .slider-track { aspect-ratio: 4 / 3; }
  .page-room .wide { margin: 0 calc(-1 * var(--pad)); }
  .page-room .wide .slider, .page-room .wide .photo { width: 100%; }
  .site-footer { grid-template-columns: 1fr; text-align: center; margin-top: 140px; }
  .f-right { text-align: center; }
  .f-sns a { margin: 0 .6em; }
  .f-center { order: 3; }
  .sub { margin: 120px auto; }
  .kits { grid-template-columns: 1fr; }
  .trio { gap: 4px; margin-top: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 80px; }
  .price th, .price td { padding: 12px 6px; font-size: 13px; }
  .price td:last-child { white-space: normal; min-width: 6em; }
}
