/* ===========================================================
   Amazing Days Gion — shared stylesheet
   Palette taken from the building itself:
   navy #333F4B (walls) / off-white #EFEFEA (noren) / reed #C9A46B
   =========================================================== */

:root {
  --navy:        #333F4B;
  --navy-deep:   #232C35;
  --navy-soft:   #5A6875;
  --cream:       #F6F4EF;
  --cream-pure:  #EFEFEA;
  --reed:        #C9A46B;
  --reed-pale:   #EADCC2;
  --accent:      #C0392B;
  --line:        #DDD8CD;
  --ink:         #22282E;
  --ink-soft:    #5C6470;

  --radius: 2px;
  --wrap: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---------- language switching ---------- */
html[data-lang="en"] [lang="ja"] { display: none; }
html[data-lang="ja"] [lang="en"] { display: none; }

/* ---------- typography ---------- */
h1, h2, h3 {
  font-family: "Cormorant Garamond", "Noto Serif JP", Georgia, "Yu Mincho", serif;
  font-weight: 500;
  line-height: 1.3;
  color: var(--navy-deep);
  margin: 0 0 .6em;
}
h1 { font-size: 2.1rem; letter-spacing: .01em; }
h2 { font-size: 1.5rem; margin-top: 2.4em; }
h3 { font-size: 1.15rem; margin-top: 1.8em; font-family: "Inter", "Noto Sans JP", sans-serif; font-weight: 600; }
p  { margin: 0 0 1.1em; }
a  { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong { font-weight: 600; }

.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin-bottom: 2em;
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { padding: 2rem 0 5rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--cream-pure);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}
.brand {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.15rem;
  letter-spacing: .08em;
  color: var(--cream-pure);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { display: block; font-size: .58rem; letter-spacing: .3em; opacity: .65; font-family: "Inter", sans-serif; }

.lang-toggle { display: flex; border: 1px solid rgba(246,244,239,.35); border-radius: var(--radius); overflow: hidden; }
.lang-toggle button {
  background: none;
  border: 0;
  color: var(--cream-pure);
  font: inherit;
  font-size: .78rem;
  letter-spacing: .08em;
  padding: .3rem .7rem;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--cream-pure); color: var(--navy); }

/* ---------- emergency bar ---------- */
.urgent-bar {
  background: var(--navy-deep);
  color: var(--cream-pure);
  font-size: .88rem;
  text-align: center;
  padding: .55rem 1rem;
}
.urgent-bar a { color: var(--reed); font-weight: 600; text-decoration: none; }
.urgent-bar a:hover { text-decoration: underline; color: var(--reed); }

/* ---------- hero ---------- */
.hero { background: var(--navy); }
.hero img { display: block; width: 100%; height: auto; }
.hero-caption {
  background: var(--navy);
  color: var(--cream-pure);
  text-align: center;
  padding: 1.6rem 1.25rem 2rem;
}
.hero-caption h1 { color: var(--cream-pure); margin-bottom: .25em; font-size: 2.3rem; }
.hero-caption p { color: rgba(246,244,239,.7); margin: 0; font-size: .95rem; letter-spacing: .04em; }

/* ---------- photographs ---------- */
figure { margin: 1.5rem 0; }
figure img, .photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #E8E4DA;
}
figcaption {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: .5rem;
  line-height: 1.55;
}
figcaption strong { color: var(--navy-deep); }

/* side-by-side pair, stacks on narrow screens */
.photo-pair { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 34rem) { .photo-pair { grid-template-columns: 1fr 1fr; } }
.photo-pair figure { margin: 0; }

/* tall portrait shots shouldn't dominate the page */
.photo.tall { max-height: 62vh; width: auto; margin: 0 auto; }

/* ---------- nav cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 34rem) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--navy); border-left-color: var(--accent); transform: translateY(-1px); color: var(--ink); }
.card .num {
  font-family: "Cormorant Garamond", serif;
  font-size: .8rem;
  letter-spacing: .2em;
  color: var(--reed);
  display: block;
  margin-bottom: .3rem;
}
.card .t { font-weight: 600; font-size: 1.02rem; display: block; }
.card .d { font-size: .84rem; color: var(--ink-soft); display: block; margin-top: .2rem; line-height: 1.5; }
/* 全カードに赤い縦線を統一。is-key は現在すべてのカードと同じ見た目です */

/* ---------- content blocks ---------- */
.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1.5rem 0;
}
.box > :last-child { margin-bottom: 0; }
.box.primary { border: 1px solid var(--navy); border-top: 3px solid var(--navy); }
.box.warn    { border-left: 3px solid var(--accent); background: #FDF7F6; }
.box.quiet   { background: #F1EFE8; border-color: transparent; }

.box h3:first-child, .box h2:first-child { margin-top: 0; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--reed);
  font-weight: 600;
  margin-bottom: .4rem;
}
.eyebrow.hot { color: var(--accent); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .93rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--navy-deep); white-space: nowrap; }
td.num { white-space: nowrap; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.2rem 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 1.1rem 2.6rem;
  border-left: 1px solid var(--line);
  margin-left: .9rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: -0.9rem;
  top: 0;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream-pure);
  display: grid; place-items: center;
  font-size: .8rem;
  font-family: "Cormorant Garamond", serif;
}
.steps strong { display: block; }

/* ---------- address card (show to a taxi driver) ---------- */
.addr-card {
  background: var(--navy);
  color: var(--cream-pure);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.addr-card .jp {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1.65rem;
  line-height: 1.5;
  display: block;
  margin: .3rem 0 .6rem;
}
.addr-card .en { font-size: .82rem; opacity: .7; letter-spacing: .04em; }
.addr-card .say { font-size: .78rem; opacity: .6; margin-top: .9rem; letter-spacing: .05em; }

/* ---------- misc ---------- */
.map { width: 100%; height: 300px; border: 1px solid var(--line); border-radius: var(--radius); display: block; }

.tel {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  margin: .2rem .3rem .2rem 0;
}
.tel:hover { background: #A5301F; color: #fff !important; }
.tel.ghost { background: none; color: var(--navy) !important; border: 1px solid var(--navy); }
.tel.ghost:hover { background: var(--navy); color: #fff !important; }

.tbd {
  display: inline-block;
  background: var(--reed-pale);
  border: 1px dashed var(--reed);
  color: #7A5A22;
  font-size: .78rem;
  padding: .05rem .5rem;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .02em;
}

.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.pill {
  font-size: .8rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: .25rem .7rem;
  border-radius: 99px;
  color: var(--ink-soft);
}

ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .45rem 0 .45rem 1.4rem; position: relative; border-bottom: 1px solid var(--line); }
ul.plain li::before { content: "—"; position: absolute; left: 0; color: var(--reed); }
ul.plain li:last-child { border-bottom: 0; }

.back {
  display: inline-block;
  margin-top: 3rem;
  font-size: .88rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.back:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--navy-deep);
  color: rgba(246,244,239,.62);
  font-size: .8rem;
  padding: 2.5rem 0 3.5rem;
  line-height: 1.8;
}
.site-foot a { color: rgba(246,244,239,.85); }
.site-foot h4 { color: var(--cream-pure); font-size: .85rem; margin: 0 0 .5rem; font-weight: 600; }
.site-foot .legal { border-top: 1px solid rgba(246,244,239,.15); margin-top: 1.5rem; padding-top: 1.2rem; }

/* ---------- floating help ---------- */
.help-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 99px;
  padding: .7rem 1.15rem;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.help-fab:hover { background: #A5301F; color: #fff; }

@media print { .help-fab, .lang-toggle, .site-head { display: none; } }
