@charset "utf-8";
/* 株式会社双葉総研 コーポレートサイト */

:root {
  --brand: #14452f;
  --brand-deep: #0c2c1d;
  --brand-soft: #2c6b4a;
  --gold: #b0863c;
  --gold-light: #d8c08a;
  --ink: #1c211d;
  --body: #4a534d;
  --muted: #79837c;
  --line: #e2e8e3;
  --line-strong: #c7d0c9;
  --tint: #f4f7f4;
  --white: #fff;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.92;
  color: var(--body);
  background: var(--white);
  font-feature-settings: "palt";
}

img, svg, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
figure { margin: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--sans); font-weight: 700; color: var(--brand);
  line-height: 1.58; margin: 0; letter-spacing: .01em;
}
p { margin: 0 0 1.4em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--brand); color: #fff; padding: 10px 18px; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 32px;
  font-weight: 700; font-size: 14.5px; letter-spacing: .04em;
  border: 1px solid transparent; border-radius: 2px;
  text-decoration: none; transition: .18s ease;
  white-space: nowrap; flex: 0 0 auto;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #96702e; color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-soft); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 13.5px; background: var(--brand); color: #fff; }
.btn-sm:hover { background: var(--brand-soft); color: #fff; }

.arrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: 14px; font-weight: 700; letter-spacing: .03em;
  color: var(--brand); text-decoration: none;
}
.arrow::after { content: ""; width: 24px; height: 1px; background: var(--line-strong); transition: .2s ease; }
.arrow:hover::after { width: 34px; background: var(--gold); }

