/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #333;
  background: #C95E00;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --color-bg: #fafafa;
  --color-footer-bg: #f2f2f2;
  --color-cta: #da0000;
  --color-header-btn: #ee0000;
  --color-accent: #db7901;
  --color-testimonial-bg: #ffeacd;
  --color-card-border: #d9d9d9;
  --color-card-bg: #fafafa;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --FAFAFA: rgba(250, 250, 250, 1);
  --radius-card: 16px;
  --radius-cta: 30px;
  --radius-header-btn: 20px;
}

/* =============================================
   COMMON COMPONENTS
   ============================================= */

/* --- Section badge (speech-bubble with triangle) --- */
.section-badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 20px;
  border-radius: 20px;
  position: relative;
  margin-bottom: 16px;
}

.section-badge::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--color-accent);
}

/* SP-only line break: hidden on PC, shown on SP */
.br-sp { display: none; }

/* --- Section titles --- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- CTA buttons ---
   Figma: bg #da0000, border 2px solid #fafafa,
          radius 30px, shadow 0 5px 0 rgba(0,0,0,0.2)
   Size: 310 x 60  */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 310px;
  height: 60px;
  background: var(--color-cta);
  color: var(--color-bg);
  font-size: 18px;
  font-weight: 700;
  border: 2px solid var(--color-bg);
  border-radius: var(--radius-cta);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.btn-cta:active {
  transform: translateY(5px);
  box-shadow: none;
}

.btn-cta--secondary {
  background: var(--color-white);
  color: var(--color-cta);
  border-color: var(--color-cta);
}

/* --- Hero CTA button (register) ---
   Figma: bg #ee0000, border 2px solid #fafafa,
          radius 30px, shadow 0 5px 0 rgba(0,0,0,0.2)
   Size: 310 x 60
   Text: "簡単30秒 ｜ 無料登録" with yellow accents
   Right: semi-transparent circle arrow
   Left: pen/edit icon */
.btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 310px;
  height: 60px;
  background: #ee0000;
  border: 2px solid var(--color-bg);
  border-radius: 30px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
  color: #fafafa;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.btn-hero:active {
  transform: translateY(5px);
  box-shadow: none;
}

/* Left icon */
.btn-hero__icon {
  position: absolute;
  left: 31px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-hero__icon svg,
.btn-hero__icon img {
  display: block;
  max-height: 100%;
}

/* Text label */
.btn-hero__label {
  display: inline-flex;
  align-items: center;
  height: 33px;
  line-height: 1;
  position: relative;
  top: -1px;
}

.btn-hero__num {
  color: #fff500;
  font-size: 25px;
  letter-spacing: 0.25px;
  line-height: 20px;
  position: relative;
  top: -2px;
}

.btn-hero__yw {
  color: #fff500;
}

/* Right circle arrow */
.btn-hero__arrow {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 33px;
  height: 33px;
}

.btn-hero__arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fafafa;
  border-radius: 50%;
  opacity: 0.33;
}

.btn-hero__arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 46%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #fafafa;
  border-top: 2.5px solid #fafafa;
}

/* Hero search variant — same red as primary */
.btn-hero--search {
  background: #ee0000;
}

/* Image-only hero buttons */
.btn-hero:has(picture) {
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
}

.btn-hero:has(picture):hover {
  transform: none;
  box-shadow: none;
}

.btn-hero:has(picture):active {
  transform: none;
}

.hero__cta .btn-hero picture img {
  display: block;
  width: clamp(200px, 23.6vw, 340px);
  max-width: none;
  height: auto;
}

/* Small CTA (FAQ box) — 219 x 36 */
.btn-cta-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 219px;
  height: 36px;
  background: #ED4511;
  color: #FAFAFA;
  font-size: 14px;
  font-weight: 700;
  border-radius: 18px;
  border: 2px #FAFAFA solid;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-cta-small:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-arrow {
  margin-left: 6px;
}

/* =============================================
   HEADER
   Figma PC: 1280 x 80, bg #fafafa
   Figma SP: 375 x 65
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  height: 80px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

/* PC logo: 270 x 50 */
.header__logo {
  width: 270px;
  height: 50px;
  object-fit: contain;
}

/* PC button: 164 x 40, bg #ee0000, radius 20px
   SP button: 96 x 40, same color */
.header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 40px;
  background: var(--color-header-btn);
  color: var(--color-bg);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-header-btn);
  transition: opacity 0.2s;
}

.header__btn:hover {
  opacity: 0.85;
}

.header__btn:focus {
  outline: none;
}

