/* ============================================
   茶色いしっぽ — styles
   Direction: 温かな相談室 (warm consultation room)
   ============================================ */

:root {
  /* Color palette — warm cream + brown family */
  --bg-primary: #faf6ee;
  --bg-light: #fdfaf3;
  --bg-deep: #f2ead7;
  --bg-footer: #e8dec7;

  --text-primary: #2a2520;
  --text-body: #3d332a;
  --text-muted: #6b5544;
  --text-quiet: #8e7e6e;

  --accent: #8b6f5c;
  --accent-deep: #5e4533;

  --hairline: #d6cdb8;
  --hairline-soft: #e3dcca;

  /* Typography */
  --font-mincho: "Shippori Mincho B1", "Yu Mincho", "YuMincho",
    "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium", "YuGothic", sans-serif;
  --font-en: "EB Garamond", "Shippori Mincho B1", serif;

  /* Layout */
  --content-max: 680px;
  --content-wide: 880px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-body);
  background-color: var(--bg-primary);
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(139, 111, 92, 0.22);
  color: var(--text-primary);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

em {
  font-style: normal;
  position: relative;
  padding: 0 0.1em;
}

em::before,
em::after {
  content: "";
}

/* ---------- Site header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(250, 246, 238, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-deep);
}

.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--text-primary);
}

.site-nav {
  font-size: 13px;
  letter-spacing: 0.18em;
}

.site-nav a {
  color: var(--text-muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.site-nav a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 48px) 80px;
  background: linear-gradient(180deg, #faf6ee 0%, #f5eee0 100%);
  text-align: left;
  overflow: hidden;
}

.hero::before {
  /* Subtle large background mark */
  content: "";
  position: absolute;
  top: 50%;
  right: -120px;
  width: 480px;
  height: 480px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%238b6f5c' stroke-width='1.4' stroke-linecap='round'><path d='M 18 78 C 30 72, 40 60, 44 48 C 47 38, 54 30, 66 32 C 76 34, 78 44, 70 48'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--content-max);
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: none;
}

.hero-eyebrow span {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-eyebrow span:first-child {
  display: none;
}

.hero-eyebrow {
  display: block;
  position: relative;
  padding-left: 44px;
}

.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-heading {
  margin: 0 0 44px;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(28px, 5.2vw, 46px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.hero-sub {
  margin: 0 0 32px;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 2.2;
  color: var(--text-body);
}

.hero-sub em {
  font-family: var(--font-mincho);
  font-style: normal;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  margin: 0 2px;
}

.hero-tail {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  line-height: 2.1;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  max-width: 420px;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-quiet);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-out);
}

.scroll-cue:hover {
  color: var(--accent);
}

.scroll-cue svg {
  width: 12px;
  height: 28px;
  animation: scrollHint 2.4s var(--ease-out) infinite;
}

@keyframes scrollHint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ---------- Sections (shared) ---------- */

.section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 48px);
}

.section-light {
  background: var(--bg-light);
}