/* ---------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; }
.brand { flex: 0 0 auto; }
.brand img { height: 50px; width: auto; display: block; }
.gnav { display: flex; align-items: center; gap: 30px; }
.gnav > ul { display: flex; gap: 28px; }
.gnav > ul > li { flex: 0 0 auto; }
.gnav > ul a {
  font-size: 14px; font-weight: 500; white-space: nowrap; letter-spacing: .03em;
  color: var(--ink); text-decoration: none; position: relative; padding: 6px 0;
}
.gnav > ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .2s ease;
}
.gnav > ul a:hover::after, .gnav > ul a.is-current::after { width: 100%; }
.head-cta { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.head-tel { text-decoration: none; flex: 0 0 auto; white-space: nowrap; line-height: 1.25; text-align: right; }
.head-tel .lbl { display: block; font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.head-tel strong { font-size: 19px; font-weight: 700; color: var(--brand); letter-spacing: .01em; }
.nav-toggle { display: none; }

@media (min-width: 821px) and (max-width: 1120px) {
  .head-tel { display: none; }
  .gnav { gap: 24px; }
  .gnav > ul { gap: 22px; }
}

/* ---------------------------------------------------------- hero */
.hero { position: relative; background: var(--brand-deep); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(100deg, rgba(9,30,20,.95) 0%, rgba(9,30,20,.88) 38%, rgba(9,30,20,.60) 78%, rgba(9,30,20,.52) 100%),
    url("img/hero.jpg");
  background-size: cover; background-position: center right;
}
.hero-inner { position: relative; padding: 104px 0 88px; max-width: 720px; }
.hero-kicker { font-size: 13px; letter-spacing: .04em; color: var(--gold-light); margin: 0 0 20px; font-weight: 500; }
.hero h1 {
  font-size: clamp(26px, 4.3vw, 45px); color: #fff; line-height: 1.52;
  letter-spacing: .005em; margin: 0 0 28px;
  line-break: strict; word-break: auto-phrase;
}
.hero-lead { color: rgba(255,255,255,.84); font-size: 15.5px; line-height: 2.05; margin: 0 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.facts dl { margin: 0; padding: 24px 20px 28px; border-right: 1px solid rgba(255,255,255,.13); }
.facts dl:last-child { border-right: 0; }
.facts dt { font-size: 11.5px; letter-spacing: .06em; color: rgba(255,255,255,.62); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.facts dd a { color: inherit; text-decoration: none; }
.facts dd a:hover { color: var(--gold-light); }

/* ---------------------------------------------------------- news */
.news { border-bottom: 1px solid var(--line); background: #fff; }
.news-inner { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 30px 0 32px; align-items: start; }
.news-inner h2 { font-size: 15px; letter-spacing: .06em; padding-top: 4px; }
.news-inner ul { display: grid; gap: 12px; }
.news-inner li { display: flex; gap: 26px; align-items: baseline; font-size: 14.5px; }
.news-inner time {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.news-inner p { margin: 0; }

@media (max-width: 820px) {
  .news-inner { grid-template-columns: 1fr; gap: 14px; padding: 24px 0 26px; }
  .news-inner li { flex-direction: column; gap: 2px; }
}

/* ---------------------------------------------------------- page hero */
.phero { position: relative; background: var(--brand-deep); color: #fff; padding: 66px 0 60px; overflow: hidden; }
.phero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,30,20,.95) 0%, rgba(9,30,20,.88) 50%, rgba(9,30,20,.62) 100%);
}
.phero .wrap { position: relative; z-index: 1; }
.phero h1 { color: #fff; font-size: clamp(25px, 3.6vw, 38px); margin: 0 0 16px; letter-spacing: .02em; }
.phero-lead { color: rgba(255,255,255,.8); margin: 0; max-width: 740px; font-size: 15px; }
.phero .kicker { color: rgba(255,255,255,.55); margin-bottom: 12px; }

.crumbs { padding: 16px 0 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .6em; font-size: 12px; color: var(--muted); }
.crumbs li + li::before { content: "／"; margin-right: .6em; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------------------------------------------------------- sections */
.sec { padding: 84px 0; }
.wrap.sec > section + section { margin-top: 84px; }
.sec-tint { background: var(--tint); }
.kicker { font-size: 11px; letter-spacing: .1em; font-weight: 500; color: var(--muted); margin: 0 0 10px; }
.sec-title { font-size: clamp(21px, 2.8vw, 31px); margin: 0 0 24px; letter-spacing: .015em; line-break: strict; word-break: auto-phrase; }
.sec-lead { max-width: 700px; margin-bottom: 42px; }

.prose p { margin-bottom: 1.65em; }
.prose h2 { font-size: 19px; margin: 2.3em 0 .7em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.6em; }
.prose ul li { margin-bottom: .45em; }
.narrow { max-width: 800px; }

/* about（トップの紹介） */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; display: block; }
.about-cap { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
.points-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.points-row li { background: #fff; padding: 28px 28px 26px; font-size: 14px; line-height: 1.9; }
.points-row strong { display: block; font-size: 17px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }

/* ---------------------------------------------------------- services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card { background: #fff; padding-bottom: 32px; }
.svc-card figure { overflow: hidden; }
.svc-card figure img { width: 100%; aspect-ratio: 16 / 8.5; object-fit: cover; display: block; transition: transform .5s ease; }
.svc-card:hover figure img { transform: scale(1.04); }
.svc-card-body { padding: 26px 32px 0; }
.svc-no { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.svc-card h3 { font-size: 19px; margin: 0 0 8px; }
.svc-card h3 a { text-decoration: none; }
.svc-tag { font-size: 12.5px; letter-spacing: .02em; color: var(--muted); margin: 0 0 14px; }
.svc-card p { font-size: 14px; line-height: 1.92; }

.anchor-nav { border: 1px solid var(--line); background: var(--tint); padding: 24px 28px; margin-bottom: 66px; }
.anchor-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 28px; }
.anchor-nav a { font-size: 14px; text-decoration: none; display: inline-flex; gap: .5em; }
.anchor-nav a:hover { color: var(--gold); }

.svc-detail { padding-bottom: 66px; margin-bottom: 66px; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.svc-photo { margin-bottom: 34px; }
.svc-photo img { width: 100%; aspect-ratio: 16 / 6; object-fit: cover; display: block; }
.svc-detail-head { display: flex; gap: 20px; align-items: baseline; margin-bottom: 16px; }
.svc-detail-head .svc-no { font-size: 22px; margin: 0; line-height: 1; color: var(--line-strong); }
.svc-detail h2 { font-size: clamp(21px, 2.7vw, 27px); margin: 0 0 5px; }
.svc-lead { max-width: 740px; margin-bottom: 32px; }
.svc-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }
.svc-body h3 { font-size: 15px; margin: 0 0 14px; letter-spacing: .04em; }

.ticks li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 14.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 11px; height: 1px; background: var(--gold); }
.price { background: var(--tint); border-top: 2px solid var(--brand); padding: 26px 28px 24px; }
.price-val { font-size: 15.5px; font-weight: 700; color: var(--brand); line-height: 1.85; margin: 0 0 12px; }
.note { font-size: 12.5px; line-height: 1.9; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------- flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow li { background: var(--tint); padding: 28px 22px 26px; }
.flow-no { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.flow h3 { font-size: 16px; margin: 7px 0 9px; }
.flow p { font-size: 13px; line-height: 1.85; margin: 0; }

/* ---------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--line); }
.faq li { border-bottom: 1px solid var(--line); padding: 24px 0 26px; }
.faq h3 {
  font-size: 16px; margin: 0; display: flex; gap: .7em; align-items: baseline;
  line-break: strict; word-break: auto-phrase;
}
.faq h3::before {
  content: "Q"; flex: 0 0 auto; font-size: 13px; font-weight: 700;
  color: var(--gold); letter-spacing: .04em;
}
.faq p { margin: 8px 0 0; padding-left: 1.85em; font-size: 14.5px; }
.faq-note { margin-top: 26px; }

/* ---------------------------------------------------------- tables */
.deftable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.deftable th, .deftable td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.deftable th { width: 210px; font-weight: 700; color: var(--brand); background: rgba(20,69,47,.035); letter-spacing: .02em; }
.deftable tr:first-child th, .deftable tr:first-child td { border-top: 2px solid var(--brand); }
.more { margin: 30px 0 0; }

/* ---------------------------------------------------------- company */
.greeting-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 52px; align-items: start; }
.greeting-photo img { width: 100%; aspect-ratio: 3 / 3.6; object-fit: cover; display: block; }
.sign { margin-top: 30px; line-height: 2; color: var(--brand); }
.sign span { font-size: 12.5px; color: var(--muted); }
.sign strong { font-size: 19px; font-weight: 700; letter-spacing: .08em; }

.history { border-left: 1px solid var(--line); margin-top: 6px; }
.history li { position: relative; padding: 0 0 30px 32px; }
.history li::before { content: ""; position: absolute; left: -4px; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.history span { display: block; font-weight: 700; color: var(--brand); font-size: 15px; letter-spacing: .02em; }
.history p { margin: 3px 0 0; font-size: 14px; }

.access { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.access-addr { font-size: 16px; font-weight: 700; color: var(--brand); line-height: 1.95; }
.map { aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-direct { background: var(--tint); border-top: 2px solid var(--brand); padding: 34px 32px 30px; }
.contact-direct h2 { font-size: 17px; margin: 0 0 18px; }
.big-tel { display: block; font-size: clamp(27px, 3.6vw, 34px); font-weight: 700; color: var(--brand); text-decoration: none; letter-spacing: .01em; line-height: 1.3; }
.big-mail { display: block; margin-top: 24px; font-size: 16px; font-weight: 700; word-break: break-all; }
.contact-addr { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact-addr h3 { font-size: 14.5px; margin: 0 0 7px; }
.contact-addr p { font-size: 13.5px; margin: 0; }

.contact-form h2 { font-size: 17px; margin: 0 0 10px; }
#cform { margin-top: 24px; }
#cform label { display: block; margin-bottom: 20px; font-size: 13.5px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
#cform input, #cform select, #cform textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #ccd5ce; border-radius: 2px;
}
#cform input:focus, #cform select:focus, #cform textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(20,69,47,.10); }
#cform textarea { resize: vertical; }
.req { color: #b4443c; font-size: 11.5px; }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; color: var(--body) !important; }
.check input { width: auto !important; margin: 6px 0 0 !important; }
.form-note { font-size: 13px; color: var(--brand); margin: 13px 0 0; min-height: 1.4em; }
.form-note.err { color: #b4443c; }

/* ---------------------------------------------------------- cta band */
.cta-band { position: relative; background: var(--brand-deep); color: #fff; padding: 58px 0; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(95deg, rgba(9,30,20,.96) 0%, rgba(9,30,20,.92) 45%, rgba(9,30,20,.68) 100%), url("img/cta.jpg");
  background-size: cover; background-position: center;
}
.cta-inner { position: relative; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 8px; letter-spacing: .02em; }
.cta-band p { color: rgba(255,255,255,.74); margin: 0; font-size: 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.cta-tel { font-size: 27px; font-weight: 700; color: #fff; text-decoration: none; line-height: 1.2; letter-spacing: .01em; }
.cta-tel:hover { color: var(--gold-light); }
.cta-tel span { display: block; font-size: 11.5px; font-weight: 400; color: rgba(255,255,255,.6); letter-spacing: .04em; margin-top: 4px; }

/* ---------------------------------------------------------- footer */
.site-foot { background: var(--brand); color: rgba(255,255,255,.78); padding: 58px 0 28px; font-size: 13px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.foot-brand address { font-style: normal; line-height: 2.05; }
.site-foot a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-foot a:hover { color: var(--gold-light); text-decoration: underline; }
.foot-nav ul { display: grid; gap: 11px; }
.copy {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: 11.5px; color: rgba(255,255,255,.6);
}
.copy p { margin: 0; }
.rev { font-size: 13px; color: var(--muted); margin-top: 3em; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .about-grid, .svc-body, .access, .contact-grid, .greeting-grid { grid-template-columns: 1fr; gap: 36px; }
  .greeting-photo { order: -1; }
  .greeting-photo img { aspect-ratio: 16 / 9; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts dl:nth-child(2) { border-right: 0; }
  .facts dl:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .points-row { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  .head-inner { min-height: 62px; }
  .brand img { height: 34px; }
  .nav-toggle {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 52px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 21px; height: 1.5px; background: var(--brand); transition: .2s; }
  .nav-toggle em { font-style: normal; font-size: 9px; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .gnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 24px; box-shadow: 0 18px 30px rgba(12,44,29,.09);
  }
  .gnav.is-open { display: flex; }
  .gnav > ul { flex-direction: column; gap: 0; }
  .gnav > ul a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .gnav > ul a::after { display: none; }
  .head-cta { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 20px; }
  .head-cta .btn { flex: 1 1 auto; }
  .head-tel { text-align: center; }
  .btn-sm { min-height: 50px; }

  .sec { padding: 58px 0; }
  .wrap.sec > section + section { margin-top: 58px; }
  .hero-inner { padding: 62px 0 52px; }
  .hero-bg { background-position: 72% center; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card-body { padding: 24px 24px 0; }
  .svc-photo img { aspect-ratio: 16 / 9; }
  .anchor-nav ul { grid-template-columns: 1fr; }
  .deftable th, .deftable td { display: block; width: auto; }
  .deftable th { border-bottom: 0; padding-bottom: 5px; }
  .deftable td { padding-top: 0; }
  .deftable tr:first-child td { border-top: 0; }
  .svc-detail { padding-bottom: 48px; margin-bottom: 48px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .contact-direct, .price { padding-inline: 22px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 24.5px; }
  .hero-inner { padding: 52px 0 44px; }
  .flow, .facts { grid-template-columns: 1fr; }
  .facts dl { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-head, .cta-band, .nav-toggle, .map { display: none; }
  body { color: #000; }
}
