/* ==========================================================================
   筆処 和灯〜watou〜 marketing site styles
   ========================================================================== */

* { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  background: var(--paper);
  color: var(--fg-1);
}

img, svg { max-width: 100%; }

/* Page-wide paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("assets/washi-texture.svg");
  background-size: 400px 400px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

#app { position: relative; z-index: 1; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  border-radius: var(--radius-xs);
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-ink);
  text-decoration: none; line-height: 1;
  user-select: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); transition-duration: 60ms; }

.btn-primary { background: var(--sumi); color: var(--paper); }
.btn-primary:hover { background: #050403; color: var(--paper); }

.btn-outline { background: transparent; color: var(--sumi); border-color: var(--sumi); }
.btn-outline:hover { background: var(--sumi); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--sumi); }
.btn-ghost:hover { background: var(--paper-sunk); color: var(--sumi); }

.btn-accent { background: var(--shu); color: var(--paper); }
.btn-accent:hover { background: #a3382f; color: var(--paper); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 15px; }

/* --- Site nav ------------------------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-edge);
}
.site-nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg-1); }
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.02em; line-height: 1;
}
.brand-text small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 9px; letter-spacing: 0.22em; color: var(--fg-3);
  margin-top: 4px; text-transform: lowercase;
}
.nav-links { display: flex; gap: 30px; }
.nav-link {
  font-family: var(--font-body); font-size: 13px;
  color: var(--fg-1); text-decoration: none;
  position: relative; padding: 6px 0;
  transition: color var(--dur-base) var(--ease-ink);
}
.nav-link:hover { color: var(--shu); text-decoration: none; }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--shu);
}

/* --- Section wrappers ---------------------------------------------------- */
.section {
  position: relative;
  padding: var(--space-9) 0;
}
.section-inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 32px;
}
.section-inner.narrow { max-width: 880px; }

.section-head { margin-bottom: var(--space-7); max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-3xl); line-height: 1.1;
  letter-spacing: -0.01em; margin: 6px 0 12px;
}
.section-title small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--fg-3); margin-top: 8px; text-transform: lowercase;
}
.section-sub {
  font-family: var(--font-body); font-size: var(--fs-md);
  color: var(--fg-2); margin: 0; line-height: 1.7;
}

/* --- HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 86vh;
  padding: 100px 0 120px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 32px;
}
.hero-enso {
  position: absolute; top: 4%; right: -60px; z-index: 1;
  animation: drawIn var(--dur-draw) var(--ease-ink) both;
}
.hero-vertical {
  position: absolute; top: 12%; right: 60px; z-index: 1;
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: 0.4em;
  color: var(--ink-700); opacity: 0.55;
}
.hero-paper {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 30% 40%, rgba(212, 154, 60, 0.10), transparent 70%);
  z-index: 0;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 14px 0 28px;
  max-width: 11ch;
}
.hero-title .ink-accent { position: relative; }
.hero-title .ink-accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.32em; background: rgba(212, 154, 60, 0.32); z-index: -1;
}
.hero-title .hanko {
  vertical-align: middle; margin-left: 18px;
  transform: rotate(-4deg);
}
.hero-lead {
  font-family: var(--font-body); font-size: var(--fs-md);
  line-height: 1.95; color: var(--fg-2);
  max-width: 36ch; margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-meta {
  display: flex; align-items: center; gap: 28px;
  padding-top: 28px; border-top: 1px solid var(--paper-edge);
  max-width: 640px;
}
.hero-meta-item {}
.hero-meta-num {
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  line-height: 1.1; color: var(--fg-1);
}
.hero-meta-num.signature-num { font-family: var(--font-hand); font-weight: 600; }
.hero-meta-lbl {
  font-family: var(--font-body); font-size: 11px;
  letter-spacing: 0.18em; color: var(--fg-3);
  margin-top: 6px; text-transform: lowercase;
}
.hero-meta-rule { width: 1px; height: 36px; background: var(--paper-edge); }

@keyframes drawIn { from { opacity: 0; transform: rotate(-6deg) scale(0.95); } to { opacity: 1; transform: rotate(0) scale(1); } }

/* --- ABOUT ---------------------------------------------------------------- */
.about { background: linear-gradient(180deg, transparent, rgba(212, 154, 60, 0.05) 50%, transparent); }
.about-grid {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 64px; align-items: center; margin-top: 32px;
}
.about-copy p { font-size: var(--fs-md); line-height: 1.9; color: var(--fg-1); margin: 0 0 18px; }
.about-copy .lead { color: var(--fg-1); font-weight: 500; }
.about-copy em { font-style: normal; color: var(--shu); font-weight: 600; }
.about-copy .signature { font-family: var(--font-hand); font-size: 20px; color: var(--fg-2); margin-top: 28px; }

