/* ========= CSS RESET ========= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }

/* ========= THEME TOKENS ========= */
:root{
  --bg:#ffffff;
  --panel:#f9fafe;
  --panel-alt:#f1f5fb;
  --ink:#1b1f23;
  --muted:#5a6976;
  --brand:#1f6feb;      /* 濃い青 */
  --brand-ink:#0b4ea2;  /* 見出し用 */
  --accent:#22c55e;     /* チェックマーク用の緑 */
  --danger:#e63946;

  --container:1100px;
  --radius:16px;
  --shadow:0 8px 20px rgba(0,0,0,.06), 0 4px 8px rgba(0,0,0,.04);
}

/* ========= BASICS ========= */
body{
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.75;
  letter-spacing: .02em;
}
a{ color: var(--brand); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ========= BUTTONS ========= */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap:.5rem; padding:.85rem 1.2rem; border-radius: 999px;
  background: var(--brand); color:#fff; font-weight: 700; border: none;
  box-shadow: var(--shadow);
}
.btn:hover{ filter: brightness(1.05); text-decoration: none; }
.btn--ghost{ background: transparent; color: var(--brand); border:1.5px solid var(--brand); box-shadow:none; }
.btn--sm{ padding:.5rem .95rem; font-size:.9rem; }
.btn--lg{ padding:1rem 1.5rem; font-size:1.05rem; }
.btn--xl{ padding:1.1rem 1.8rem; font-size:1.1rem; }

/* ========= HEADER ========= */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,.08);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand{ font-weight:800; color:var(--brand); letter-spacing:.04em; }

.nav__toggle{
  display:none; background:transparent; color:var(--ink); border:1px solid rgba(0,0,0,.2);
  padding:.4rem .7rem; border-radius:8px;
}
.nav__list{ display:flex; align-items:center; gap:1rem; list-style:none; margin:0; padding:0; }
.nav__list a{ padding:.5rem .6rem; border-radius: 8px; }
.nav__list a:hover{text-decoration: none; }

.btn {
  background: var(--brand);
  transition: all .2s ease;
}
.btn:hover {
  box-shadow: 0 8px 20px rgba(31,111,235,.35);
  transform: translateY(-2px);
}


/* ========= HERO ========= */
.hero{ padding: 80px 0 40px; background: var(--panel-alt); }
.eyebrow{ font-size:.9rem; color:var(--muted); margin:0 0 .5rem; }
.hero h1{ font-size: clamp(2rem, 3vw + 1rem, 3.4rem); line-height:1.15; margin:.2rem 0 1rem; color:var(--brand-ink); }
.lead{ font-size: clamp(1rem, .6vw + .9rem, 1.25rem); color: var(--muted); }
.hero__grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap:36px; align-items:center; }
.hero__cta{ display:flex; gap:12px; margin:20px 0 16px; flex-wrap:wrap; }
.hero__points{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px 10px; padding-left:1.1em; }
.hero__visual{ display:flex; align-items:center; justify-content:center; }

.hero__bridge{ position:relative; width: 100%; aspect-ratio: 1 / 1; max-width: 420px; }
.arch{
  position:absolute; inset:auto 0 0 0; height:42%; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: linear-gradient(180deg, rgba(31,111,235,.8), rgba(31,111,235,.05));
  transform-origin: bottom center; box-shadow: 0 12px 32px rgba(31,111,235,.2);
}
.arch--1{ transform: scale(1); }
.arch--2{ transform: scale(.8) translateY(-12%); opacity:.8; filter: blur(.3px); }
.arch--3{ transform: scale(.6) translateY(-22%); opacity:.6; filter: blur(.6px); }

/*ヒーロー画像*/
.hero__img {
  width: 100%;
  max-height: 420px;      /* 高さを制御して収まりよく */
  object-fit: cover;      /* はみ出す場合に中央トリミング */
  border-radius: 12px;    /* 任意：やわらかい印象に */
  box-shadow: var(--shadow); /* 任意：立体感を少し足す */
}


/* ========= COMPARE TABLE ========= */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.compare thead {
  background: var(--brand);
  color: #fff;
}

