/* ===========================
   Google Fonts
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Montserrat:wght@700;900&display=swap');

/* ===========================
   CSS Variables — StudySearch brand colors (sampled from screenshots)
=========================== */
:root {
  /* ── StudySearch Brand ── */
  --ss-teal:       #338ea1;   /* Primary teal — CTA buttons, nav, headers */
  --ss-teal-dark:  #267080;   /* Hover / darker teal */
  --ss-teal-mid:   #4b8590;   /* Mid teal */
  --ss-teal-lt:    #e5f0f2;   /* Light teal background */
  --ss-teal-xlt:   #dcf2fd;   /* Very light teal / map bg */
  --ss-blue:       #095da6;   /* Hero blue / links */
  --ss-blue-mid:   #336695;   /* Hero background blue */
  --ss-logo-q:     #9cc8eb;   /* Logo circle light blue */

  /* ── Amazon Orange ── */
  --amz-orange:    #FF9900;
  --amz-orange-d:  #e68900;

  /* ── CTA Orange (brand spec) ── */
  --cta-orange:    #f27800;
  --cta-orange-d:  #d96500;

  /* ── Neutral ── */
  --white:         #ffffff;
  --bg-page:       #f4f8fa;
  --bg-card:       #ffffff;
  --border:        #d4e6ec;
  --text-dark:     #1a2f3a;
  --text-mid:      #445a65;
  --text-lt:       #7a9aa8;

  /* ── Misc ── */
  --radius-xl:     20px;
  --radius-lg:     12px;
  --radius-md:     8px;
  --radius-sm:     5px;
  --shadow-sm:     0 2px 10px rgba(51,142,161,.10);
  --shadow-md:     0 5px 24px rgba(51,142,161,.15);
  --shadow-lg:     0 10px 44px rgba(51,142,161,.20);
  --max-w:         860px;
}

/* ===========================
   Reset & Base
=========================== */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  font-family:'Noto Sans JP',sans-serif;
  background:var(--bg-page);
  color:var(--text-dark);
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
}
img  { max-width:100%; height:auto; display:block }
a    { text-decoration:none; color:inherit }
ul,ol{ list-style:none }

/* ===========================
   HEADER
=========================== */
.site-header {
  background: #fff;
  border-bottom: 3px solid #348ea1;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(39,182,226,0.10);
}
.header__inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.header__inner img {
  width: auto;
  max-width: 100%;
}
body {
  padding-top: 0 !important;
}
.header-cta:hover { background:var(--ss-teal-dark) }

/* ===========================
   STATS BAR — StudySearch style
=========================== */
.stats-bar {
  background:var(--white);
  border-bottom:1px solid var(--border);
  padding:10px 24px;
}
.stats-inner {
  max-width:var(--max-w); margin:0 auto;
  display:flex; align-items:center; gap:0; flex-wrap:wrap;
}
.stat-item {
  display:flex; align-items:center; gap:6px;
  padding:4px 20px 4px 0;
  border-right:1px solid var(--border);
  margin-right:20px;
}
.stat-item:last-child { border-right:none; margin-right:0 }
.stat-label { font-size:12px; color:var(--text-mid) }
.stat-num {
  font-family:'Montserrat',sans-serif;
  font-weight:700; font-size:17px;
  color:var(--ss-teal);
}
.stat-num small { font-size:.65em; font-weight:400; color:var(--text-mid) }
.stat-date { font-size:11px; color:var(--text-lt) }

/* ===========================
   PROMO BAR
=========================== */
.promo-bar {
  background:var(--ss-teal-lt);
  border-bottom:1px solid var(--border);
  padding:7px 24px;
  font-size:12px; color:var(--text-mid);
  text-align:center;
}

