@charset "UTF-8";

/* =========================================
   実用ペン字技能検定IBT — common.css
   ----
   1. Reset
   2. Design Tokens
   3. Base
   4. Layout (Inner Container)
   5. Utility
   6. Button
   7. Tag
   8. Section
   9. Page Hero
   10. CTA
   11. FAQ
   12. Scroll Reveal
   13. Responsive
   ========================================= */


/* =========================================
   1. RESET
   ========================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd,
figure, blockquote { margin: 0; padding: 0; }

ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
input, textarea, select {
  font: inherit;
  color: inherit;
}


/* =========================================
   2. DESIGN TOKENS
   ========================================= */
:root {
  /* Brand Colors */
  --c-brand:       #0A1F44;
  --c-brand-mid:   #1B3168;
  --c-accent:      #4A65AA;
  --c-accent-pale: #E8ECF5;
  --c-cta:         #E8A50C;
  --c-cta-hover:   #C88B05;

  /* Base Colors */
  --c-bg:         #FFFFFF;
  --c-bg-kinari:  #FAF8F3;
  --c-text:       #1A1A1A;
  --c-text-sub:   #555555;
  --c-text-mute:  #888888;
  --c-line:       #E0E0E0;
  --c-line-soft:  #EEEAE0;

  /* Typography */
  --ff-sans:   "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-mincho: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-brush:  "Yuji Mai", "Klee One", "Noto Serif JP", cursive, serif;
  --fs-base:   16px;
  --lh-base:   1.85;
  --lh-tight:  1.4;

  /* Layout */
  --w-inner:       88vw;   /* 全体ワイド */
  --w-inner-pad:   clamp(24px, 4vw, 48px);
  --h-header:      72px;
  --sp-section:    120px;
  --sp-section-sp: 72px;
  --radius:        4px;
  --radius-lg:     8px;
  --shadow-sm:     0 2px 8px rgba(10, 31, 68, .06);
  --shadow-md:     0 8px 28px rgba(10, 31, 68, .10);
  --shadow-lg:     0 18px 48px rgba(10, 31, 68, .14);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .6s;
}


/* =========================================
   3. BASE
   ========================================= */
html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
body.is-loaded { opacity: 1; }
body.is-menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--ff-mincho);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--c-brand);
  letter-spacing: .02em;
}


/* =========================================
   4. LAYOUT (Inner Container)
   ----
   サイト全体のワイドコンテナ。
   .l-inner          = 標準 (88vw)
   .l-inner--narrow  = 読み物用 (最大 880px)
   .l-inner--wide    = 全幅寄り (94vw)
   ========================================= */
.l-inner,
.l-header__inner,
.l-footer__inner {
  width: 100%;
  max-width: var(--w-inner);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--w-inner-pad);
  padding-right: var(--w-inner-pad);
}
.l-inner--narrow {
  max-width: min(88vw, 880px);
}
.l-inner--wide {
  max-width: 94vw;
}


/* =========================================
   5. UTILITY
   ========================================= */
.u-center            { text-align: center; }
.u-mincho            { font-family: var(--ff-mincho); }
.u-emphasis          { color: var(--c-cta);    font-weight: 700; }
.u-emphasis-accent   { color: var(--c-accent); font-weight: 700; }
.u-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* =========================================
   6. BUTTON
   ========================================= */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-width: 240px;
  padding: 18px 32px;
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  border-radius: var(--radius);
  transition:
    transform   .25s var(--ease),
    background  .25s var(--ease),
    color       .25s var(--ease),
    box-shadow  .25s var(--ease);
  cursor: pointer;
}

