@charset "UTF-8";

/* ==========================================================
   株式会社エイティーエイト コーポレートサイト
   設計方針: 白地 ＋ 緑1色。色数を増やさない。余白を広く取る。
   （.claude/design/スライドデザイン規定.md の配色を Web に引き継ぐ）
   ========================================================== */

:root {
  --green: #00a273;
  --green-dark: #007a56;
  --green-tint: #e8f5f1;
  --green-tint2: #b5e4d6;
  --ink: #1a1a1a;
  --ink-sub: #6b7280;
  --line: #e1e7e5;
  --white: #ffffff;

  --max: 960px;
  --pad: 24px;
}

/* ---------- リセット ---------- */

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

body,
h1,
h2,
h3,
p,
ul,
ol,
li,
dl,
dt,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ---------- 基本 ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--green-dark);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- ヘッダー ---------- */

.header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.header__logo img {
  width: 26px;
}

.header__logo span {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.04em;
}

.header__nav ul {
  display: flex;
  gap: 22px;
}

.header__nav a {
  font-size: 14px;
  color: var(--ink-sub);
  text-decoration: none;
}

.header__nav a:hover {
  color: var(--green-dark);
}

@media (max-width: 720px) {
  .header__nav {
    display: none;
  }
}

/* ---------- セクション共通 ---------- */

.section {
  padding-block: 84px;
}

.section--tint {
  background: var(--green-tint);
}

.section__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: bold;
  margin-bottom: 10px;
}

.section__title {
  font-size: 27px;
  line-height: 1.6;
  color: var(--green-dark);
  margin-bottom: 20px;
  font-weight: bold;
}

.section__lead {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 44px;
  max-width: 40em;
}

@media (max-width: 720px) {
  .section {
    padding-block: 60px;
  }

  .section__title {
    font-size: 22px;
  }
}

/* ---------- ファーストビュー ---------- */

.hero {
  padding-block: 104px 92px;
  border-bottom: 1px solid var(--line);
}

.hero__title {
  font-size: 40px;
  line-height: 1.5;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.hero__title em {
  font-style: normal;
  color: var(--green);
}

.hero__lead {
  font-size: 17px;
  max-width: 34em;
  margin-bottom: 18px;
}

.hero__note {
  font-size: 14px;
  color: var(--ink-sub);
  max-width: 34em;
  margin-bottom: 36px;
}

@media (max-width: 720px) {
  .hero {
    padding-block: 64px 56px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__lead {
    font-size: 16px;
  }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 16px 38px;
  border-radius: 4px;
  line-height: 1.5;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--green-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--green-dark);
  border: 1px solid var(--green);
  padding: 13px 30px;
  font-size: 15px;
}

.btn--ghost:hover {
  background: var(--green-tint);
  color: var(--green-dark);
}

/* ---------- 課題（縦リスト・左罫線） ---------- */

.problems li {
  border-left: 3px solid var(--green-tint2);
  padding: 4px 0 4px 22px;
  margin-bottom: 26px;
  font-size: 17px;
  font-weight: bold;
}

.problems li span {
  display: block;
  font-size: 14.5px;
  font-weight: normal;
  color: var(--ink-sub);
  margin-top: 4px;
}

.problems li:last-child {
  margin-bottom: 0;
}

/* ---------- サービス（番号つき縦積み） ---------- */

.services {
  border-top: 1px solid var(--line);
}

.services > li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px 20px;
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
}

.services__num {
  font-size: 32px;
  font-weight: bold;
  color: var(--green-tint2);
  line-height: 1.2;
}