.header__btn img {
  height: 40px;
  width: auto;
  border: none;
  outline: none;
}

/* =============================================
   HERO
   PC: full-bleed, 640px tall
   SP: 375 x 600
   ============================================= */
.hero {
  position: relative;
  overflow: visible;
}

.hero__img {
  width: 100%;
  height: 44.4vw;
  max-height: 640px;
  object-fit: cover;
  object-position: center;
}

.hero__cta {
  position: absolute;
  bottom: 12.5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(16px, 3.3vw, 48px);
}

/* =============================================
   TV CM / VIDEO
   PC: max-width 515px centered
   SP: 343px
   ============================================= */
.tv-cm {
  padding: 60px 0;
  text-align: center;
}

.tv-cm__inner {
  max-width: 515px;
  margin: 0 auto;
  padding: 0 16px;
}

.tv-cm__badge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
  position: relative;
  z-index: 10;
}

.box {
  width: 254px;
  height: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.box .group {
  width: 254px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.box .line {
  width: 23px;
  height: 46px;
}

.box .img {
  width: 23px;
  height: 46px;
}

.label .text-wrapper {
  position: relative;
  z-index: 10;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: var(--FAFAFA);
  font-size: 20px;
  text-align: center;
  letter-spacing: 0;
  line-height: 29px;
  white-space: nowrap;
}

.tv-cm__yt-logo {
  width: 95px;
  height: auto;
}

.tv-cm__video {
  margin-bottom: 32px;
  border-radius: 24px;
  overflow: hidden;
  border: none;
  max-width: 514.5px;
  margin-left: auto;
  margin-right: auto;
}

.tv-cm__video-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.tv-cm__shorts-wrap {
  width: 100%;
  height: 100%;
}

.tv-cm__shorts-wrap--sp {
  display: none;
}

.tv-cm__sp-layout {
  display: none;
}

.tv-cm__shorts-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Figma: border 2px dashed #fafafa, radius 16px, transparent bg on orange */
.tv-cm__notice {
  background: transparent;
  border: 2px dashed var(--FAFAFA);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
}

.tv-cm__notice-icon {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.tv-cm__notice-sub {
  font-size: 17px;
  font-weight: 700;
  color: #fafafa;
  line-height: 29px;
  text-align: center;
}

.tv-cm__notice-main {
  font-size: 17px;
  font-weight: 700;
  color: var(--FAFAFA);
  line-height: 29px;
  margin-bottom: 12px;
}

.tv-cm__notice-highlight {
  font-size: 23px;
  color: #fff500;
}

.tv-cm__notice-note {
  font-size: 14px;
  font-weight: 500;
  color: var(--FAFAFA);
  line-height: 23px;
}

/* =============================================
   CONFETTI OVERLAY
   Decorative confetti pieces over map + value-props
   ============================================= */
.confetti-area {
  position: relative;
  overflow: hidden;
}

.confetti-layer {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* =============================================
   MAP / ILLUSTRATION
   PC: 460px centered
   SP: 309px
   ============================================= */
.map {
  padding: 40px 0;
  text-align: center;
}

.map__inner {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  padding: 0 16px;
}

.map__img {
  margin: 0 auto;
}

.map__teachers {
  display: flex;
  justify-content: center;
  gap: 120px;
  margin-top: 24px;
}

.map__teacher {
  width: auto;
  height: 170px;
}

/* =============================================
   VALUE PROPOSITIONS
   PC: 1084px, 3 columns (each 344px)
   SP: 343px, 1 column
   ============================================= */
.value-props {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 0 0 20px;
}

.value-props__inner {
  max-width: 1084px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 0 20px;
}

/* Figma: no border/bg, stacked layout on orange background */
.value-props__card {
  flex: 1;
  max-width: 344px;
  text-align: center;
}

/* Ribbon: yellow diagonal banner with icon + title */
.value-props__ribbon {
  position: relative;
  width: 344px;
  height: 82px;
  margin-bottom: 12px;
}

.value-props__ribbon-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.value-props__ribbon-img {
  display: block;
  width: 344px;
  height: auto;
}

.value-props__ribbon-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 20px;
  transform: rotate(-3deg);
}

.value-props__icon {
  flex-shrink: 0;
  width: 25px;
  height: 25px;
}

/* Figma: Noto Sans JP Bold, 18px, line-height 29px, color #db7901 */
.value-props__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 29px;
  text-align: left;
  white-space: nowrap;
}

.value-props__text {
  font-size: 17px;
  font-weight: 500;
  line-height: 25px;
  color: var(--FAFAFA);
  padding: 0;
  text-align: left;
}

/* =============================================
   CTA BAND
   White diagonal band on accent-orange background
   ============================================= */
.cta-band {
  position: relative;
  background: #C95E00;
  padding: 80px 20px 100px;
  text-align: center;
}

/* Diagonal white band background */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 25px 0 -25px 0;
  background: url('../images/vector-pc.png') no-repeat center / 100% 100%;
  z-index: 0;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 730px;
  margin: 0 auto;
}

.cta-band__bubble-img {
  display: block;
  margin: 10px auto 12px;
  width: auto;
  height: 58px;
  object-fit: contain;
}

.cta-band__title {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 42px;
  margin-bottom: 20px;
}

/* CTA band button (Figma spec) */
.btn-cta-band {
  display: inline-block;
  margin-bottom: 20px;
  transition: transform 0.15s, filter 0.15s;
}

.btn-cta-band:hover {
  transform: translateY(2px);
}

.btn-cta-band:active {
  transform: translateY(5px);
}

.btn-cta-band__img {
  display: block;
  width: 310px;
  height: auto;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.2));
}