/* ===========================
   HERO
=========================== */
.hero {
  background:linear-gradient(160deg, #c8eaf4 0%, #9dd6ed 40%, #7ecae6 100%);
  padding:40px 24px 56px;
  position:relative; overflow:hidden;
}
.hero::before {
  content:'';
  position:absolute; top:-40px; right:-40px;
  width:380px; height:380px;
  background:radial-gradient(circle, rgba(255,255,255,.40) 0%, transparent 65%);
  pointer-events:none;
}
.hero::after {
  content:'';
  position:absolute; bottom:-60px; left:5%;
  width:300px; height:300px;
  background:radial-gradient(circle, rgba(51,142,161,.15) 0%, transparent 70%);
  pointer-events:none;
}

.hero-inner {
  max-width:var(--max-w); margin:0 auto;
  text-align:center; position:relative; z-index:1;
}

/* MV image */
.hero-mv {
  margin-bottom:24px;
  animation:fadeUp .6s ease both;
}
.hero-mv-img {
  width:100%;
  max-width:860px;
  border-radius:var(--radius-lg);
  box-shadow:0 8px 40px rgba(0,0,0,.25);
  display:block;
  margin:0 auto;
}
/* PC/SP image switching */
.hero-mv-img--pc { display:block }
.hero-mv-img--sp { display:none  }

.hero-lead {
  color:var(--text-dark);
  font-size:clamp(13px,2vw,15px);
  margin-bottom:16px;
  animation:fadeUp .6s .15s ease both;
  line-height:1.85;
}
.hero-lead strong { color:var(--text-dark) }

.hero-note {
  color:var(--text-mid); font-size:11px;
  margin-bottom:28px;
  animation:fadeUp .6s .22s ease both;
}

.hero-cta { animation:fadeUp .6s .28s ease both }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; letter-spacing:.04em;
  border-radius:4px;
  transition:background .2s, transform .2s, box-shadow .2s;
  cursor:pointer; font-family:'Noto Sans JP',sans-serif;
}
.btn-hero {
  background:var(--cta-orange);
  color:var(--white) !important;
  font-size:clamp(14px,2.2vw,17px);
  padding:16px 52px; border-radius:4px;
  box-shadow:0 6px 24px rgba(242,120,0,.40);
}
.btn-hero:hover {
  background:var(--cta-orange-d);
  transform:translateY(-2px);
  box-shadow:0 10px 32px rgba(242,120,0,.52);
}
.btn-primary {
  background:var(--cta-orange);
  color:var(--white) !important;
  font-size:clamp(13px,2vw,16px);
  padding:14px 40px; border-radius:4px;
  box-shadow:0 4px 18px rgba(242,120,0,.35);
}
.btn-primary:hover {
  background:var(--cta-orange-d);
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(242,120,0,.46);
}
.btn-arrow::after {
  content:'›'; font-size:1.2em; line-height:1;
  transition:transform .2s;
}
.btn-arrow:hover::after { transform:translateX(3px) }

/* ===========================
   SECTION SHELL
=========================== */
.section { padding:56px 24px }
.section-inner { max-width:var(--max-w); margin:0 auto }

.section-head { text-align:center; margin-bottom:40px }

.section-kicker {
  display:inline-block;
  background:var(--ss-teal-lt);
  color:var(--ss-teal);
  font-size:12px; font-weight:700;
  padding:4px 14px; border-radius:30px;
  margin-bottom:10px; letter-spacing:.06em;
  border:1px solid var(--border);
}

.section-title {
  font-weight:900;
  font-size:clamp(19px,3.5vw,28px);
  color:var(--text-dark);
  position:relative; padding-bottom:14px;
}
.section-title::after {
  content:'';
  position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:44px; height:3px;
  background:var(--ss-teal); border-radius:2px;
}

.section-sub {
  color:var(--text-lt); font-size:13px; margin-top:10px;
}

/* ===========================
   STEPS — bestjuku style vertical cards
=========================== */
.steps-section { background: var(--white) }

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

/* 各カード */
.step-card {
  display: flex;
  gap: 0;
  align-items: stretch;
}

/* 左：番号＋縦線 */
.step-card__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 72px;
}

.step-card__num {
  width: 52px;
  height: 52px;
  background: var(--ss-teal);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(51,142,161,.30);
  position: relative;
  z-index: 1;
}
.step-card__num--accent {
  background: var(--cta-orange);
  box-shadow: 0 4px 14px rgba(242,120,0,.30);
}

.step-card__num-label {
  font-size: 8px;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  line-height: 1;
}
.step-card__num-val {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--white);
  line-height: 1;
}

/* 縦の接続線 */
.step-card__connector {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin: 4px auto 0;
  min-height: 24px;
}

/* 右：コンテンツ */
.step-card__body {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 0 0 16px 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
/* 吹き出し三角 */
.step-card__body::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 18px;
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid var(--border);
}
.step-card__body::after {
  content: '';
  position: absolute;
  left: -6px;
  top: 19px;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 7px solid var(--white);
}

.step-card--last .step-card__body {
  border-color: var(--cta-orange);
  background: #fff9f4;
}
.step-card--last .step-card__body::before {
  border-right-color: var(--cta-orange);
}
.step-card--last .step-card__body::after {
  border-right-color: #fff9f4;
}

.step-card__period {
  display: inline-block;
  background: var(--ss-teal-lt);
  color: var(--ss-teal);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: .03em;
}
.step-card--last .step-card__period {
  background: #fff0e0;
  color: var(--cta-orange);
  border-color: #ffd5a8;
}

.step-card__title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.5;
}

.step-card__desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.75;
}

/* Step illust layout */
.step-card__content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.step-card__text { flex: 1; min-width: 0; }
.step-card__illust {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}
.step-card__illust svg {
  width: 100%;
  height: 100%;
}

.steps-cta {
  text-align: center;
  margin-top: 36px;
}

