@charset "UTF-8";
/* =============================================================
   WAO Singapore – Shared Design Base
   Header / Footer / Common UI only.
   Front-page section styles live in each block (src/blocks per-block SCSS),
   auto-enqueued on render via the block.json style field.
   ============================================================= */

:root {
  --nd-font-zen: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --nd-font-noto: "Noto Sans JP", sans-serif;
  --nd-navy: #43546a;
  --nd-navy-deep: #294871;
  --nd-slate: #50637c;
  --nd-slate-rgb: 80, 99, 124;
  --nd-brown: #644916;
  --nd-mint: #c4e2df;
  --nd-teal: #1a8a7a;
  --nd-peach: #ffce9a;
  --nd-peach-light: #fceee4;
  --nd-green: #98de90;
  --nd-green-light: #e4fce5;
  --nd-lavender: #e0e7fc;
  --nd-gold: #ffd773;
  --nd-yellow: #faff75;
  --nd-cyan: #bffbff;
  --nd-orange: #ff5500;
  --nd-cta-orange: #ff8d13;
  --nd-wa: #25d366;

  /* Neutrals */
  --nd-white: #fff;
  --nd-ink: #000;
  --nd-text-sub: #333;
  --nd-rule: #555;
  --nd-rule-soft: #ddd;
  --nd-rule-faint: #eee;
  --nd-border: #bbb;
  --nd-page: #e9edef;
  --nd-bar: #2b433a;
  --nd-badge: #2f8f4e;

  --nd-col: 402px;
  --nd-pad: 5%;
}

.nd-col {
  width: 100%;
  max-width: var(--nd-col);
  margin-inline: auto;
}

@media (min-width: 431px) {
  body.home { background: var(--nd-page); }
}

/* =============================================================
   FRONT LP COMMON
   各セクションのスタイルは各ブロック側（per-block SCSS）にあり描画時に自動enqueueされる。
   ここには複数ブロックが依存する共通ラッパ/バーのみを置く。
   ============================================================= */
.nd-front {
  width: 100%;
  max-width: var(--nd-col);
  margin-inline: auto;
  background: var(--nd-white);
  color: var(--nd-ink);
  font-family: var(--nd-font-noto);
  font-size: 16px;
  line-height: 1.8;
  overflow: hidden;
}
.nd-front p { margin: 0; }
.nd-front img { display: block; max-width: 100%; }

.nd-bar {
  background: var(--nd-bar);
  color: var(--nd-white);
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  margin-top: 56px;
  font: 500 20px/1 var(--nd-font-noto);
}
.nd-bar--center { justify-content: center; padding: 0 var(--nd-pad); }
.nd-bar[id], .nd-access[id], .nd-course__banner[id] { scroll-margin-top: 88px; }
.nd-bar--inset {
  height: 40px;
  margin: 56px var(--nd-pad) 0;
  border-radius: 4px;
  justify-content: center;
  padding: 0 var(--nd-pad);
}

/* =============================================================
   HEADER
   ============================================================= */
.nd-header {
  background: var(--nd-white);
  border-bottom: 1px solid var(--nd-rule-faint);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nd-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--nd-pad);
  min-height: 80px;
  box-sizing: border-box;
}
.nd-header__brand { display: block; }
.nd-header__logo { display: block; height: 30px; width: auto; }
.nd-header__badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  background: var(--nd-badge);
  color: var(--nd-white);
  font: 700 10px/1.5 var(--nd-font-zen);
  border-radius: 2px;
  white-space: nowrap;
}
.nd-header__menu { display: none; }
.nd-pc-show { display: none; }
.nd-nav-state { position: absolute; opacity: 0; pointer-events: none; }
.nd-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex: none;
}
.nd-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--nd-navy);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nd-nav-state:checked ~ .nd-header__inner .nd-nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nd-nav-state:checked ~ .nd-header__inner .nd-nav-toggle span:nth-child(2) { opacity: 0; }
.nd-nav-state:checked ~ .nd-header__inner .nd-nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nd-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--nd-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  padding: 92px 0 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  overflow-y: auto;
}
.nd-nav-state:checked ~ .nd-drawer { opacity: 1; visibility: visible; }
.nd-drawer__close {
  position: absolute;
  top: 30px;
  right: 22px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}
