/* ============================================================
   ライフガード保険事務所 - style.css
   Design language: One great tree, open sky, quiet trust
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #3B7A57;
  --primary-dark: #2D5E43;
  --accent: #6BA368;
  --accent-light: #8FBF8B;
  --bg: #FAFDF8;
  --bg-warm: #F5F9F2;
  --text: #2C3E2E;
  --text-light: #5A6E5C;
  --text-muted: #8A9A8C;
  --border: #D5E3D2;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(59,122,87,.06);
  --shadow-md: 0 4px 20px rgba(59,122,87,.08);
  --shadow-lg: 0 8px 40px rgba(59,122,87,.10);
  --radius: 6px;
  --radius-lg: 12px;
  --max-w: 1080px;
  --section-gap: 120px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Noto Sans JP', 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .3s; }
a:hover { color: var(--accent); }

/* --- Utility --- */
.inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-gap { padding: var(--section-gap) 0; }

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

/* ============================================================
   HEADER - Minimal, transparent over hero
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .5s, padding .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(250,253,248,.95);
  backdrop-filter: blur(12px);
  padding: 14px 32px;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--white);
  transition: color .5s;
}
.site-header.scrolled .logo { color: var(--primary-dark); }

.logo-icon {
  width: 32px;
  height: 32px;
  position: relative;
}
.logo-icon svg { width: 100%; height: 100%; }
.logo-tree-path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke .5s;
}
.site-header.scrolled .logo-tree-path { stroke: var(--primary); }

.header-contact {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(255,255,255,.7);
  transition: color .5s;
}
.site-header.scrolled .header-contact { color: var(--text-muted); }
.header-contact a { color: inherit; }
.header-contact a:hover { color: var(--accent); }


/* ============================================================
   HERO - Full photo, text at bottom-left
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}

/* Gradient overlays */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.10) 0%, transparent 30%),
    linear-gradient(to top, rgba(250,253,248,1) 0%, rgba(250,253,248,.85) 12%, rgba(250,253,248,0) 40%),
    linear-gradient(to right, rgba(0,0,0,.12) 0%, transparent 50%);
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 0;
  z-index: 3;
  padding: 0 48px;
  max-width: 640px;
}

.hero-tagline {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: .06em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 300;
  letter-spacing: .04em;
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: .04em;
  padding: 12px 0;
  border-bottom: 1px solid var(--primary);
  transition: gap .4s, color .3s;
}
.hero-cta:hover { gap: 14px; color: var(--accent); border-color: var(--accent); }
.hero-cta svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-hint span {
  font-family: 'DM Sans', sans-serif;
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 32px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}


/* ============================================================
   SECTION: 山田健一が独立した理由 (Story)
   ============================================================ */
.story-section {
  background: var(--bg);
}

.story-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.story-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-bottom: 48px;
  letter-spacing: .04em;
}

.story-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
}

.story-paragraph {
  font-size: .92rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-light);
}

.story-paragraph strong {
  font-weight: 500;
  color: var(--text);
}

.story-quote {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 36px 40px;
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 2;
  letter-spacing: .03em;
}

.story-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 80px auto;
}


/* ============================================================
   SECTION: 保険の選び方を、一緒に考えます (Approach)
   ============================================================ */
.approach-section {
  background: var(--bg-warm);
}

.approach-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-bottom: 20px;
  letter-spacing: .04em;
}

.approach-lead {
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 2;
  max-width: 680px;
  margin-bottom: 56px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.approach-card {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s, transform .4s;
}
.approach-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.approach-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--accent);
}
.approach-card-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.approach-card h3 {
  font-size: .95rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: .03em;
}

.approach-card p {
  font-size: .82rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.9;
}


/* ============================================================
   SECTION: 3つの約束 (Promises)
   ============================================================ */
.promises-section {
  background: var(--primary-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.promises-section::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(107,163,104,.08);
  pointer-events: none;
}

.promises-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.promises-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 56px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.95);
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.promise-item {
  text-align: center;
}

.promise-number {
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--accent-light);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.promise-icon-ring {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(107,163,104,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.promise-icon-ring svg {
  width: 28px; height: 28px;
  stroke: var(--accent-light);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.95);
}

.promise-desc {
  font-size: .8rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,.6);
}


/* ============================================================
   SECTION: ご相談の流れ (Process)
   ============================================================ */
.process-section {
  background: var(--bg);
}

.process-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-bottom: 16px;
  letter-spacing: .04em;
}

