@charset "UTF-8";
/* ============================================================
   SAFE NEST コーポレートサイト — style.css
   Design tokens は :root を参照
   ============================================================ */

:root {
  /* colors */
  --accent:    #C4996A;
  --accent-l:  #E5CEB4;
  --accent-p:  #F0E5D6;
  --accent-vp: #F8F2EA;
  --accent-d:  #A67E52;
  --white:     #FFFFFF;
  --warm:      #F7F4F0;
  --warm-md:   #EDE9E2;
  --ink:       #1E1E1E;
  --text:      #2B2B2B;
  --text-mid:  #4A4A4A;
  --text-sub:  #6B6B6B;
  --border:    #DDD4C8;
  --muted:     #8C8C8C;
  --danger:    #DC2626;
  --cta-hover: #D97757;

  /* fonts */
  --f-hd: "Noto Serif JP", "游明朝", "ヒラギノ明朝 ProN", Georgia, serif;
  --f-bd: "Noto Sans JP", "游ゴシック", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, sans-serif;
  --f-wm: "Zen Maru Gothic", "Noto Sans JP", "游ゴシック", Arial, sans-serif;
  --f-num: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad-x: 80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--warm);
  color: var(--text);
  font-family: var(--f-bd);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
input, textarea, select, button { font-family: inherit; }

/* ---------- layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 820px; }
.section { padding: 96px var(--pad-x); }
.section-white  { background: var(--white); }
.section-warm   { background: var(--warm); }
.section-accent { background: var(--accent-vp); }

.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.eyebrow {
  font-family: var(--f-bd);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-family: var(--f-hd);
  font-size: 36px; font-weight: 600;
  line-height: 1.45; letter-spacing: 0.04em;
  color: var(--text);
}
.section-lead {
  font-family: var(--f-bd);
  font-size: 16px; color: var(--text-sub);
  line-height: 1.9; letter-spacing: 0.04em;
  margin-top: 16px; max-width: 660px;
}
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

.rule { display: block; width: 44px; height: 2px; background: var(--accent); border-radius: 1px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.muted { color: var(--text-mid); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-bd); font-weight: 600;
  letter-spacing: 0.06em; border-radius: 4px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  padding: 16px 40px; font-size: 16px; min-height: 52px;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn-sm { padding: 10px 22px; font-size: 13px; min-height: 44px; }
.btn-block { width: 100%; padding: 17px; font-size: 17px; }
.btn-outline { background: transparent; color: var(--text-mid); border-color: #D9D4CC; }
.btn-outline:hover { background: rgba(217,119,87,0.06); color: var(--cta-hover); border-color: var(--cta-hover); }
.btn-fill { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 2px 8px rgba(196,153,106,.25); }
.btn-fill:hover { background: var(--cta-hover); border-color: var(--cta-hover); box-shadow: 0 6px 18px rgba(217,119,87,.35); transform: translateY(-1px); }

.tag {
  display: inline-block; padding: 4px 12px; border-radius: 2px;
  background: var(--accent-p); color: var(--text);
  font-family: var(--f-bd); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--border);
  height: 72px;
}
.nav-inner {
  height: 100%; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 40px;
  padding: 0 var(--pad-x);
}
.nav-logo img { height: 30px; }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-family: var(--f-bd); font-size: 14px; color: var(--text-mid);
  letter-spacing: 0.05em; text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-ctas { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; margin: 0 auto; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ HERO ============================ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 620px; background: var(--warm);
}
.hero-text {
  padding: 96px var(--pad-x);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-text h1 {
  font-family: var(--f-hd); font-size: 48px; font-weight: 600;
  line-height: 1.3; letter-spacing: 0.03em; color: var(--text);
  margin: 22px 0 18px;
}
.hero-text .rule { margin-bottom: 24px; }
.hero-lead {
  font-family: var(--f-wm); font-size: 18px; line-height: 2;
  letter-spacing: 0.05em; color: var(--text-mid);
  margin-bottom: 44px; max-width: 460px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; border-left: 1px solid var(--border); }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slides img.is-active { opacity: 1; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.hero-dots span { width: 8px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.5); transition: all .3s; }
.hero-dots span.is-active { width: 28px; background: #fff; }

/* ============================ SOCIAL CHALLENGE ============================ */
.stat-cards { margin-bottom: 72px; }
.stat-card {
  background: var(--warm); border-radius: 8px; padding: 32px 24px;
  border-top: 3px solid var(--accent); text-align: center;
}
.section-white .stat-card { background: var(--warm); }
.stat-num { font-family: var(--f-num); font-size: 38px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.stat-label { font-family: var(--f-bd); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: 0.04em; }
.stat-note { font-family: var(--f-bd); font-size: 13px; color: var(--text-sub); line-height: 1.7; letter-spacing: 0.03em; }

.solution {
  background: var(--accent-vp); border: 1px solid var(--accent-p);
  border-radius: 12px; padding: 48px 56px;
}
.solution .section-head { margin-bottom: 40px; }
.solution-title { font-family: var(--f-hd); font-size: 28px; font-weight: 600; color: var(--text); line-height: 1.4; letter-spacing: 0.04em; }
.solution-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 28px 24px; }
.solution-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-p); border: 1px solid var(--accent-l);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-family: var(--f-num); font-size: 13px; font-weight: 700; color: var(--accent);
}
.solution-card h4 { font-family: var(--f-hd); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.solution-card p { font-family: var(--f-wm); font-size: 15px; color: var(--text-sub); line-height: 1.9; letter-spacing: 0.04em; }

/* ============================ ABOUT ============================ */
.mv-grid { gap: 24px; margin-bottom: 72px; }
.mv-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 40px 36px; }
.mv-card--accent   { border-top: 3px solid var(--accent); }
.mv-card--accent-l { border-top: 3px solid var(--accent-l); }
.mv-card h3 { font-family: var(--f-hd); font-size: 26px; font-weight: 600; color: var(--text); line-height: 1.5; letter-spacing: 0.04em; }

