/* =========================================================
   伊豆みまもり屋 - LP Stylesheet
   ========================================================= */

:root {
  /* Brand colors (fixed per brand guideline) */
  --color-deep-green: #5c6b45;
  --color-deep-green-dark: #48542f;
  --color-olive: #8a9a6e;
  --color-ivory: #f6f3ea;
  --color-ivory-2: #efe9d8;
  --color-ink: #3c3a32;
  --color-gold: #c8a35a;
  --color-line: #06c755;
  --color-line-dark: #05a648;
  --color-white: #ffffff;

  /* Semantic */
  --color-bg: var(--color-ivory);
  --color-bg-alt: var(--color-ivory-2);
  --color-text: var(--color-ink);
  --color-heading: var(--color-deep-green-dark);
  --color-border: #ded6bf;

  /* Typography */
  --font-heading: "Shippori Mincho", "Yu Mincho", "游明朝", serif;
  --font-body: "Zen Kaku Gothic New", "Yu Gothic", "游ゴシック", sans-serif;

  /* Spacing scale (comfortable, elderly-friendly) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-soft: 0 6px 24px rgba(60, 58, 50, 0.10);
  --shadow-card: 0 2px 12px rgba(60, 58, 50, 0.08);

  --transition-fast: 200ms ease;

  --header-height: 78px;
  --z-header: 100;
  --z-nav-drawer: 110;
  --z-sticky-cta: 90;
}

@media (min-width: 768px) {
  :root { --header-height: 92px; }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(rgba(92, 107, 69, 0.05) 0.6px, transparent 0.6px),
    radial-gradient(rgba(60, 58, 50, 0.035) 0.6px, transparent 0.6px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1.5px 2px;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

[id] { scroll-margin-top: calc(var(--header-height) + 48px); }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.5;
  margin: 0 0 var(--space-3);
  font-weight: 600;
}

h1 { font-size: clamp(1.8rem, 5.6vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2rem); text-align: center; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 var(--space-2); }

a { color: inherit; }

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

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

/* Focus visibility for keyboard nav */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
details:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Layout helpers
   ========================================================= */

.section { padding: var(--space-6) var(--space-2); }
.section--alt { background: var(--color-bg-alt); }
.section__inner { max-width: 760px; margin: 0 auto; }
.section__inner--wide { max-width: 1040px; }

.section-eyebrow {
  text-align: center;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-1);
}

/* Traditional Japanese-inspired ornamental divider (line - diamond - line) */
.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 130px;
  margin: 0 auto var(--space-4);
}

.divider-ornament::before,
.divider-ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider-ornament span {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--color-gold);
  transform: rotate(45deg);
}

/* Seigaiha-inspired wave divider, evoking Izu's coastline */
.wave-divider {
  height: 18px;
  background-color: var(--color-ivory-2);
  background-image: radial-gradient(circle at 10px -8px, transparent 13px, var(--color-olive) 13px, var(--color-olive) 14px, transparent 14px);
  background-size: 20px 18px;
  background-repeat: repeat-x;
  background-position: center top;
  opacity: 0.55;
}

.wave-divider--footer { background-color: var(--color-bg-alt); }

@media (min-width: 768px) {
  .section { padding: var(--space-7) var(--space-3); }
  .wave-divider { height: 24px; background-size: 26px 24px; background-position-y: -1px; }
}

/* =========================================================
   Site Header & Navigation
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: rgba(246, 243, 234, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-border);
  z-index: var(--z-header);
  transition: box-shadow var(--transition-fast);
}

.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(60,58,50,0.10); }

.site-header__inner {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--color-heading);
  flex-shrink: 0;
}

.site-header__brand img { width: 38px; height: 38px; }

.site-header__brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 768px) {
  .site-header__brand img { width: 44px; height: 44px; }
  .site-header__brand span { font-size: 1.2rem; }
}

.btn.btn--header { display: none; width: auto; flex-shrink: 0; min-height: 44px; padding: 0 var(--space-2); font-size: 0.92rem; white-space: nowrap; }

.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-heading);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition-fast);
}

.site-header__menu-btn:hover { background: var(--color-bg-alt); }
.site-header__menu-btn svg { width: 22px; height: 22px; }

/* Nav drawer (mobile/tablet) */
.site-nav {
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 86vw);
  height: 100dvh;
  background: var(--color-white);
  box-shadow: -8px 0 32px rgba(60,58,50,0.18);
  z-index: var(--z-nav-drawer);
  padding: var(--space-2) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transform: translateX(100%);
  transition: transform var(--transition-fast);
  overflow-y: auto;
}

