/* サードワン コーポレートサイト スタイル */
:root {
  --ink: #0e1a16;
  --forest: #14332a;
  --moss: #2f6b57;
  --moss-light: #e7f0ec;
  --accent: #d95324;
  --accent-dark: #b53f16;
  --sand: #f7f5f1;
  --paper: #ffffff;
  --text: #23302c;
  --muted: #6d7b76;
  --line: #e2e0da;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 26, 22, .08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--moss); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 840px; }

/* ---------------------------------------------------------------- header */
.topbar {
  background: var(--forest);
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 20px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 38px; height: 38px; flex: none; }
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: .08em; line-height: 1.2; }
.brand .name small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .22em; color: var(--muted); }

.gnav { display: flex; align-items: center; gap: 26px; }
.gnav a {
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600;
  letter-spacing: .04em; padding: 6px 0; border-bottom: 2px solid transparent;
}
.gnav a:hover, .gnav a.is-active { border-bottom-color: var(--accent); }
.gnav .btn { border-bottom: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  letter-spacing: .04em; border: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.dark { background: var(--forest); }
.btn.dark:hover { background: var(--ink); }
.btn.wide { width: 100%; padding: 16px 24px; font-size: 16px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--ink);
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--forest); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(47, 107, 87, .85) 0%, rgba(20, 51, 42, 0) 60%),
    linear-gradient(160deg, #14332a 0%, #0e1a16 100%);
}
.hero-slopes { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.hero .wrap { position: relative; padding-top: 108px; padding-bottom: 120px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .18em; font-weight: 700;
  color: #ffd7c4; margin-bottom: 26px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.hero h1 {
  margin: 0 0 24px; font-size: clamp(34px, 6vw, 62px); line-height: 1.35;
  letter-spacing: .04em; font-weight: 800;
}
.hero h1 .accent { color: #ffb38a; }
.hero p.lead { max-width: 640px; font-size: 17px; color: rgba(255, 255, 255, .85); margin: 0 0 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts {
  position: relative; display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  margin-top: 64px; padding-top: 28px;
}
.hero-facts div { flex: 1 1 200px; padding-right: 24px; }
.hero-facts dt { font-size: 13px; letter-spacing: .1em; color: rgba(255, 255, 255, .6); margin-bottom: 4px; }
.hero-facts dd { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .02em; }

/* --------------------------------------------------------------- section */
.section { padding: 96px 0; }
.section.tight { padding: 68px 0; }
.section.sand { background: var(--sand); }
.section.forest { background: var(--forest); color: #fff; }
.section.forest .section-title h2 { color: #fff; }
.section.forest .section-title .en { color: rgba(255, 255, 255, .5); }

.section-title { margin-bottom: 48px; }
.section-title .en {
  display: block; font-size: 12px; letter-spacing: .28em; font-weight: 700;
  color: var(--accent); margin-bottom: 12px;
}
.section-title h2 {
  margin: 0; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.5;
  letter-spacing: .06em; font-weight: 800; color: var(--ink);
}
.section-title p { margin: 16px 0 0; color: var(--muted); max-width: 720px; }
.section-title.center { text-align: center; }
.section-title.center p { margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; gap: 24px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .no {
  font-size: 12px; letter-spacing: .2em; font-weight: 800; color: var(--accent);
  display: block; margin-bottom: 10px;
}
.card h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: .04em; color: var(--ink); }
.card .sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.card p { margin: 0 0 16px; font-size: 15px; }
.card ul { margin: 0; padding-left: 0; list-style: none; }
.card ul li {
  position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.85;
}
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--moss);
}

.strength { display: flex; gap: 18px; align-items: flex-start; }
.strength .ico {
  flex: none; width: 52px; height: 52px; border-radius: 12px;
  background: var(--moss-light); display: grid; place-items: center; color: var(--moss);
}
.strength h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: .04em; color: var(--ink); }
.strength p { margin: 0; font-size: 15px; color: var(--muted); }

/* --------------------------------------------------------------- history */
.succession {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.succession .logos { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.succession .logo-chip {
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px;
  padding: 14px 20px; font-weight: 700; letter-spacing: .06em; font-size: 15px;
}
.succession .arrow { font-size: 22px; color: var(--accent); }
.succession .logo-chip.now { background: var(--accent); border-color: var(--accent); }
.succession p { color: rgba(255, 255, 255, .82); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline .year { font-weight: 800; letter-spacing: .06em; color: var(--moss); }

/* ------------------------------------------------------------------ flow */
.flow { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.flow li {
  counter-increment: step; position: relative;
  padding: 0 0 34px 72px; border-left: 2px solid var(--line); margin-left: 22px;
}
.flow li:last-child { border-left-color: transparent; padding-bottom: 0; }
.flow li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -23px; top: -4px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: .05em;
}
.flow h3 { margin: 4px 0 6px; font-size: 18px; letter-spacing: .04em; color: var(--ink); }
.flow p { margin: 0; color: var(--muted); font-size: 15px; }

/* ----------------------------------------------------------------- works */
.work {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.work .thumb { height: 150px; position: relative; background: var(--forest); }
.work .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.work .body { padding: 24px 26px 28px; }
.work .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag {
  font-size: 12px; letter-spacing: .06em; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--moss-light); color: var(--moss);
}
.tag.client { background: #fdeee7; color: var(--accent-dark); }
.work h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.6; letter-spacing: .03em; color: var(--ink); }
.work p { margin: 0; font-size: 14px; color: var(--muted); }
.work .place { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ misc */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.table th { width: 190px; font-weight: 700; color: var(--ink); letter-spacing: .04em; }
.table td { color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 22px 40px 22px 40px; position: relative;
  font-weight: 700; color: var(--ink); list-style: none; letter-spacing: .03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; color: var(--accent); font-weight: 800; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 32px;
  width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 40px 24px 40px; position: relative; color: var(--muted); }
.faq .answer::before { content: "A"; position: absolute; left: 4px; top: 0; color: var(--moss); font-weight: 800; }

.pill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pill-list li { position: relative; padding-left: 30px; }
.pill-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 9px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------- cta */
.cta { background: var(--ink); color: #fff; }
.cta .wrap { padding: 72px 24px; text-align: center; }
.cta h2 { margin: 0 0 14px; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .06em; }
.cta p { margin: 0 auto 32px; color: rgba(255, 255, 255, .75); max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.cta .tel { text-decoration: none; color: #fff; }
.cta .tel strong { display: block; font-size: 30px; letter-spacing: .06em; }
.cta .tel span { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ------------------------------------------------------------------ form */
.form { display: grid; gap: 22px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; letter-spacing: .04em; }
.field .req { color: #fff; background: var(--accent); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.field .opt { color: var(--muted); background: var(--sand); font-size: 11px; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(47, 107, 87, .12);
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.form-note { background: var(--sand); border-radius: var(--radius); padding: 20px 24px; font-size: 14px; color: var(--muted); }

.flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-size: 15px; }
.flash.success { background: var(--moss-light); color: #1c5344; }
.flash.error { background: #fdecea; color: #a72a12; }

.done { text-align: center; padding: 40px 0; }
.done .check {
  width: 72px; height: 72px; border-radius: 50%; background: var(--moss-light);
  color: var(--moss); display: grid; place-items: center; margin: 0 auto 24px;
}

/* ------------------------------------------------------------ page header */
.page-head { background: var(--forest); color: #fff; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, #14332a 0%, #0e1a16 100%);
}
.page-head svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; }
.page-head .wrap { position: relative; padding: 64px 24px; }
.page-head .en { font-size: 12px; letter-spacing: .28em; color: #ffb38a; font-weight: 700; }
.page-head h1 { margin: 10px 0 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: .08em; }

.breadcrumb { font-size: 13px; color: var(--muted); padding: 16px 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--moss); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand .name { color: #fff; }
.site-footer .brand .name small { color: rgba(255, 255, 255, .5); }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .16em; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .addr { margin-top: 20px; line-height: 1.9; }
.copyright {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255, 255, 255, .45);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .succession { grid-template-columns: 1fr; gap: 32px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .gnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
  }
  .gnav.is-open { display: flex; }
  .gnav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav a:hover, .gnav a.is-active { border-bottom-color: var(--line); color: var(--accent); }
  .gnav .btn { margin-top: 16px; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 72px; padding-bottom: 80px; }
  .hero-facts { margin-top: 44px; }
  .hero-facts div { flex-basis: 50%; padding-bottom: 16px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .table th, .table td { display: block; width: auto; }
  .table th { border-bottom: none; padding-bottom: 0; }
  .table td { padding-top: 6px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .topbar { display: none; }
}