.section-deep {
  background: var(--bg-deep);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-heading {
  margin: 0 0 56px;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.prose p {
  margin: 0 0 1.7em;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: var(--text-body);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Section: who ---------- */

.who-list {
  margin: 0 0 48px;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.who-list li {
  position: relative;
  padding: 22px 0 22px 32px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.95;
  color: var(--text-body);
  letter-spacing: 0.06em;
}

.who-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 38px;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.who-note {
  margin: 0;
  font-size: 14px;
  font-style: normal;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ---------- Section: profile ---------- */

.profile-name {
  margin-bottom: 48px;
}

.placeholder {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(139, 111, 92, 0.08);
  border: 1px dashed var(--accent);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.placeholder-block {
  margin: 0 0 1.7em;
}

.placeholder-block .placeholder {
  display: inline-block;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.8;
}

.profile-note {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-quiet);
}

.profile-block {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
}

.profile-subheading {
  margin: 0 0 28px;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  position: relative;
  padding-left: 18px;
}

.profile-subheading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.profile-block .prose em {
  font-style: normal;
  font-family: var(--font-mincho);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

@media (max-width: 640px) {
  .profile-block {
    margin-top: 48px;
    padding-top: 36px;
  }
}

/* ---------- Section: service ---------- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0 0 64px;
}

.service-card {
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--hairline-soft);
  border-radius: 2px;
}

.service-card-cannot {
  background: rgba(139, 111, 92, 0.04);
  border-color: var(--hairline);
}

.service-card-label {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--text-primary);
}

.service-card-cannot .service-card-label {
  color: var(--text-muted);
}

.service-list {
  margin: 0;
  padding: 0;
}

.service-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14.5px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--text-body);
}

.service-card-can .service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.service-card-cannot .service-list li {
  color: var(--text-muted);
}

.service-card-cannot .service-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0;
}

.price-box {
  margin: 0;
  padding: 40px 32px;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  text-align: center;
}

.price-label {
  margin: 0 0 18px;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--accent);
}

.price-amount {
  margin: 0 0 14px;
  font-family: var(--font-mincho);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.price-amount strong {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 44px);
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  margin: 0 2px;
}

.price-yen {
  font-size: 0.82em;
  margin-left: 2px;
}

.price-tax {
  font-size: 0.7em;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-left: 4px;
}

.price-note {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 48px;
  }

  .service-card {
    padding: 26px 22px;
  }

  .price-box {
    padding: 32px 22px;
  }
}

/* ---------- Section: contact ---------- */

.section-contact {
  background: var(--bg-light);
  padding-bottom: clamp(100px, 14vw, 160px);
}

.contact-lede {
  margin: 0 0 48px;
  font-size: 15px;
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: var(--text-body);
}

.contact-mail {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.contact-mail:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

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

.site-footer {
  background: var(--bg-footer);
  padding: 56px clamp(20px, 5vw, 48px);
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--text-primary);
}

.footer-brand .brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px 24px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

.footer-links a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.footer-links a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-quiet);
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-links {
    gap: 4px 18px;
    font-size: 12px;
  }
}

/* ---------- Legal pages (disclaimer / legal / privacy) ---------- */

.legal-main {
  padding: 140px clamp(20px, 5vw, 48px) clamp(80px, 12vw, 120px);
  background: var(--bg-light);
  min-height: 70vh;
}

.legal-page {
  max-width: var(--content-max);
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.legal-back::before {
  content: "←";
  font-family: var(--font-en);
  font-size: 14px;
}

.legal-back:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.legal-heading {
  margin: 0 0 12px;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.legal-meta {
  margin: 0 0 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-quiet);
}

.legal-lede {
  margin: 0 0 48px;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 2.15;
  letter-spacing: 0.06em;
  color: var(--text-body);
}

.legal-section {
  margin: 0 0 40px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-subheading {
  margin: 0 0 16px;
  padding-left: 18px;
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  position: relative;
}

.legal-subheading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.legal-section p {
  margin: 0;
  font-size: clamp(14.5px, 1.55vw, 15.5px);
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--text-body);
}

.legal-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.legal-list-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}

.legal-list-key {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.legal-list-value {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: var(--text-body);
  word-break: break-all;
}

.legal-footnote {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-quiet);
}

@media (max-width: 640px) {
  .legal-main {
    padding-top: 110px;
  }

  .legal-list-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 0;
  }
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue svg {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Mobile adjustments ---------- */

@media (max-width: 640px) {
  body {
    line-height: 1.9;
  }

  .site-header {
    padding: 14px 20px;
  }

  .brand-name {
    font-size: 15px;
    letter-spacing: 0.14em;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 120px;
  }

  .hero::before {
    width: 360px;
    height: 360px;
    right: -160px;
    opacity: 0.05;
  }

  .hero-heading {
    line-height: 1.7;
  }

  .hero-tail {
    margin-top: 40px;
  }

  .section-heading {
    margin-bottom: 40px;
    line-height: 1.7;
  }

  .scroll-cue {
    bottom: 24px;
  }
}

/* Sticky-header styling on scroll — toggled via JS in case we add it */