.ceo {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: center;
  margin-bottom: 80px; background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 56px;
}
.ceo-figure img { width: 100%; height: 320px; object-fit: cover; border-radius: 8px; background: var(--accent-vp); }
.ceo-caption { font-family: var(--f-bd); font-size: 13px; font-weight: 600; color: var(--text); text-align: center; margin-top: 16px; letter-spacing: 0.04em; }
.ceo-title { font-family: var(--f-hd); font-size: 28px; font-weight: 600; color: var(--text); line-height: 1.5; letter-spacing: 0.04em; margin: 14px 0 24px; }
.ceo-body .rule { margin-bottom: 28px; }
.ceo-body p { font-family: var(--f-wm); font-size: 17px; line-height: 2.1; letter-spacing: 0.04em; color: var(--text); margin-bottom: 18px; }
.ceo-body p.muted { color: var(--text-mid); margin-bottom: 0; }

.values .section-head { margin-bottom: 48px; }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 32px 24px; }
.value-num {
  font-family: var(--f-num); font-size: 36px; font-weight: 400;
  color: var(--accent-p); line-height: 1; margin-bottom: 18px;
  -webkit-text-stroke: 1px var(--accent-l);
}
.value-card h4 { font-family: var(--f-hd); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: 0.03em; }
.value-card p { font-family: var(--f-wm); font-size: 15px; color: var(--text-sub); line-height: 2; letter-spacing: 0.04em; }

