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

:root {
  --cream:  #faf8f4;
  --light:  #f3eee6;
  --line:   #e6ddd2;
  --accent: #b8986a;
  --accent-soft: #e9dcc4;
  --brown:  #6f5a4e;
  --dark:   #2f2724;
  --muted:  #8d7f74;
  --white:  #ffffff;
  --line-green: #06c755;
}
.theme-rose {
  --accent: #c9a8a0;
  --accent-soft: #eddcd7;
  --light: #f5eeea;
  --line: #e8d5cc;
}

html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--dark);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  position: sticky; top: 0; z-index: 10;
}
.brand { text-decoration: none; line-height: 1.1; }
.brand b {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.32em;
  color: var(--brown);
}
.brand span {
  font-size: 0.66rem; letter-spacing: 0.16em; color: var(--muted);
}
.nav-links { display: flex; gap: 14px; font-size: 0.78rem; letter-spacing: 0.1em; }
.nav-links a { text-decoration: none; color: var(--brown); border-bottom: 1px solid transparent; }
.nav-links a:hover { border-color: var(--accent); }

/* hero */
.hero {
  background: var(--light);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.8;
}
.hero::after {
  content: ''; position: absolute; bottom: -120px; left: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: 0.6;
}
.hero > * { position: relative; }
.eyebrow {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--accent); font-size: 1rem; letter-spacing: 0.2em; margin-bottom: 14px;
}
.eyebrow-ja { font-size: 0.8rem; letter-spacing: 0.22em; color: var(--brown); margin-bottom: 18px; }
.hero h1 {
  font-family: 'Noto Serif JP', serif; font-weight: 400;
  font-size: clamp(1.55rem, 5.2vw, 2.5rem); line-height: 1.65; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); border-bottom: 1px solid var(--accent); }
.hero p.sub { color: var(--brown); font-size: 0.95rem; max-width: 560px; margin: 0 auto 32px; line-height: 2; }
.hero-photo {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 70% 20%;
  margin: 0 auto 22px; border: 4px solid var(--white); box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* buttons */
.btn {
  display: inline-block; text-decoration: none;
  background: var(--dark); color: #fff;
  padding: 16px 40px; border-radius: 3px;
  font-family: 'Noto Serif JP', serif; font-size: 0.98rem; letter-spacing: 0.14em;
  transition: background .25s, transform .15s;
}
.btn:hover { background: var(--brown); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--dark); border: 1px solid var(--dark); }
.btn.ghost:hover { background: var(--dark); color: #fff; }
.btn.line { background: var(--line-green); }
.btn.line:hover { background: #05a847; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-note { font-size: 0.76rem; color: var(--muted); margin-top: 12px; letter-spacing: 0.06em; }

/* sections */
section { padding: 72px 24px; }
section.tint { background: var(--light); }
.inner { max-width: 880px; margin: 0 auto; }
.inner.narrow { max-width: 680px; }
h2 {
  font-family: 'Noto Serif JP', serif; font-weight: 400;
  font-size: clamp(1.3rem, 3.6vw, 1.7rem); line-height: 1.6;
  text-align: center; margin-bottom: 10px;
}
.h2-en {
  text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--accent); letter-spacing: 0.2em; font-size: 0.95rem; margin-bottom: 40px;
}
.lead { text-align: center; color: var(--brown); font-size: 0.95rem; max-width: 620px; margin: -16px auto 40px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.stat b { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 2.2rem; color: var(--accent); line-height: 1.1; }
.stat b small { font-size: 1rem; font-family: 'Noto Serif JP', serif; color: var(--brown); margin-left: 2px; }
.stat span { font-size: 0.8rem; color: var(--brown); letter-spacing: 0.08em; }

/* lists */
.pain { list-style: none; display: grid; gap: 12px; }
.pain li {
  background: var(--white); border-left: 3px solid var(--accent);
  padding: 16px 20px; border-radius: 0 4px 4px 0; font-size: 0.95rem;
}
.pain li::before { content: '「'; color: var(--accent); }
.pain li::after { content: '」'; color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; }
.card .num { font-family: 'Cormorant Garamond', serif; color: var(--accent); font-size: 1.4rem; letter-spacing: 0.1em; margin-bottom: 6px; }
.card h3 { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.08rem; margin-bottom: 10px; line-height: 1.5; }
.card p { font-size: 0.88rem; color: var(--brown); }
.card .tag { display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--accent-soft); padding: 2px 8px; border-radius: 20px; margin-top: 12px; }

.steps { counter-reset: s; list-style: none; display: grid; gap: 14px; }
.steps li { position: relative; padding: 18px 20px 18px 66px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-size: 0.92rem; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 20px; top: 16px;
  font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--accent); line-height: 1;
}
.steps li b { display: block; font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1rem; margin-bottom: 4px; }