.btn-cta-band:hover .btn-cta-band__img {
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.2));
}

.btn-cta-band:active .btn-cta-band__img {
  filter: none;
}

.cta-band__tagline {
  font-size: 16px;
  color: #141414;
  line-height: 30px;
}

.cta-band__tagline-accent {
  font-size: 22px;
  font-weight: 700;
  color: #c1441a;
}

/* =============================================
   AGENT INTRO
   PC: centered max-width 730px
   ============================================= */
.agent-intro {
  padding: 60px 0 30px;
  text-align: center;
  background: #C95E00;
  color: #fff;
}

.agent-intro__inner {
  max-width: 730px;
  margin: 0 auto;
  padding: 0 20px;
}

.agent-intro__heading {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 32px;
  margin-bottom: 32px;
  text-shadow: 0px 5px 6px rgba(0, 0, 0, 0.23);
}

.agent-intro__highlight {
  color: #fff500;
}

.agent-intro__scene {
  text-align: center;
  margin-bottom: 0;
  margin-top: -40px;
}

.agent-intro__image {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.agent-intro__card-img {
  display: block;
  margin: 20px auto 0;
  max-width: 70%;
  height: auto;
}

/* =============================================
   SUPPORT FLOW
   Figma: bg #ffeacd
   PC: 730px, 2-col grid (STEP 1,3 left / 2,4 right)
   SP: 343px, 1-col stacked
   Step card: bg #fff, radius 16px
   ============================================= */
.support-flow {
  padding: 0 0 60px;
  text-align: center;
  background: #C95E00;
}

.support-flow__header {
  position: relative;
  padding: 40px 20px 120px;
  margin-top: 0;
  margin-bottom: 40px;
  background: url('../images/vector-pc.png') no-repeat center / 100% 100%;
}

/* Support badge image */
.section-badge-img {
  display: block;
  margin: 0 auto 16px;
  width: auto;
  height: 58px;
  object-fit: contain;
}

.support-flow__header .section-badge-img {
  margin-top: 20px;
}

.support-flow .section-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 42px;
  color: #db7901;
}

.support-flow .section-subtitle {
  font-size: 16px;
  line-height: 30px;
  color: #606060;
  margin-bottom: 12px;
}

.support-flow__sub {
  font-size: 21px;
  font-weight: 700;
  line-height: 42px;
  color: #323232;
  margin-top: 0;
}

.support-flow__sub-img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 280px;
}

.support-flow__sub strong {
  display: inline-block;
  font-size: 21px;
  color: #fafafa;
  background: #c1441a;
  border-radius: 19.5px;
  padding: 0 18px;
  margin-left: 8px;
}

.support-flow__steps {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 343px 343px;
  gap: 56px 48px;
  padding: 0 20px;
  justify-content: center;
}

/* PC: 2-column layout (1,2 top / 3,4 bottom) */
.support-flow__step:nth-child(1) { grid-column: 1; grid-row: 1; }
.support-flow__step:nth-child(2) { grid-column: 2; grid-row: 1; }
.support-flow__step:nth-child(3) { grid-column: 1; grid-row: 2; }
.support-flow__step:nth-child(4) { grid-column: 2; grid-row: 2; }

