/* ===== 色・サイズの設定（ここを変えるとサイト全体の雰囲気が変わります） ===== */
:root {
  --c-main: #1f2a6b;      /* メインカラー（濃い紺） */
  --c-main-2: #3446b5;    /* グラデーション用 */
  --c-accent: #2f7cf6;    /* アクセント（ボタンなど・明るい青） */
  --c-sky: #8cc8ff;       /* 濃い背景の上で使う水色 */
  --c-text: #1d2333;
  --c-muted: #5d6478;
  --c-bg: #ffffff;
  --c-tint: #f4f6fc;
  --c-line: #e2e6f0;
  --c-error: #d6364a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 42, 107, 0.08);
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }
.accent { color: var(--c-accent); }

/* ===== ボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 8px 20px rgba(47, 124, 246, .35); }
.hero .btn--primary { background: #fff; color: var(--c-main); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.hero .accent { color: var(--c-sky); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline { background: #fff; color: var(--c-main); border-color: var(--c-main); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== ヘッダー ===== */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 900; font-size: 20px; color: var(--c-main); letter-spacing: .02em; }
.logo__sub { font-size: 12px; font-weight: 500; color: var(--c-muted); margin-left: 4px; }
.logo--light { color: #fff; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--c-main-2); }
.nav__cta { background: var(--c-main); color: #fff !important; padding: 8px 18px; border-radius: 999px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-main); margin: 5px 0; transition: .2s; }

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-2) 100%);
  color: #fff; padding: 96px 0 104px; overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  background: rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero__title { font-size: clamp(30px, 5vw, 50px); font-weight: 900; margin-bottom: 20px; }
.hero__lead { font-size: 16px; opacity: .92; margin-bottom: 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero__note { font-size: 13px; opacity: .75; }

.mock { background: #fff; color: var(--c-text); border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.25); overflow: hidden; }
.mock__bar { background: #eef1f8; padding: 10px 14px; display: flex; gap: 6px; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9cfdf; }
.mock__body { padding: 22px; display: grid; gap: 12px; font-size: 14px; }
.mock__row { padding: 10px 14px; border-radius: 12px; max-width: 85%; }
.mock__row--user { background: var(--c-tint); justify-self: end; }
.mock__row--ai { background: var(--c-main); color: #fff; }
.mock__steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.mock__steps li { border: 1px solid var(--c-line); border-radius: 10px; padding: 10px 14px; }
.mock__steps b { color: var(--c-accent); margin-right: 8px; font-size: 12px; }

/* ===== セクション共通 ===== */
.section { padding: 96px 0; }
.section--tint { background: var(--c-tint); }
.section__label { color: var(--c-accent); font-weight: 700; letter-spacing: .15em; font-size: 13px; text-align: center; }
.section__title { font-size: clamp(26px, 3.5vw, 34px); font-weight: 900; text-align: center; margin: 6px 0 14px; color: var(--c-main); }
.section__lead { text-align: center; color: var(--c-muted); margin-bottom: 48px; }

/* ===== 事業内容カード ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow);
}
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; background: #e8f1ff; color: var(--c-accent);
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 19px; margin-bottom: 10px; color: var(--c-main); }
.card p { color: var(--c-muted); font-size: 15px; }
.badge {
  position: absolute; top: 18px; right: 18px; background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}

/* ===== 料金 ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid var(--c-line); display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--c-accent); box-shadow: 0 16px 40px rgba(47,124,246,.18); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 16px; border-radius: 999px;
}
.plan__name { font-size: 18px; color: var(--c-main); text-align: center; }
.plan__price { font-size: 32px; font-weight: 900; text-align: center; margin: 12px 0 20px; color: var(--c-text); }
.plan__price span { font-size: 13px; font-weight: 500; color: var(--c-muted); margin-left: 4px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan__list li { padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--c-line); position: relative; font-size: 15px; }
.plan__list li::before { content: "✓"; position: absolute; left: 4px; color: var(--c-accent); font-weight: 700; }

/* ===== 実績 ===== */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); transition: transform .2s, box-shadow .2s; }
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work__thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 20px; letter-spacing: .05em;
}
.work__thumb--1 { background: linear-gradient(135deg, #1f2a6b, #3446b5); }
.work__thumb--2 { background: linear-gradient(135deg, #2f5fd6, #2f7cf6); }
.work__thumb--3 { background: linear-gradient(135deg, #3d8bf2, #8cc8ff); }
.work__body { padding: 20px 22px 24px; }
.work__body h3 { font-size: 17px; margin-bottom: 6px; }
.work__body p { color: var(--c-muted); font-size: 14px; }

/* ===== 流れ ===== */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow__item { background: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; border: 1px solid var(--c-line); }
.flow__num { display: inline-block; font-size: 28px; font-weight: 900; color: var(--c-accent); margin-bottom: 6px; }
.flow__item h3 { font-size: 17px; color: var(--c-main); margin-bottom: 8px; }
.flow__item p { font-size: 14px; color: var(--c-muted); }

/* ===== 会社概要 ===== */
.company { width: 100%; border-collapse: collapse; background: #fff; }
.company th, .company td { padding: 18px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; font-size: 15px; }
.company th { width: 30%; color: var(--c-main); font-weight: 700; white-space: nowrap; }

/* ===== お問い合わせ ===== */
.section--contact { background: var(--c-tint); }
.form { background: #fff; border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form__row { margin-bottom: 22px; }
.form__row label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.req, .opt { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.req { background: var(--c-main-2); color: #fff; }
.opt { background: var(--c-line); color: var(--c-muted); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 1.5px solid var(--c-line); border-radius: 10px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--c-main-2); box-shadow: 0 0 0 4px rgba(52,70,181,.12); background: #fff;
}
.form .is-invalid { border-color: var(--c-error) !important; }
.form__error { color: var(--c-error); font-size: 13px; margin-top: 6px; min-height: 0; }
.form__row--check { margin-top: 8px; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--c-accent); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: 16px; text-align: center; font-weight: 700; }
.form__status.is-success { color: var(--c-main-2); }
.form__status.is-error { color: var(--c-error); }

/* ===== フッター ===== */
.footer { background: var(--c-main); color: rgba(255,255,255,.8); padding: 48px 0 32px; }
.footer__inner { display: grid; gap: 20px; justify-items: center; text-align: center; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { font-size: 12px; opacity: .7; }

/* ===== スマホ・タブレット ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .cards, .plans, .works { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .plans { gap: 32px; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--c-line);
    padding: 8px 16px 20px; transform: translateY(-120%); transition: transform .25s; z-index: -1;
  }
  .nav a { padding: 14px 0; width: 100%; text-align: center; border-bottom: 1px solid var(--c-line); }
  .nav__cta { margin-top: 12px; border-bottom: 0 !important; }
  .nav.is-open { transform: translateY(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .hero { padding: 64px 0 72px; }
  .section { padding: 72px 0; }
  .flow { grid-template-columns: 1fr; }
  .form { padding: 28px 20px; }
  .company th, .company td { display: block; width: 100%; }
  .company th { border-bottom: 0; padding-bottom: 0; }
  .logo__sub { display: none; }
}