/* profile */
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.profile img { width: 200px; height: 240px; object-fit: cover; object-position: 70% 15%; border-radius: 6px; }
.profile h3 { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.25rem; margin-bottom: 4px; }
.profile .role { font-size: 0.8rem; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 16px; }
.profile p { font-size: 0.9rem; color: var(--brown); margin-bottom: 12px; }
@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; }
  .profile img { width: 160px; height: 190px; margin: 0 auto; }
  .profile h3, .profile .role { text-align: center; }
}

/* company table */
.company { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--white); }
.company th, .company td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company th { width: 32%; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; font-size: 0.82rem; }
.company a { color: var(--brown); }

/* diagnosis */
.diag { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 30px 24px; }
.q { display: none; }
.q.active { display: block; }
.q-num { font-family: 'Cormorant Garamond', serif; color: var(--accent); letter-spacing: 0.2em; font-size: 0.95rem; margin-bottom: 8px; }
.q h3 { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.12rem; line-height: 1.6; margin-bottom: 18px; }
.opts { display: grid; gap: 10px; }
.opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--cream); border: 1px solid var(--line); border-radius: 6px;
  padding: 14px 16px; font-family: inherit; font-size: 0.92rem; color: var(--dark); line-height: 1.6;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--accent); background: var(--white); }
.progress { height: 3px; background: var(--line); border-radius: 3px; margin-bottom: 22px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.result { display: none; }
.result.active { display: block; }
.result .type-en { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--accent); letter-spacing: 0.2em; text-align: center; }
.result h3 { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.35rem; text-align: center; margin: 4px 0 18px; line-height: 1.5; }
.result p { font-size: 0.92rem; color: var(--brown); margin-bottom: 14px; }
.result .box { background: var(--cream); border-radius: 6px; padding: 18px 20px; margin: 16px 0; }
.result .box b { display: block; font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 0.95rem; color: var(--dark); margin-bottom: 8px; }
.result .box ul { padding-left: 1.2em; font-size: 0.9rem; color: var(--brown); }
.result .box ul li { margin-bottom: 4px; }
.retry { display: block; text-align: center; margin-top: 16px; font-size: 0.8rem; color: var(--muted); background: none; border: none; cursor: pointer; text-decoration: underline; font-family: inherit; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery img { width: 100%; height: 260px; object-fit: cover; border-radius: 6px; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* doors (top page) */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.door {
  display: block; text-decoration: none; background: var(--white);
  border: 1px solid var(--line); border-radius: 8px; padding: 34px 28px;
  transition: transform .15s, box-shadow .15s;
}
.door:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.door .en { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--accent); letter-spacing: 0.18em; font-size: 0.95rem; }
.door h3 { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.25rem; margin: 6px 0 12px; line-height: 1.5; }
.door p { font-size: 0.88rem; color: var(--brown); margin-bottom: 18px; }
.door .go { font-size: 0.82rem; letter-spacing: 0.12em; color: var(--dark); border-bottom: 1px solid var(--accent); display: inline-block; }

/* contact */
.contact { text-align: center; }
.contact p { color: var(--brown); font-size: 0.95rem; max-width: 560px; margin: 0 auto 26px; }

/* footer */
footer { padding: 40px 24px 48px; text-align: center; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }
footer .brand { display: inline-block; margin-bottom: 14px; }
footer .flinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 14px; }
footer .flinks a { text-decoration: none; color: var(--brown); }
