/* =========================================================
   CLADCODE corporate site
   ========================================================= */
:root {
  --navy-900: #0f2433;   /* hero / footer */
  --navy-700: #1f3d52;   /* 見出し・ブランド */
  --navy-500: #2f5b78;   /* 姿勢セクション */
  --copper:   #b0743c;   /* ロゴのアクセント・ゲージ */
  --taupe:    #8f7f69;   /* CTA */
  --taupe-dk: #75674f;
  --paper:    #f3f5f7;
  --line:     #d8dee4;
  --ink:      #1b2730;
  --ink-sub:  #55636e;
  --white:    #ffffff;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  --font-en: "Josefin Sans", "Zen Kaku Gothic New", system-ui, sans-serif;

  --wrap: 1080px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.tagline-bar { font-size: .72rem; color: var(--ink-sub); background: var(--paper); line-height: 1.6; padding: 4px 0; }

.logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; flex-shrink: 0; }
.logo img { display: block; height: 34px; width: auto; }

.gnav ul { display: flex; align-items: center; gap: 4px; }
.gnav a, .gnav button {
  display: block; padding: 10px 12px; font: inherit; font-size: .9rem; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.gnav a:hover, .gnav button:hover { color: var(--navy-500); }
.gnav a[aria-current="page"] { color: var(--navy-500); font-weight: 700; }
.has-sub { position: relative; }
.has-sub > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 180px; padding: 6px 0;
  background: var(--navy-700); display: none !important; flex-direction: column; gap: 0 !important;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: flex !important; }
.sub a { color: var(--white); padding: 10px 18px; font-size: .85rem; }
.sub a:hover { color: var(--white); background: var(--navy-500); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px; border: 0;
  background: var(--taupe); color: var(--white);
  font: inherit; font-weight: 700; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: var(--taupe-dk); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-light { background: var(--white); color: var(--navy-700); }
.btn-light:hover { background: var(--paper); }

.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s;
}
.menu-toggle span { top: 21px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after  { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--navy-900);
  background-image:
    linear-gradient(90deg, rgba(15,36,51,.88) 0%, rgba(15,36,51,.6) 45%, rgba(15,36,51,.1) 100%),
    url("../images/hero-speedometer.jpg");
  background-image:
    linear-gradient(90deg, rgba(15,36,51,.88) 0%, rgba(15,36,51,.6) 45%, rgba(15,36,51,.1) 100%),
    image-set(url("../images/hero-speedometer.webp") type("image/webp"), url("../images/hero-speedometer.jpg") type("image/jpeg"));
  background-size: cover; background-position: center right; background-repeat: no-repeat;
}
.hero .wrap {
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 40px;
  min-height: min(78vh, 620px); padding-block: 72px;
}
.hero h1 { text-shadow: 0 2px 16px rgba(0,0,0,.45);
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.45; font-weight: 900; letter-spacing: .02em;
}
.hero h1 span { display: inline-block; white-space: nowrap;
}
.formula {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 28px;
  font-size: clamp(.95rem, 1.6vw, 1.1rem); color: #c9d6df;
}
.formula b { font-weight: 700; color: var(--white); }
.formula i { font-style: normal; font-family: var(--font-en); font-size: 1.5em; color: var(--copper); line-height: 1; }
.hero .btn { margin-top: 40px; }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-paper { background: var(--paper); }
.section-navy  { background: var(--navy-500); color: var(--white); }

.sec-title {
  position: relative; display: inline-block; margin-bottom: 40px; padding-bottom: 12px;
  font-size: 1.15rem; font-weight: 700; letter-spacing: .18em; color: var(--navy-700);
}
.sec-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--copper) 0 48px, var(--line) 48px); }
.section-navy .sec-title { color: var(--white); }
.section-navy .sec-title::after { background: linear-gradient(90deg, var(--copper) 0 48px, rgba(255,255,255,.35) 48px); }

.lead {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.55; font-weight: 700; letter-spacing: .06em;
  color: var(--navy-700); margin-bottom: 32px; max-width: 30em;
}
.section-navy .lead { color: var(--white); }
.body-text { max-width: 44em; color: var(--ink-sub); }
.body-text p + p { margin-top: 1em; }
.section-navy .body-text { color: #dbe5ec; }
.center { text-align: center; }
.cta-row { margin-top: 48px; }

/* 課題チェックリスト */
.issues-title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 700; letter-spacing: .1em; color: var(--navy-700); margin-bottom: 40px; }
.checklist { display: grid; gap: 14px; max-width: 860px; }
.checklist li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-left: 4px solid var(--navy-500);
  padding: 16px 22px; font-weight: 500;
}
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--navy-500); }