.support-flow__step {
  border: 2px solid #fafafa;
  border-radius: 16px;
  text-align: center;
  position: relative;
  padding-top: 18px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.support-flow__step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.support-flow__step-header {
  padding: 4px 24px 20px;
}

.support-flow__step-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.support-flow__step-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.support-flow__step-body {
  background: #fafafa;
  border: 2px solid #fafafa;
  padding: 14px 24px 18px;
  border-radius: 0 0 14px 14px;
  height: 100px;
}

.step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 97px;
  height: 36px;
  background: #c1441a;
  color: #fafafa;
  font-size: 14px;
  font-weight: 700;
  border-radius: 18px;
  border: 2px solid #fafafa;
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.step-label strong {
  font-size: 22px;
}

.support-flow__step-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  font-size: 21px;
  font-weight: 700;
  line-height: 28px;
  color: #fafafa;
  margin-bottom: 0;
  white-space: nowrap;
}

.step-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #FFEACD;
  border-radius: 9999px;
  padding: 0;
}

.support-flow__step-text {
  font-size: 14px;
  line-height: 22.75px;
  color: #323232;
  text-align: left;
}

/* =============================================
   STATS
   Card: 164 x 220, bg #fafafa, border 2px solid #d9d9d9, radius 16px
   PC: 3-col × 2-row, gap 24px
   SP: 2-col × 3-row, gap 15px horizontal / 48px vertical
   ============================================= */
.stats {
  padding: 0 0 30px;
  text-align: center;
}



.stats__header {
  position: relative;
  padding: 40px 20px 106px;
  margin-bottom: 40px;
  background: url('../images/vector-pc.png') no-repeat center / 100% 100%;
}

.stats__header .section-badge-img {
  margin-top: 10px;
}

.stats .section-title {
  font-size: 34.8px;
  font-weight: 800;
  line-height: 50.4px;
  color: #db7901;
  margin-top: 20px;
}

.stats__subtitle-accent {
  font-size: 22px;
  font-weight: 700;
  color: #C1441A;
}

.stats .section-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: #606060;
  margin-top: 40px;
  margin-bottom: 12px;
}

.stats__grid {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 170px);
  gap: 28px 35px;
  justify-content: center;
  padding: 0 20px;
}

.stats__item {
  position: relative;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stats__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stats__icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  z-index: 1;
}

.stats__card {
  width: 170px;
  height: 220px;
  background: var(--color-card-bg);
  border: 2px solid var(--color-card-border);
  border-radius: var(--radius-card);
  padding: 20px 0 16px;
  display: grid;
  grid-template-rows: 80px auto auto;
  align-items: end;
  justify-items: center;
  text-align: center;
  overflow: visible;
}

.stats__number {
  font-size: 31px;
  font-weight: 700;
  color: #DB7901;
  line-height: 39px;
  align-self: center;
}

.stats__unit {
  font-size: 31px;
  line-height: 39px;
}

.stats__label-img {
  display: block;
  width: auto;
  height: 30px;
  object-fit: contain;
  margin: 8px auto;
}

.stats__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #606060;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: visible;
}

.stats__note {
  display: block;
  font-size: 11px;
  font-weight: 500;
  line-height: 17px;
  color: #fafafa;
  text-align: left;
  margin-top: 4px;
}

/* =============================================
   BENEFITS
   Card: bg #fff, border 2px solid #d9d9d9, radius 16px
   Icon: 32 x 32 circle, bg #db7901
   ============================================= */
.benefits {
  padding: 0 0 30px;
  text-align: center;
}

.benefits__header {
  position: relative;
  padding: 40px 20px 80px;
  margin-bottom: 0;
  background: url('../images/vector-pc.png') no-repeat center / 100% 100%;
}

.benefits__header .section-badge-img {
  margin-top: 10px;
}

.benefits .section-title {
  font-size: 34.8px;
  font-weight: 800;
  line-height: 50.4px;
  color: #db7901;
  margin-top: 36px;
}

.benefits .section-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: #606060;
  margin-top: 43px;
}

.benefits__subtitle-accent {
  font-size: 20px;
  font-weight: 700;
  color: #C1441A;
}

.benefits__free-img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: -70px auto 0;
}

.benefits__list {
  max-width: 460px;
  margin: 52px auto 24px;
  padding: 0;
}

.benefits__item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fafafa;
  border-radius: 16px;
  height: 110px;
  padding: 0 24px;
  margin-bottom: 16px;
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefits__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.benefits__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.benefits__item-title {
  font-size: 18px;
  font-weight: 700;
  color: #DB7901;
  line-height: 20px;
  margin-bottom: 4px;
  margin-top: -12px;
}

.benefits__item-text {
  font-size: 16px;
  font-weight: 400;
  color: #606060;
  line-height: 24px;
  margin-top: 18px;
}