/* SP */

/* ===========================
   DETAIL CARDS
=========================== */
.detail-section { background:var(--bg-page) }

.detail-card {
  background:var(--white);
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.detail-card+.detail-card { margin-top:16px }

.detail-card-head {
  background:var(--ss-teal);
  padding:14px 22px;
  display:flex; align-items:center; gap:10px;
}
.dc-icon { font-size:18px }
.dc-title { font-weight:700; font-size:15px; color:var(--white) }

.detail-card-body { padding:22px 24px }

.notes-ul { display:flex; flex-direction:column; gap:7px }
.notes-ul li {
  font-size:13px; color:var(--text-mid); line-height:1.75;
  padding-left:16px; position:relative;
}
.notes-ul li::before {
  content:'·';
  position:absolute; left:4px; top:0;
  color:var(--ss-teal); font-size:18px; line-height:1.3;
}

.doc-list { display:flex; flex-direction:column; gap:10px }
.doc-item {
  display:flex; align-items:flex-start; gap:12px;
  background:var(--ss-teal-lt);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:14px 16px;
}
.doc-num {
  width:26px; height:26px;
  background:var(--ss-teal); color:var(--white);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:12px;
  flex-shrink:0;
}
.doc-text { font-size:13px; color:var(--text-mid); line-height:1.65 }
.doc-text strong { color:var(--text-dark) }

/* ===========================
   CTA BANNER
=========================== */
.cta-section { background:var(--ss-teal) }

.cta-banner {
  max-width:var(--max-w); margin:0 auto;
  padding:52px 32px; text-align:center;
  position:relative; overflow:hidden;
}
.cta-banner::before {
  content:'';
  position:absolute; top:-50px; right:-50px;
  width:220px; height:220px;
  background:radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
}

.cta-title {
  font-weight:900; color:var(--white);
  font-size:clamp(17px,3.2vw,24px); margin-bottom:8px;
}
.cta-desc {
  color:rgba(255,255,255,.8); font-size:13px; margin-bottom:26px;
}
.cta-desc strong { color:var(--white); font-weight:700 }

.btn-cta {
  background:var(--cta-orange);
  color:var(--white) !important;
  font-size:clamp(14px,2.2vw,16px);
  font-weight:900;
  padding:15px 48px; border-radius:4px;
  box-shadow:0 4px 20px rgba(242,120,0,.40);
  transition:transform .2s, box-shadow .2s;
}
.btn-cta:hover {
  background:var(--cta-orange-d);
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(242,120,0,.5);
}

/* ===========================
   FAQ — accordion
=========================== */
.faq-section { background:var(--white) }

.faq-list { border-top:1px solid var(--border) }

.faq-item { border-bottom:1px solid var(--border) }

.faq-q {
  width:100%; background:none; border:none;
  display:flex; align-items:flex-start; gap:12px;
  padding:18px 0; cursor:pointer; text-align:left;
}

.faq-q-badge {
  background:var(--ss-teal); color:var(--white);
  font-weight:900; font-size:11px;
  width:22px; height:22px; border-radius:4px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-top:2px; letter-spacing:0;
}
.faq-q-text {
  flex:1; font-weight:700; font-size:14px;
  color:var(--text-dark); line-height:1.55;
}
.faq-chevron {
  width:22px; height:22px;
  border:1.5px solid var(--border); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; color:var(--text-lt); font-size:13px;
  transition:transform .25s, border-color .25s, color .25s;
}
.faq-item.open .faq-chevron {
  transform:rotate(180deg);
  border-color:var(--ss-teal); color:var(--ss-teal);
}

.faq-a { display:none; padding:0 0 18px 34px }
.faq-item.open .faq-a { display:block }
.faq-a p {
  font-size:13px; color:var(--text-mid); line-height:1.8;
  background:var(--ss-teal-lt);
  border-left:3px solid var(--ss-teal);
  border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  padding:12px 16px;
}

/* ===========================
   NOTES
=========================== */
.notes-section { background:var(--bg-page) }

.notes-box {
  background:var(--white);
  border-radius:var(--radius-lg);
  border:1px solid var(--border);
  padding:32px 36px;
  box-shadow:var(--shadow-sm);
}
.notes-block { margin-bottom:24px }
.notes-block:last-child { margin-bottom:0 }

.notes-heading {
  font-weight:700; font-size:13px;
  color:var(--ss-teal);
  border-left:3px solid var(--ss-teal);
  padding-left:9px; margin-bottom:10px;
}

.notes-ul-b { display:flex; flex-direction:column; gap:5px }
.notes-ul-b li {
  font-size:12.5px; color:var(--text-mid); line-height:1.75;
  padding-left:14px; position:relative;
}
.notes-ul-b li::before {
  content:'・'; position:absolute; left:0;
  color:var(--text-lt);
}
.notes-ul-b.ol li { padding-left:26px }
.notes-ul-b.ol li::before {
  content:attr(data-n);
  background:var(--ss-teal-mid); color:var(--white);
  width:16px; height:16px; border-radius:50%;
  font-size:9px;
  display:flex; align-items:center; justify-content:center;
  top:4px; left:0;
}

.notes-hl {
  background:var(--ss-teal-lt);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:14px 18px; margin:8px 0;
}
.notes-hl p { font-size:13px; color:var(--text-mid); line-height:1.8 }

.promo-note {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:7px 14px;
  font-size:11px; color:var(--text-lt); margin-top:14px;
}

/* ===========================
   FOOTER — StudySearch original
=========================== */
#new-top-wrap-footer {
  background: #f5f5f5;
  border-top: 1px solid #ddd;
  padding-top: 24px;
}

