/* ========================================
   再生の記録（/stay/renovation.html, /stay/en/renovation.html）
   色・フォントは stay.css / story.css のテーマ変数に揃える。
   ======================================== */

:root {
  --color-bg: #faf9f6;
  --color-text: #2c2c2c;
  --color-text-light: #6b6b6b;
  --color-accent: #2f3a37;
  --color-gold: #c2ab6e;
  --color-border: #e8e4df;
  --color-kawasaki: #0f5779;
  --color-asama: #2c6b66;

  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ----------------------------------------
   Top bar
   ---------------------------------------- */
.reno-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.reno-bar__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reno-bar__home {
  font-family: var(--font-serif);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-accent);
  white-space: nowrap;
}

.reno-bar__nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.reno-bar__nav a {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-accent);
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.reno-bar__nav .reno-bar__lang {
  border-color: transparent;
  background: none;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.reno-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #222;
  overflow: hidden;
}

.reno-hero picture,
.reno-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reno-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.05) 70%);
}

.reno-hero__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}

.reno-hero__label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}

.reno-hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 6px 0 10px;
}

.is-en .reno-hero__label {
  display: none;
}

.is-en .reno-hero__title {
  letter-spacing: 0.02em;
}

.reno-hero__lead {
  max-width: 34em;
  font-size: 0.95rem;
}

.reno-hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 24px;
}

.reno-hero__facts li {
  border-left: 2px solid var(--color-gold);
  padding-left: 12px;
}

.reno-hero__num {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.4;
}

.reno-hero__cap {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ----------------------------------------
   Intro
   ---------------------------------------- */
.reno-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 16px 8px;
  text-align: center;
}

.reno-intro__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.reno-intro p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}


/* ----------------------------------------
   Property sections
   ---------------------------------------- */
.prop {
  --prop-color: var(--color-kawasaki);
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 16px 24px;
}

.prop--ryo {
  --prop-color: var(--color-asama);
}

.prop__head {
  text-align: center;
  border-top: 3px solid var(--prop-color);
  padding-top: 28px;
  margin-bottom: 40px;
}

.prop__en {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--prop-color);
}

.prop__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
}

.prop__fact {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* ----------------------------------------
   Before / After item
   ---------------------------------------- */
.ba-item {
  margin-bottom: 64px;
}

.ba-item--portrait .cmp,
.ba-item--portrait .steps {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.ba-item__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  margin-bottom: 14px;
}

.ba-item__desc {
  margin-top: 12px;
  font-size: 0.95rem;
}

.ba-item__kc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.ba-item__kc div {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 14px;
}

.ba-item__kc dt {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--prop-color);
}

.ba-item__kc dd {
  font-size: 0.875rem;
}

/* Compare slider */
.cmp {
  --pos: 50%;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
  user-select: none;
  -webkit-user-select: none;
}

.cmp__before,
.cmp__after,
.cmp picture,
.cmp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cmp img {
  object-fit: cover;
}

.cmp__after {
  clip-path: inset(0 0 0 var(--pos));
}

.cmp__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}

.cmp__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cmp__knob::before,
.cmp__knob::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  transform: translateY(-50%);
}

.cmp__knob::before {
  left: 7px;
  border-right-color: var(--color-accent);
}

.cmp__knob::after {
  right: 7px;
  border-left-color: var(--color-accent);
}

/* なぞる操作は .cmp 自体で受け取る（renovation.js）。
   縦スクロールはブラウザに任せ、横の動きだけをスライダーに使う。
   range 入力はキーボード操作と読み上げのために残し、指やマウスは通さない。 */
.cmp {
  cursor: ew-resize;
  touch-action: pan-y;
}

.cmp__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.cmp:focus-within .cmp__knob {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.cmp__tag {
  position: absolute;
  top: 10px;
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  pointer-events: none;
}

.cmp__tag--before {
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
}

.cmp__tag--after {
  right: 10px;
  background: var(--prop-color);
}

/* Steps (before / during / after) */
.steps__view {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}

.steps__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.steps__layer.is-active {
  opacity: 1;
}

.steps__layer picture,
.steps__layer img {
  width: 100%;
  height: 100%;
}

.steps__layer img {
  object-fit: cover;
}

.steps__btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.steps__btn {
  position: relative;
  font: inherit;
  font-size: 0.875rem;
  padding: 10px 4px;
  border: 0;
  background: none;
  color: var(--color-text-light);
  cursor: pointer;
}

.steps__btn + .steps__btn {
  border-left: 1px solid var(--color-border);
}

.steps__btn.is-active {
  background: var(--prop-color);
  color: #fff;
  font-weight: 500;
}

.steps__btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: -2px;
}

/* ----------------------------------------
   More
   ---------------------------------------- */
.more {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 40px;
}

.more__summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--color-accent);
  list-style: none;
}

.more__summary::-webkit-details-marker {
  display: none;
}

.more__summary::before {
  content: "＋ ";
}

.more[open] .more__summary::before {
  content: "－ ";
}

.more__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  padding: 8px 20px 24px;
}

.ba-item--sm {
  margin-bottom: 0;
}

.ba-item--sm .ba-item__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ba-item--sm .ba-item__desc {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ----------------------------------------
   CTA & footer
   ---------------------------------------- */
.prop__cta {
  text-align: center;
  padding: 8px 0 24px;
}

.prop__cta-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.prop__btn {
  display: inline-block;
  background: var(--prop-color);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.prop__btn:hover {
  opacity: 0.88;
}

.reno-foot {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px 48px;
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.reno-foot__story {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.reno-foot__story a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-gold);
  text-decoration: none;
}

.reno-foot__story a::after {
  content: " →";
}

.reno-foot__nav a {
  color: var(--color-text-light);
}

.reno-foot__copy {
  margin-top: 16px;
}

@media (max-width: 600px) {
  .reno-hero {
    min-height: 72vh;
  }

  .ba-item__kc {
    grid-template-columns: 1fr;
  }

  .reno-bar__home {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .steps__layer {
    transition: none;
  }
}

/* ----------------------------------------
   操作の案内（写真ごと）
   ---------------------------------------- */
.ba-item__hint {
  margin-top: 6px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.ba-item--sm .ba-item__hint {
  font-size: 0.7rem;
}
