/* 株式会社dandan コーポレートサイト
   移行元 STUDIO の見た目を踏襲。色は2段構え（1段目=色そのもの／2段目=役割）。
   dandan-content/brand/tokens.css とは別系統（コーポレートは水処理ブランドではない）。 */

:root {
  /* 1段目：色そのもの */
  --ink-900: #1a1a1a;
  --ink-700: #333333;
  --ink-500: #555555;
  --ink-300: #888888;
  --paper-0: #ffffff;
  --paper-50: #f7f7f7;
  --paper-100: #eeeeee;
  --line-200: #e2e2e2;
  --navy-600: #1f22ae;
  --navy-700: #181a8c;
  --accent-red: #f23a3c;

  /* 2段目：役割（CSSではこちらだけ使う） */
  --color-text: var(--ink-700);
  --color-text-strong: var(--ink-900);
  --color-text-muted: var(--ink-500);
  --color-bg: var(--paper-0);
  --color-bg-alt: var(--paper-50);
  --color-bg-inverse: var(--ink-900);
  --color-line: var(--line-200);
  --color-cta: var(--navy-600);
  --color-cta-hover: var(--navy-700);
  --color-accent: var(--accent-red);

  --font-ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Marko One", Georgia, serif;

  --maxw: 1080px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: saturate(150%) blur(6px);
}
.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--color-text-strong);
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--color-text);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--color-text); }
.nav__toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  margin-top: 64px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center/cover no-repeat;
  filter: grayscale(100%) brightness(.62);
}
.hero__inner { position: relative; padding: 96px var(--gutter); }
.hero h1 {
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.75;
  font-weight: 700;
  margin: 0 0 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero p {
  font-size: 15px;
  line-height: 2.1;
  max-width: 44em;
  margin: 0 0 36px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

.btn {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 999px;
  transition: background .15s ease;
}
.btn:hover { background: var(--color-cta-hover); }

/* ---------- セクション共通 ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }

.section__title {
  text-align: center;
  margin: 0 0 56px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--color-text-strong);
}
.section__title span {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: .1em;
  margin-top: 4px;
}

.lead {
  text-align: center;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.9;
  color: var(--color-text-strong);
  margin: 0 auto 32px;
  max-width: 34em;
}
.body-text {
  max-width: 46em;
  margin: 0 auto;
  font-size: 15px;
}
.body-text + .body-text { margin-top: 1.4em; }

/* ---------- サービス ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  padding: 32px 28px;
}
.card h3 {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--color-text-strong);
}
.card__why {
  font-size: 14px;
  line-height: 1.85;
  margin: -6px 0 18px;
}
.card .label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 6px;
}
.card ul { margin: 0; padding-left: 1.1em; font-size: 14px; }
.card li { margin-bottom: 6px; }

/* ---------- ニュース ---------- */
.news { display: grid; gap: 0; max-width: 780px; margin: 0 auto; }
.news__item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}
.news__item:first-child { border-top: 1px solid var(--color-line); }
.news__date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-text-muted);
  padding-top: 3px;
}
.news__title { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--color-text-strong); }
.news__excerpt { font-size: 13px; color: var(--color-text-muted); margin: 0; line-height: 1.8; }

/* ---------- チーム ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px 40px; }
.member__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  background: var(--color-bg-alt);
}
.member h3 { font-size: 17px; margin: 0 0 2px; color: var(--color-text-strong); text-align: center; }
.member .role { font-size: 13px; color: var(--color-text-muted); margin: 0 0 18px; text-align: center; }
.member p { font-size: 14px; line-height: 1.95; margin: 0; }

/* ---------- 会社概要 ---------- */
.company { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--color-line); }
.company__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--color-line);
  font-size: 15px;
}
.company__row dt { font-weight: 700; color: var(--color-text-strong); margin: 0; }
.company__row dd { margin: 0; }
.company__row ul { margin: 0; padding-left: 1.1em; }

/* ---------- フォーム ---------- */
.form { max-width: 640px; margin: 0 auto; }
.form__intro { text-align: center; font-size: 15px; margin: 0 0 40px; }
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-strong);
}
.req {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 8px;
  vertical-align: 2px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 12px 14px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--color-cta);
  outline-offset: 1px;
  border-color: transparent;
}
.field--check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.field--check label { margin: 0; font-weight: 400; }

/* ハニーポット：人には見えない。埋まっていたら捨てる */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit { text-align: center; margin-top: 36px; }
.form__submit .btn { min-width: 220px; border: 0; cursor: pointer; font-family: inherit; }
.form__submit .btn:disabled { background: var(--ink-300); cursor: not-allowed; }
.form__status { margin-top: 18px; font-size: 14px; min-height: 1.6em; }
.form__status--ok { color: var(--color-cta); font-weight: 700; }
.form__status--ng { color: var(--color-accent); font-weight: 700; }

/* ---------- フッター ---------- */
.footer {
  background: var(--color-bg-inverse);
  color: #fff;
  padding: 56px 0 32px;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer__logo { font-family: var(--font-en); font-size: 20px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.footer__nav a { text-decoration: none; opacity: .82; }
.footer__nav a:hover { opacity: 1; text-decoration: underline; }
.footer__copy { margin-top: 44px; font-size: 12px; opacity: .6; }

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 8px 0;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-bottom: none; }
  .nav__toggle {
    display: block;
    background: none;
    border: 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text);
    padding: 8px;
    cursor: pointer;
  }
  .section { padding: 64px 0; }
  .hero { min-height: 64vh; }
  .news__item { grid-template-columns: 1fr; gap: 6px; }
  .company__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
}
