/* ===========================================================
   ebina design — shared styles
   Natural / craft direction · sage + moss + sand
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@400;500;600;700;800&family=Noto+Serif+JP:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600&display=swap');

:root {
  /* paper + ink */
  --paper:        #fbf6ed;
  --paper-2:      #f3ecdd;
  --paper-3:      #ebe2cf;
  --ink:          #2a2824;
  --ink-2:        #5b5750;
  --ink-3:        #8a857a;
  --ink-4:        #b8b2a3;

  /* nature accents */
  --moss:         #3a4a3a;   /* deep green — primary */
  --moss-deep:    #2a3329;
  --sage:         #8a9d7e;
  --sand:         #d4c2a3;
  --sand-deep:    #b89e75;
  --clay:         #a87c5c;
  --terra:        #c66a4d;   /* used very sparingly */

  /* lines & shadows */
  --line:         rgba(58, 47, 33, 0.14);
  --line-2:       rgba(58, 47, 33, 0.28);
  --shadow-soft:  0 1px 0 rgba(58,47,33,0.04), 0 24px 60px -32px rgba(58,47,33,0.18);

  /* type */
  --f-display:    'Shippori Mincho B1', 'Noto Serif JP', serif;
  --f-serif:      'Noto Serif JP', 'Shippori Mincho B1', serif;
  --f-sans:       'Noto Sans JP', system-ui, sans-serif;

  /* spacing rhythm */
  --gutter:       clamp(20px, 4vw, 56px);
  --section-y:    clamp(80px, 11vw, 160px);

  /* container */
  --max:          1240px;
  --max-narrow:   880px;
  --max-wide:     1480px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--f-serif);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 1;
  position: relative;
  overflow-x: hidden;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.22  0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* type defaults */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

/* ====== container ====== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ====== eyebrow / section heading patterns ====== */
.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--moss);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px; background: var(--moss);
  display: inline-block;
}