.benefits__disclaimer {
  font-size: 11px;
  font-weight: 400;
  color: #fafafa;
  line-height: 17px;
  max-width: 233px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

/* =============================================
   TESTIMONIALS
   Figma: section bg #ffeacd
   Card: bg #fff (implicit), border 2px solid #fafafa, radius 16px
   PC: 730px, 2-col side-by-side (each 343px)
   SP: 343px, 1-col stacked
   Card: 343 x 370
   Accent bar: 4px left border, color #db7901
   ============================================= */
.testimonials {
  padding: 0 0 60px;
  text-align: center;
}

.testimonials__header {
  position: relative;
  padding: 40px 20px 106px;
  margin-bottom: 40px;
  background: url('../images/vector-pc.png') no-repeat center / 100% 100%;
}

.testimonials__header .section-badge-img {
  margin-top: 10px;
}

.testimonials .section-title {
  font-size: 34.8px;
  font-weight: 800;
  line-height: 50.4px;
  color: #db7901;
  margin-top: 36px;
}

.testimonials .section-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: #606060;
  margin-top: 48px;
  margin-bottom: 0;
}

.testimonials__subtitle-accent {
  font-size: 20px;
  font-weight: 700;
  color: #C1441A;
}

.testimonials__cards {
  max-width: 764px;
  margin: 0 auto;
  display: flex;
  gap: 44px;
  justify-content: center;
  padding: 0 20px;
}

.testimonials__card {
  flex: 1;
  max-width: 360px;
  height: 400px;
  border: 2px solid #fafafa;
  border-radius: 16px;
  padding: 24px;
  text-align: left;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonials__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonials__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.testimonials__icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
  background: #FFEACD;
  border-radius: 9999px;
  padding: 0;
}

.testimonials__case {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  color: #C1441A;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  width: 173px;
  height: 36px;
  border-radius: 18px;
}

.testimonials__stars {
  color: #FCAC32;
  font-size: 13px;
  letter-spacing: 7px;
  margin-bottom: 12px;
  -webkit-text-stroke: 1.33px #FAFAFA;
  paint-order: stroke fill;
}

.testimonials__headline {
  font-size: 17px;
  font-weight: 700;
  color: #fafafa;
  line-height: 26px;
  min-height: 52px;
  margin-bottom: 16px;
}

.testimonials__body {
  font-size: 14px;
  font-weight: 500;
  line-height: 22.75px;
  color: #fafafa;
  padding-left: 12px;
  border-left: 5px solid #FFEACD;
}

/* =============================================
   SUCCESS
   ============================================= */
.success {
  padding: 0 0 60px;
  text-align: center;
}

.success__inner {
  max-width: 730px;
  margin: 0 auto;
  padding: 0 20px;
}

.success__illust {
  margin: 0 auto 0;
  max-width: 600px;
}

.success__text {
  font-size: 22px;
  font-weight: 700;
  line-height: 34px;
  color: #fafafa;
}

.success__school {
  display: block;
  max-width: 425px;
  width: 100%;
  height: auto;
  margin: -50px auto 0;
  position: relative;
}

/* =============================================
   SECOND KV / CTA
   PC: full-bleed, 753px tall (Figma: kv2-2@3x h=753)
   SP: 375 x 725
   ============================================= */
.cta-second {
  position: relative;
  overflow: visible;
}

.cta-second__img {
  width: 100%;
  height: 52.3vw;
  max-height: 753px;
  object-fit: cover;
  object-position: center;
}

.cta-second__buttons {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}

.cta-second .hero__cta {
  bottom: 8%;
}


/* =============================================
   RESOURCES
   PC: 730px, 2-col (each 343px)
   SP: 343px, 1-col
   Card: bg #fff, border 2px solid #d9d9d9, radius 16px
   Thumbnail: 141 x 80, radius 8px, 2×2 grid
   ============================================= */
.resources {
  padding: 60px 0 30px;
}

.resources__inner {
  max-width: 730px;
  margin: 0 auto;
  display: flex;
  gap: 44px;
  padding: 0 20px;
}

.resources__card {
  flex: 1;
  max-width: 343px;
  background: transparent;
  border: 1px solid #fafafa;
  border-radius: var(--radius-card);
  padding: 24px 20px;
  height: 450px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.resources__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.resources__yt-logo {
  display: block;
  margin: 0 auto 16px;
  width: 158px;
  height: 53px;
  object-fit: contain;
}

.resources__guide-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 26px;
  color: #fafafa;
  margin-bottom: 16px;
  min-height: 53px;
}

.resources__guide-icon {
  width: 19px;
  height: auto;
}