.nd-drawer__close span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--nd-navy);
  border-radius: 2px;
}
.nd-drawer__close span:first-child { transform: rotate(45deg); }
.nd-drawer__close span:last-child { transform: rotate(-45deg); }
.nd-drawer__list { list-style: none; margin: 0; padding: 0; width: 100%; text-align: center; }
.nd-drawer__list li { margin: 0 0 30px; }
.nd-drawer__list > li > a {
  font: 500 20px/1 var(--nd-font-zen);
  color: var(--nd-ink);
  text-decoration: none;
}
.nd-drawer__course details { width: 100%; }
.nd-drawer__course summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font: 500 20px/1 var(--nd-font-zen);
  color: var(--nd-ink);
}
.nd-drawer__course summary::-webkit-details-marker { display: none; }
.nd-drawer__caret { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 8px solid var(--nd-navy); transition: transform .2s ease; }
.nd-drawer__course details[open] .nd-drawer__caret { transform: rotate(180deg); }
.nd-drawer__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  box-sizing: border-box;
  font: 500 18px/1.3 var(--nd-font-zen);
  color: var(--nd-ink);
  text-align: center;
  text-decoration: none;
}
.nd-drawer__sub--jp { background: var(--nd-peach); margin-top: 18px; }
.nd-drawer__sub--inter { background: var(--nd-green); }
.nd-drawer__cta { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 186px; }
.nd-drawer__cta .nd-btn { height: 44px; font-size: 20px; padding: 0 20px; }

/* =============================================================
   COMMON UI
   ============================================================= */
.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  padding: 10px 26px;
  font: 700 18px/1.4 var(--nd-font-zen);
  color: var(--nd-white);
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}
.nd-btn--navy { background: var(--nd-navy); font-size: 16px; font-weight: 500; font-family: var(--nd-font-noto); padding: 8px 20px; }
.nd-btn--wa { background: var(--nd-wa); color: var(--nd-white); }
.nd-btn--wa .nd-ico { color: var(--nd-white); }
.nd-btn--contact { background: var(--nd-cta-orange); }
.nd-btn--block { width: 100%; }
.nd-btn i { font-size: .95em; }
.nd-ico { display: inline-block; vertical-align: -0.15em; fill: currentColor; }
.nd-btn .nd-ico { width: 1em; height: 1em; flex: none; line-height: 1; font-size: 1em; }
.nd-ico--wa { font-size: 1.65em; transform: translateY(0.14em); }

/* =============================================================
   FOOTER
   ============================================================= */