/* 特徴：3つの強み */
.strengths {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 12px;
  margin-top: 64px; text-align: center;
}
.strength .icon {
  width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-700); color: var(--white);
}
.strength .icon svg { width: 44px; height: 44px; }
.strength h3 { font-size: 1.1rem; line-height: 1.6; color: var(--navy-700); }
.strength p { margin-top: 10px; font-size: .9rem; color: var(--ink-sub); text-align: left; }
.times { font-family: var(--font-en); font-size: 2.6rem; font-weight: 300; color: var(--copper); line-height: 1; padding-top: 28px; }

/* サービス */
.services { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: start;
  padding: 32px 4px; border-bottom: 1px solid var(--line);
}
.service .icon { width: 72px; height: 72px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--navy-500); }
.service .icon svg { width: 34px; height: 34px; }
.service h3 { font-size: 1.2rem; color: var(--navy-700); margin-bottom: 6px; }
.service p { color: var(--ink-sub); font-size: .95rem; max-width: 46em; }
.service .meta { margin-top: 10px; font-size: .8rem; color: var(--copper); font-weight: 700; }

/* 開発事例 */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { display: flex; flex-direction: column; background: var(--paper); padding: 28px 24px 24px; }
.case .industry { align-self: flex-start; font-size: .78rem; font-weight: 700; color: var(--white); background: var(--navy-700); padding: 2px 10px; }
.case h3 { margin: 16px 0 12px; font-size: 1.08rem; line-height: 1.6; color: var(--navy-700); }
.case p { font-size: .9rem; color: var(--ink-sub); flex: 1; }
.case dl { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); font-size: .85rem; }
.case dt, .case dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.case dt { color: var(--ink-sub); padding-right: 16px; }
.case dd { font-weight: 700; text-align: right; }

