/* ============================================
   BIBI — One Bowl, Shared in Peace
   Shared stylesheet (EN / JA)
   ============================================ */

:root {
  --ink: #22211d;
  --ink-soft: #5c584e;
  --paper: #faf8f3;
  --paper-warm: #f3efe6;
  --matcha: #46603f;
  --matcha-deep: #2e4230;
  --matcha-pale: #e6ebe0;
  --gold: #a9835a;
  --line: #e2ddd0;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(34, 33, 29, 0.08);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Noto Serif JP", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46em;
}

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.brand .kanji {
  font-family: var(--font-jp);
  font-size: 1.1rem;
  color: var(--matcha);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--matcha-deep); }

.main-nav a.nav-cta {
  color: var(--white);
  background: var(--matcha-deep);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
}

.main-nav a.nav-cta:hover { background: var(--matcha); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  background: var(--white);
}

.lang-switch a, .lang-switch span {
  text-decoration: none;
  color: var(--ink-soft);
}

.lang-switch .active {
  color: var(--matcha-deep);
  font-weight: 700;
}

.lang-switch .divider { color: var(--line); }

/* Mobile nav: hide inner links, keep CTA + lang */
@media (max-width: 860px) {
  .main-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(70, 96, 63, 0.16), transparent 55%),
    linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  padding: 110px 0 90px;
  overflow: hidden;
}

.hero-inner { max-width: 720px; position: relative; z-index: 2; }

.hero h1 { margin-bottom: 1.2rem; }

.hero .lead { margin-bottom: 2.2rem; }

.enso {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 860px) {
  .enso { width: 280px; right: -90px; opacity: 0.3; }
  .hero { padding: 80px 0 60px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--matcha-deep);
  color: var(--white);
}

.btn-primary:hover { background: var(--matcha); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--matcha-deep);
  border-color: var(--matcha-deep);
}

.btn-secondary:hover { background: var(--matcha-pale); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 84px 0; }

section.tinted { background: var(--paper-warm); }

section.dark {
  background: var(--matcha-deep);
  color: var(--paper);
}

section.dark .eyebrow { color: #cbb894; }
section.dark .lead { color: rgba(250, 248, 243, 0.78); }

.section-head { margin-bottom: 3rem; }

/* ---------- Entry cards (two paths) ---------- */

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

@media (max-width: 760px) { .path-grid { grid-template-columns: 1fr; } }

.path-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}

.path-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(34, 33, 29, 0.12);
}

.path-card .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.path-card p { color: var(--ink-soft); font-size: 0.97rem; flex-grow: 1; }

.path-card .link-hint {
  color: var(--matcha-deep);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ---------- Photo placeholders ---------- */

.ph {
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #dfe5d6 0%, #b9c7ab 45%, #8ba07c 100%);
  position: relative;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}

.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 50%);
}

.ph .ph-label {
  position: relative;
  z-index: 2;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(34, 33, 29, 0.6);
  background: rgba(250, 248, 243, 0.85);
  padding: 0.35rem 0.8rem;
  margin: 0.8rem;
  border-radius: 3px;
}

