/* Layout: 写真を大きく見せる一枚もの。白い漆喰と墨の2色が基本で、常盤色(緑)は見出しラベルなどの差し色にだけ使う */
:root {
  --bg: #f7f7f5;          /* 漆喰の白 */
  --surface: #ffffff;
  --ink: #1f2321;         /* 墨 */
  --ink-contrast: #ffffff;
  --muted: #5b605d;
  --line: #dcdedb;
  --green: #2d6a4f;       /* 常盤色(差し色) */
  --green-ink: #ffffff;

  --f-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161817; --surface: #1d201e; --ink: #ebece9; --ink-contrast: #161817; --muted: #a6aaa7; --line: #2e322f;
    --green: #86c3a4; --green-ink: #10201a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161817; --surface: #1d201e; --ink: #ebece9; --ink-contrast: #161817; --muted: #a6aaa7; --line: #2e322f;
  --green: #86c3a4; --green-ink: #10201a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em;
  text-decoration: none;
  padding: 1em 2.2em;
  background: var(--ink); color: var(--ink-contrast);
  border-radius: 2px;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn .arrow { font-family: var(--f-latin); font-size: 1.2em; line-height: 1; }

/* ヒーロー */
.hero {
  position: relative;
  min-height: min(82vh, 780px);
  min-height: min(82svh, 780px); /* スクロールでスマホの画面の高さが変わっても、写真の大きさを変えない */
  display: grid;
  color: #fff;
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.3);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding-block: 20px 56px;
  width: 100%;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-logo { width: min(340px, 62vw); }
.hero-book {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,.7); padding: 0.55em 1.2em; border-radius: 2px;
  white-space: nowrap;
}
.hero-book:hover { background: rgba(255,255,255,.15); }
.hero-book:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-copy { max-width: 760px; }
.hero h1 span { white-space: nowrap; }
.hero-place {
  font-family: var(--f-latin); font-style: italic; font-size: 1.15rem; letter-spacing: 0.08em;
  opacity: .9; margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.7rem, 5.4vw, 3.6rem); line-height: 1.45; letter-spacing: 0.06em;
  margin: 0 0 20px; text-wrap: balance;
  text-shadow: 0 1px 16px rgba(0,0,0,.45);
}
.hero-lead { margin: 0 0 32px; font-size: 1.02rem; max-width: 34em; }
.hero .btn { background: #fff; color: #1e2227; }
.hero .btn:focus-visible { outline-color: #fff; }

/* セクション共通 */
section { padding-block: clamp(72px, 10vw, 128px); }
.eyebrow {
  font-family: var(--f-latin); font-style: italic; font-size: 1.1rem;
  color: var(--green); letter-spacing: 0.1em; margin: 0 0 8px;
}
h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.55; letter-spacing: 0.06em;
  margin: 0 0 24px; text-wrap: balance;
}
.lead { max-width: 36em; color: var(--muted); margin: 0; }

/* 宿の特徴 */
.features { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(48px, 7vw, 88px); }
.feature {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center;
}
.feature:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.feature:nth-child(even) .feature-photo { order: 2; }
.feature-photo { position: relative; min-width: 0; }
.feature-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-photo .sub {
  position: absolute; width: 38%; right: -6%; bottom: -12%;
  border: 6px solid var(--bg); aspect-ratio: 1 / 1; object-fit: cover;
}
.feature:nth-child(even) .feature-photo .sub { right: auto; left: -6%; }
.feature-text { min-width: 0; }
.feature h3 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.6; letter-spacing: 0.05em; margin: 0 0 16px; text-wrap: balance;
}
.feature p { margin: 0; color: var(--muted); }
.feature .tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  color: var(--green-ink); background: var(--green); padding: .3em .9em; border-radius: 2px; margin-bottom: 16px;
}

/* お部屋の写真 */
.gallery-sec { background: var(--surface); }
.gallery {
  display: grid; gap: 10px; margin-top: 40px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; min-width: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0; padding: 6px 12px;
  font-size: .78rem; letter-spacing: .08em; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
  width: 100%;
}
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }

/* 設備 */
.amenities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; margin-top: 48px; border-top: 1px solid var(--line);
}
.amenity { padding: 20px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.amenity dt { font-weight: 700; letter-spacing: .06em; }
.amenity dd { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* 会津若松 */
.area-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-top: 40px;
}
.area-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 0; }
.area-photos figure { margin: 0; min-width: 0; }
.area-photos figure:first-child { grid-row: span 2; }
.area-photos img { width: 100%; height: 100%; object-fit: cover; }
.area-photos figure:first-child img { aspect-ratio: 3 / 4; }
.area-photos figure:not(:first-child) img { aspect-ratio: 4 / 3; }
.area-photos figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; letter-spacing: .06em; }
.area-text { min-width: 0; }
.area-text p { margin: 0 0 16px; color: var(--muted); }

/* 最後の予約 */
.cta {
  position: relative; color: #fff; overflow: hidden; text-align: center;
  padding-block: clamp(88px, 12vw, 150px);
}
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 16px; }
.cta p { margin: 0 auto 36px; max-width: 30em; opacity: .9; }
.cta .btn { background: #fff; color: #1e2227; }

/* 地図 */
.map { margin-top: clamp(40px, 6vw, 72px); }
.map-frame {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 7; min-height: 320px;
  background: var(--surface); border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center; color: var(--muted);
}
.map-fallback strong { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); letter-spacing: .06em; }
.map-link {
  display: inline-flex; gap: .5em; align-items: center; margin-top: 14px;
  font-weight: 700; font-size: .92rem; letter-spacing: .06em; color: var(--green); text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.map-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

footer { padding-block: 40px 48px; font-size: .85rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer .name { font-family: var(--f-latin); font-size: 1.2rem; color: var(--ink); letter-spacing: .06em; }

/* スマホ下の予約バー */
.mobile-bar { display: none; }

@media (max-width: 760px) {
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-photo { order: 0; }
  .feature-photo .sub { width: 34%; right: 4%; bottom: -10%; }
  .feature:nth-child(even) .feature-photo .sub { left: auto; right: 4%; }
  .feature-text { padding-top: 24px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .area-grid { grid-template-columns: 1fr; }
  .hero-book { display: none; }
  .mobile-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { width: 100%; padding: .85em 1em; }
  footer { padding-bottom: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* 言語切り替え */
.hero-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45em;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: #fff;
  padding: .55em .9em; border: 1px solid rgba(255,255,255,.7); border-radius: 2px;
  white-space: nowrap; user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: rgba(255,255,255,.15); }
.lang summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 150px;
  list-style: none; margin: 0; padding: 6px 0;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.lang a { display: block; padding: .5em 1.1em; font-size: .92rem; letter-spacing: .04em; text-decoration: none; line-height: 1.6; }
.lang a:hover, .lang a:focus-visible { background: var(--bg); outline: none; }
.lang a[aria-current="page"] { font-weight: 700; color: var(--green); }

/* 言語ごとの書体 */
html[lang="en"] {
  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}
html[lang="en"] body { letter-spacing: 0; line-height: 1.75; }
html[lang="en"] .hero h1 span { white-space: normal; }
html[lang="en"] .hero h1 { font-weight: 600; letter-spacing: 0.01em; line-height: 1.15; font-size: clamp(2.3rem, 6.4vw, 4.4rem); }
html[lang="en"] h2 { font-weight: 600; letter-spacing: 0.01em; line-height: 1.25; font-size: clamp(2rem, 4.4vw, 3rem); }
html[lang="en"] .feature h3 { font-weight: 600; letter-spacing: 0.01em; line-height: 1.3; font-size: clamp(1.55rem, 3vw, 2.05rem); }
html[lang="en"] .btn, html[lang="en"] .hero-book, html[lang="en"] .feature .tag { letter-spacing: 0.04em; }
html[lang="zh-Hant"] {
  --f-display: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  --f-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
html[lang="zh-Hans"] {
  --f-display: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  --f-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 会津若松の写真の説明は、写真の上に重ねる(下に置くと隣の写真に隠れるため) */
.area-photos figure { position: relative; overflow: hidden; }
.area-photos figcaption {
  position: absolute; left: 0; bottom: 0; width: 100%; margin: 0; padding: 6px 12px;
  color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