#contact-lowyer {
  text-align: center;
  margin-bottom: 16px;
}
#contact-lowyer a {
  display: inline-block;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  color: #444;
  font-size: 13px;
  padding: 8px 20px;
  transition: background .2s, color .2s;
}
#contact-lowyer a:hover {
  background: var(--ss-teal);
  color: #fff;
  border-color: var(--ss-teal);
}

#new-top-wrap-footer > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 24px;
  margin-bottom: 20px;
  padding: 0 24px;
}
.footer-menu-element a {
  font-size: 12px;
  color: #666;
  line-height: 2;
  transition: color .2s;
}
.footer-menu-element a:hover { color: var(--ss-teal) }

#footer {
  background: #2a2a2a;
  padding: 16px 24px;
}
#footer-area {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
#copyright {
  color: rgba(255,255,255,.55);
  font-size: 11px;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity:0; transform:translateY(24px);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity:1; transform:translateY(0) }

/* ===========================
   KEYFRAMES
=========================== */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px) }
  to   { opacity:1; transform:translateY(0) }
}
@keyframes bounce {
  0%,100% { transform:translateY(0) }
  50%     { transform:translateY(-8px) }
}


/* ===========================
   SP用CSS — StudySearch LP
   共通変数・リセットはpc.cssで定義
   このファイルはSP（max-width:640px / 380px）上書きのみ
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Montserrat:wght@700;900&display=swap');

/* ===========================
   max-width: 640px (SP)
=========================== */
@media (max-width: 640px) {
.hero-mv-img--pc { display:none }
  .hero-mv-img--sp {
    display:block;
    max-width:300px;
    margin:0 auto;
    border-radius:var(--radius-lg);
    box-shadow:0 6px 24px rgba(0,0,0,.20);
  }
.site-header { padding:0 16px; height:52px }

  .hero { padding:28px 16px 44px }
  .hero-mv { margin-bottom:18px }
  .hero-mv-img { border-radius:var(--radius-md) }

  .btn-hero {
    display:block; width:100%;
    padding:15px 20px; text-align:center; font-size:15px;
  }

  .section { padding:44px 20px }


  .detail-card-body { padding:18px }
  .doc-item          { padding:12px 14px }

  .cta-banner { padding:40px 20px }
  .btn-cta    { display:block; width:100%; text-align:center }

  .faq-q { padding:15px 0 }
  .faq-a  { padding:0 0 15px 30px }

  .notes-box { padding:22px 18px }
}

/* ===========================
   max-width: 380px (極小SP)
=========================== */
@media (max-width: 380px) {
.hero-mv-img { border-radius:var(--radius-sm) }
}

/* SP: ステップ番号バッジ・縦線を非表示 */
@media (max-width: 640px) {
  .step-card__left {
    display: none;
  }
  .step-card__body {
    margin-left: 0;
    width: 100%;
  }
  .step-card__body::before,
  .step-card__body::after {
    display: none;
  }
  /* ステップ期間タグにSTEP番号を追記 */
  .step-card:nth-child(1) .step-card__period::before { content: "STEP 1｜"; }
  .step-card:nth-child(2) .step-card__period::before { content: "STEP 2｜"; }
  .step-card:nth-child(3) .step-card__period::before { content: "STEP 3｜"; }
  .step-card:nth-child(4) .step-card__period::before { content: "STEP 4｜"; }
}

/* SP: ヘッダーロゴサイズ調整 */
@media (max-width: 640px) {
  .header__inner {
    height: 52px;
    padding: 0 12px;
    gap: 10px;
  }
  .header__inner a img {
    height: auto !important;
    width: auto !important;
  }
  /* StudySearchロゴ */
  .header__inner a:first-child img {
    width: 130px !important;
    height: auto !important;
  }
  /* CPバナーロゴ */
  .header__inner a:last-child img {
    height: 32px !important;
    width: auto !important;
  }
}