.ph.portrait { min-height: 420px; background:
    linear-gradient(160deg, #e9e4d6 0%, #cfc8b2 50%, #a8a184 100%); }

/* Real photo inside a .ph placeholder frame */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ph.has-photo::after { display: none; }

.ph.dark-ph { background:
    linear-gradient(135deg, #3a4f38 0%, #2e4230 60%, #22331f 100%); }

.ph.dark-ph .ph-label { background: rgba(34, 51, 31, 0.7); color: rgba(250,248,243,0.75); }

/* ---------- About split ---------- */

.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.split .credentials {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}

.credential {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.credential::before {
  content: "◦";
  color: var(--gold);
  font-weight: 700;
}

blockquote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--matcha-deep);
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  margin-top: 2rem;
}

blockquote .attribution {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- Steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
}

section.dark .step-card {
  background: rgba(250, 248, 243, 0.06);
  border-color: rgba(250, 248, 243, 0.15);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.step-card h3 { margin-bottom: 0.6rem; }

.step-card p { font-size: 0.95rem; color: var(--ink-soft); }

section.dark .step-card p { color: rgba(250, 248, 243, 0.75); }

/* ---------- Way of Tea principles ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 860px) { .principles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .principles-grid { grid-template-columns: 1fr; } }

.principle-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
}

.principle-card .kanji-big {
  font-family: var(--font-jp);
  font-size: 3rem;
  line-height: 1;
  color: var(--matcha-deep);
  margin-bottom: 0.8rem;
}

.principle-card .romaji {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.principle-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

.principle-card p { font-size: 0.9rem; color: var(--ink-soft); }

.ichigo-note {
  max-width: 44em;
  margin: 2.8rem auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--matcha-deep);
  line-height: 1.6;
}

.ichigo-note .plain {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
  line-height: 1.7;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Numbers band ---------- */

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 760px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }

.number-item .big {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--matcha-deep);
  line-height: 1.1;
}

section.dark .number-item .big { color: #cbb894; }

.number-item .small {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

section.dark .number-item .small { color: rgba(250, 248, 243, 0.7); }

/* ---------- Forms (mock) ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
  max-width: 640px;
  margin: 0 auto;
}

.form-grid { display: grid; gap: 1.1rem; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 0.35rem;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--matcha);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.9rem;
}

/* ---------- Inline email signup ---------- */

.signup-row {
  display: flex;
  gap: 0.8rem;
  max-width: 480px;
  margin: 1.8rem auto 0;
}

@media (max-width: 600px) { .signup-row { flex-direction: column; } }

.signup-row input { flex-grow: 1; }

/* ---------- Instagram band ---------- */

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

@media (max-width: 760px) { .insta-grid { grid-template-columns: repeat(2, 1fr); } }

.insta-grid .ph { min-height: 180px; }

/* ---------- Comparison table (business page) ---------- */

.compare-wrap { overflow-x: auto; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.93rem;
}

table.compare th, table.compare td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.compare thead th {
  background: var(--matcha-pale);
  font-weight: 700;
  color: var(--matcha-deep);
}

table.compare td.yes { color: var(--matcha-deep); font-weight: 600; }
table.compare td.no { color: #a0522d; }

/* ---------- FAQ ---------- */

details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.8rem;
}

details.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; }

details.faq[open] summary::after { content: "–"; }

details.faq p { margin-top: 0.8rem; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Timeline (how it works) ---------- */

.timeline { display: grid; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.4rem;
  padding-bottom: 2.2rem;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before { display: none; }

.timeline-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--matcha-pale);
  color: var(--matcha-deep);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-item h3 { margin-bottom: 0.3rem; }
.timeline-item p { color: var(--ink-soft); font-size: 0.97rem; max-width: 40em; }

/* ---------- Notice / placeholder banner ---------- */

.notice {
  background: var(--matcha-pale);
  border: 1px dashed var(--matcha);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  font-size: 0.92rem;
  color: var(--matcha-deep);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1c2419;
  color: rgba(250, 248, 243, 0.75);
  padding: 60px 0 40px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.site-footer .brand { color: var(--paper); margin-bottom: 0.8rem; }

.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cbb894;
  margin-bottom: 1rem;
}

.site-footer a { color: rgba(250, 248, 243, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(250, 248, 243, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(250, 248, 243, 0.5);
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(169, 131, 90, 0.12), transparent 50%),
    var(--matcha-deep);
  color: var(--paper);
  padding: 90px 0 70px;
}

.page-hero .lead { color: rgba(250, 248, 243, 0.8); }

.page-hero .eyebrow { color: #cbb894; }

/* ---------- JA placeholder page ---------- */

.ja-body { font-family: var(--font-jp); }

.ja-body .main-nav a { font-family: var(--font-sans); }