.site-nav.is-open { transform: translateX(0); }

.site-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.1rem;
}

.site-nav__close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-heading);
  cursor: pointer;
}

.site-nav__close svg { width: 22px; height: 22px; }

.site-nav__list { display: flex; flex-direction: column; }

.site-nav__list li { border-bottom: 1px solid var(--color-border); }

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav__list a:hover { color: var(--color-deep-green-dark); }

.site-nav__cta { display: flex; flex-direction: column; gap: var(--space-1); }

.site-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(60, 58, 50, 0.45);
  z-index: calc(var(--z-nav-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.site-nav__backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Desktop inline nav (separate from the mobile off-canvas drawer above) */
.site-nav-desktop { display: none; }

.site-nav-desktop .site-nav__list { flex-direction: row; align-items: center; gap: var(--space-2); }
.site-nav-desktop .site-nav__list li { border-bottom: none; }
.site-nav-desktop .site-nav__list a { min-height: auto; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }

@media (min-width: 1024px) {
  .site-header__menu-btn { display: none; }
  .btn.btn--header { display: flex; }
  .site-nav-desktop { display: flex; }
  .site-nav { display: none; }
  .site-nav__backdrop { display: none; }
}

/* =========================================================
   Buttons (CTA) - large tap targets
   ========================================================= */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
  min-height: 60px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(60,58,50,0.16); }
.btn:active { transform: translateY(0); }

.btn__icon { width: 22px; height: 22px; flex-shrink: 0; }

.btn--line { background: var(--color-line); color: var(--color-white); }
.btn--line:hover { background: var(--color-line-dark); }

.btn--call { background: var(--color-deep-green); color: var(--color-white); }
.btn--call:hover { background: var(--color-deep-green-dark); }

.cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 420px;
  margin: var(--space-4) auto 0;
}

@media (min-width: 560px) {
  .cta-group { flex-direction: row; max-width: 560px; }
  .btn { white-space: nowrap; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  background: linear-gradient(180deg, var(--color-ivory) 0%, var(--color-ivory-2) 100%);
  padding: var(--space-6) var(--space-2) var(--space-5);
  text-align: center;
}

.hero__inner { max-width: 640px; margin: 0 auto; }

@media (min-width: 640px) {
  .hero__inner { max-width: 760px; }
}

.hero__logo {
  width: 110px;
  height: 110px;
  margin: 0 auto var(--space-3);
}

.hero__eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--color-olive);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.hero__eyebrow-phrase { display: inline-block; white-space: nowrap; }

.hero__copy {
  margin-bottom: var(--space-3);
}

.hero__copy-gap { display: none; }

@media (min-width: 640px) {
  .hero__copy-break { display: none; }
  .hero__copy-gap { display: inline-block; width: 0.5em; }
  .hero__copy-phrase { white-space: nowrap; }
}

.hero__sub {
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto var(--space-2);
}

.hero__note {
  margin-top: var(--space-3);
  font-size: 0.95rem;
  color: var(--color-deep-green-dark);
}

@media (min-width: 768px) {
  .hero { padding: var(--space-7) var(--space-3) var(--space-6); }
  .hero__logo { width: 140px; height: 140px; }
}

/* =========================================================
   Worry section
   ========================================================= */

.worry-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.worry-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  box-shadow: var(--shadow-card);
  font-size: 1.05rem;
}

.icon-check {
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-olive);
}

.stat-callout {
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 1rem;
  margin-bottom: var(--space-3);
}

.worry-close {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-heading);
}

/* =========================================================
   Reasons
   ========================================================= */

.reason-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.reason-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.reason-card__num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-gold);
}

