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

:root {
  --text-letter-spacing: 0.02em; /* 全体の字間。数値を大きくすると広がります。 */
  --section-spacing: 100px; /* 隣接するセクションのコンテンツ間の余白 */
  --body-size: 16px;
  --section-title-size: 32px;
  --card-title-size: 24px;
  --blue: #0072be;
  --yellow: #fff77b;
  --ink: #1a1a1a;
  --navy: #15364f;
  --mist: #edf7fc;
  --border: #d6e8f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; letter-spacing: var(--text-letter-spacing); font: 400 var(--body-size)/2 "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, h4, p, ol, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #005993; outline-offset: 4px; }
[id] { scroll-margin-top: 20px; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.narrow { width: min(100%, 760px); margin-inline: auto; }
.wrap.narrow { width: min(760px, calc(100% - 40px)); }





.more a:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero { --hero-gutter: clamp(40px, 12vw, 180px); position: relative; isolation: isolate; min-height: clamp(560px, 54vw, 880px); padding-bottom: 16px; display: grid; align-items: center; --hero-blue-width: 78%; background: linear-gradient(to right, #e6f5fc var(--hero-blue-width), #fff var(--hero-blue-width)); }
.hero-media { position: absolute; z-index: -1; inset: 0 0 86px 24%; overflow: hidden; border-radius: 0 0 0 0px; background: #d9edf8; }
.hero-media::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; /*background: linear-gradient(90deg, #e6f5fc 0%, #e6f5fc00 24%);*/ }
.slide { position: absolute; inset: 0; opacity: 0; overflow: hidden; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.hero-logo { position: absolute; top: 28px; left: var(--hero-gutter); width: clamp(180px, 19vw, 248px); }
.hero-inner { width: calc(100% - 2 * var(--hero-gutter)); padding-block: 90px 50px; }
.hero-copy { width: fit-content; position: relative; }
.tag { position: relative; display: inline-block; background: var(--yellow); border-radius: 100px; padding: 4px 20px; color: var(--navy); font-size: 18px; font-weight: 800; letter-spacing: calc(.06em + var(--text-letter-spacing)); }
h1 { color: var(--blue); font-size: clamp(40px, 5vw, 72px); font-weight: 900; line-height: 1.14; letter-spacing: var(--text-letter-spacing); margin: 20px 0 20px; text-shadow: 0 0 18px #edf7fc; }
.hero-lead { color: var(--navy); font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; }
.hero-text { margin-top: 10px; color: var(--navy); font-size: var(--body-size); font-weight: 400; }
.hero .actions { flex-direction: column; align-items: flex-start; margin-top: 26px; }
.hero .button { width: min(330px, 100%); letter-spacing: 0.08em;}

.actions { display: flex; gap: 16px; flex-wrap: wrap; }
.actions.centered { justify-content: center; margin-top: 80px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 14px 32px; border: 2px solid transparent; border-radius: 100px; font-size: 18px; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.button span { font-size: 17px; line-height: 1; }
.primary { color: #fff; background: var(--blue); }
.primary:hover { background: #005b98; }
.secondary { color: var(--blue); border-color: var(--blue); background: #fff; }
.secondary:hover { background: #e6f5fc; }


.section { padding-block: calc(var(--section-spacing)); }
.hero + .section, .closing { padding-top: var(--section-spacing); }
.closing { padding-bottom: var(--section-spacing); }
.tinted { background: var(--mist); }
h2 { color: var(--blue); text-align: center; font-size: var(--section-title-size); line-height: 1.8; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 50px; }
h2::after { content: ""; display: block; margin: 25px auto 0; width: 120px; height: 4px; border-radius: 0px; background: var(--blue); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { border-radius: 0px; background: #fff; padding: clamp(18px, 2.4vw, 31px); }
#benefits .card,
#voices .card { border: 2px solid var(--blue); }
h3 { color: var(--navy); font-size: var(--card-title-size); line-height: 1.5; font-weight: 700; }
.card p { margin-top: 10px; }
#benefits .benefit > h3 { color: var(--blue); text-align: center; }
.benefit-illustration { width: min(100%, 160px); height: 150px; object-fit: contain; margin: 0 auto 20px; margin-top: 5px;}
.steps { --step-gap: 32px; gap: var(--step-gap); padding: 0; list-style: none; }
.steps .card { position: relative; }
.steps .card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + var(--step-gap) / 2);
  transform: translate(-50%, -50%);
  border-block: 10px solid transparent;
  border-left: 14px solid var(--blue);
}
.steps li > span {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 8px 16px;
  background: var(--yellow);
  color: var(--blue);
  font: 800 24px/1 "DM Sans", sans-serif;
  text-align: center;
}
.tag::after,
.steps li > span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-inline: 7px solid transparent;
  border-top: 7px solid var(--yellow);
}
#flow .steps .card > h3 { color: var(--blue); text-align: center; }
.facts { margin-top: 22px; /*border: 1px solid var(--border);*/ border-radius: 0px; overflow: hidden; background: white; }
.facts div { display: grid; grid-template-columns: minmax(90px, 19%) 1fr; }
.facts div + div { border-top: 1px solid var(--border); }
.facts dt, .facts dd { padding: 10px 15px; font-size: 16px; }
.facts dt { display: grid; place-items: center; padding-inline: 8px; background: #dbedf7; color: var(--navy); font-weight: 800; }
.facts dt > span { text-align: center; }
.voice { display: grid; grid-template-rows: subgrid; grid-row: span 6; row-gap: 10px; align-items: start; }
.voice p { margin-top: 0; }
.card .meta, .meta { color: #0067ac; font-size: 13px; font-weight: 700; }
.voice img { border-radius: 12px; margin-top: 5px; }
.voice h4 { color: var(--blue); font-size: 14px; margin-top: 5px; }
.more { text-align: center; margin-top: 24px; color: var(--blue); font-size: 14px; font-weight: 800; }
.tutors article { text-align: center; }
.tutors img { width: 100%; aspect-ratio: 4 / 4.1; height: auto; object-fit: cover; object-position: center 30%; border-radius: 0px; margin-bottom: 15px; }

.application-form { padding: clamp(20px, 5vw, 42px); }
.application-form .form-note { color: #39556a; background: var(--mist); padding: 9px 13px; border-radius: 8px; margin: 0 0 24px; }
fieldset { margin: 0 0 22px; padding: 0; border: 0; }
legend, .fields label { color: var(--navy); font-weight: 700; }
fieldset label { display: inline-flex; align-items: center; gap: 5px; margin: 7px 16px 0 0; }
input[type="radio"] { accent-color: var(--blue); }
.fields { display: grid; gap: 16px; margin-bottom: 24px; }
.fields :is(input, select, textarea) { display: block; width: 100%; padding: 9px 12px; margin-top: 5px; color: var(--ink); background: #fff; border: 1px solid #a5bdce; border-radius: 8px; font-weight: 400; }
.fields small { padding: 2px 5px; color: #fff; background: var(--blue); border-radius: 4px; font-size: 11px; }
.fields .optional { background: var(--mist); color: var(--navy); }
#form-status { color: var(--blue); font-weight: 700; }

.line-panel { text-align: center; background: var(--yellow); border-radius: 0px; padding: clamp(25px, 5vw, 57px) 16px; }
.line-panel h2 { margin-bottom: 12px; }
.line-panel h2::after { content: none; }
.line-panel-mobile-break { display: none; }
.after-form .line-panel > p { font-size: 18px; }
.line-panel .line { background: white; color: #06C755; border-color: #06C755; margin-top: 30px; }
.line-panel .line:hover { background: #e9fff3; }
.faq { margin-top: var(--section-spacing); }
details { border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; overflow: clip; }
summary { display: flex; align-items: center; gap: 13px; cursor: pointer; background: var(--mist); padding: 13px 15px; font-weight: 700; font-size: 18px;color: var(--navy); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before, details p::before { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 6px; font: 800 15px/1 "DM Sans", sans-serif; }
summary::before { content: "Q"; background: var(--blue); color: white; }
summary::after { content: "+"; color: var(--blue); font-size: 20px; margin-left: auto; }
details[open] summary::after { content: "−"; }
details p { display: flex; align-items: flex-start; gap: 13px; padding: 13px 15px; font-size: 16px; color: #15364f;}
details p::before { content: "A"; background: var(--yellow); color: var(--navy); }
summary:focus-visible { outline-offset: -3px; }

.closing { text-align: center; color: white; background: var(--blue); padding-inline: 20px; }
.closing h2 { color: white; margin: 18px 0 0; }
.closing-mobile-break { display: none; }
.closing h2::after { content: none; }
.closing .primary { color: var(--blue); background: white; }
.closing .secondary { color: white; border-color: white; background: transparent; }
.closing .primary:hover { background: var(--mist); }
.closing .secondary:hover { background: #005b98; }
.footer { padding: 55px 0 20px; background: var(--navy); color: #fff; }

.footer-logo { width: min(100%, 248px); }
.footer nav { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.1fr; gap: 20px; margin: 30px 0; }
.footer nav div { display: grid; gap: 11px; align-content: start; font-size: 13px; }
.footer a:hover { text-decoration: underline; }
.footer-end { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #ffffff40; padding-top: 12px; }
.footer-end a { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #ffffff80; border-radius: 50%; }
.footer :focus-visible, .closing :focus-visible { outline-color: var(--yellow); }

@media (max-width: 960px) {

  .hero-media { left: 34%; }
  .hero-media::after { background: linear-gradient(90deg, #e6f5fc 0%, #e6f5fc00 30%); }
}
@media (max-width: 780px) {
  :root {
    --section-spacing: 70px;
    --section-title-size: 24px;
  }
  h2 { line-height: 1.5; margin-bottom: 42px; }
  .hero .button { font-size: 18px; }
}
@media (max-width: 650px) {
  .line-panel-mobile-break, .closing-mobile-break { display: inline; }
  .wrap { width: calc(100% - 36px); }
  .hero { --hero-gutter: 18px; display: block; min-height: auto; padding: 56px 0 0; background: var(--mist); }
  .hero-logo { top: 18px; width: 190px; z-index: 2; }
  .hero-media { position: relative; z-index: 0; height: clamp(218px, 58vw, 360px); inset: auto; top: 0; border-radius: 0 0 0 0px; margin-left: 14px; }
  .hero-media::after { content: none; }
  .hero-inner { padding-block: 24px 80px; }
  .hero h1 { margin-block: 18px 11px; font-size: clamp(34px, 9vw, 48px); }
  .hero .actions { margin-top: 36px; }
  .hero .button { width: 100%; }
  .hero-copy { width: 100%; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .steps { gap: var(--step-gap); }
  .steps .card:not(:last-child)::after {
    top: calc(100% + var(--step-gap) / 2);
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .voice { display: block; }
  .voice p, .voice img, .voice h4 { margin-top: 10px; }
  .tutors article { max-width: 340px; width: 100%; margin: 0 auto 10px; }
  .footer nav { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .actions.centered { margin-top: 50px; }
  .actions.centered .button { width: min(100%, 320px); }
}