.services__name {
  font-size: 19px;
  font-weight: bold;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.services__desc {
  font-size: 15px;
  color: var(--ink);
}

.services__meta {
  font-size: 13.5px;
  color: var(--ink-sub);
  margin-top: 8px;
}

@media (max-width: 720px) {
  .services > li {
    grid-template-columns: 48px 1fr;
    gap: 4px 12px;
  }

  .services__num {
    font-size: 24px;
  }

  .services__name {
    font-size: 17px;
  }
}

/* 受託の注記ブロック */
.sub-offer {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.sub-offer h3 {
  font-size: 15px;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.sub-offer p {
  font-size: 14.5px;
  color: var(--ink-sub);
}

/* このサイト自体の告知（1行） */
.selfproof {
  margin-top: 34px;
  padding: 20px 24px;
  background: var(--green-tint);
  border-radius: 4px;
  font-size: 15px;
}

.selfproof strong {
  color: var(--green-dark);
}

.selfproof a {
  white-space: nowrap;
}

/* ---------- 進め方（横ステップ） ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.steps li {
  border-top: 3px solid var(--green);
  padding-top: 16px;
}

.steps__num {
  font-size: 12px;
  color: var(--green);
  font-weight: bold;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 6px;
}

.steps__name {
  font-size: 15.5px;
  font-weight: bold;
  margin-bottom: 6px;
}

.steps__desc {
  font-size: 13.5px;
  color: var(--ink-sub);
  line-height: 1.8;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- 事例 ---------- */

.cases > li {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.cases > li:first-child {
  border-top: 1px solid var(--line);
}

.cases__who {
  font-size: 13px;
  color: var(--green);
  font-weight: bold;
  margin-bottom: 8px;
}

.cases__what {
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 14px;
}

.cases__result {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.cases__before {
  font-size: 15px;
  color: var(--ink-sub);
  text-decoration: line-through;
}

.cases__arrow {
  color: #7cc3ac;
  font-size: 20px;
}

.cases__after {
  font-size: 34px;
  font-weight: bold;
  color: var(--green);
  line-height: 1.2;
}

.cases__unit {
  font-size: 15px;
  color: var(--ink);
}

.cases__note {
  font-size: 14px;
  color: var(--ink-sub);
  margin-top: 10px;
}

/* ---------- 事例セクションの小見出し ---------- */

.subhead {
  font-size: 18px;
  font-weight: bold;
  color: var(--green-dark);
  margin-top: 54px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--green);
  display: inline-block;
}

.subhead-first {
  margin-top: 0;
}

.subhead-note {
  font-size: 14px;
  color: var(--ink-sub);
  margin: 10px 0 20px;
}

/* ---------- 中間CTA ---------- */

.midcta {
  margin-top: 44px;
  text-align: center;
}

.midcta p {
  font-size: 15px;
  color: var(--ink-sub);
  margin-bottom: 16px;
}

/* ---------- 料金 ---------- */

.pricing {
  border-top: 1px solid var(--line);
}

.pricing > li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.pricing__name {
  font-size: 16px;
  font-weight: bold;
}

.pricing__name span {
  display: block;
  font-size: 13.5px;
  font-weight: normal;
  color: var(--ink-sub);
  margin-top: 2px;
}

.pricing__price {
  font-size: 15px;
  color: var(--green-dark);
  font-weight: bold;
  white-space: nowrap;
}

.notes {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-sub);
}

.notes li {
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 4px;
}

/* ---------- 代表メッセージ ---------- */

.message p {
  margin-bottom: 1.6em;
  max-width: 40em;
}

.message strong {
  color: var(--green-dark);
}

.message__sign {
  margin-top: 34px;
  font-size: 15px;
  font-weight: bold;
}

.message__sign span {
  display: block;
  font-size: 13.5px;
  font-weight: normal;
  color: var(--ink-sub);
  margin-bottom: 4px;
}

.profile {
  margin-top: 40px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.profile h3 {
  font-size: 14px;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.profile dl {
  display: grid;
  grid-template-columns: 8.5em 1fr;
  gap: 6px 12px;
  font-size: 14.5px;
}

.profile dt {
  color: var(--ink-sub);
}

@media (max-width: 560px) {
  .profile dl {
    grid-template-columns: 1fr;
    gap: 0 0;
  }

  .profile dt {
    margin-top: 10px;
    font-size: 13px;
  }
}

/* ---------- FAQ ---------- */

.faq dt {
  font-weight: bold;
  font-size: 16.5px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-bottom: 8px;
}

.faq dt::before {
  content: "Q.";
  color: var(--green);
  margin-right: 8px;
}

.faq dd {
  font-size: 15px;
  color: var(--ink);
  padding-bottom: 24px;
}

/* ---------- 相談する ---------- */

.contact {
  text-align: center;
}

.contact__title {
  font-size: 26px;
  font-weight: bold;
  color: var(--green-dark);
  margin-bottom: 18px;
  line-height: 1.6;
}

.contact__lead {
  font-size: 15.5px;
  margin-bottom: 12px;
}

.contact__note {
  font-size: 13.5px;
  color: var(--ink-sub);
  margin-bottom: 34px;
}

.contact__mail {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-sub);
}

@media (max-width: 720px) {
  .contact__title {
    font-size: 21px;
  }
}

/* ---------- フッター ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 44px;
  font-size: 13.5px;
  color: var(--ink-sub);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.footer__logo img {
  width: 22px;
}

.footer__logo span {
  font-weight: bold;
  color: var(--ink);
  font-size: 14px;
}

.footer__nav ul {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__nav a {
  color: var(--ink-sub);
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--green-dark);
}

.footer__copy {
  margin-top: 26px;
  font-size: 12.5px;
}

/* ---------- 下層ページ用 ---------- */

.page-head {
  padding-block: 56px 0;
}

.page-head h1 {
  font-size: 30px;
  color: var(--green-dark);
  line-height: 1.5;
}

.table-info {
  border-top: 1px solid var(--line);
  width: 100%;
}

.table-info dl {
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 0;
}

.table-info dt,
.table-info dd {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.table-info dt {
  color: var(--ink-sub);
}

@media (max-width: 560px) {
  .table-info dl {
    grid-template-columns: 1fr;
  }

  .table-info dt {
    padding-bottom: 0;
    border-bottom: none;
    font-size: 13px;
  }
}

/* ---------- 校正用マーカー（公開前に必ず削除） ---------- */

.todo {
  background: #fff3cd;
  border-bottom: 2px dotted #b8860b;
  padding-inline: 3px;
  color: var(--ink);
}

/* 未確定であることの注記。公開前に .pending ごと削除する */
.pending {
  margin-top: 12px;
  font-size: 13px;
}
