/* ============================================================
   kusuri-shoku — style
   Palette: washi cream / sumi ink / matcha / vermilion accent
   ============================================================ */
:root {
  --washi: #f7f3ea;
  --washi-2: #efe9dc;
  --sumi: #2b2b28;
  --sumi-soft: #55534c;
  --matcha: #6b7f59;
  --matcha-deep: #4c5c3e;
  --vermilion: #c1442e;
  --kin: #b08d4f;
  --line: rgba(43, 43, 40, 0.14);
  --serif-jp: "Noto Serif JP", "Shippori Mincho", serif;
  --serif-en: "Cormorant Garamond", "Noto Serif JP", serif;
  --shadow: 0 18px 45px rgba(43, 43, 40, 0.12);
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--serif-jp);
  background: var(--washi);
  color: var(--sumi);
  line-height: 1.9;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.site-header.scrolled {
  background: rgba(247, 243, 234, 0.93);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--vermilion); color: var(--washi);
  font-size: 22px; font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(193, 68, 46, .35);
}
.logo-text { font-family: var(--serif-en); font-size: 21px; letter-spacing: .04em; line-height: 1.2; }
.logo-text em { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .35em; color: var(--sumi-soft); }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  font-size: 13.5px; letter-spacing: .12em; position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: var(--vermilion); transition: width .3s;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-family: var(--serif-en); font-size: 13px; }
.lang-btn {
  background: none; border: none; color: var(--sumi-soft);
  padding: 3px 4px; letter-spacing: .05em; border-bottom: 1.5px solid transparent;
  transition: color .25s, border-color .25s;
}
.lang-btn.active { color: var(--vermilion); border-bottom-color: var(--vermilion); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--sumi); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(107, 127, 89, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(176, 141, 79, 0.14), transparent 55%),
    var(--washi);
}
.hero-bg .circle { position: absolute; border-radius: 50%; filter: blur(2px); }
.circle-1 {
  width: 560px; height: 560px; right: -140px; top: -120px;
  border: 1px solid rgba(107, 127, 89, .35);
}
.circle-2 {
  width: 560px; height: 560px; right: -100px; top: -80px;
  border: 1px dashed rgba(193, 68, 46, .25);
  animation: spin 90s linear infinite;
}
.circle-3 {
  width: 340px; height: 340px; left: -120px; bottom: 8%;
  background: radial-gradient(circle, rgba(107, 127, 89, .16), transparent 70%);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-grain {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(43,43,40,.05) 1px, transparent 1px);
  background-size: 26px 26px;
}

.hero-inner { position: relative; padding: 140px 0 90px; max-width: 780px; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 12.5px; letter-spacing: .35em; color: var(--vermilion);
  margin-bottom: 26px;
}
.hero-eyebrow::before { content: ""; width: 56px; height: 1px; background: var(--vermilion); }

.hero-title {
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 700; line-height: 1.35; letter-spacing: .04em;
  margin-bottom: 18px;
}
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--matcha-deep); margin-bottom: 18px; letter-spacing: .08em; }
.hero-desc { color: var(--sumi-soft); max-width: 640px; margin-bottom: 36px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 60px; }

.btn {
  display: inline-block; padding: 14px 34px;
  font-family: var(--serif-jp); font-size: 14px; letter-spacing: .14em;
  border: 1px solid transparent; transition: .3s;
}
.btn-primary {
  background: var(--vermilion); color: #fff;
  box-shadow: 0 10px 26px rgba(193, 68, 46, .32);
}
.btn-primary:hover { background: #a83a26; transform: translateY(-2px); }
.btn-ghost { border-color: var(--sumi); color: var(--sumi); background: transparent; }
.btn-ghost:hover { background: var(--sumi); color: var(--washi); }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat strong {
  display: block; font-family: var(--serif-en);
  font-size: 34px; font-weight: 600; color: var(--matcha-deep);
}
.stat span { font-size: 12.5px; letter-spacing: .12em; color: var(--sumi-soft); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: .3em; color: var(--sumi-soft);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--sumi-soft), transparent); display: block; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-tag {
  display: inline-block; font-family: var(--serif-en);
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--kin); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .05em; line-height: 1.5; }
.section-sub { margin-top: 18px; color: var(--sumi-soft); }

/* ---------- philosophy ---------- */
.philosophy { background: var(--washi-2); }
.ph-grid { display: grid; grid-template-columns: 120px 1fr; gap: 56px; align-items: start; }
.ph-kanji {
  display: flex; flex-direction: column; gap: 18px;
  border-right: 1px solid var(--line); padding-right: 28px;
}
.ph-kanji span {
  font-size: 52px; font-weight: 700; color: var(--matcha-deep);
  writing-mode: vertical-rl;
}
.ph-lede { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.ph-body > p { color: var(--sumi-soft); margin-bottom: 16px; max-width: 760px; }

.ph-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.ph-card {
  background: var(--washi); border: 1px solid var(--line);
  padding: 30px 26px; border-radius: 6px; position: relative;
  transition: transform .35s, box-shadow .35s;
}
.ph-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ph-icon { font-size: 30px; display: block; margin-bottom: 14px; }
.ph-card h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: .06em; }
.ph-card p { font-size: 13.5px; color: var(--sumi-soft); line-height: 1.85; }

/* ---------- ingredients ---------- */
.ing-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 46px; }
.filter-btn {
  padding: 9px 24px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 13px; letter-spacing: .08em; color: var(--sumi-soft);
  transition: .3s;
}
.filter-btn:hover { border-color: var(--matcha); color: var(--matcha-deep); }
.filter-btn.active { background: var(--matcha-deep); border-color: var(--matcha-deep); color: var(--washi); }

