/* ==========================================================
   コレダス TOP案v2（2026-10-30）
   - ロゴの緑（#27A249）に合わせる。文字の緑は読みやすい濃さ（#1B7A35）
   - 角丸なし・左の色帯なし・絵文字なし。区切りは1pxの線
   - このファイルは TOP案v2 のページだけで読み込む
   ========================================================== */
.page-template-page-top-v2 {
  --g: #27a249;
  --g-text: #1b7a35;
  --g-dark: #14592a;
  --g-pale: #eef7f0;
  --ink: #1a1a1c;
  --ink-2: #4d4d4d;
  --ink-3: #6b6b6b;
  --line: #d9ded9;
  --alt: #f6f8f6;
  color: var(--ink);
}
.page-template-page-top-v2 *,
.page-template-page-top-v2 *::before,
.page-template-page-top-v2 *::after { border-radius: 0 !important; }
.page-template-page-top-v2 a { color: var(--g-text); }

/* ---------- ヘッダー ---------- */
.page-template-page-top-v2 .p-header__logo { display: flex; align-items: center; }
.page-template-page-top-v2 .v2-logo { display: block; height: 40px; width: auto; }
.page-template-page-top-v2 .p-header__nav a:hover { color: var(--g-text); }

/* ---------- 共通 ---------- */
.v2-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.v2-section { padding: 88px 0; }
.v2-section--alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.v2-icon { display: inline-block; flex: none; vertical-align: middle; }
.v2-num { font-variant-numeric: tabular-nums; }
.v2-br-pc { display: inline; }

.v2-head { margin: 0 0 40px; }
.v2-head__en { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; color: var(--g-text); }
.v2-head__title { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.4; }
.v2-head__lead { margin: 12px 0 0; color: var(--ink-2); }

.v2-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; font-weight: 700; line-height: 1.2;
  border: 1px solid var(--g-text); text-decoration: none !important;
  transition: background-color .15s, color .15s;
}
.v2-btn--primary { background: var(--g-text); color: #fff !important; }
.v2-btn--primary:hover { background: var(--g-dark); border-color: var(--g-dark); }
.v2-btn--ghost { background: #fff; color: var(--g-text) !important; }
.v2-btn--ghost:hover { background: var(--g-pale); }

.v2-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; font-size: 0.75rem; font-weight: 700; line-height: 1.6;
  color: var(--g-text); background: var(--g-pale); border: 1px solid #c7e3cf;
}

/* ---------- ヒーロー ---------- */
.v2-hero { padding: 64px 0 0; background: linear-gradient(180deg, var(--g-pale) 0%, #fff 78%); }
.v2-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.v2-hero__eyebrow { display: inline-block; margin: 0 0 16px; padding: 4px 12px; font-size: 0.8125rem; font-weight: 700; color: var(--g-text); background: #fff; border: 1px solid #c7e3cf; }
.v2-hero__title { margin: 0 0 20px; font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.5; letter-spacing: 0.01em; }
.v2-hero__title span { display: inline-block; }
.v2-hero__lead { margin: 0 0 24px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.85; }
.v2-hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.v2-hero__badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 0.9375rem; }
.v2-hero__badges .v2-icon { color: var(--g); }
.v2-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.v2-hero__photo { margin: 0; position: relative; }
.v2-hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.v2-hero__photo::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 42%; height: 46%; background: var(--g); z-index: -1; }

.v2-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 64px 0 0; background: #fff; border: 1px solid var(--line); }
.v2-stats > div { padding: 20px 24px; border-right: 1px solid var(--line); }
.v2-stats > div:last-child { border-right: 0; }
.v2-stats dt { font-size: 0.8125rem; color: var(--ink-3); }
.v2-stats dd { margin: 4px 0 0; font-weight: 700; font-size: 0.9375rem; }
.v2-stats .v2-num { font-size: 2rem; line-height: 1.2; margin-right: 2px; color: var(--g-text); }

/* ---------- 分野カード ---------- */
.v2-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.v2-cat a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.v2-cat a:hover { border-color: var(--g); box-shadow: 0 6px 18px rgba(20, 89, 42, .12); text-decoration: none; }
.v2-cat__photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--alt); }
.v2-cat__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.v2-cat a:hover .v2-cat__photo img { transform: scale(1.04); }
.v2-cat__icon { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--g); color: #fff; }
.v2-cat__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.v2-cat__en { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--g-text); }
.v2-cat__ja { margin: 2px 0 8px; font-size: 1.125rem; font-weight: 700; line-height: 1.45; }
.v2-cat__desc { flex: 1; font-size: 0.875rem; line-height: 1.7; color: var(--ink-2); }
.v2-cat__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.v2-cat__count { color: var(--ink-3); white-space: nowrap; }
.v2-cat__cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--g-text); white-space: nowrap; }