/* ============================ SERVICE ============================ */
.block-title { font-family: var(--f-hd); font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 32px; letter-spacing: 0.04em; }
.flow-block { margin-bottom: 80px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.flow-step { background: var(--warm); padding: 32px 28px; position: relative; border-right: 1px solid var(--border); }
.flow-step:nth-child(even) { background: var(--accent-vp); }
.flow-step:last-child { border-right: none; }
.flow-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  z-index: 1; background: var(--accent); color: #fff; width: 24px; height: 24px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.flow-step-label { font-family: var(--f-bd); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.flow-step h4 { font-family: var(--f-hd); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.flow-step p { font-family: var(--f-bd); font-size: 14px; color: var(--text-sub); line-height: 1.8; letter-spacing: 0.03em; }

/* accordion */
.accordion { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--white); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-head {
  width: 100%; background: var(--white); border: none; cursor: pointer;
  padding: 24px 32px; display: flex; justify-content: space-between; align-items: center;
  text-align: left; transition: background .2s;
}
.accordion-item.is-open .accordion-head { background: var(--warm); }
.accordion-head-l { display: flex; align-items: center; gap: 16px; }
.accordion-no { font-family: var(--f-num); font-size: 14px; font-weight: 300; color: var(--accent); letter-spacing: 0.1em; width: 28px; }
.accordion-seg { font-family: var(--f-hd); font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: 0.03em; }
.accordion-icon { font-family: var(--f-num); font-size: 26px; color: var(--accent); font-weight: 200; line-height: 1; flex-shrink: 0; }
.accordion-panel { display: none; background: var(--warm); border-top: 1px solid var(--border); }
.accordion-item.is-open .accordion-panel { display: block; }
.accordion-panel-inner { padding: 48px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.segment-visual {
  height: 400px; border-radius: 8px;
  background: var(--accent-vp) center / cover no-repeat;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.segment-visual--residents  { background-image: url("img/segment-residents.jpg"); }
.segment-visual--investors  { background-image: url("img/segment-investors.jpg"); }
.segment-visual--realestate { background-image: url("img/segment-realestate.jpg"); }
.segment-visual--government  { background-image: url("img/segment-government.jpg"); }
.segment-text h4 { font-family: var(--f-hd); font-size: 30px; font-weight: 600; color: var(--text); margin-bottom: 24px; line-height: 1.5; letter-spacing: 0.03em; }
.segment-text .rule { margin-bottom: 28px; }
.segment-text p { font-family: var(--f-wm); font-size: 17px; color: var(--text-mid); line-height: 2; letter-spacing: 0.04em; margin-bottom: 36px; }

/* ============================ FAQ ============================ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center;
  text-align: left; gap: 16px;
}
.faq-q-l { display: flex; align-items: center; gap: 12px; }
.faq-cat { font-family: var(--f-bd); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; background: var(--accent-p); color: var(--accent); padding: 3px 8px; border-radius: 2px; flex-shrink: 0; }
.faq-q-l > span:last-child { font-family: var(--f-wm); font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: 0.04em; line-height: 1.6; }
.faq-icon { color: var(--accent); font-size: 22px; font-weight: 300; flex-shrink: 0; font-family: var(--f-num); }
.faq-a { display: none; }
.faq-item.is-open .faq-a { display: block; }
.faq-a p { font-family: var(--f-wm); font-size: 15px; line-height: 1.9; letter-spacing: 0.04em; color: var(--text-sub); padding-bottom: 22px; }

/* ============================ COMPANY ============================ */
.company-table {
  width: 100%; max-width: 780px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  border-collapse: separate; border-spacing: 0; background: var(--white);
}
.company-table th, .company-table td {
  text-align: left; vertical-align: top; padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--f-bd); letter-spacing: 0.04em; line-height: 1.8;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th {
  width: 220px; background: var(--warm); border-right: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text);
}
.company-table td { font-size: 15px; color: var(--text); }

/* ============================ CONTACT ============================ */
.contact-form {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 48px; box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 22px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 0; }
.field-grid .field { margin-bottom: 22px; }
.field-label { display: block; font-family: var(--f-bd); font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.04em; margin-bottom: 10px; }
.req { color: var(--danger); margin-left: 4px; font-size: 11px; }
.radio-row { display: flex; gap: 12px 20px; flex-wrap: wrap; }
.radio { display: flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--f-wm); font-size: 15px; color: var(--text); }
.radio input { accent-color: var(--accent); }
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 4px; font-family: var(--f-wm); font-size: 16px; color: var(--text);
  background: var(--white); outline: none; transition: border-color .2s;
}
.contact-form input { height: 52px; }
.contact-form textarea { line-height: 1.9; resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form .has-error { border-color: var(--danger) !important; }
.privacy-note { font-family: var(--f-bd); font-size: 13px; color: var(--text-sub); line-height: 1.8; letter-spacing: 0.03em; margin: 6px 0 28px; }
.form-foot { font-family: var(--f-bd); font-size: 12px; color: var(--text-sub); text-align: center; margin-top: 14px; line-height: 1.7; }

/* ============================ FOOTER ============================ */
.footer { background: var(--ink); padding: 64px var(--pad-x) 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-logo { font-family: var(--f-bd); font-size: 22px; font-weight: 600; color: #E5E1DC; letter-spacing: 0.18em; margin-bottom: 20px; }
.footer-desc { font-family: var(--f-bd); font-size: 14px; color: var(--muted); line-height: 1.9; letter-spacing: 0.04em; }
.footer-cols { display: flex; gap: 80px; flex-wrap: wrap; }
.footer-col-title { font-family: var(--f-bd); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-l); margin-bottom: 16px; }
.footer-col a { display: block; font-family: var(--f-bd); font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.8; letter-spacing: 0.04em; text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #E5E1DC; }
.footer-bottom { border-top: 1px solid #333; padding-top: 24px; }
.footer-bottom span { font-family: var(--f-bd); font-size: 12px; color: #666; letter-spacing: 0.04em; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1024px) {
  :root { --pad-x: 48px; }
  .hero-text h1 { font-size: 40px; }
  .section-title { font-size: 30px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; }
  .section { padding: 64px var(--pad-x); }

  /* nav */
  .nav-links, .nav-ctas { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.is-open a { padding: 14px 0; border-bottom: 1px solid var(--warm-md); font-size: 15px; }

  /* hero */
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 56px var(--pad-x) 48px; order: 2; }
  .hero-text h1 { font-size: 34px; }
  .hero-media { order: 1; height: 320px; border-left: none; border-bottom: 1px solid var(--border); }

  /* grids collapse */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  /* Mission / Vision はスマホで縦積み（横並びの間延びを防ぐ） */
  .mv-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 56px; }
  .ceo { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px; }
  .ceo-figure img { height: 280px; }

  /* service flow -> 2 cols, drop arrows */
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step { border-right: none; border-bottom: 1px solid var(--border); }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-step:nth-child(odd) { border-right: 1px solid var(--border); }

  /* accordion / solution */
  .accordion-panel-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; }
  .segment-visual { height: 220px; }
  .segment-text h4 { font-size: 24px; }
  .solution { padding: 36px 24px; }

  /* contact */
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 28px 20px; }

  /* company table -> stacked */
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { border-right: none; border-bottom: none; padding-bottom: 4px; }
  .company-table td { padding-top: 4px; }

  /* footer */
  .footer { padding: 48px var(--pad-x) 32px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 40px; }
}

@media (max-width: 520px) {
  .hero-text h1 { font-size: 28px; }
  .section-title { font-size: 26px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step:nth-child(odd) { border-right: none; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