/* 締めCTA */
.closing { background: var(--navy-700); color: var(--white); padding-block: 72px; }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: .06em; }
.closing p { color: #c9d6df; margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b4c2cc; padding-block: 48px 32px; font-size: .82rem; }
.site-footer nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.site-footer nav li + li::before { content: "|"; color: #4a6072; margin: 0 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer small { display: block; margin-top: 28px; text-align: center; font-family: var(--font-en); letter-spacing: .06em; }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--navy-700); color: var(--white); padding-block: 64px 56px; }
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: .1em; }
.page-head p { margin-top: 10px; color: #c9d6df; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white);
    border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 24px; }
  .gnav a, .gnav button { padding: 14px 4px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
  .sub { position: static; display: flex !important; background: none; padding: 0 0 0 16px; }
  .sub a { color: var(--ink); }
  .sub a:hover { background: none; color: var(--navy-500); }
  .has-sub > button::after { display: none; }
  .gnav .btn { margin-top: 16px; border-bottom: 0; text-align: center; color: var(--white); }
  .header-cta { display: none; }

  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-block: 88px 72px; }
  .hero {
    background-image:
      linear-gradient(180deg, rgba(15,36,51,.55) 0%, rgba(15,36,51,.85) 100%),
      url("../images/hero-speedometer-sp.jpg");
    background-image:
      linear-gradient(180deg, rgba(15,36,51,.55) 0%, rgba(15,36,51,.85) 100%),
      image-set(url("../images/hero-speedometer-sp.webp") type("image/webp"), url("../images/hero-speedometer-sp.jpg") type("image/jpeg"));
    background-position: 70% center;
  }
  .strengths { grid-template-columns: 1fr; gap: 8px; }
  .strength p { text-align: center; }
  .times { padding-top: 0; }
  .cases { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .service { grid-template-columns: 56px 1fr; gap: 18px; }
  .service .icon { width: 56px; height: 56px; }
  .tagline-bar { display: none; }
  .logo img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ナビ内のCTAボタン（.gnav a の色指定より優先させる） */
.gnav .btn { display: inline-flex; color: var(--white); background: var(--taupe); padding: 10px 20px; margin-left: 8px; }
.gnav .btn:hover, .gnav .btn[aria-current="page"] { color: var(--white); }
.gnav .btn:hover { background: var(--taupe-dk); }
@media (max-width: 960px) { .gnav .btn { margin-left: 0; padding: 14px 20px; justify-content: center; } }

/* ---------- SDGs ---------- */
.sdgs-intro { max-width: 40em; margin-inline: auto; text-align: center; }
.sdgs-intro .lead { margin-inline: auto; }
.sdgs-intro p + p { margin-top: 1.4em; }
.sdgs-list { margin-top: 72px; border-top: 1px solid var(--line); }
.sdg { display: grid; grid-template-columns: 140px 1fr; gap: 40px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.sdg-tile {
  position: relative; width: 140px; aspect-ratio: 1; display: grid; place-items: center;
  background: var(--paper); color: var(--ink-sub); font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.5; padding: 8px;
}
.sdg-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sdg p { color: var(--ink-sub); max-width: 42em; }

/* ---------- 企業情報 ---------- */
.company-table { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); max-width: 900px; }
.company-table dt, .company-table dd { padding: 20px 0; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; color: var(--navy-700); padding-right: 24px; }
.company-table ul li::before { content: "・"; }
.security-action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.security-action .badge {
  position: relative; width: 120px; aspect-ratio: 1; display: grid; place-items: center;
  background: var(--paper); font-size: .75rem; color: var(--ink-sub); text-align: center;
}
.security-action .badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.mail-img { width: auto; height: 1.2em; max-width: 100%; margin-block: .15em; -webkit-user-select: none; user-select: none; }
.mail-note { margin-top: 6px; font-size: .875rem; color: var(--ink-sub); }
.access { margin-top: 72px; }
.access h2 { font-size: 1.2rem; color: var(--navy-700); margin-bottom: 8px; }
.access p { color: var(--ink-sub); margin-bottom: 20px; }
.map { aspect-ratio: 16 / 7; width: 100%; border: 0; background: var(--paper); display: block; }

@media (max-width: 640px) {
  .sdg { grid-template-columns: 96px 1fr; gap: 20px; }
  .sdg-tile { width: 96px; font-size: .7rem; }
  .company-table { grid-template-columns: 1fr; }
  .company-table dt { padding-bottom: 0; border-bottom: 0; }
  .company-table dd { padding-top: 6px; }
  .map { aspect-ratio: 4 / 3; }
}

/* ---------- 情報セキュリティポリシー ---------- */
.policy { max-width: 46em; margin-inline: auto; }
.policy-intro { margin-bottom: 40px; }
.policy-list { list-style: none; padding: 0; counter-reset: policy; border-top: 1px solid var(--line); }
.policy-list > li { counter-increment: policy; padding: 24px 0; border-bottom: 1px solid var(--line); }
.policy-list h2 { font-size: 1.05rem; color: var(--navy-700); line-height: 1.6; margin-bottom: 6px; }
.policy-list h2::before { content: counter(policy) ". "; color: var(--copper); font-family: var(--font-en); }
.policy-list p { color: var(--ink-sub); }
.policy-sign { margin-top: 40px; text-align: right; }

/* ---------- Privacy policy ---------- */
.policy > p { margin-bottom: 1em; }
.policy-title { font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--navy-700); letter-spacing: .06em; margin-bottom: 32px; text-align: center; }
.policy-heading { font-size: 1.15rem; color: var(--navy-700); line-height: 1.6; margin: 48px 0 16px; padding-left: 14px; border-left: 4px solid var(--copper); }
.policy-heading:first-child, .policy-title + .policy-heading { margin-top: 0; }
.policy-subheading { font-size: 1rem; color: var(--navy-700); margin: 28px 0 10px; }
.policy-caption { font-size: .95rem; font-weight: 700; margin: 20px 0 8px; }
.policy-caption::before { content: "■ "; color: var(--copper); }
.policy-numbered { padding-left: 1.6em; margin-bottom: 8px; }
.policy-numbered li { padding-left: .3em; margin-bottom: .8em; }
.policy-numbered li::marker { color: var(--copper); font-family: var(--font-en); font-weight: 700; }
.policy-bullets { margin-bottom: 1em; }
.policy-bullets li { padding-left: 1em; text-indent: -1em; }
.policy-bullets li::before { content: "・"; }
.table-scroll { overflow-x: auto; margin-bottom: 8px; }
.policy-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .92rem; }
.policy-table th, .policy-table td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.policy-table thead th { background: var(--navy-700); color: var(--white); font-weight: 500; }
.policy-table tbody th { width: 40%; font-weight: 500; }
.policy-table td li::before { content: "・"; }
.policy-contact { background: var(--white); border: 1px solid var(--line); padding: 8px 24px; margin-bottom: 1em; }
.policy-contact > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.policy-contact > div:last-child { border-bottom: 0; }
.policy-contact dt { font-weight: 700; color: var(--navy-700); }
.policy-note { font-size: .85rem; color: var(--ink-sub); }
.policy-sign + p { margin-top: 40px; }
@media (max-width: 640px) {
  .policy-contact { padding: 4px 16px; }
  .policy-contact > div { grid-template-columns: 1fr; gap: 2px; }
  .policy-table tbody th { width: auto; }
}