/* ---------- 悩みから探す ---------- */
.v2-worries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.v2-worries a { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; padding: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.v2-worries a:hover { border-color: var(--g); text-decoration: none; }
.v2-worries__icon { grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #c7e3cf; background: var(--g-pale); color: var(--g-text); }
.v2-worries__text { font-weight: 700; font-size: 0.9375rem; line-height: 1.5; }
.v2-worries__to { font-size: 0.75rem; color: var(--g-text); margin-top: 2px; }

/* ---------- 診断の流れ ---------- */
.v2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.v2-steps li { position: relative; padding: 32px 28px 28px; border-right: 1px solid var(--line); background: #fff; }
.v2-steps li:last-child { border-right: 0; }
.v2-steps__no { position: absolute; top: 20px; right: 24px; font-size: 2.5rem; font-weight: 700; line-height: 1; color: #dfeee3; font-variant-numeric: tabular-nums; }
.v2-steps__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; background: var(--g); color: #fff; }
.v2-steps h3 { margin: 0 0 8px; font-size: 1.125rem; }
.v2-steps p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.75; }

/* ---------- 人気コラム ---------- */
.v2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.v2-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.v2-card a:hover { border-color: var(--g); text-decoration: none; }
.v2-card a:hover .v2-card__title { color: var(--g-text); }
.v2-card__photo { position: relative; display: block; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--alt); }
.v2-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-card__rank { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--ink); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.v2-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 20px; }
.v2-card__title { font-weight: 700; line-height: 1.6; }

/* ---------- 新着 ---------- */
.v2-news { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.v2-news li { border-bottom: 1px solid var(--line); }
.v2-news a { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; padding: 16px 0; color: var(--ink); text-decoration: none; }
.v2-news a:hover .v2-news__title { color: var(--g-text); text-decoration: underline; }
.v2-news__photo { display: block; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--alt); }
.v2-news__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.v2-news__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.v2-news__title { display: block; font-weight: 700; line-height: 1.6; }

/* ---------- 既存セクション（コレダスとは・FAQ・お問い合わせ）を新デザインに寄せる ---------- */
.page-template-page-top-v2 .l-section { padding: 88px 0; }
.page-template-page-top-v2 .l-section--alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-template-page-top-v2 .c-section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.page-template-page-top-v2 .p-about__text { max-width: 760px; margin: 0 auto; text-align: left; color: var(--ink-2); }
.page-template-page-top-v2 .p-hero__cta { background: var(--g-text); color: #fff; }
.page-template-page-top-v2 .p-hero__cta:hover { background: var(--g-dark); }
.page-template-page-top-v2 .p-faq__question:hover { color: var(--g-text); }

/* ---------- シリーズのロゴ ---------- */
.v2-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.v2-logos li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.v2-logos a { display: flex; align-items: center; justify-content: center; height: 100%; padding: 22px 20px; }
.v2-logos a:hover { background: var(--g-pale); }
.v2-logos img { display: block; width: 100%; max-width: 220px; height: auto; }

/* ---------- フッター ---------- */
.v2-credit { margin: 24px 0 0; font-size: 0.75rem; line-height: 1.7; color: #b8bfc8; text-align: center; }
.v2-credit a { color: #d6dbe1; text-decoration: underline; }
.page-template-page-top-v2 .p-footer a { color: #d6dbe1; }
.page-template-page-top-v2 .p-footer a:hover { color: #fff; }
.page-template-page-top-v2 .p-footer__services-list a { color: #9fd8ae; }

/* ---------- タブレット ---------- */
@media (max-width: 1023px) {
  .v2-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .v2-hero__photo::after { right: -10px; bottom: -10px; }
  .v2-cats { grid-template-columns: repeat(2, 1fr); }
  .v2-worries { grid-template-columns: repeat(2, 1fr); }
  .v2-cards { grid-template-columns: repeat(2, 1fr); }
  .v2-logos { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- ヘッダー: 768〜1023 でもハンバーガーに切り替える（メニュー6項目が折り返すため） ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-template-page-top-v2 .p-header__inner { position: relative; }
  .page-template-page-top-v2 .p-header__hamburger { display: flex; }
  .page-template-page-top-v2 .p-header__nav { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 64px; left: -20px; right: -20px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; z-index: 150; }
  .page-template-page-top-v2 .p-header__nav.is-open { display: flex; }
  .page-template-page-top-v2 .p-header__nav a { width: 100%; padding: 14px 24px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .page-template-page-top-v2 .p-header__nav a:last-child { border-bottom: none; }
  .v2-hero__photo img { aspect-ratio: 2 / 1; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .v2-wrap { padding: 0 16px; }
  .v2-section, .page-template-page-top-v2 .l-section { padding: 56px 0; }
  .v2-head { margin-bottom: 28px; }
  .v2-br-pc { display: none; }
  .v2-hero__title { font-size: 1.625rem; }
  .page-template-page-top-v2 .v2-logo { height: 34px; }

  .v2-hero { padding-top: 32px; }
  .v2-hero__lead { font-size: 1rem; }
  .v2-hero__badges li { padding: 6px 10px; font-size: 0.875rem; }
  .v2-hero__actions .v2-btn { flex: 1 1 100%; justify-content: center; }
  .v2-hero__photo::after { display: none; }
  .v2-stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .v2-stats > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .v2-stats > div:nth-child(2n) { border-right: 0; }
  .v2-stats > div:nth-child(n+3) { border-bottom: 0; }
  .v2-stats .v2-num { font-size: 1.625rem; }

  /* 分野カードは横並び（写真左・文字右）にして縦に長くしすぎない */
  .v2-cats { grid-template-columns: 1fr; gap: 12px; }
  .v2-cat a { flex-direction: row; }
  .v2-cat__photo { flex: none; width: 34%; aspect-ratio: auto; min-height: 100%; }
  .v2-cat__icon { width: 36px; height: 36px; }
  .v2-cat__icon .v2-icon { width: 20px; height: 20px; }
  .v2-cat__body { padding: 12px 14px; }
  .v2-cat__ja { font-size: 1rem; margin-bottom: 4px; }
  .v2-cat__desc { font-size: 0.8125rem; line-height: 1.6; }
  .v2-cat__foot { margin-top: 8px; padding-top: 8px; }

  .v2-worries { grid-template-columns: 1fr; gap: 8px; }
  .v2-worries a { padding: 12px 14px; }

  .v2-steps { grid-template-columns: 1fr; }
  .v2-steps li { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 20px; }
  .v2-steps li:last-child { border-bottom: 0; }
  .v2-steps__icon { width: 52px; height: 52px; margin-bottom: 12px; }

  .v2-cards { grid-template-columns: 1fr; gap: 12px; }
  .v2-card a { flex-direction: row; }
  .v2-card a { align-items: flex-start; }
  .v2-card__photo { flex: none; width: 42%; aspect-ratio: 1.91 / 1; }
  .v2-card__rank { width: 30px; height: 30px; font-size: 0.875rem; }
  .v2-card__body { padding: 12px 14px; gap: 6px; }
  .v2-card__title { font-size: 0.9375rem; line-height: 1.55; }

  .v2-news { grid-template-columns: 1fr; }
  .v2-news a { grid-template-columns: 104px 1fr; gap: 12px; padding: 14px 0; }
  .v2-news__title { font-size: 0.9375rem; }

  .v2-logos a { padding: 14px 12px; }
}

/* ---------- フッターのシリーズ一覧を横並びに ---------- */
.page-template-page-top-v2 .p-footer__services { text-align: center; }
.page-template-page-top-v2 .p-footer__services-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 8px 0 0; padding: 0; list-style: none; }