.resources__desc {
  font-size: 14px;
  line-height: 23px;
  color: #fafafa;
  margin-bottom: 20px;
  text-align: left;
}

.resources__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
  flex: 1;
}

.resources__thumb-link {
  display: block;
  text-align: left;
}

.resources__thumb-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.resources__thumb-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: #fafafa;
  display: flex;
  align-items: center;
  gap: 6px;
}

.resources__thumb-arrow {
  width: 18px;
  height: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* =============================================
   FAQ
   PC: 730px
   SP: 343px
   Item: border 1px solid #d9d9d9
   Question row: min-height 66px,
     Figma 749:9968: border-radius 16px 16px 0 0
   Q badge: 32 x 32 circle, bg #db7901
   Arrow: 10 x 5 chevron
   ============================================= */
.faq {
  padding: 0 0 60px;
  text-align: center;
}

.faq__header {
  position: relative;
  padding: 40px 20px 80px;
  margin-bottom: 40px;
  background: url('../images/vector-pc.png') no-repeat center / 100% 100%;
}

.faq__header .section-badge-img {
  margin-top: -10px;
}

.faq .section-title {
  font-size: 34.8px;
  font-weight: 800;
  line-height: 50.4px;
  color: #db7901;
  margin-top: 0;
}

.faq .section-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: #606060;
  margin-top: 20px;
  margin-bottom: 0;
}

.faq__subtitle-accent {
  font-size: 20px;
  font-weight: 700;
  color: #C1441A;
}

.faq__list {
  max-width: 730px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

/* Item container: border, radius 16px, overflow hidden */
.faq__item {
  margin-bottom: 30px;
  border: 1px solid #D9D9D9;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.faq__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Question row: 66px min-height */
.faq__question {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  min-height: 66px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

/* Q badge: 32 x 32 circle */
.faq__q-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.faq__q-text {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  line-height: 22px;
  color: #fafafa;
}

/* Chevron arrow */
.faq__arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fafafa;
  border-bottom: 2px solid #fafafa;
  transform: rotate(45deg);
  transition: transform 0.3s;
  margin-top: -8px;
}

.faq__item[open] .faq__arrow {
  transform: rotate(-135deg);
}

/* Answer panel: animated expand/collapse */
.faq__answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-top: 1px solid #D9D9D9;
}

/* JS handles open/close animation via inline styles */

.faq__answer p {
  padding: 16px 20px 20px 64px;
  font-size: 13px;
  font-weight: 500;
  line-height: 23px;
  color: #fafafa;
  text-align: left;
}

/* FAQ CTA box */
.faq__cta-box {
  max-width: 690px;
  height: 226px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed #FAFAFA;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.faq__cta-icon {
  width: 27px;
  height: 27px;
}

.faq__cta-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 20px;
  color: #FAFAFA;
}

.faq__cta-text {
  font-size: 15px;
  font-weight: 500;
  color: #FAFAFA;
  line-height: 23px;
  margin-bottom: 11px;
}

.faq__cta-box a img {
  width: 220px;
  height: auto;
}

/* =============================================
   FOOTER
   Figma: bg #f2f2f2, height ~400px
   Logo: 218 x 40
   ============================================= */
.footer {
  background: #F2F2F2;
  min-height: 400px;
  padding: 65px 20px 68px;
  text-align: center;
}

.footer__inner {
  max-width: 730px;
  margin: 0 auto;
}

.footer__logo {
  margin: 0 auto 46px;
  width: 218px;
}

.footer__company {
  font-size: 12px;
  line-height: 24px;
  color: #606060;
  margin-bottom: 61px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 16px 16px;
  flex-wrap: wrap;
  max-width: 320px;
  margin: 0 auto;
}

.footer__links a {
  font-size: 12px;
  color: #606060;
  line-height: 16px;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-accent);
}

/* =============================================
   Generic scroll fade-in
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   SP OVERRIDES — @media (max-width: 768px)
   Desktop-first: PC styles above, SP overrides below
   ============================================= */
