/*
Theme Name: Waypoint Career
Description: 架空のキャリアコーチング会社「株式会社ウェイポイント」のオリジナルテーマ（ポートフォリオ用サンプル）
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: waypoint
*/

/* ===== 1. 変数 ===== */
:root {
  --color-main: #1f5c5a;
  --color-main-dark: #163f3e;
  --color-accent: #bf5536;      /* 白文字を載せるボタン用（コントラスト確保のため企画書の #E07A5F より濃い） */
  --color-accent-light: #e07a5f; /* 装飾用 */
  --color-bg: #f7f3ec;
  --color-text: #2b2b2b;
  --color-sub: #6b6b6b;
  --color-line: #e5ded3;
  --color-white: #fff;

  --font-heading: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;

  --container: 1080px;
  --radius: 16px;
  --radius-lg: 24px;
  --section-space: 96px;
}

/* ===== 2. ベース ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.5; margin: 0; color: var(--color-main); word-break: auto-phrase; /* 対応ブラウザでは文節で改行 */ }
p, ul, ol, figure, blockquote, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-main); }
a:hover { color: var(--color-main-dark); }
:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 832px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 16px; background: var(--color-main); color: var(--color-white); }
.skip-link:focus { top: 8px; }

/* ===== 3. 共通パーツ ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 40px;
  border-radius: var(--radius-lg);
  font-weight: 700; text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.btn--accent { background: var(--color-accent); color: var(--color-white); }
.btn--accent:hover { background: #a54628; color: var(--color-white); transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 0 24px; font-size: 14px; }

.section { padding: var(--section-space) 0; }
.section--bg { background: var(--color-bg); }
.section-head { margin-bottom: 48px; text-align: center; }
.section-head__en { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .2em; color: var(--color-sub); }
.section-head__title { font-size: 28px; }
.section-head__lead { margin-top: 16px; }

.check-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.check-list--narrow { max-width: 880px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.check-list__item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius);
  background: var(--color-white);
}
.check-list__item svg { flex: none; margin-top: 4px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }

.voice { padding: 32px; background: var(--color-bg); border-radius: var(--radius); }
.section--bg .voice { background: var(--color-white); }
.voice__text { margin-bottom: 16px; }
.voice__meta { font-size: 14px; color: var(--color-sub); }

.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }

.step-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; counter-reset: step; }
.step-list--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.step-list__item { padding: 24px; background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); }
.step-list--3 .step-list__item { padding: 32px; }
.step-list__label { margin-bottom: 8px; font-size: 13px; letter-spacing: .1em; color: var(--color-main); font-weight: 700; }
.step-list__title { font-weight: 700; }
h3.step-list__title { margin-bottom: 8px; font-size: 20px; }
.step-list__note { margin-top: 4px; font-size: 14px; color: var(--color-sub); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 480px; border-collapse: collapse; border: 1px solid var(--color-line); background: var(--color-white); }
.data-table th, .data-table td { padding: 16px 24px; border-bottom: 1px solid var(--color-line); text-align: left; }
.data-table thead th { background: var(--color-main); color: var(--color-white); border-bottom: 0; }
.data-table tbody th { color: var(--color-main); background: #fbf9f5; width: 30%; }
.data-table .is-num { text-align: right; white-space: nowrap; }
.data-table tr.is-highlight { background: var(--color-bg); }
.data-table__plan { font-weight: 700; }
.label { display: inline-block; margin-left: 8px; padding: 0 12px; border-radius: 12px; background: var(--color-accent); color: var(--color-white); font-size: 12px; font-weight: 700; vertical-align: middle; }
.note { margin-top: 16px; font-size: 13px; color: var(--color-sub); }

/* ===== 4. ヘッダー ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-white); border-bottom: 1px solid var(--color-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo svg { width: 40px; height: 40px; flex: none; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__name { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--color-main); }
.site-logo__sub { margin-top: 4px; font-size: 10px; letter-spacing: .2em; color: var(--color-sub); }

.global-nav { display: flex; align-items: center; gap: 24px; }
.global-nav__list { display: flex; gap: 24px; font-size: 14px; }
.global-nav__list a { color: var(--color-text); text-decoration: none; padding: 8px 0; }
.global-nav__list a:hover { color: var(--color-main); }
.global-nav__list a[aria-current="page"],
.global-nav__list .current-menu-item > a { color: var(--color-main); font-weight: 700; box-shadow: inset 0 -2px 0 var(--color-accent-light); }

.nav-toggle { display: none; }

/* ===== 5. フッター ===== */
.site-footer { border-top: 1px solid var(--color-line); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; font-size: 14px; }
.site-footer__company { margin-top: 8px; color: var(--color-sub); }
.footer-nav__list { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__notice { padding: 16px 24px; background: var(--color-bg); text-align: center; font-size: 13px; color: var(--color-sub); }

/* ===== 6. CTAバナー ===== */
.cta { background: var(--color-main); color: var(--color-white); text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 80px; padding-bottom: 80px; }
.cta__title { color: var(--color-white); font-size: 28px; }

/* ===== 7. ページ見出し（下層ページ） ===== */
.page-head { background: var(--color-bg); }
.page-head__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.page-head__body { flex: 1 1 400px; min-width: 0; }
.page-head__en { margin-bottom: 8px; font-size: 13px; letter-spacing: .2em; color: var(--color-main); font-weight: 700; }
.page-head__title { font-size: clamp(28px, 4vw, 40px); }
.page-head__lead { margin-top: 16px; }
.page-head__image { flex: 1 1 360px; min-width: 0; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }

/* ===== 8. トップページ ===== */
.hero { background: var(--color-bg); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 104px; }
.hero__body { flex: 1 1 440px; min-width: 0; }
.hero__en { margin-bottom: 16px; font-size: 13px; letter-spacing: .2em; color: var(--color-main); font-weight: 700; }
.hero__title { margin-bottom: 24px; font-size: clamp(32px, 5vw, 48px); line-height: 1.4; }
.hero__lead { max-width: 520px; margin-bottom: 40px; }
.hero__action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero__action-note { font-size: 14px; color: var(--color-sub); }
.hero__visual { flex: 1 1 400px; min-width: 0; }
.hero__visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }

.service-card {
  display: flex; flex-direction: column; gap: 16px;
  overflow: hidden; background: var(--color-white);
  border: 1px solid var(--color-line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(31, 92, 90, .1); }
.service-card__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-card__body { display: flex; flex-direction: column; flex: 1; gap: 16px; padding: 8px 32px 32px; }
.service-card__title { font-size: 20px; }
.service-card__text { flex: 1; }
.service-card__link { font-weight: 700; }

.reason-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.reason-list__num { margin-bottom: 8px; font-family: var(--font-heading); font-size: 40px; line-height: 1; font-weight: 700; color: var(--color-accent-light); }
.reason-list__title { margin-bottom: 8px; font-size: 20px; }

.faq { display: flex; flex-direction: column; gap: 16px; }
.faq__item { padding: 24px; background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); }
.faq__q { cursor: pointer; font-weight: 700; color: var(--color-main); }
.faq__a { margin-top: 16px; }

.contact-form { display: grid; gap: 24px; padding: 40px; background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius); }
.contact-form__field { display: grid; gap: 8px; }
.contact-form__label { font-weight: 700; }
.contact-form__required { margin-left: 8px; font-size: 12px; color: var(--color-accent); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  font: inherit; color: inherit;
  border: 1px solid #c9c0b2; border-radius: 8px; background: var(--color-white);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form__submit { justify-self: center; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.contact-form__message { text-align: center; color: var(--color-main); font-weight: 700; }

/* ===== 9. 私たちについて ===== */
.mission { text-align: center; }
.mission__title { font-size: clamp(24px, 3.5vw, 32px); line-height: 1.6; }

.message { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.message__head { flex: 0 1 280px; }
.message__head .section-head { text-align: left; margin-bottom: 0; }
.message__body { flex: 999 1 480px; min-width: 0; }
.message__body p + p { margin-top: 24px; }
.message__sign { text-align: right; font-weight: 700; }

.coach { display: flex; flex-direction: column; gap: 8px; padding: 32px; border: 1px solid var(--color-line); border-radius: var(--radius); }
.coach__icon { width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--color-bg); display: grid; place-items: center; }
.coach__name { font-size: 20px; }
.coach__license { font-size: 13px; color: var(--color-sub); }
.coach__field { font-size: 14px; }
.coach__field-label { display: inline-block; margin-right: 8px; padding: 0 12px; border-radius: 12px; background: var(--color-bg); color: var(--color-main); font-weight: 700; }
.coach__comment { margin-top: 8px; }

/* ===== 10. スマホ（768px未満） ===== */
@media (max-width: 767px) {
  :root { --section-space: 64px; }
  body { font-size: 15px; }
  .section-head { margin-bottom: 32px; }
  .section-head__title, .cta__title { font-size: 24px; }

  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 24px; height: 2px; background: var(--color-main); transition: transform .2s;
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 24px 24px; background: var(--color-white); border-bottom: 1px solid var(--color-line);
  }
  .global-nav.is-open { display: flex; }
  .global-nav__list { flex-direction: column; gap: 0; font-size: 15px; }
  .global-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .global-nav__list a[aria-current="page"],
  .global-nav__list .current-menu-item > a { box-shadow: none; }

  .hero__inner { padding-top: 56px; padding-bottom: 64px; gap: 32px; }
  .page-head__inner { padding-top: 48px; padding-bottom: 48px; gap: 32px; }
  .contact-form { padding: 24px; }
  .data-table { min-width: 0; }
  .data-table th, .data-table td { padding: 12px; }
  .label { margin-left: 4px; padding: 0 8px; }
}