/* Variants */
.c-btn--primary {
  background: var(--c-cta);
  color: var(--c-brand);
  box-shadow: var(--shadow-sm);
}
.c-btn--primary:hover {
  background: var(--c-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.c-btn--secondary {
  background: var(--c-brand);
  color: #fff;
}
.c-btn--secondary:hover {
  background: var(--c-brand-mid);
  transform: translateY(-2px);
}
.c-btn--outline {
  background: transparent;
  color: var(--c-brand);
  border: 1px solid var(--c-brand);
}
.c-btn--outline:hover {
  background: var(--c-brand);
  color: #fff;
}
.c-btn--white {
  background: #fff;
  color: var(--c-brand);
  border: 1px solid #fff;
}
.c-btn--white:hover {
  background: transparent;
  color: #fff;
}
.c-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
}
.c-btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

/* Sizes */
.c-btn--sm { min-width: 160px; padding: 12px 20px; font-size: 13px; }
.c-btn--lg { min-width: 280px; padding: 22px 40px; font-size: 16px; }

/* Icon */
.c-btn__icon {
  width: 16px;
  height: 16px;
  transition: transform .25s var(--ease);
}
.c-btn:hover .c-btn__icon { transform: translateX(4px); }


/* =========================================
   7. TAG
   ========================================= */
.c-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  border-radius: 2px;
}
.c-tag--filled {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.c-tag--gold {
  color: var(--c-cta);
  border-color: var(--c-cta);
}
.c-tag--gold-filled {
  background: var(--c-cta);
  color: var(--c-brand);
  border-color: var(--c-cta);
}


/* =========================================
   8. SECTION
   ========================================= */
.p-section {
  position: relative;
  padding: var(--sp-section) 0;
}
.p-section--kinari { background: var(--c-bg-kinari); }
.p-section--pale   { background: var(--c-accent-pale); }
.p-section--dark   { background: var(--c-brand); color: #fff; }
.p-section--dark h2,
.p-section--dark h3 { color: #fff; }

/* Section Head */
.p-section__head {
  text-align: center;
  margin-bottom: 64px;
}
.p-section__eyebrow {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 12px;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--c-accent);
}
.p-section__eyebrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 1px;
  background: var(--c-cta);
}
.p-section__title {
  margin-bottom: 24px;
  font-size: clamp(28px, 3.4vw, 40px);
}
.p-section__lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2;
  color: var(--c-text-sub);
}


/* =========================================
   9. PAGE HERO (下層ページ用)
   ========================================= */
.p-page-hero {
  position: relative;
  padding: 200px 0 120px;
  background: var(--c-brand);
  color: #fff;
  overflow: hidden;
}
.p-page-hero__inner {
  position: relative;
  z-index: 2;
}
.p-page-hero__eyebrow {
  margin-bottom: 24px;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .7);
}
.p-page-hero__title {
  margin-bottom: 28px;
  font-size: clamp(36px, 5.2vw, 64px);
  letter-spacing: .04em;
  color: #fff;
}
.p-page-hero__title em {
  font-style: normal;
  color: var(--c-cta);
}
.p-page-hero__lead {
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, .85);
}
.p-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Decorative brush stroke */
.p-page-hero__deco {
  position: absolute;
  pointer-events: none;
  opacity: .15;
}
.p-page-hero__deco--tr { top: 8%;       right: -40px; width: 320px; }
.p-page-hero__deco--bl { bottom: -40px; left:  -60px; width: 280px; }


/* =========================================
   10. CTA
   ========================================= */
.p-cta {
  padding: 96px 0;
  background: var(--c-brand);
  color: #fff;
  text-align: center;
}
.p-cta__title {
  margin-bottom: 20px;
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
}
.p-cta__text {
  margin-bottom: 40px;
  color: rgba(255, 255, 255, .85);
}
.p-cta__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}


/* =========================================
   11. FAQ
   ========================================= */
.p-faq-item { border-bottom: 1px solid var(--c-line); }

.p-faq-item__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  text-align: left;
  font-family: var(--ff-mincho);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-brand);
}
.p-faq-item__q::before {
  content: "Q.";
  margin-right: 12px;
  flex-shrink: 0;
  font-family: var(--ff-mincho);
  font-weight: 600;
  color: var(--c-cta);
}

.p-faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 6px;
}
.p-faq-item__icon::before,
.p-faq-item__icon::after {
  content: "";
  position: absolute;
  background: var(--c-accent);
  transition: transform .3s var(--ease);
}
.p-faq-item__icon::before {
  top: 50%; left: 0; right: 0;
  height: 1px;
  transform: translateY(-50%);
}
.p-faq-item__icon::after {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  transform: translateX(-50%);
}
.p-faq-item__q[aria-expanded="true"] .p-faq-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.p-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.p-faq-item__q[aria-expanded="true"] + .p-faq-item__a {
  max-height: 600px;
}
.p-faq-item__a-inner {
  padding: 0 0 24px 36px;
  font-size: 14px;
  line-height: 2;
  color: var(--c-text-sub);
}
.p-faq-item__a-inner::before {
  content: "A.";
  margin-left: -36px;
  margin-right: 12px;
  font-family: var(--ff-mincho);
  font-weight: 600;
  color: var(--c-accent);
}


/* =========================================
   12. SCROLL REVEAL
   ========================================= */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity   .8s var(--ease),
    transform .8s var(--ease);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================
   13. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  :root {
    --w-inner:     92vw;
    --w-inner-pad: 20px;
  }
}

@media (max-width: 767px) {
  :root {
    --sp-section: var(--sp-section-sp);
    --h-header:   60px;
  }
  .p-section__head { margin-bottom: 40px; }
  .p-page-hero { padding: 140px 0 80px; }
  .p-page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .c-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --w-inner:     100%;
    --w-inner-pad: 16px;
  }
}
