/* 株式会社五島商会 */
:root {
  --green: #7ebe2a;
  --green-deep: #4f8a12;
  --green-ink: #2f5a06;
  --green-pale: #f1f7e6;
  --ink: #23271f;
  --ink-soft: #545a4f;
  --line: #dfe3d8;
  --bg: #fbfcf8;
  --white: #ffffff;
  --radius: 6px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-deep); }
a:hover { color: var(--green-ink); }

h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; line-height: 1.45; margin: 0 0 0.6em; font-weight: 700; letter-spacing: 0.04em; }
p { margin: 0 0 1.2em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 3px; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: 0.08em; white-space: nowrap; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green-deep); background: var(--green-pale); }
.site-nav .nav-cta a { background: var(--green-deep); color: var(--white); margin-left: 8px; }
.site-nav .nav-cta a:hover { background: var(--green-ink); color: var(--white); }
.header-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.3;
}
.header-tel strong { font-size: 1.15rem; letter-spacing: 0.06em; }
.header-tel span { font-size: 0.72rem; color: var(--ink-soft); }
.nav-toggle {
  display: none;
  margin-left: auto;
  font: inherit;
  font-size: 0.85rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .header-tel { display: none; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 20px; gap: 0; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .nav-cta a { margin: 16px 0 0; text-align: center; border-radius: var(--radius); border: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--green-deep); color: var(--white); }
.btn-primary:hover { background: var(--green-ink); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 88px 0 96px; }
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.42; margin-bottom: 24px; }
.hero h1 .accent { color: var(--green-deep); }
.hero-lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { position: relative; }
.hero-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--green-pale);
  color: var(--green-ink);
}
.tile:nth-child(2) { background: var(--green); color: var(--white); transform: translateY(28px); }
.tile:nth-child(3) { background: var(--ink); color: var(--white); }
.tile:nth-child(4) { transform: translateY(28px); border: 1px solid var(--line); background: var(--white); }
.tile svg { width: 44px; height: 44px; }
.tile b { font-size: 1.15rem; letter-spacing: 0.1em; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 72px; gap: 40px; }
  .hero-tiles { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .tile { aspect-ratio: auto; padding: 14px 10px; gap: 10px; align-items: center; transform: none !important; }
  .tile svg { width: 32px; height: 32px; }
  .tile b { font-size: 0.9rem; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
.section-head p { color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.card-num { font-size: 0.8rem; font-weight: 700; color: var(--green-deep); letter-spacing: 0.14em; }
.card h3 { font-size: 1.3rem; margin: 10px 0 12px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.card-more { font-weight: 700; font-size: 0.9rem; color: var(--green-deep); }
.cards-note { margin-top: 28px; color: var(--ink-soft); }

.reasons { counter-reset: reason; display: grid; gap: 0; border-top: 1px solid var(--line); }
.reason { display: grid; grid-template-columns: 88px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.reason::before {
  counter-increment: reason;
  content: counter(reason, decimal-leading-zero);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}
.reason h3 { font-size: 1.25rem; }
.reason p { color: var(--ink-soft); margin: 0; }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .reason { grid-template-columns: 56px 1fr; gap: 16px; }
  .reason::before { font-size: 1.8rem; }
  .section { padding: 64px 0; }
}

/* ---------- Page header ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 16px; }
.page-head p { color: var(--ink-soft); max-width: 44em; margin: 0; }
.crumbs { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { color: var(--ink-soft); }

/* ---------- Content ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: 1.55rem; margin-top: 0; }
.block + .block { margin-top: 72px; }

.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.table th, .table td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.table th { width: 26%; background: var(--green-pale); font-weight: 700; color: var(--green-ink); }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .table th, .table td { display: block; width: 100%; }
  .table th { border-bottom: 0; padding-bottom: 6px; }
  .table td { padding-top: 6px; }
}

.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.type svg { width: 40px; height: 40px; color: var(--green-deep); margin-bottom: 12px; }
.type h3 { font-size: 1.12rem; margin-bottom: 6px; }
.type p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .types { grid-template-columns: 1fr 1fr; } }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
}
.steps li::before {
  content: counter(step);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green-ink);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps b { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.steps span { color: var(--ink-soft); font-size: 0.95rem; }

.panel { background: var(--green-pale); border-radius: 10px; padding: 40px; }
.panel h2, .panel h3 { color: var(--green-ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .panel { padding: 28px; } }

.map { width: 100%; aspect-ratio: 16 / 7; border: 1px solid var(--line); border-radius: 10px; margin-top: 24px; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

.notice { border-left: 4px solid var(--green); background: var(--white); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: var(--white); padding: 72px 0; }
.cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 8px; }
.cta p { color: #c9cec3; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-tel { display: block; text-decoration: none; color: var(--white); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); padding: 14px 20px; }
.cta-tel strong { font-size: 1.6rem; letter-spacing: 0.06em; display: block; line-height: 1.3; }
.cta-tel span { font-size: 0.82rem; color: #c9cec3; }
.cta-tel:hover { color: var(--white); border-color: var(--green); }
.cta .btn-primary { background: var(--green); color: var(--ink); }
.cta .btn-primary:hover { background: #95d146; color: var(--ink); }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1a1d17; color: #b9bfb2; padding: 56px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 3px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #dfe5d6; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #33382e; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 40px; }
@media (max-width: 640px) { .form-card { padding: 24px 20px; } }
.form-status { color: var(--ink-soft); }
.field { margin-bottom: 26px; }
.field > label, .field > .label { display: block; font-weight: 700; margin-bottom: 8px; }
.req { display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 700; color: var(--white); background: #c2410c; border-radius: 3px; padding: 1px 6px; vertical-align: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid #c9cfc0;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green-deep); background: var(--white); }
.field [aria-invalid="true"] { border-color: #c2410c; }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); cursor: pointer; font-weight: 400; }
.choice:hover { border-color: var(--green); }
.choice input { margin-top: 0.45em; accent-color: var(--green-deep); width: 18px; height: 18px; flex: none; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.consent input { margin-top: 0.45em; accent-color: var(--green-deep); width: 18px; height: 18px; flex: none; }
.field-error { color: #c2410c; font-size: 0.88rem; margin: 6px 0 0; }
.field-help { color: var(--ink-soft); font-size: 0.88rem; margin: 6px 0 0; }
.form-error { color: #c2410c; background: #fff4ed; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.form-actions { margin-top: 8px; }
.thanks { text-align: center; padding: 32px 0; }
.thanks h2 { color: var(--green-ink); }

/* ---------- Life support ---------- */
.worries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bubble {
  position: relative;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
}
.bubble::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.ls-list { grid-template-columns: 1fr 1fr; gap: 14px 40px; font-weight: 500; margin-bottom: 48px; }
.ls-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ls-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 36px 32px; }
.ls-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-pale); color: var(--green-deep); display: grid; place-items: center; margin-bottom: 16px; }
.ls-icon svg { width: 30px; height: 30px; }
.ls-card h3 { font-size: 1.45rem; }
.ls-card p { color: var(--ink-soft); }
.ls-card strong { color: var(--ink); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 0.85rem; font-weight: 700; color: var(--green-ink); background: var(--green-pale); border-radius: 999px; padding: 4px 14px; }
.ls-contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.ls-contact h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.ls-contact p { margin: 0; }
.ls-contact-actions { display: flex; flex-direction: column; gap: 6px; }
.ls-tel { font-size: 2rem; font-weight: 700; letter-spacing: 0.06em; color: var(--green-ink); text-decoration: none; line-height: 1.2; }
.ls-tel-note { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
@media (max-width: 860px) {
  .worries { grid-template-columns: 1fr 1fr; }
  .ls-list, .ls-cards, .ls-contact { grid-template-columns: 1fr; }
  .ls-card { padding: 28px 22px; }
}
@media (max-width: 520px) {
  .worries { grid-template-columns: 1fr; }
}

/* ---------- Small phones ---------- */
.nav-toggle { white-space: nowrap; flex: none; }
@media (max-width: 420px) {
  .header-inner { gap: 12px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 0.98rem; letter-spacing: 0.04em; }
  .tile { padding: 12px 4px; }
  .tile b { font-size: 0.8rem; letter-spacing: 0.02em; white-space: nowrap; }
}