.reason-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1.5px solid var(--color-gold);
  color: var(--color-deep-green-dark);
  margin-bottom: var(--space-2);
}

.reason-card__icon svg { width: 26px; height: 26px; }

.reason-card h3 { margin-bottom: var(--space-1); padding-right: var(--space-4); }
.reason-card p { font-size: 1rem; margin-bottom: 0; }

@media (min-width: 768px) {
  .reason-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
}

.photo-placeholder {
  margin: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  background: var(--color-bg-alt);
  border: 1.5px dashed var(--color-olive);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-2);
  color: var(--color-olive);
  text-align: center;
}

.photo-placeholder svg { width: 40px; height: 40px; }
.photo-placeholder figcaption { font-size: 0.85rem; }

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* =========================================================
   Flow
   ========================================================= */

.flow-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

.flow-list::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-border);
}

.flow-step {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  position: relative;
}

.flow-step__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-deep-green);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.flow-step h3 { margin-bottom: 4px; }
.flow-step p { font-size: 1rem; margin-bottom: 0; }
.flow-note { color: var(--color-olive); font-size: 0.9rem; }

/* =========================================================
   Pricing
   ========================================================= */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  font-size: 0.98rem;
  min-width: 480px;
}

.price-table th,
.price-table td {
  padding: var(--space-2);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.price-table thead th {
  background: var(--color-deep-green);
  color: var(--color-white);
  font-weight: 700;
  font-family: var(--font-heading);
}

.price-table tbody th[scope="row"] {
  font-weight: 700;
  color: var(--color-heading);
  white-space: nowrap;
}

.price-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--color-deep-green-dark);
  white-space: nowrap;
}

.subtable-heading {
  text-align: left;
  font-size: 1.05rem;
  margin-top: var(--space-4);
}

.price-guarantee {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
}

.price-note {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-olive);
}

/* =========================================================
   Area
   ========================================================= */

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-3);
}

.area-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-weight: 700;
  color: var(--color-heading);
}

.area-note {
  text-align: center;
  font-size: 0.95rem;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-2) var(--space-3);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-heading);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) 0;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-olive);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: var(--space-1) 0 0;
  font-size: 1rem;
}

/* =========================================================
   About
   ========================================================= */

.about-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.about-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.about-origin {
  color: var(--color-olive);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.about-message { font-size: 1rem; }

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--color-deep-green-dark);
  color: var(--color-ivory);
  padding: var(--space-6) var(--space-2) var(--space-7);
  text-align: center;
}

.footer__inner { max-width: 480px; margin: 0 auto; }

.footer__logo {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-2);
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.footer__tel a {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-ivory);
}

.footer__hours {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: var(--space-4);
}

.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer__qr {
  background: var(--color-white);
  padding: var(--space-1);
  border-radius: var(--radius-md);
}

.footer__line-note {
  font-size: 0.85rem;
  opacity: 0.85;
  max-width: 320px;
}

.footer__insta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-ivory);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.footer__insta svg { width: 20px; height: 20px; }

.footer__areas {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
}

/* =========================================================
   Sticky mobile CTA
   ========================================================= */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-1) calc(var(--space-1) + env(safe-area-inset-bottom));
  background: var(--color-white);
  box-shadow: 0 -6px 20px rgba(60,58,50,0.14);
  transform: translateY(110%);
  transition: transform var(--transition-fast);
  z-index: var(--z-sticky-cta);
}

.sticky-cta.is-visible { transform: translateY(0); }

.btn--sticky { min-height: 52px; font-size: 0.95rem; box-shadow: none; }

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}

/* =========================================================
   Scroll reveal motion
   (progressively enhanced: content stays visible without JS)
   ========================================================= */

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

html.js-ready .reveal.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

html.js-ready .reveal-stagger.reveal--visible > * {
  opacity: 1;
  transform: translateY(0);
}

html.js-ready .reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
html.js-ready .reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
html.js-ready .reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
html.js-ready .reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
html.js-ready .reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
html.js-ready .reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
html.js-ready .reveal-stagger > *:nth-child(7) { transition-delay: 480ms; }