.process-lead {
  font-size: .85rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 64px;
  max-width: 580px;
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* Connecting line */
.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 1px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  transition: background .4s, border-color .4s;
}
.process-step:hover .step-dot {
  background: var(--accent);
}
.step-dot svg {
  width: 22px; height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .4s;
}
.process-step:hover .step-dot svg { stroke: var(--white); }

.step-num {
  font-family: 'DM Sans', sans-serif;
  font-size: .65rem;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 500;
}

.step-title {
  font-size: .9rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: .03em;
}

.step-desc {
  font-size: .78rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.8;
}


/* ============================================================
   SECTION: お客様からのお手紙 (Letters / Testimonials)
   ============================================================ */
.letters-section {
  background: var(--bg-warm);
}

.letters-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-bottom: 56px;
  letter-spacing: .04em;
  text-align: center;
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.letter-card {
  background: var(--white);
  padding: 36px 32px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow .4s;
}
.letter-card:hover { box-shadow: var(--shadow-md); }

.letter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 32px;
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.letter-body {
  font-size: .84rem;
  font-weight: 300;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 24px;
  font-style: normal;
}

.letter-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.letter-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 500;
  color: var(--primary);
}

.letter-meta {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
}
.letter-meta strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  font-size: .8rem;
}


/* ============================================================
   SECTION: 代表プロフィール (Profile)
   ============================================================ */
.profile-section {
  background: var(--bg);
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.profile-photo-wrap {
  position: relative;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: grayscale(15%) brightness(1.02);
}

.profile-photo-caption {
  margin-top: 16px;
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 300;
}

.profile-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.profile-name-en {
  font-family: 'DM Sans', sans-serif;
  font-size: .75rem;
  color: var(--text-muted);
  letter-spacing: .1em;
  margin-bottom: 32px;
  font-weight: 400;
}

.profile-bio {
  font-size: .88rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-light);
  margin-bottom: 40px;
}

.profile-timeline {
  position: relative;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-year {
  font-family: 'DM Sans', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .06em;
  margin-bottom: 2px;
}

.timeline-text {
  font-size: .82rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.7;
}


/* ============================================================
   SECTION: 取扱保険会社 (Partners)
   ============================================================ */
.partners-section {
  background: var(--bg-warm);
  padding: 72px 0;
}

.partners-heading {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.partners-sub {
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 300;
}

.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
  max-width: 800px;
  margin: 0 auto;
}

.partner-logo {
  padding: 14px 24px;
  background: var(--white);
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  letter-spacing: .02em;
}


/* ============================================================
   SECTION: CTA - まずは、お話しませんか
   ============================================================ */
.cta-section {
  background: var(--bg);
  text-align: center;
}

.cta-heading {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.7;
  margin-bottom: 16px;
  letter-spacing: .04em;
}

.cta-lead {
  font-size: .88rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 2;
  max-width: 560px;
  margin: 0 auto 40px;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--primary-dark);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.cta-phone svg {
  width: 24px; height: 24px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-hours {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  font-weight: 300;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--primary);
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .4s, transform .2s;
}
.cta-button:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.cta-button svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-note {
  margin-top: 16px;
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 300;
}


/* ============================================================
   SECTION: Company Info
   ============================================================ */
.company-section {
  background: var(--bg-warm);
  padding: 72px 0;
}

.company-heading {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary-dark);
  margin-bottom: 32px;
  letter-spacing: .04em;
  text-align: center;
}

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

.company-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: .84rem;
}

.company-row dt {
  font-weight: 500;
  color: var(--text);
}

.company-row dd {
  font-weight: 300;
  color: var(--text-light);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.5);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  margin-bottom: 8px;
  letter-spacing: .04em;
}

.footer-copy {
  font-family: 'DM Sans', sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-gap: 80px; }

  .story-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .promises-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .process-timeline::before { display: none; }

  .letters-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .profile-photo-wrap {
    max-width: 240px;
  }
}

@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  .site-header { padding: 16px 20px; }
  .site-header.scrolled { padding: 12px 20px; }
  .header-contact { display: none; }

  .hero { min-height: 500px; }
  .hero-content {
    bottom: 48px;
    padding: 0 24px;
  }
  .hero-tagline { font-size: 1.4rem; }

  .story-quote { padding: 24px 20px; }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .promises-grid { gap: 40px; }

  .cta-phone { font-size: 1.3rem; }

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .inner { padding: 0 20px; }

  .profile-layout { gap: 32px; }
}
