/* AI指名研究所 共通スタイル
   白が基調、アクセントは紺色1色。フォントは端末に入っているものだけを使う */

:root {
  --navy: #1e3a5f;
  --navy-deep: #152a45;
  --text: #1f2328;
  --muted: #59616d;
  --line: #dde2e8;
  --soft: #f5f7fa;
  --white: #ffffff;
  --todo: #fff27a;
  --radius: 8px;
  --container: 1080px;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  line-break: strict;
}

h1,
h2,
h3 {
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin: 0 0 0.6em;
  font-weight: 700;
  word-break: auto-phrase; /* 対応ブラウザでは、日本語の見出しを文節で改行する */
}

h1 {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.5rem);
}

h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
}

h3 {
  font-size: 1.12rem;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1.2em;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 0.35em;
}

a {
  color: var(--navy);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--navy-deep);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

/* 【】の部分：決まるまで黄色で目立たせる */
mark.todo {
  background: var(--todo);
  color: var(--text);
  padding: 0.05em 0.2em;
  border-radius: 3px;
}

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

.narrow {
  max-width: 760px;
}

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

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.5;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 2px solid var(--navy);
}

.btn:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--white);
}

.btn-small {
  font-size: 0.9rem;
  padding: 0.6em 1.1em;
}

.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--soft);
  border-color: var(--soft);
  color: var(--navy-deep);
}

.btn.is-disabled {
  background: var(--line);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-row {
  text-align: center;
  margin: 2em 0 0;
}

.center {
  text-align: center;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand cta"
    "nav nav";
  gap: 10px 24px;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 12px;
}

.brand {
  grid-area: brand;
  display: block;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}

.brand:hover {
  color: var(--text);
}

.brand-name {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.header-cta {
  grid-area: cta;
}

.global-nav {
  grid-area: nav;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.global-nav li + li {
  margin-top: 0;
}

.global-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

@media (min-width: 1100px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav cta";
  }

  .global-nav ul {
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "cta";
  }

  .global-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .global-nav a {
    text-align: center;
    font-size: 0.9rem;
    padding: 8px 4px;
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .global-nav a:hover,
  .global-nav a[aria-current="page"] {
    border-color: var(--navy);
  }

  .header-cta {
    width: 100%;
  }
}

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

.section {
  padding: 64px 0;
}

.section-soft {
  background: var(--soft);
}

.section > .container > h2,
.section-title {
  margin-bottom: 0.9em;
}

.section-title-bar {
  padding-left: 0.7em;
  border-left: 4px solid var(--navy);
}

@media (max-width: 767px) {
  .section {
    padding: 44px 0;
  }
}

/* ---------- トップ：ファーストビュー ---------- */

.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 22em;
  margin-bottom: 0.8em;
}

.hero-lead {
  max-width: 40em;
  font-size: 1.05rem;
}

.hero .btn {
  margin-top: 0.6em;
  font-size: 1.05rem;
}

.hero-note {
  max-width: 40em;
  margin: 1.4em 0 0;
  padding: 0.9em 1.1em;
  background: var(--soft);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 767px) {
  .hero {
    padding: 44px 0 40px;
  }

  .hero .btn {
    display: block;
  }
}

/* ---------- リスト・カード ---------- */

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 0.9em 1em 0.9em 2.6em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 1em;
  top: 1.45em;
  width: 0.7em;
  height: 0.38em;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

.dot-list {
  list-style: none;
  padding: 0;
}

.dot-list li {
  position: relative;
  padding-left: 1.3em;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.75em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--navy);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cards > li + li {
  margin-top: 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.card h3 {
  color: var(--navy);
}

.card p {
  margin: 0;
}

.card-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  margin-bottom: 0.4em;
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 進め方 */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.9em 1em 0.9em 3.6em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps li + li {
  margin-top: 10px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9em;
  height: 1.9em;
  line-height: 1.9em;
  text-align: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- 表 ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.table tbody th {
  font-weight: 600;
  width: 34%;
  background: var(--soft);
}

.table td.price {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack th,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tbody th {
    width: 100%;
    border-bottom: none;
    padding-bottom: 4px;
  }

  .table-stack td {
    padding-top: 4px;
  }
}

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

.page-head {
  padding: 56px 0 36px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-bottom: 0.5em;
}

.page-head p {
  max-width: 44em;
  margin: 0;
}

@media (max-width: 767px) {
  .page-head {
    padding: 36px 0 28px;
  }
}

.content h2 {
  margin-top: 2.2em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid var(--line);
}

.content h2:first-child {
  margin-top: 0;
}

/* サービス */
.service-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 10px;
  background: var(--white);
}

.service-block + .service-block {
  margin-top: 20px;
}

.service-block h2 {
  margin: 0 0 0.8em;
  padding: 0 0 0.6em;
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
}

.service-dl {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 0;
}

.service-dl dt,
.service-dl dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.service-dl dt {
  font-weight: 700;
  color: var(--muted);
}

.service-dl dd ul {
  margin: 0;
}

.service-dl dt:last-of-type,
.service-dl dd:last-of-type {
  border-bottom: none;
}

@media (max-width: 600px) {
  .service-block {
    padding: 22px 18px 6px;
  }

  .service-dl {
    grid-template-columns: 1fr;
  }

  .service-dl dt {
    border-bottom: none;
    padding-bottom: 0;
  }

  .service-dl dd {
    padding-top: 4px;
  }
}

.promise {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.promise > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 6px;
}

.promise > div:first-child {
  border-color: var(--navy);
}

.promise h3 {
  color: var(--navy);
}

@media (max-width: 700px) {
  .promise {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* よくある質問 */
.faq-item {
  padding: 26px 0 8px;
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item h2 {
  position: relative;
  font-size: 1.15rem;
  padding-left: 2em;
  margin: 0 0 0.7em;
  border: none;
}

.faq-item h2::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy);
  font-weight: 700;
}

.faq-item .answer {
  position: relative;
  padding-left: 2em;
}

.faq-item .answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- 最後の呼びかけ ---------- */

.cta {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  max-width: 36em;
  margin: 0 auto 1.6em;
}

@media (max-width: 767px) {
  .cta {
    padding: 44px 0;
  }

  .cta .btn {
    display: block;
  }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1em;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 1.6em;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-nav li + li {
  margin-top: 0;
}

.footer-nav a {
  color: var(--muted);
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
}