.nd-footer {
  background: var(--nd-mint);
  margin-top: 60px;
}
/* トップページはフッター(ミント)を直前のAccess(スレート)に密着させる（Figmaは隙間なし） */
body.home .nd-footer { margin-top: 0; }
.nd-footer__inner {
  max-width: var(--nd-col);
  margin-inline: auto;
  padding: 30px var(--nd-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}
.nd-footer__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.nd-footer__nav a { color: var(--nd-ink); text-decoration: none; font: 500 15px/1.4 var(--nd-font-zen); }
.nd-footer__corp-logo { width: 220px; max-width: 100%; height: auto; display: block; }
.nd-footer__tagline { text-align: center; font: 500 16px/1.6 var(--nd-font-zen); color: var(--nd-ink); }
.nd-footer__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.nd-footer__logo-box {
  background: var(--nd-white);
  border: 1px solid var(--nd-rule-soft);
  border-radius: 4px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  box-sizing: border-box;
}
.nd-footer__logo-box img { max-height: 38px; max-width: 150px; width: auto; }
.nd-footer__copy {
  background: var(--nd-white);
  border-top: 1px solid var(--nd-rule-soft);
}
.nd-footer__copy-inner {
  max-width: var(--nd-col);
  margin-inline: auto;
  padding: 30px var(--nd-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}
.nd-footer__copy-logo { width: 140px; height: auto; max-width: 80%; }
.nd-footer__copy-text { font: 400 14px/1.6 var(--nd-font-noto); color: var(--nd-text-sub); }

@media (min-width: 1024px) {
  :root {
    --nd-pad: max(40px, calc((100% - 1000px) / 2));
    --nd-col: 1440px;
  }
  body.home { background: var(--nd-white); }
  .nd-pc-hide { display: none; }
  .nd-pc-show { display: inline; }
  .nd-front { max-width: none; font-size: 16px; line-height: 1.8; }
  .nd-bar[id], .nd-access[id], .nd-course__banner[id] { scroll-margin-top: 130px; }
  .nd-bar { height: 60px; padding-inline: var(--nd-pad); margin-top: 60px; font: 500 24px/1 var(--nd-font-noto); }
  #nd-strength { margin-top: 40px; }
  /* margin で1000px幅に収めるので、内側 padding は0に（var(--nd-pad)を二重に効かせると
     ワイド画面で中身幅が消えて見出しが折返すため）。中央寄せは justify-content:center が担う。 */
  .nd-bar--inset { margin: 60px var(--nd-pad) 0; padding-inline: 0; font-size: 20px; }
  .nd-header__inner { max-width: none; padding: 0 60px; min-height: 120px; gap: 24px; }
  .nd-header__logo { height: 55px; }
  .nd-header__badge {
    margin-top: 12px;
    padding: 5px 26px 5px 12px;
    font-size: 12px;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 50%, 100% 100%, 0 100%);
  }
  .nd-header__menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
    font: 700 16px/1 var(--nd-font-zen);
    color: var(--nd-ink);
    position: relative;
  }
  .nd-header__menu > a,
  .nd-header__sub-label {
    position: relative;
    color: var(--nd-ink);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
  }
  .nd-header__menu > a::after,
  .nd-header__sub-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 3px;
    background: var(--nd-navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
  }
  .nd-header__menu > a:hover::after,
  .nd-header__menu > a:focus-visible::after,
  .nd-header__sub-label:hover::after,
  .nd-header__sub-label:focus-visible::after { transform: scaleX(1); }
  .nd-header__has-sub { position: relative; }
  .nd-header__caret {
    display: inline-block;
    margin-left: 6px;
    width: 0; height: 0;
    border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--nd-ink);
  }
  .nd-header__sub {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); margin-top: 12px;
    display: flex; flex-direction: column; min-width: 280px; border-radius: 6px; overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; z-index: 60;
  }
  .nd-header__has-sub:hover .nd-header__sub,
  .nd-header__has-sub:focus-within .nd-header__sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nd-header__sub-link { padding: 15px 20px; font: 500 15px/1.4 var(--nd-font-zen); color: var(--nd-ink); text-decoration: none; text-align: center; }
  .nd-header__sub-link--jp { background: var(--nd-peach); }
  .nd-header__sub-link--inter { background: var(--nd-green); }
  .nd-nav-toggle { display: none; }
  .nd-drawer { display: none; }
  .nd-drawer__course summary { gap: 12px; }
  .nd-drawer__caret { border-left-width: 7px; border-right-width: 7px; border-top-width: 8px; }
  .nd-footer__inner { max-width: 1080px; padding: 60px 0; gap: 40px; }
  .nd-footer__nav { flex-direction: row; gap: 40px; }
  .nd-footer__corp-logo { width: 228px; }
  .nd-footer__tagline { font-size: 24px; white-space: nowrap; }
  .nd-footer__logos { width: auto; grid-template-columns: repeat(3, 200px); gap: 20px; }
  .nd-footer__logo-box { min-height: 70px; }
  .nd-footer__copy-inner { max-width: 1080px; padding: 40px 0; }
  .nd-footer__copy-logo { width: 157px; }
}
