/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   JOWA SCHOOL — common.css
   共通スタイル（ヘッダー・フッター・ベース）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── DESIGN TOKENS ── */
:root {
  --teal:       #0E7490;   /* ブランドティール */
  --teal-dark:  #0A5568;   /* ダークティール（ヘッダー・濃背景） */
  --teal-bright:#06B6D4;   /* ブライトシアン（アクセント） */
  --leaf:       #3F7D58;   /* 学校・自然感の補助色 */
  --sun:        #FBBF24;   /* ハイライト */
  --coral:      #F97316;   /* CTAコーラルオレンジ */
  --coral-dark: #EA6C0A;   /* CTAホバー */
  --white:      #FFFFFF;
  --ice:        #F7FBF7;   /* body背景 */
  --ice-deep:   #DDF4EA;   /* セクション区切り用薄グリーン */
  --ink:        #0C1A1F;   /* 本文テキスト */
  --sub:        #4A6670;   /* サブテキスト */
  --rule:       #B2DADE;   /* ボーダー */

  --font-disp: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  8px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ice);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── HEADER ── */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,85,104,.96);
  height: 52px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.hd-logo { display: flex; align-items: center; gap: 8px; }
.hd-logo img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .9; }
.hd-logo span {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hd-nav {
  display: flex; align-items: center; gap: 24px;
}
.hd-nav a {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.7); letter-spacing: .04em;
  transition: color .15s;
}
.hd-nav a:hover, .hd-nav a.active { color: var(--white); }
.hd-sister {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.6) !important;
  border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px; border-radius: 100px;
  transition: color .15s, border-color .15s !important;
  white-space: nowrap;
}
.hd-sister:hover {
  color: var(--white) !important;
  border-color: rgba(255,255,255,.5) !important;
}
.hd-dl {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.4);
  padding: 6px 14px; border-radius: 100px;
  transition: color .15s, border-color .15s, background .15s !important;
  white-space: nowrap;
}
.hd-dl:hover {
  color: var(--white) !important;
  border-color: rgba(255,255,255,.7) !important;
  background: rgba(255,255,255,.08) !important;
}
.hd-cta {
  background: var(--coral);
  color: var(--white) !important;
  padding: 7px 18px; border-radius: 100px;
  font-size: 12px; font-weight: 700;
  transition: background .15s !important;
}
.hd-cta:hover { background: var(--coral-dark) !important; }

/* ── FOOTER ── */
.ft {
  background: var(--teal-dark);
  color: rgba(255,255,255,.75);
}
.ft-cta {
  background:
    linear-gradient(90deg, rgba(6,45,60,.90) 0%, rgba(6,45,60,.76) 48%, rgba(6,45,60,.46) 100%),
    url('../images/cta-bg.jpg') center 54% / cover no-repeat;
  padding: 48px 48px;
  position: relative;
}
.ft-cta-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ft-cta-label {
  font-family: var(--font-disp);
  font-size: clamp(18px,2vw,24px);
  font-weight: 800; color: var(--white);
  margin-bottom: 6px; letter-spacing: 0;
}
.ft-cta-sub {
  font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.65;
}
.ft-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.ft-cta-btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  padding: 14px 32px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.ft-cta-btn:hover { background: var(--coral-dark); transform: translateY(-1px); }
.ft-cta-btn-sub {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 13px 28px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.45);
  transition: border-color .15s;
  white-space: nowrap;
}
.ft-cta-btn-sub:hover { border-color: rgba(255,255,255,.9); }

.ft-main { padding: 48px 48px 32px; }
.ft-main-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr repeat(3,auto);
  gap: 48px;
}
.ft-logo {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.ft-logo-img {
  height: 28px; width: auto;
  filter: brightness(0) invert(1); opacity: .85;
}
.ft-logo span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .1em;
}
.ft-tagline {
  font-size: 13px; color: rgba(255,255,255,.55);
  line-height: 1.7; margin-bottom: 12px;
}
.ft-meta { font-size: 12px; color: rgba(255,255,255,.4); }
.ft-col-title {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.45); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.ft-col-links { display: flex; flex-direction: column; gap: 10px; }
.ft-col-links a {
  font-size: 13px; color: rgba(255,255,255,.65);
  transition: color .15s;
}
.ft-col-links a:hover { color: var(--white); }