.ing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ing-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 28px 24px;
  transition: transform .35s ease, box-shadow .35s;
}
.ing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ing-photo {
  display: block;
  width: 100%; height: 150px;
  border-radius: 6px; overflow: hidden;
  margin-bottom: 16px;
  background: var(--washi-2);
}
.ing-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.ing-card:hover .ing-photo img { transform: scale(1.06); }
.ing-icon {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--washi-2); font-size: 26px; margin-bottom: 16px;
}
.ing-card h3 { font-size: 15.5px; margin-bottom: 8px; letter-spacing: .04em; }
.ing-card p { font-size: 13px; color: var(--sumi-soft); line-height: 1.8; }

/* ---------- guide CTA ---------- */
.guide-cta {
  margin-top: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 38px 42px;
  background: linear-gradient(120deg, rgba(107, 127, 89, .14), rgba(176, 141, 79, .12)), var(--washi-2);
  border: 1px solid var(--line); border-radius: 8px;
}
.guide-cta-text h3 { font-size: 20px; letter-spacing: .04em; margin-bottom: 8px; }
.guide-cta-text p { font-size: 13.5px; color: var(--sumi-soft); max-width: 640px; }
.btn-guide {
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  padding: 15px 32px;
  background: var(--matcha-deep); color: var(--washi);
  font-size: 14px; letter-spacing: .1em; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(76, 92, 62, .3);
  transition: background .3s, transform .3s;
}
.btn-guide:hover { background: #3d4a31; transform: translateY(-2px); }


@media (max-width: 720px) {
  .guide-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- services ---------- */
.services { background: var(--washi-2); }
.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sv-card {
  background: var(--washi); border: 1px solid var(--line); border-radius: 6px;
  padding: 40px 30px; position: relative;
  transition: transform .35s, box-shadow .35s;
}
.sv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sv-card.featured { background: var(--matcha-deep); color: var(--washi); border: none; }
.sv-num {
  position: absolute; top: 22px; right: 26px;
  font-size: 26px; color: rgba(176, 141, 79, .55);
}
.sv-card.featured .sv-num { color: rgba(247, 243, 234, .4); }
.sv-card h3 { font-size: 19px; margin-bottom: 14px; letter-spacing: .05em; }
.sv-card > p { font-size: 13.5px; color: var(--sumi-soft); margin-bottom: 20px; }
.sv-card.featured > p { color: rgba(247, 243, 234, .82); }
.sv-card ul { list-style: none; }
.sv-card li {
  font-size: 13px; padding: 9px 0 9px 22px; position: relative;
  border-top: 1px dashed var(--line); color: var(--sumi-soft);
}
.sv-card.featured li { color: rgba(247, 243, 234, .85); border-top-color: rgba(247, 243, 234, .2); }
.sv-card li::before { content: "◦"; position: absolute; left: 4px; color: var(--vermilion); }
.sv-card.featured li::before { color: #e9c68a; }

/* ---------- process ---------- */
.pr-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.pr-step { position: relative; padding-top: 34px; border-top: 1px solid var(--line); }
.pr-dot {
  position: absolute; top: -7px; left: 0;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--vermilion); box-shadow: 0 0 0 5px rgba(193, 68, 46, .15);
}
.pr-step h3 { font-size: 16.5px; margin-bottom: 10px; letter-spacing: .05em; }
.pr-step p { font-size: 13.5px; color: var(--sumi-soft); }

/* ---------- quote ---------- */
.quote-band {
  padding: 90px 0; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(107, 127, 89, .18), transparent 70%),
    var(--sumi);
  color: var(--washi);
}
.quote-jp { font-size: clamp(22px, 3.2vw, 32px); letter-spacing: .12em; margin-bottom: 18px; }
.quote-en { font-family: var(--serif-en); font-style: italic; font-size: 17px; color: rgba(247, 243, 234, .75); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.contact-info .section-tag { margin-bottom: 18px; }
.contact-info h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; }
.contact-info > p { color: var(--sumi-soft); margin-bottom: 34px; }
.contact-details div { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-details dt { width: 90px; font-size: 12.5px; letter-spacing: .15em; color: var(--kin); }
.contact-details dd { font-size: 14.5px; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 40px 36px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; letter-spacing: .12em; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--serif-jp); font-size: 14px; color: var(--sumi);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--washi); transition: border-color .25s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--matcha);
}
.form-note { font-size: 13px; }
.form-note.ok { color: var(--matcha-deep); }
.form-note.ng { color: var(--vermilion); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sumi); color: rgba(247, 243, 234, .8);
  padding: 44px 0; text-align: center; font-size: 13px;
}
.footer-logo { font-size: 16px; letter-spacing: .2em; color: var(--washi); margin-bottom: 10px; }
.footer-disclaimer { margin-top: 8px; font-size: 11.5px; color: rgba(247, 243, 234, .45); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .ing-grid { grid-template-columns: repeat(3, 1fr); }
  .ph-grid { grid-template-columns: 1fr; }
  .ph-kanji { flex-direction: row; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
  .ph-kanji span { writing-mode: horizontal-tb; font-size: 38px; }
  .pr-steps, .sv-grid, .ph-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 720px) {
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--washi); box-shadow: -10px 0 40px rgba(0,0,0,.12);
    flex-direction: column; gap: 10px; padding: 110px 36px 40px;
    transform: translateX(100%); transition: transform .35s;
    margin-left: 0;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 17px; }
  .nav-toggle { display: flex; z-index: 110; }
  .ing-grid, .pr-steps, .sv-grid, .ph-cards, .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .section { padding: 80px 0; }
}