.compare thead th {
  padding: 14px 10px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.compare thead th:last-child {
  border-right: none;
}

.compare tbody td {
  padding: 14px 10px;
  border: 1px solid #e0e6f0;
  background: #fff;
}

.compare tbody tr:nth-child(even) td {
  background: #f8fbff; /* 薄い青で交互 */
}

.compare tbody td:first-child,
.compare tbody td:nth-child(3) {
  font-weight: 600;
  color: var(--brand-ink);
}

/*WHY*/
.why__table {
  margin-top: 24px;
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.compare thead {
  background: var(--brand);
  color: #fff;
}
.compare thead th {
  padding: 14px 10px;
  font-weight: 700;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.compare thead th:last-child {
  border-right: none;
}

.compare tbody td {
  padding: 14px 10px;
  border: 1px solid #e0e6f0;
  background: #fff;
}
.compare tbody tr:nth-child(even) td {
  background: #f8fbff;
}
.compare tbody td:first-child,
.compare tbody td:nth-child(3) {
  font-weight: 600;
  color: var(--brand-ink);
}

.why__image{
  text-align: center;
}

/*カード*/
.impact-block {
  background: #f8fbff;
  border: 1px solid #dce7f5;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}
.impact-block h3 {
  margin-top: 0;
  color: var(--brand-ink);
}
.impact-block ul {
  list-style: none;
  padding-left: 0;
}
.impact-block li {
  margin: .6rem 0;
}

/*ポイント*/
.points {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.point {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.point-badge {
  display: inline-block;
  margin-right: .6rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: .2rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
}
.point-summary {
  margin-top: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--brand-ink);
}



/*説明ブロック*/
.approach-explain {
  margin: 28px 0;
  padding: 20px;
  background: #f8fbff;
  border: 1px solid #dce7f5;
  border-radius: 12px;
}
.approach-explain h3 {
  margin-top: 0;
  color: var(--brand-ink);
}
.approach-explain p {
  margin: 0.6rem 0 1rem;
}



/* ========= SECTIONS ========= */
.section{ padding: 72px 0; }
.section--alt{ background: var(--panel); }
.section__header{ margin: 0 0 26px; }
.section__header h2{ font-size: clamp(1.4rem, .9vw + 1.2rem, 2.1rem); margin:0 0 .4rem; color:var(--brand-ink); }
.section__header .sub{ color: var(--muted); margin:0; }

/* ========= CARDS / GRIDS ========= */
.card-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
.card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius); padding:20px; box-shadow: var(--shadow);
}
.card h3{ margin-top:0; }

.case-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:16px; margin-top:16px; }
.case{ background: #fff; border:1px solid rgba(0,0,0,.08); border-radius: var(--radius); padding:18px; box-shadow: var(--shadow); }
.case h4{ margin-top:0; }

.proof__headline{ font-size:1.2rem; margin:.2rem 0 10px; }
.checklist{ list-style: none; padding-left: 0; }
.checklist li{ position: relative; padding-left: 1.5em; margin:.35rem 0; }
.checklist li::before{
  content:"✓"; position:absolute; left:0; top:.1rem; color: var(--accent); font-weight: 800;
}
.checklist--grid{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px 18px; }

.split{ display:grid; grid-template-columns: 1fr 1fr; gap:24px; }
.bullet{ padding-left: 1.2em; }
.bullet li{ margin:.45rem 0; }

.quote{
  background: #f0fff4;
  border:1px solid #c6f6d5; border-radius: var(--radius); padding:16px 18px;
}
.note{ color: var(--muted); margin-top:12px; }

.service-grid{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:16px; }
.service{
  background: #fff; border:1px solid rgba(0,0,0,.08);
  border-radius: var(--radius); padding:20px; box-shadow: var(--shadow);
}

.badge-list{ list-style:none; padding-left:0; display:flex; flex-wrap:wrap; gap:10px; margin-top:0; }
.badge-list li{
  background: rgba(31,111,235,.08); color: var(--brand-ink); border:1px solid rgba(31,111,235,.2);
  padding:.45rem .7rem; border-radius: 999px; font-weight:700;
}

.policy{ background: var(--panel-alt); border:1px solid rgba(0,0,0,.08); border-radius: var(--radius); padding:18px; }

/*サービスカード*/
.service h3 {
  min-height: 3em;   /* 2行分の高さを確保 */
  line-height: 1.4;  /* 行間を少し広めに */
  margin-top: 0;
  margin-bottom: .6rem;
  display: block;    /* 中央寄せせず通常のブロック表示 */
}


.service {
  display: flex;
  flex-direction: column;
}

.service h3 {
  margin-bottom: .5rem;
}

.service p:nth-of-type(1) {
  flex-grow: 1; /* 余白を埋めて高さを揃える */
}

/*プロフィール*/
.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr; /* テキスト:画像 = 2:1 */
  gap: 24px;
  align-items: start;
}

.profile-photo img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 100%;
  height: auto;
}




/* ========= CTA / FORM ========= */
.cta .contact{
  margin-top: 14px; background: #fff; border:1px solid rgba(0,0,0,.08);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
label{ display:flex; flex-direction:column; gap:.4rem; font-weight:700; color:var(--ink); }
input, textarea{
  width: 100%; padding:.8rem 1rem; border-radius: 12px; border:1px solid rgba(0,0,0,.14);
  background: #fff; color: var(--ink); outline: none;
}
input:focus, textarea:focus{ border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,111,235,.18); }
.checkbox{ display:flex; align-items:center; gap:.55rem; font-weight:600; color:var(--ink); }
.checkbox input{ width:auto; }
.consent{ margin: 6px 0 10px; }
.form-note{ color: var(--muted); margin-top:10px; }

/* ご相談内容を広く */
.form-grid .full {
  grid-column: 1 / -1; /* グリッドを横断 */
}

.contact textarea {
  min-height: 200px; /* 高さを大きめに */
  resize: vertical;  /* ユーザーが自由に伸縮できる */
}

.consent {
  display: flex;
  justify-content: center;   /* 中央寄せ */
  margin: 16px 0;
}

.checkbox {
  display: inline-flex;       /* 横並びを維持 */
  flex-direction: row;
  align-items: center;
  gap: .5rem;
}


/* チェックボックスを横並び */
.checkbox {
  display: flex !important;
  flex-direction: row !important;  /* ← columnを上書き */
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.checkbox input[type="checkbox"] {
  margin: 0;
}

/* ボタンを中央寄せ */
form .btn--xl {
  display: block;          /* インライン→ブロックに */
  margin: 24px auto 0;     /* 中央寄せ */
  padding: 1.4rem 2.6rem;  /* 大きめ余白 */
  font-size: 1.25rem;      /* 文字も大きく */
  border-radius: 999px;    /* 丸みを強調 */
}



/* ========= FOOTER ========= */
.site-footer{ border-top:1px solid rgba(0,0,0,.08); padding: 24px 0 40px; color: var(--muted); }
.footer-inner{ display:grid; gap:6px; }
.site-footer .brand{ color: var(--brand); }

/* ========= RESPONSIVE ========= */
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
  .card-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .case-grid{ grid-template-columns: 1fr 1fr; }
  .service-grid{ grid-template-columns: 1fr 1fr; }
  .split{ grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-photo {
    margin-top: 20px;
    text-align: center;
  }
  .profile-photo img {
    max-width: 260px;
  }
}
@media (max-width: 680px){
  .nav__toggle{ display:block; }
  .nav__list{ display:none; position:absolute; right:20px; top:58px; width:min(92vw, 320px); padding:10px; border-radius: 12px;
    background:#fff; border:1px solid rgba(0,0,0,.08); flex-direction:column; align-items:stretch; }
    .nav__list.is-open{ display:flex; }
    .card-grid, .case-grid, .service-grid{ grid-template-columns: 1fr; }
    .checklist--grid{ grid-template-columns: 1fr; }
    .form-grid{ grid-template-columns: 1fr; }
    .hero{ padding: 64px 0 28px; }
    .quote{margin-inline-start: 0; margin-inline-end: 0;}
  }