.ft-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 48px;
}
.ft-bottom-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.ft-copy { font-size: 12px; color: rgba(255,255,255,.3); }
.ft-bottom-nav { display: flex; gap: 20px; }
.ft-bottom-nav a { font-size: 12px; color: rgba(255,255,255,.35); transition: color .15s; }
.ft-bottom-nav a:hover { color: rgba(255,255,255,.7); }

/* ── SECTION COMMON ── */
.sec-title {
  font-family: var(--font-disp);
  font-size: clamp(24px,2.8vw,40px);
  font-weight: 800; color: var(--ink);
  line-height: 1.2; letter-spacing: 0;
}
.sec-eyebrow {
  display: inline-block;
  font-family: var(--font-disp);
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; color: var(--teal);
  text-transform: uppercase; margin-bottom: 10px;
}
.sec-lead {
  font-size: 15px; color: var(--sub);
  line-height: 1.85; margin-top: 14px;
}

/* ── TAG / BADGE ── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; padding: 3px 10px;
  border-radius: 100px;
}
.badge-teal { background: rgba(14,116,144,.1); color: var(--teal); }
.badge-coral { background: var(--coral); color: var(--white); }
.badge-ice { background: var(--ice-deep); color: var(--leaf); }

/* ── BUTTON ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--coral); color: var(--white);
  padding: 14px 32px; border-radius: 100px;
  font-size: 14px; font-weight: 700;
  transition: background .15s, transform .15s;
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--teal);
  padding: 13px 28px; border-radius: 100px;
  border: 2px solid var(--teal);
  font-size: 14px; font-weight: 700;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-light {
  color: rgba(255,255,255,.88);
  border-color: rgba(255,255,255,.38);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* ── CONTENT WRAP ── */
.content-wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

@media (max-width: 1024px) {
  .ft-main-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hd { padding: 0 20px; }
  .hd-nav a:not(.hd-cta):not(.hd-dl) { display: none; }
  .ft-cta { padding: 36px 24px; }
  .ft-main { padding: 36px 24px 24px; }
  .ft-main-inner { grid-template-columns: 1fr; gap: 28px; }
  .ft-bottom { padding: 16px 24px; }
  .content-wrap { padding: 0 24px; }
}

/* ── 資料ダウンロード モーダル ── */
.wp-modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 24px;
}
.wp-modal-overlay.is-open {
  display: flex;
  animation: wpOverlayIn .2s ease;
}
@keyframes wpOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.wp-modal {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  width: 100%; max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 44px 40px 40px;
  position: relative;
  animation: wpModalIn .22s ease;
}
@keyframes wpModalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.wp-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: #F0F9FF; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: var(--sub);
  transition: background .15s, color .15s; line-height: 1;
}
.wp-modal-close:hover { background: var(--rule); color: var(--ink); }
.wp-modal-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: var(--teal); text-transform: uppercase; margin-bottom: 10px;
}
.wp-modal-title {
  font-family: var(--font-disp);
  font-size: 20px; font-weight: 800;
  color: var(--ink); line-height: 1.4; margin-bottom: 16px;
}
.wp-modal-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.wp-modal-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--sub); font-weight: 500;
}
.wp-modal-list li::before {
  content: '';
  display: block; width: 16px; height: 16px; min-width: 16px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center/10px no-repeat;
  border-radius: 50%;
}
.wp-modal-note {
  font-size: 11px; color: var(--sub); line-height: 1.7;
  text-align: center; margin-top: 12px;
}
/* HubSpotフォームのモーダル内スタイル調整 */
.wp-modal .hs-form-frame { width: 100%; display: block; }
@media (max-width: 600px) {
  .wp-modal { padding: 40px 24px 32px; }
}