.about-aside { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.vertical-quote {
  writing-mode: vertical-lr;
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: 0.35em;
  color: var(--fg-1);
  padding: 18px 12px; border-left: 1px solid var(--paper-edge);
  display: flex; flex-direction: column; gap: 0;
}
.vertical-quote span { line-height: 1.4; }

/* --- CLASSES -------------------------------------------------------------- */
.classes-section { background: var(--sumi); color: var(--paper); }
.classes-section .section-title { color: var(--paper); }
.classes-section .section-sub { color: rgba(246, 241, 231, 0.7); }
.classes-section .eyebrow { color: rgba(246, 241, 231, 0.55); }

.class-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 24px;
}
.class-card {
  position: relative;
  background: var(--paper-raised); color: var(--fg-1);
  border-radius: var(--radius-md);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--dur-base) var(--ease-ink), box-shadow var(--dur-base) var(--ease-ink);
}
.class-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.class-card.is-featured { transform: translateY(-6px); }
.class-card.is-featured:hover { transform: translateY(-10px); }
.class-card.is-featured::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--shu);
  border-radius: var(--radius-md); pointer-events: none;
  margin: -4px;
}
.class-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--shu); color: var(--paper);
  padding: 5px 12px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; border-radius: var(--radius-xs);
  white-space: nowrap;
}
.class-tag {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-body); font-size: 11px;
  letter-spacing: 0.16em; color: var(--fg-3);
  padding: 4px 10px; border: 1px solid var(--paper-edge);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.class-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; margin: 4px 0 0; color: var(--fg-1);
  line-height: 1.2;
}
.class-title .romaji { font-family: var(--font-body); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; color: var(--fg-3); }
.class-desc { font-size: 13px; line-height: 1.8; color: var(--fg-2); margin: 0; flex-grow: 1; }
.class-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.class-list li { font-size: 12px; color: var(--fg-2); padding-left: 18px; position: relative; }
.class-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 1px; background: var(--sumi);
}
.class-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--paper-edge);
  margin-top: 6px;
}
.class-price { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; }
.class-duration { font-size: 11px; color: var(--fg-3); margin-top: 4px; letter-spacing: 0.08em; }

.classes-note { color: rgba(246, 241, 231, 0.55); margin-top: 32px; text-align: center; }

/* --- SHOP ---------------------------------------------------------------- */
.shop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 24px;
}
.product-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-ink), box-shadow var(--dur-base) var(--ease-ink);
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.product-thumb {
  position: relative; height: 220px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-char {
  font-family: var(--font-display); font-weight: 700;
  font-size: 140px; line-height: 1; color: var(--sumi);
  opacity: 0.88; transform: rotate(-3deg);
}
.product-stamp { position: absolute; bottom: 14px; right: 14px; }
.product-body { padding: 20px 22px 22px; }
.product-meta { margin-bottom: 8px; }
.product-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fg-1); }
.product-meta .romaji { font-size: 10px; color: var(--fg-3); margin-left: 6px; }
.product-desc { font-size: 12.5px; line-height: 1.75; color: var(--fg-2); margin: 0 0 14px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--paper-edge); }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.product-link { font-size: 12px; color: var(--fg-1); text-decoration: none; font-weight: 500; }
.product-link:hover { color: var(--shu); }

.classes-note { font-size: 12px; color: var(--fg-3); margin-top: 28px; text-align: center; }

/* --- TEACHER ------------------------------------------------------------- */
.teacher-section { padding: var(--space-9) 0; background: linear-gradient(180deg, transparent, rgba(26, 22, 19, 0.03)); }
.teacher-grid {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 64px; align-items: center;
}
.portrait-frame {
  position: relative;
  background: var(--sumi);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.portrait-vertical {
  writing-mode: vertical-rl;
  font-family: var(--font-display); font-weight: 700;
  font-size: 56px; letter-spacing: 0.15em;
  color: var(--paper);
  display: flex; flex-direction: column;
}
.portrait-vertical span { line-height: 1.2; }
.portrait-caption {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-family: var(--font-body); font-size: 9px;
  letter-spacing: 0.18em; color: rgba(246, 241, 231, 0.4);
  text-transform: lowercase; text-align: center;
}
.portrait-hanko { position: absolute; top: 18px; right: 18px; }

.teacher-copy h2 { margin-bottom: 12px; }
.teacher-copy .romaji { display: inline; font-size: 0.32em; margin-left: 12px; vertical-align: middle; }
.teacher-copy .lead { font-size: var(--fs-md); margin: 0 0 18px; color: var(--fg-1); font-weight: 500; }
.teacher-copy p { line-height: 1.9; color: var(--fg-2); margin: 0 0 14px; }

.teacher-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.social-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--paper-raised); border: 1px solid var(--paper-edge);
  border-radius: var(--radius-pill); font-size: 13px;
  color: var(--fg-1); text-decoration: none;
  transition: all var(--dur-base) var(--ease-ink);
}
.social-pill:hover { border-color: var(--sumi); transform: translateY(-1px); text-decoration: none; }
.social-pill .rom { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }

/* --- CONTACT ------------------------------------------------------------- */
.contact-section { background: var(--paper-raised); padding: var(--space-9) 0; }
.contact-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px 24px; margin-top: 32px;
}
.field { display: block; }
.field-full { grid-column: 1 / -1; }
.field-lbl {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--fg-2); margin-bottom: 8px; letter-spacing: 0.04em;
}
.field-lbl .opt { font-weight: 400; color: var(--fg-3); margin-left: 4px; }
.input, .textarea, .select {
  width: 100%; box-sizing: border-box;
  padding: 13px 14px;
  font-family: var(--font-body); font-size: 14px;
  background: var(--paper); color: var(--fg-1);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-ink);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--sumi); }
.textarea { resize: vertical; min-height: 100px; line-height: 1.7; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip {
  display: inline-flex; align-items: center;
  padding: 10px 16px; cursor: pointer;
  font-family: var(--font-body); font-size: 13px;
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-ink);
  color: var(--fg-2);
  white-space: nowrap;
}
.radio-chip input { display: none; }
.radio-chip:hover { border-color: var(--ink-500); color: var(--fg-1); }
.radio-chip.is-on { background: var(--sumi); color: var(--paper); border-color: var(--sumi); }

.contact-actions {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 20px;
  margin-top: 4px;
}
.contact-actions .caption { margin: 0; }

.contact-thanks {
  text-align: center; padding: 56px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.contact-thanks .hanko { transform: rotate(-4deg); margin-bottom: 6px; }

/* --- FOOTER -------------------------------------------------------------- */
.site-footer {
  background: var(--sumi); color: var(--paper);
  padding: var(--space-8) 32px var(--space-5);
}
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 56px;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
}
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { filter: invert(1) brightness(1.5); opacity: 0.95; }
.footer-name {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  line-height: 1.2; margin-bottom: 4px;
}
.footer-rom {
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.22em; color: rgba(246, 241, 231, 0.55);
}
.footer-org {
  font-family: var(--font-body); font-size: 12px;
  color: rgba(246, 241, 231, 0.55); margin-top: 10px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-h {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  margin-bottom: 8px; color: var(--paper);
}
.footer-cols a {
  font-family: var(--font-body); font-size: 13px;
  color: rgba(246, 241, 231, 0.7); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-ink);
}
.footer-cols a:hover { color: var(--paper); text-decoration: none; }

.footer-bottom {
  max-width: var(--container); margin: 0 auto;
  padding-top: var(--space-5);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-size: 11px;
  color: rgba(246, 241, 231, 0.45); letter-spacing: 0.08em;
}
.footer-mini { font-family: var(--font-hand); font-size: 13px; letter-spacing: 0; }

/* --- Hamburger menu ------------------------------------------------------- */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer; padding: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg-1);
  transition: all 0.25s var(--ease-ink);
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta-mobile { display: none; }

/* --- Responsive: tablet (≤900px) ----------------------------------------- */
@media (max-width: 900px) {
  .site-nav { padding: 0 20px; }
  .nav-hamburger { display: flex; }
  .nav-cta-desktop { display: none; }

  .nav-links {
    display: none;
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: rgba(246, 241, 231, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column; align-items: stretch;
    padding: 32px 24px 40px;
    gap: 4px;
    overflow-y: auto;
    z-index: 49;
  }
  .nav-links.is-open { display: flex; }
  .nav-link {
    font-size: 18px; padding: 14px 0;
    border-bottom: 1px solid var(--paper-edge);
  }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; margin-top: 20px; }

  .section { padding: var(--space-7) 0; }
  .section-inner { padding: 0 20px; }
  .hero { min-height: auto; padding: 64px 0 72px; }
  .hero-inner { padding: 0 20px; }
  .hero-vertical, .hero-enso { display: none; }
  .hero-cta { margin-bottom: 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-aside { flex-direction: row; }

  .class-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .teacher-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait-frame { max-width: 280px; margin: 0 auto; }

  .contact-form { grid-template-columns: 1fr; gap: 16px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 0 20px var(--space-6); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .site-footer { padding: var(--space-7) 0 var(--space-5); }
  .footer-bottom { padding: var(--space-5) 20px 0; flex-direction: column; gap: 8px; text-align: center; }
}

/* --- Responsive: phone (≤480px) ------------------------------------------ */
@media (max-width: 480px) {
  .site-nav { padding: 0 16px; }
  .brand-text { font-size: 16px; }

  .section-inner { padding: 0 16px; }
  .hero { padding: 48px 0 56px; }
  .hero-inner { padding: 0 16px; }
  .hero-cta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-meta { flex-wrap: wrap; gap: 16px; }

  .class-grid, .shop-grid { grid-template-columns: 1fr; }
  .class-card { padding: 24px 20px 20px; }

  .product-thumb { height: 180px; }
  .product-char { font-size: 110px; }

  .teacher-links { gap: 8px; }
  .social-pill { padding: 8px 12px; font-size: 12px; }

  .footer-cols { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 16px var(--space-5); }
  .footer-bottom { padding: var(--space-4) 16px 0; }
}