@media (max-width: 768px) {

  /* --- Header SP: 375 x 65 --- */
  .header {
    height: 65px;
  }

  .header__inner {
    padding: 0 15px;
  }

  /* SP logo: 218 x 40 */
  .header__logo {
    width: 218px;
    height: 40px;
  }

  /* SP button: 96 x 40 */
  .header__btn {
    width: 96px;
    height: 40px;
    font-size: 14px;
  }

  .header__btn img {
    height: 36px;
  }

  /* --- Hero SP: アスペクト比維持で画面幅に追従 --- */
  .hero__img {
    height: auto;
    object-position: top;
  }

  .hero__cta {
    bottom: 5%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .cta-second .hero__cta {
    bottom: 4%;
  }

  /* SP用ボタン画像サイズ: SEで~320px、大きいデバイスは上限320px */
  .hero__cta .btn-hero picture img {
    width: min(85vw, 320px);
  }

  /* XR (414px〜): ボタンを少し下に */
  @media (min-width: 414px) {
    .hero__cta {
      bottom: 3.5%;
    }
    .cta-second .hero__cta {
      bottom: 1.5%;
    }
  }

  /* 14 Pro Max (430px〜): さらに下に */
  @media (min-width: 430px) {
    .hero__cta {
      bottom: 2%;
    }
    .cta-second .hero__cta {
      bottom: 1%;
    }
    .cta-second .hero__cta .btn-hero picture img {
      width: min(75vw, 280px);
    }
  }

  /* SP-only line break */
  .br-sp { display: inline; }

  /* --- Vector background SP --- */
  .cta-band::before,
  .support-flow__header,
  .stats__header,
  .benefits__header,
  .testimonials__header,
  .faq__header {
    background-image: url('../images/vector-sp.png');
  }

  /* --- Section titles SP --- */
  .section-title {
    font-size: 24px;
  }

  /* --- TV CM SP: 343px --- */
  .tv-cm {
    padding: 40px 16px;
  }

  .tv-cm__inner {
    max-width: 343px;
    padding: 0;
  }

  .tv-cm__yt-logo {
    width: 70px;
  }

  .tv-cm__notice-main {
    font-size: 16px;
  }

  .tv-cm__notice {
    padding: 28px 16px;
  }

  .tv-cm__video-inner {
    aspect-ratio: unset;
    height: auto;
  }

  .tv-cm__shorts-wrap--pc {
    display: none;
  }

  .tv-cm__sp-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .tv-cm__sp-thumb {
    width: 30vw;
    height: 51.5vw;
    object-fit: cover;
    display: block;
  }

  .tv-cm__sp-thumb--left {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .tv-cm__sp-thumb--right {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .tv-cm__sp-center {
    width: 32vw;
    height: 51.5vw;
    overflow: hidden;
    position: relative;
  }

  .tv-cm__sp-center .tv-cm__shorts-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 0;
  }

  .tv-cm__video {
    max-width: 343px;
    border-radius: 0;
    overflow: visible;
  }

  /* --- Map SP: 309px --- */
  .map__inner {
    max-width: 309px;
  }

  .map__teachers {
    gap: 60px;
  }

  /* --- Value Props SP: 344px ribbon flush-left, 1-col --- */
  .value-props {
    padding: 40px 0 0;
  }

  .value-props__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 0;
  }

  .value-props__card {
    max-width: 100%;
    width: 100%;
  }

  .value-props__text {
    font-size: 16px;
    line-height: 24px;
    width: auto;
    word-wrap: break-word;
    margin-left: 71px;
    margin-right: 16px;
  }

  .value-props__ribbon {
    width: 100%;
    max-width: 344px;
  }

  .value-props__ribbon-img {
    width: 100%;
    max-width: 344px;
  }

  /* --- CTA Band SP --- */
  .cta-band::before {
    inset: 70px 0 30px 0;
  }

  .cta-band__bubble-img {
    margin-top: 20px;
  }

  .cta-band {
    padding: 40px 16px 80px;
  }

  .cta-band__title {
    font-size: 28px;
  }

  .btn-cta-band__img {
    width: 83vw;
  }

  .cta-band__tagline-accent {
    font-size: 18px;
  }

  /* --- Agent Intro SP --- */
  .agent-intro {
    padding: 40px 16px 0;
  }

  .agent-intro__inner {
    padding: 0;
  }

  .agent-intro__heading {
    font-size: 34px;
    line-height: 1.4;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .agent-intro__image {
    max-width: 260px;
  }

  .agent-intro__card-img {
    max-width: 343px;
    margin-top: 30px;
  }

  /* --- Support Flow SP: 343px, 1-col stacked --- */
  .support-flow {
    padding: 20px 0 20px;
  }

  .support-flow__steps {
    grid-template-columns: 1fr;
    max-width: 375px;
    padding: 0 16px;
    gap: 35px;
  }

  .support-flow__header {
    padding: 10px 20px 60px;
    margin-bottom: 40px;
    background-size: 100% 90%;
    background-position: bottom;
  }

  .support-flow__header .section-badge-img {
    margin-top: 30px;
  }

  .support-flow .section-title {
    font-size: 34px;
    line-height: 42px;
  }

  .support-flow .section-subtitle {
    font-size: 16px;
    line-height: 30px;
  }

  .support-flow__sub {
    font-size: 21px;
  }

  .support-flow__sub-img {
    max-width: 320px;
  }

  .support-flow__step-title {
    font-size: 20px;
  }

  /* SP: sequential order 1→2→3→4 */
  .support-flow__step:nth-child(1) { grid-column: 1; grid-row: 1; }
  .support-flow__step:nth-child(2) { grid-column: 1; grid-row: 2; }
  .support-flow__step:nth-child(3) { grid-column: 1; grid-row: 3; }
  .support-flow__step:nth-child(4) { grid-column: 1; grid-row: 4; }

  /* --- Stats SP: 2-col × 3-row ---
     Figma: left x=16, right x=195, gap=15px, vertical gap ~48px */
  .stats__grid {
    grid-template-columns: repeat(2, 164px);
    max-width: 375px;
    gap: 8px 15px;
    justify-content: center;
    padding: 20px 0 0;
    margin: 0 auto;
  }

  .stats__card {
    width: 164px;
  }

  .stats__desc {
    font-size: 13px;
  }

  .stats__header {
    padding: 10px 20px 60px;
    margin-bottom: 0;
    background-size: 100% 90%;
    background-position: bottom;
  }

  .stats__header .section-badge-img {
    margin-top: 30px;
  }

  .stats .section-title {
    font-size: 29px;
    line-height: 42px;
  }

  .stats__label-img {
    height: 30px;
  }

  /* --- Benefits SP --- */
  .benefits {
    padding: 0;
  }

  .benefits__list {
    padding: 0;
    margin-top: 30px;
  }

  .benefits__free-img {
    margin-top: -20px;
  }

  .benefits__header {
    padding: 10px 20px 60px;
    background-size: 100% 90%;
    background-position: bottom;
  }

  .benefits .section-title {
    font-size: 29px;
    line-height: 42px;
    margin-top: 16px;
    margin-bottom: 0;
  }

  .benefits .section-subtitle {
    margin-top: 15px;
    margin-bottom: 0;
  }

  .benefits__item {
    max-width: 343px;
    margin-left: auto;
    margin-right: auto;
  }

  .benefits__item-title {
    margin-top: 0;
  }

  .benefits__item-text {
    margin-top: 0;
  }

  /* --- Testimonials SP: 343px, 1-col stacked --- */
  .testimonials {
    padding: 0 0 40px;
  }

  .testimonials__header {
    padding: 10px 20px 60px;
    margin-bottom: 30px;
    background-size: 100% 90%;
    background-position: bottom;
  }

  .testimonials__header .section-badge-img {
    margin-bottom: 8px;
  }

  .testimonials__cards {
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    gap: 24px;
  }

  .testimonials__card {
    max-width: 343px;
    width: 100%;
    height: 370px;
  }

  .testimonials .section-title {
    font-size: 29px;
    line-height: 42px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .testimonials .section-subtitle {
    margin-top: 15px;
  }

  /* --- Success SP --- */
  .success__inner {
    padding: 0;
  }


  .success__illust {
    max-width: 100%;
    margin-top: -20px;
  }

  .success__school {
    max-width: 300px;
    margin-top: -30px;
  }

  /* --- Second KV SP: アスペクト比維持で画面幅に追従 --- */
  .cta-second__img {
    height: auto;
    object-position: top;
  }

  .cta-second__buttons {
    bottom: 24px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* --- Resources SP: 343px, 1-col --- */
  .resources {
    padding: 40px 0 0;
  }

  .resources__inner {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
  }

  .resources__card {
    max-width: 343px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- FAQ SP: 343px --- */
  .faq {
    padding: 20px 0 40px;
  }

  .faq__header {
    padding: 10px 20px 50px;
    margin-top: 20px;
    margin-bottom: 40px;
    background-size: 100% 95%;
    background-position: bottom;
  }

  .faq__item {
    margin-bottom: 25px;
  }

  .faq__list {
    padding: 0 16px;
    margin-bottom: 29px;
  }

  .faq .section-title {
    font-size: 24px;
    line-height: 36px;
  }

  .faq__cta-box {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 32px);
    max-width: 400px;
    padding-top: 27px;
    padding-bottom: 30px;
  }

  .faq__cta-box a img {
    width: 64vw;
  }

  .faq__answer p {
    padding-left: 20px;
  }

  /* --- Footer SP --- */

  .footer__links {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .footer__links a {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
  }
}
