/* ===== 色やサイズはここで一括変更できます ===== */
:root {
  --main: #2563eb;        /* メインカラー（青） */
  --main-dark: #1e40af;
  --accent: #f97316;      /* アクセント（オレンジ） */
  --accent-light: #fdba74; /* 明るいオレンジ（飾り用） */
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --tint: #f1f5ff;
  --line: #e5e7eb;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn--ghost { background: transparent; color: var(--main); border-color: var(--main); }
.btn--small { padding: 8px 20px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* ===== ヘッダー ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 900; font-size: 1.3rem; color: var(--main); }
.logo span { color: var(--accent); margin-left: 4px; font-size: .8em; }
.logo--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--main); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 8px; transition: .2s; }

/* ===== ヒーロー ===== */
.hero { background: linear-gradient(135deg, #eef3ff 0%, #fff7ef 100%); padding: 80px 0; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__label { display: inline-block; background: #fff; color: var(--main); font-weight: 700; font-size: .85rem; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px; }
.hero__title { font-size: clamp(1.8rem, 4.5vw, 2.9rem); line-height: 1.4; font-weight: 900; margin-bottom: 20px; }
.hero__title em { font-style: normal; color: var(--main); }
.hero__lead { color: var(--muted); margin-bottom: 32px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.chat { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 20px 50px rgba(37,99,235,.15); display: flex; flex-direction: column; gap: 12px; }
.chat__bubble { padding: 12px 16px; border-radius: 16px; font-size: .92rem; max-width: 85%; opacity: 0; animation: pop .5s forwards; }
.chat__bubble--user { background: #f3f4f6; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat__bubble--ai { background: var(--main); color: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat__bubble:nth-child(1) { animation-delay: .3s; }
.chat__bubble:nth-child(2) { animation-delay: 1.1s; }
.chat__bubble:nth-child(3) { animation-delay: 1.9s; }
.chat__bubble:nth-child(4) { animation-delay: 2.7s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== セクション共通 ===== */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section__en { color: var(--accent); font-weight: 700; letter-spacing: .15em; font-size: .85rem; text-align: center; }
.section__title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; text-align: center; margin-bottom: 16px; }
.section__lead { text-align: center; color: var(--muted); margin-bottom: 40px; }
.section__title + .cards, .section__title + .works, .section__title + .company { margin-top: 32px; }

/* ===== 事業内容カード ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-4px); }
.card { position: relative; border-top: 4px solid var(--accent-light); }
.card__num { position: absolute; top: 16px; right: 20px; font-size: 2rem; font-weight: 900; color: var(--accent-light); opacity: .5; line-height: 1; }
.card__icon { font-size: 2.2rem; margin-bottom: 12px; }
.card__catch { color: var(--accent) !important; font-weight: 700; margin-bottom: 6px; }
.card h3 { font-size: 1.15rem; line-height: 1.5; margin-bottom: 8px; color: var(--main-dark); }
.card p { color: var(--muted); font-size: .95rem; }

/* ===== 料金 ===== */
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price { position: relative; background: #fff; border-radius: var(--radius); padding: 32px 24px; text-align: center; border: 2px solid transparent; }
.price--pick { border-color: var(--accent); }
.price__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; padding: 2px 14px; border-radius: 999px; }
.price h3 { font-size: 1.05rem; margin-bottom: 8px; }
.price__num { font-size: 2rem; font-weight: 900; color: var(--main); margin-bottom: 8px; }
.price__num small { font-size: .9rem; margin-left: 2px; }
.price p:last-child { color: var(--muted); font-size: .9rem; }

/* ===== 実績 ===== */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work__img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0,0,0,.12); margin-bottom: 12px; background: #e5e7eb; }
.work figcaption { font-weight: 500; text-align: center; }

/* ===== 会社概要 ===== */
.company { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.company th, .company td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company th { width: 30%; background: #f9fafb; font-weight: 700; white-space: nowrap; }

/* ===== お問い合わせフォーム ===== */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.form__row { margin-bottom: 20px; }
.form__row label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { background: var(--accent); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: inherit;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--main); border-color: var(--main); }
.form .is-invalid { border-color: #dc2626; }
.form__row--check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.form__row--check input { margin-top: 7px; }
.form__error { color: #dc2626; font-size: .85rem; margin-top: 4px; min-height: 1em; }
.form__status { margin-top: 16px; text-align: center; font-weight: 700; }
.form__status.is-ok { color: #16a34a; }
.form__status.is-ng { color: #dc2626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== フッター ===== */
.footer { background: #111827; color: #9ca3af; padding: 40px 0; text-align: center; font-size: .85rem; }
.footer .logo { display: inline-block; margin-bottom: 8px; }

/* ===== スマホ対応 ===== */
@media (max-width: 860px) {
  .hero { padding: 56px 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .cards, .price-list, .works { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; width: 100%; text-align: center; }
  .nav .btn { width: auto; margin: 8px 0 16px; }
  .form { padding: 20px; }
  .company th { width: 35%; white-space: normal; }
}