.section-label {
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.h-display {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1.35;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.h-section {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.45;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.h-card {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.text-en {
  font-family: 'Cormorant Garamond', 'Shippori Mincho B1', serif;
  font-style: italic;
  font-weight: 400;
}

/* ====== buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-family: var(--f-serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
  background: none;
  color: inherit;
  line-height: 1;
}
.btn .arrow {
  width: 22px; height: 1px; background: currentColor; position: relative;
  transition: width 0.4s cubic-bezier(.2,.7,.2,1);
}
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 7px; height: 1px; background: currentColor;
  transform: translateY(-3px) rotate(40deg); transform-origin: right center;
}
.btn:hover .arrow { width: 36px; }

.btn-primary {
  background: var(--moss);
  color: var(--paper);
  border-color: var(--moss);
}
.btn-primary:hover { background: var(--moss-deep); border-color: var(--moss-deep); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-line {
  border: none;
  padding: 16px 0;
  border-radius: 0;
  border-bottom: 1px solid var(--ink);
  letter-spacing: 0.2em;
}
.btn-line:hover { padding-left: 8px; }

/* ====== header (shared) ====== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 237, 0.86);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  max-width: var(--max-wide);
  margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--f-display);
  letter-spacing: 0.18em;
}
.brand__mark {
  font-size: 22px; font-weight: 500; color: var(--ink);
}
.brand__sub {
  font-family: var(--f-sans);
  font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding-bottom: 2px;
}
.brand__mark .dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--moss);
  vertical-align: middle;
  margin: 0 4px 4px 0;
}
.nav {
  display: flex; align-items: center; gap: 36px;
}
.nav a {
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav a small {
  display: block;
  font-family: var(--f-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}
.nav a.is-active::after,
.nav a:hover::after {
  content: "";
  position: absolute; left: 50%; bottom: -6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--moss);
  transform: translateX(-50%);
}
.header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-serif);
  font-size: 13px; letter-spacing: 0.18em;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: all .35s ease;
}
.header__cta:hover { background: var(--ink); color: var(--paper); }

.mobile-menu-btn {
  display: none;
  background: none; border: none;
  width: 32px; height: 24px;
  position: relative; cursor: pointer;
  padding: 0;
}
.mobile-menu-btn span {
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--ink);
  transition: all .3s ease;
}
.mobile-menu-btn span:nth-child(1) { top: 6px; }
.mobile-menu-btn span:nth-child(2) { top: 16px; width: 70%; }

/* ====== footer (shared) ====== */
.site-footer {
  margin-top: var(--section-y);
  padding: clamp(60px, 8vw, 110px) var(--gutter) 40px;
  background: var(--moss-deep);
  color: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand-mark {
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: 0.16em;
  color: var(--paper);
  margin-bottom: 18px;
}
.footer-tag {
  font-family: var(--f-serif);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(251, 246, 237, 0.65);
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-family: var(--f-serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(251, 246, 237, 0.8);
  transition: color .25s ease;
}
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(251, 246, 237, 0.4);
}

/* ====== ornaments ====== */
.ornament-line {
  display: block;
  width: 1px; height: 80px;
  background: var(--line-2);
  margin: 0 auto;
}
.ornament-dot {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--moss);
  vertical-align: middle;
}
.handdrawn-underline {
  position: relative;
  display: inline-block;
}
.handdrawn-underline::after {
  content: "";
  position: absolute; left: -4px; right: -4px; bottom: -2px;
  height: 6px;
  background: var(--sand);
  z-index: -1;
  opacity: 0.85;
  border-radius: 50%;
  transform: skewX(-4deg);
}

/* placeholder photo blocks */
.photo {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
}
.photo--tall { aspect-ratio: 3/4; }
.photo--wide { aspect-ratio: 16/10; }
.photo--square { aspect-ratio: 1/1; }
.photo--portrait { aspect-ratio: 4/5; }
.photo__caption {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-3);
  text-transform: uppercase;
}
/* organic placeholder textures */
.photo--moss { background: linear-gradient(135deg, #4a5a44, #3a4a3a 60%, #2a3329); }
.photo--moss .photo__caption { color: rgba(255,255,255,0.5); }
.photo--sage { background: linear-gradient(135deg, #a3b297, #8a9d7e 60%, #6b7d62); }
.photo--sage .photo__caption { color: rgba(255,255,255,0.6); }
.photo--sand { background: linear-gradient(135deg, #e6d3b3, #d4c2a3 60%, #b89e75); }
.photo--sand .photo__caption { color: var(--ink-2); }
.photo--clay { background: linear-gradient(135deg, #c89876, #a87c5c 60%, #835f44); }
.photo--clay .photo__caption { color: rgba(255,255,255,0.6); }
.photo--paper { background: linear-gradient(135deg, var(--paper-2), var(--paper-3)); }
.photo--paper .photo__caption { color: var(--ink-3); }

/* organic blob ornament — for decorative bgs */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* medium — tighten header so it fits ~880–1180px */
@media (max-width: 1180px) {
  .nav { gap: 22px; }
  .nav a { font-size: 13px; letter-spacing: 0.1em; }
  .nav a small { display: none; }
  .brand__sub { display: none; }
  .brand__mark { font-size: 19px; letter-spacing: 0.14em; }
  .header__cta { font-size: 12px; letter-spacing: 0.14em; padding: 10px 16px; white-space: nowrap; }
  .site-header__inner { padding: 18px var(--gutter); gap: 16px; }
}

/* mobile */
@media (max-width: 880px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* utility */
.text-center { text-align: center; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 28px; }
.mb-lg { margin-bottom: 48px; }
.mb-xl { margin-bottom: 80px; }

/* tiny tag style */
.tag {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255,255,255,0.4);
}
.tag--filled {
  background: var(--moss);
  color: var(--paper);
  border-color: var(--moss);
}
