/* Shared large-screen homepage composition. Tablet retains the desktop canvas
   and simply scales its dimensions to its available width. */
@media (min-width: 768px) {
  :root { --mg-shell: min(calc(100% - 64px), 1240px); }
  @media (min-width: 1440px) { :root { --mg-shell: min(calc(100% - 64px), 1280px); } }

  #desktop-home { background: var(--mg-paper); overflow: clip; }
  .site-header { min-height: 94px; padding: 12px max(32px, calc((100vw - 1320px) / 2)); gap: 28px; }
  .site-header .brand img { width: 180px; }
  .site-header .nav { gap: clamp(15px, 1.3vw, 22px); }
  .site-header .nav a { font-size: 16px; }
  .site-header .header-cta { min-height: 56px; padding-inline: 24px; border-radius: 8px; font-size: 16px; }
  .d-section { padding: clamp(76px, 7vw, 110px) 0; }
  .d-copy-rail h2, .d-progress-heading h2, .d-parent-note h2 { font-size: clamp(34px, 3.2vw, 46px); line-height: 1.18; letter-spacing: -.035em; }
  .d-copy-rail > p:not(.d-eyebrow) { max-width: 34em; font-size: 16px; line-height: 1.75; }
  .d-button { min-height: 50px; border-radius: 6px; }

  /* Hero: one compact, balanced composition instead of a loose split screen. */
  .d-hero { position: relative; padding: clamp(64px, 5.5vw, 88px) 0 clamp(68px, 6vw, 96px); overflow: hidden; background: radial-gradient(circle at 88% 14%, #eaf0ff 0 12%, transparent 12.2%), var(--mg-paper); }
  .d-hero::after { display: none; }
  .d-hero-grid { position: relative; z-index: 1; min-height: 0; grid-template-columns: minmax(0, .91fr) minmax(440px, 1.09fr); gap: clamp(42px, 5.5vw, 82px); align-items: center; }
  .d-hero-copy { padding: 10px 0; }
  .d-hero-copy h1 { max-width: 690px; font-size: clamp(54px, 4.5vw, 70px); line-height: 1.04; letter-spacing: -.065em; }
  .d-hero-copy h1 strong { display: inline-block; margin-top: .08em; color: var(--mg-blue); }
  .d-hero-kicker { display: inline-block; margin-bottom: 16px; padding: 7px 11px 6px; background: var(--mg-blue); color: var(--mg-yellow); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
  .d-lead { max-width: 560px; margin-top: 25px; font-size: 17px; line-height: 1.72; }
  .d-hero-copy .d-actions { margin-top: 28px; }
  .d-hero-proof { max-width: 650px; margin-top: 34px; gap: 9px; border: 0; }
  .d-hero-proof div { min-height: 94px; padding: 15px 14px; border: 1px solid #d7e0f1; background: #fff; }
  .d-hero-proof div + div { padding-left: 14px; border-left: 1px solid #d7e0f1; }
  .d-hero-proof div::before { display: block; width: 24px; height: 4px; margin-bottom: 10px; background: var(--mg-yellow); content: ""; }
  .d-hero-proof dt { font-size: 12px; }
  .d-hero-proof dd { max-width: 15ch; margin-top: 4px; font-size: 13px; line-height: 1.45; }
  .d-hero-carousel { max-width: 630px; aspect-ratio: 16 / 10; border: 5px solid var(--mg-blue); border-radius: 18px; box-shadow: 14px 14px 0 var(--mg-yellow); }
  .d-hero-slide { border-radius: 11px; }
  .d-hero-slide figcaption { left: 16px; bottom: 16px; padding: 10px 13px; border-radius: 5px; }
  .d-carousel-controls { right: 14px; bottom: 14px; }

  /* Awards share the same premium blue-and-yellow system as the quality promise. */
  .d-proof {
    position: relative;
    isolation: isolate;
    padding-block: clamp(70px, 6vw, 92px);
    background: #fff;
  }
  .d-proof::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0;
    background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: linear-gradient(90deg, transparent 0%, #000 52%, #000 100%);
  }
  .d-proof > .d-shell { width: min(calc(100% - 64px), 1420px); }
  .d-proof-grid { grid-template-columns: minmax(350px, 430px) minmax(0, 1fr); gap: clamp(38px, 4.5vw, 62px); align-items: stretch; }
  .d-proof-grid > .d-copy-rail {
    min-height: 0;
    padding: clamp(34px, 3.2vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.28);
    border-top: 7px solid var(--mg-yellow);
    border-radius: 24px;
    background: var(--mg-blue);
    color: #fff;
    box-shadow: 0 24px 54px rgba(0,0,0,.2);
  }
  .d-proof-grid > .d-copy-rail .d-eyebrow { display: none; }
  .d-proof-grid > .d-copy-rail h2 { margin: 0; display: flex; align-items: center; gap: .18em; color: #fff; font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(38px, 3.35vw, 58px); font-weight: 900; line-height: 1.04; letter-spacing: -.055em; }
  .d-proof-grid > .d-copy-rail h2::before { width: 10px; height: 1.05em; flex: 0 0 auto; border-radius: 999px; background: var(--mg-yellow); content: ""; transform: rotate(5deg); }
  .d-proof-grid > .d-copy-rail h2 br { display: none; }
  .d-proof-grid > .d-copy-rail h2 em { color: var(--mg-yellow); font-size: inherit; font-style: normal; }
  .d-proof-grid > .d-copy-rail > p:not(.d-eyebrow) { max-width: 52em; margin: 22px 0 0; color: #fff; font-size: clamp(18px, 1.45vw, 21px); font-weight: 600; line-height: 1.72; }
  .d-award-poster { order: -1; width: 100%; justify-self: center; align-self: center; padding: 8px; border-radius: 24px; background: #fff; box-shadow: 0 28px 60px rgba(0,0,0,.24); }
  .d-award-poster img { width: 100%; height: auto; max-height: none; display: block; border-radius: 17px; object-fit: contain; }
  .d-proof-grid > .d-copy-rail > p.d-proof-summary { align-self: stretch; margin: 30px 0 0; color: var(--mg-yellow) !important; font-size: clamp(34px, 2.6vw, 42px) !important; font-weight: 900; line-height: 1.2; letter-spacing: -.045em; text-align: center; }
  .d-proof-grid .d-value-tags { max-width: none; flex: 1; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 22px; border: 0; background: transparent; box-shadow: none; counter-reset: award-value; }
  .d-proof-grid .d-value-tags li { min-height: 86px; padding: 10px 24px 10px 10px; display: flex; align-items: center; gap: 18px; border: 2px solid rgba(255,255,255,.78); border-radius: 18px; background: #fff; color: var(--mg-blue); font-size: clamp(19px,1.45vw,24px); font-weight: 800; line-height: 1.4; box-shadow: 0 12px 24px rgba(7,23,66,.2); }
  .d-proof-grid .d-value-tags li::before { width: 58px; height: 58px; flex: 0 0 58px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--mg-yellow); color: var(--mg-blue); font-size: 18px; font-weight: 900; letter-spacing: .04em; content: "0" counter(award-value); counter-increment: award-value; }

  .d-promise {
    position: relative;
    isolation: isolate;
    padding-block: clamp(70px, 6vw, 92px);
    background:
      radial-gradient(circle at 89% 12%, rgba(255, 210, 28, .18) 0 9%, transparent 9.2%),
      linear-gradient(135deg, #05268b 0%, #0834a1 52%, #05268b 100%);
  }
  .d-promise::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .12;
    background-image:
      linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: linear-gradient(90deg, transparent 0%, #000 52%, #000 100%);
  }
  .d-promise > .d-shell { width: min(calc(100% - 64px), 1420px); }
  .d-promise-grid { grid-template-columns: minmax(350px, 430px) minmax(0, 1fr); gap: clamp(38px, 4.5vw, 62px); align-items: stretch; }
  .d-promise-content {
    min-width: 0;
    align-self: stretch;
    padding: clamp(34px, 3.2vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-top: 7px solid var(--mg-yellow);
    border-radius: 24px;
    background: rgba(7, 23, 66, .34);
    box-shadow: 0 24px 54px rgba(0, 0, 0, .2);
  }
  .d-promise .d-copy-rail {
    min-width: 0;
    padding: 0;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .d-promise .d-eyebrow { display: none; }
  .d-promise .d-copy-rail h2 {
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .18em;
    color: #fff;
    font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(38px, 3.35vw, 58px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.055em;
    white-space: nowrap;
  }
  .d-promise .d-copy-rail h2::before {
    width: 10px;
    height: 1.05em;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--mg-yellow);
    content: "";
    transform: rotate(5deg);
  }
  .d-promise .d-copy-rail h2 span { display: inline; }
  .d-promise .d-copy-rail h2 em {
    display: inline-block;
    margin: 0;
    padding: .07em .16em .11em;
    background: var(--mg-yellow);
    color: var(--mg-ink);
    font-style: normal;
    box-shadow: 5px 5px 0 #fff;
    transform: rotate(-1deg);
  }
  .d-promise .d-copy-rail > p:not(.d-eyebrow) {
    max-width: 52em;
    margin: 22px 0 0;
    color: #fff;
    font-size: clamp(18px, 1.45vw, 21px);
    font-weight: 600;
    line-height: 1.72;
  }
  .d-promise .d-promise-poster {
    width: auto;
    min-width: 0;
    align-self: center;
    padding: 8px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 60px rgba(0, 0, 0, .24);
  }
  .d-promise .d-promise-poster img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    display: block;
    border-radius: 17px;
    object-fit: contain;
  }
  .d-promise .d-promise-list {
    min-height: 0;
    max-width: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 18px 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .d-promise .d-promise-list li {
    min-height: 86px;
    grid-column: auto;
    padding: 10px 24px 10px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    border: 2px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    background: #fff;
    color: var(--mg-blue);
    font-size: clamp(19px, 1.45vw, 24px);
    font-weight: 800;
    line-height: 1.4;
    box-shadow: 0 12px 24px rgba(7, 23, 66, .2);
  }
  .d-promise .d-promise-list li:nth-child(even) { padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .78); }
  .d-promise .d-promise-list li:nth-child(4) { grid-column: auto; }
  .d-promise .d-promise-list li:last-child { width: calc(50% - 24px); grid-column: 1 / -1; justify-self: center; justify-content: flex-start; }
  .d-promise .d-promise-list span {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mg-yellow);
    color: var(--mg-blue);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .04em;
  }
  .d-promise .d-promise-list li::after { display: none; }

  .d-progress-heading { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr); gap: 70px; }
  .d-progress-grid { margin-top: 38px; grid-template-columns: minmax(210px, .76fr) minmax(270px, .88fr) minmax(310px, 1fr); gap: 18px; }
  .d-stories, .d-reel-card, .d-results { border-radius: 14px; }
  .d-reel-card iframe { height: min(460px, 37vw); }
  .d-result-stage { height: min(485px, 38vw); }
  .d-progress { position: relative; isolation: isolate; background: linear-gradient(180deg, #fffdf8 0%, #f4f7ff 100%); }
  .d-progress::before { position: absolute; z-index: -1; top: 80px; right: max(4vw, calc((100vw - 1420px) / 2)); width: 180px; height: 180px; border-radius: 50%; background: rgba(16, 61, 175, .06); content: ""; }
  .d-progress > .d-shell { width: min(calc(100% - 64px), 1420px); }
  .d-progress-heading { display: block; width: min(100%, 980px); margin: 0 auto; text-align: center; }
  .d-progress-heading h2 { max-width: none; margin: 0; color: var(--mg-ink); font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(52px, 4.5vw, 72px); font-weight: 900; line-height: 1.05; letter-spacing: -.065em; }
  .d-progress-heading h2::before { display: block; width: max-content; margin: 0 auto 15px; padding: 7px 12px 6px; background: var(--mg-blue); color: var(--mg-yellow); font-family: Arial, "PingFang SC", sans-serif; font-size: 13px; font-weight: 900; letter-spacing: .12em; line-height: 1; content: "STUDENT PROGRESS · 成长看得见"; }
  .d-progress-heading h2 em { display: inline-block; margin-top: .14em; margin-left: clamp(18px, 1.8vw, 30px); padding: .07em .19em .12em; background: var(--mg-yellow); color: var(--mg-blue); font-style: normal; box-shadow: 9px 9px 0 var(--mg-blue); transform: rotate(-1deg); }
  .d-progress-heading > p { max-width: 44em; margin: 30px auto 0; color: var(--mg-muted); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.7; }
  .d-progress-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 26px; align-items: stretch; }
  .d-results { grid-column: 1; grid-row: 1; min-height: 0; align-self: stretch; padding: 24px; display: flex; flex-direction: column; border: 0; border-top: 7px solid var(--mg-yellow); border-radius: 22px; background: var(--mg-blue); box-shadow: 0 22px 45px rgba(11, 43, 122, .18); }
  .d-results-copy { padding: 2px 4px 18px; }
  .d-results-copy p { font-size: 17px; letter-spacing: .04em; }
  .d-results-copy h3 { margin-top: 8px; font-size: clamp(29px, 2.3vw, 36px); }
  .d-result-media, .d-video-media { position: relative; width: 100%; }
  .d-result-stage { width: 100%; aspect-ratio: 1103 / 1426; height: auto; min-height: 0; flex: none; border-radius: 14px; }
  .d-result-nav, .d-video-nav { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: space-between; padding-inline: 14px; pointer-events: none; }
  .d-result-controls, .d-video-controls { position: absolute; bottom: 13px; left: 50%; display: flex; justify-content: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.88); transform: translateX(-50%); pointer-events: auto; }
  .d-media-arrow { position: relative; z-index: 1; width: 40px; height: 40px; padding: 0; border: 1px solid #b9c5e5; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--mg-blue); font-size: 24px; font-weight: 900; line-height: 1; cursor: pointer; pointer-events: auto; box-shadow: 0 6px 18px rgba(7,23,66,.16); }
  .d-media-arrow:hover { border-color: var(--mg-yellow); background: var(--mg-yellow); color: var(--mg-ink); }
  .d-reel-card { grid-column: 2; grid-row: 1; min-height: 0; align-self: stretch; display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid #dce4f5; border-radius: 22px; background: #fff; box-shadow: 0 22px 45px rgba(11, 43, 122, .1); }
  .d-video-slider { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #000; }
  .d-video-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .d-video-slide.is-active { opacity: 1; pointer-events: auto; }
  .d-reel-viewport { width: 100%; height: 100%; overflow: hidden; background: #000; }
  .d-reel-card iframe { width: 100%; aspect-ratio: 9 / 16; height: auto; min-height: 0; display: block; flex: none; max-height: none; }
  .d-video-controls { min-height: 0; align-items: center; gap: 8px; }
  .d-video-controls button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #b9c5e5; cursor: pointer; }
  .d-video-controls button.is-active { width: 22px; border-radius: 999px; background: var(--mg-yellow); }
  .d-reel-card figcaption { margin-top: auto; padding: 17px 20px; border-top: 1px solid #e5eaf5; font-size: 15px; }
  .d-stories { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .d-stories figure { min-height: 460px; margin: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dce4f5; border-radius: 22px; background: #fff; box-shadow: 0 18px 38px rgba(11, 43, 122, .08); }
  .d-stories img { width: 100%; height: 410px; max-height: none; flex: 1; object-fit: contain; background: #f4f7ff; }
  .d-stories figcaption { padding: 16px 18px; font-size: 16px; }

  .d-courses { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, #edf2ff 0%, #f8faff 50%, #e9efff 100%); }
  .d-courses::before { position: absolute; z-index: -1; right: -90px; bottom: -110px; width: 420px; height: 420px; border: 55px solid rgba(255, 210, 28, .3); border-radius: 50%; content: ""; }
  .d-holidays, .d-branches { background: var(--mg-mist); }
  .d-sticky-layout { grid-template-columns: minmax(290px, .7fr) minmax(0, 1.3fr); gap: clamp(52px, 6vw, 92px); }
  .d-sticky-rail { top: 108px; }
  .d-courses .d-sticky-layout { align-items: stretch; }
  .d-courses .d-sticky-layout { grid-template-columns: minmax(260px, .64fr) minmax(0, 1.36fr); gap: clamp(40px, 4.5vw, 68px); }
  .d-courses .d-sticky-rail { position: static; top: auto; align-self: stretch; margin: 0; }
  .d-courses .d-copy-rail { position: relative; align-self: stretch; min-height: 430px; padding: clamp(34px, 3vw, 48px) clamp(30px, 2.8vw, 44px); border-top: 8px solid var(--mg-yellow); border-radius: 24px; background: linear-gradient(145deg, #08216d 0%, #0a36aa 100%); box-shadow: 0 24px 52px rgba(12, 43, 125, .2); overflow: hidden; }
  .d-courses .d-copy-rail::before { position: absolute; top: 35px; right: -54px; width: 170px; height: 170px; border: 28px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
  .d-courses .d-copy-rail .d-eyebrow { position: relative; z-index: 1; display: inline-block; margin: 0 0 20px; padding: 7px 10px 6px; background: var(--mg-yellow); color: var(--mg-ink); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
  .d-courses .d-copy-rail h2 { position: relative; z-index: 1; max-width: none; margin: 0; color: #fff; font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: clamp(48px, 4.1vw, 64px); line-height: 1.05; letter-spacing: -.065em; }
  .d-courses .d-copy-rail h2 em { display: inline-block; margin-top: .15em; padding: .06em .14em .11em; background: var(--mg-yellow); color: var(--mg-blue); font-style: normal; box-shadow: 7px 7px 0 #fff; transform: rotate(-1deg); }
  .d-courses .d-copy-rail > p:not(.d-eyebrow) { position: relative; z-index: 1; margin-top: 28px; color: #e8efff; font-size: 18px; line-height: 1.75; }
  .d-courses .d-text-link { position: relative; z-index: 1; margin-top: 30px; padding: 12px 15px; background: #fff; color: var(--mg-blue); font-size: 15px; }
  .d-course-area { align-self: stretch; border: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 22px 46px rgba(12, 43, 125, .12); }
  .d-course-tabs { background: #fff; }
  .d-course-tabs button { min-height: 108px; padding-inline: 16px; font-size: 21px; }
  .d-course-tabs button small { font-size: 16px; }
  .d-course-tabs button.is-active { background: var(--mg-yellow); color: var(--mg-blue); }
  .d-course-tabs button.is-active small { color: var(--mg-blue); }
  .d-course-panel { position: relative; min-height: 292px; padding: clamp(35px, 3vw, 50px); padding-bottom: clamp(52px, 4vw, 68px); background: linear-gradient(135deg, #fff 0%, #fbfcff 100%); }
  .d-course-panel::before { position: absolute; top: 0; right: 0; width: 28%; height: 6px; background: var(--mg-yellow); content: ""; }
  .d-course-panel h3 { font-size: clamp(36px, 3.1vw, 48px); }
  .d-course-panel h3 .d-course-age { display: inline-block; white-space: nowrap; }
  .d-course-panel .d-eyebrow { display: inline-block; margin-bottom: 12px; padding: 6px 9px; background: var(--mg-yellow); color: var(--mg-ink); font-size: 12px; letter-spacing: .08em; }
  .d-course-panel h3::after { display: block; width: 42px; height: 5px; margin-top: 15px; background: var(--mg-yellow); content: ""; }
  .d-course-panel-intro > p:last-child { max-width: 22ch; margin-top: 18px; font-size: 17px; line-height: 1.68; }
  .d-subject-groups { align-content: start; }
  .d-subject-group { min-width: 0; padding: 18px 20px 26px; border: 1px solid #dce5f7; border-left: 5px solid var(--mg-yellow); border-radius: 10px; background: #fff; box-shadow: 0 7px 16px rgba(12, 43, 125, .05); }
  .d-subject-group > div { padding-bottom: 12px; }
  .d-subject-group:last-child { border-bottom: 1px solid #dce5f7; border-left: 5px solid var(--mg-yellow); }
  .d-subject-group h4 { margin-bottom: 12px; color: var(--mg-blue); font-size: 19px; }
  .d-subject-group span { padding: 8px 13px; border-color: #d5dff4; border-radius: 5px; background: #f5f8ff; font-size: 16px; font-weight: 800; white-space: nowrap; }
  .d-course-footnote { font-size: 16px; }
  .d-course-footnote button { padding: 8px 12px; background: #fff8d7; color: var(--mg-blue); font-size: 16px; }

  .d-daycare {
    position: relative;
    isolation: isolate;
    padding-block: clamp(70px, 6vw, 92px);
    background:
      radial-gradient(circle at 89% 12%, rgba(255, 210, 28, .18) 0 9%, transparent 9.2%),
      linear-gradient(135deg, #062b9a 0%, #0a3db6 52%, #062b9a 100%);
  }
  .d-daycare::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .14;
    background-image:
      linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: linear-gradient(90deg, transparent 0%, #000 52%, #000 100%);
  }
  .d-daycare-grid {
    grid-template-columns: 1fr;
    gap: clamp(30px, 3.4vw, 42px);
  }
  .d-daycare .d-copy-rail {
    min-width: 0;
    padding: clamp(28px, 2.6vw, 40px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(370px, .85fr);
    grid-template-rows: auto auto;
    gap: 20px clamp(30px, 3.2vw, 46px);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-top: 7px solid var(--mg-yellow);
    border-radius: 20px;
    background: rgba(7, 23, 66, .34);
    box-shadow: 0 24px 54px rgba(7, 23, 66, .24);
  }
  .d-daycare .d-eyebrow { display: none; }
  .d-daycare .d-copy-rail h2 {
    grid-column: 1;
    grid-row: 1 / 3;
    max-width: none;
    margin: 0;
    color: #fff;
    font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(54px, 4.4vw, 68px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.055em;
  }
  .d-daycare .d-copy-rail h2 span { display: block; }
  .d-daycare .d-copy-rail h2 em {
    display: inline-block;
    margin-top: .2em;
    padding: .08em .16em .12em;
    background: var(--mg-yellow);
    color: var(--mg-ink);
    font-style: normal;
    box-shadow: 7px 7px 0 #fff;
    transform: rotate(-1deg);
  }
  .d-daycare .d-copy-rail > p:not(.d-eyebrow) {
    grid-column: 2;
    grid-row: 1;
    max-width: 31em;
    margin: 0;
    color: #eef3ff;
    font-size: clamp(17px, 1.3vw, 20px);
    font-weight: 600;
    line-height: 1.72;
  }
  .d-daycare .d-copy-rail > p:not(.d-eyebrow) span { display: block; }
  .d-daycare .d-actions {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .d-daycare .d-button {
    min-height: 54px;
    padding-inline: 14px;
    border-radius: 11px;
    font-size: 16px;
  }
  .d-daycare .d-button--yellow { box-shadow: 0 7px 0 #caa300; }
  .d-daycare .d-button--white-line {
    border-color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .08);
  }
  .d-daycare-visual {
    width: min(100%, 1480px);
    margin: 0 auto;
    grid-template-columns: minmax(350px, 420px) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
  }
  .d-daycare > .d-shell { width: min(calc(100% - 64px), 1560px); }
  .d-daycare-visual .d-poster-card {
    min-width: 0;
    align-self: center;
    margin: 0;
    padding: 6px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 60px rgba(7, 23, 66, .28);
  }
  .d-daycare-visual img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    display: block;
    border-radius: 19px;
    object-fit: contain;
  }
  .d-daycare .d-service-list {
    min-height: 620px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
    border: 0;
  }
  .d-daycare .d-service-list li {
    min-height: 0;
    padding: clamp(20px, 1.7vw, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--mg-ink);
    box-shadow: 0 14px 30px rgba(7, 23, 66, .16);
  }
  .d-daycare .d-service-list b {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mg-yellow);
    color: var(--mg-blue);
    font-size: 13px;
    letter-spacing: .04em;
  }
  .d-daycare .d-service-list span {
    margin-top: 12px;
    color: var(--mg-blue);
    font-size: clamp(17px, 1.15vw, 20px);
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
  }
  .d-daycare .d-service-list span::after {
    width: 42px;
    height: 4px;
    margin: 12px auto 0;
    display: block;
    border-radius: 999px 25% 999px 20%;
    background: var(--mg-yellow);
    content: "";
    transform: skewX(-18deg);
  }
  .d-daycare .d-service-list .d-service-transport { position: relative; overflow: hidden; }
  .d-daycare .d-service-list .d-service-transport img {
    width: calc(100% + 24px);
    max-width: none;
    height: auto;
    margin: auto -12px 4px;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 14px 9px rgba(7, 23, 66, .2));
    transform: translateY(-12px);
  }
  .d-daycare .d-service-list .d-service-lunch { position: relative; overflow: hidden; }
  .d-daycare .d-service-list .d-service-lunch img {
    width: 100%;
    height: 132px;
    margin: auto 0 2px;
    display: block;
    border: 0;
    border-radius: 10px;
    object-fit: cover;
    object-position: center 55%;
    box-shadow: none;
    filter: saturate(1.12) contrast(1.04) brightness(1.04);
  }
  .d-daycare .d-service-list .d-service-report > div {
    width: 100%;
    margin-top: 14px;
    padding-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .d-daycare .d-service-list .d-service-report img {
    width: 100%;
    height: 164px;
    display: block;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }
  .d-daycare .d-service-list .d-service-homework img {
    width: 100%;
    height: 164px;
    margin-top: 14px;
    display: block;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }
  .d-daycare .d-service-list .d-service-mental img {
    width: 100%;
    height: 164px;
    margin-top: 14px;
    display: block;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }
  .d-daycare .d-service-list .d-service-holiday img {
    width: 100%;
    height: 164px;
    margin-top: 14px;
    display: block;
    border-radius: 0;
    object-fit: contain;
    object-position: center;
    background: transparent;
  }

  .d-news-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
  }
  .d-news .d-copy-rail {
    min-width: 0;
    height: 100%;
    padding: clamp(28px, 2.8vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--mg-line);
    border-top: 8px solid var(--mg-yellow);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 23, 66, .08);
  }
  .d-news .d-copy-rail h2 {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .18em;
    font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(58px, 4.8vw, 72px);
    font-weight: 900;
    line-height: .94;
    letter-spacing: -.07em;
  }
  .d-news .d-copy-rail h2 span { color: var(--mg-ink); font-size: .72em; }
  .d-news .d-copy-rail h2 em {
    display: inline-block;
    margin: 0;
    padding: .09em .19em .13em;
    background: var(--mg-blue);
    color: var(--mg-yellow);
    font-style: normal;
    letter-spacing: -.075em;
    box-shadow: 7px 7px 0 var(--mg-yellow);
    transform: rotate(-1.5deg);
  }
  .d-news .d-copy-rail > p:not(.d-eyebrow) {
    max-width: 24em;
    margin-top: 30px;
    font-size: clamp(18px, 1.45vw, 20px);
    line-height: 1.72;
  }
  .d-news .d-campaign-grid { display: contents; }
  .d-campaign-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(7, 23, 66, .08);
  }
  .d-campaign-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .d-campaign-card > div {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .d-campaign-card p { font-size: 12px; }
  .d-campaign-card h3 { margin: 10px 0 22px; font-size: clamp(25px, 2vw, 30px); }
  .d-campaign-card button { margin-top: auto; font-size: 16px; }

  .d-gallery-rail { gap: 18px; }
  .d-holidays .d-sticky-layout { grid-template-columns: minmax(420px, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 4.5vw, 64px); align-items: start; }
  .d-holidays .d-rail-controls { display: none; }
  .d-holidays .d-copy-rail {
    min-height: 382px;
    padding: clamp(32px, 3.2vw, 44px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--mg-line);
    border-top: 8px solid var(--mg-yellow);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(7, 23, 66, .10);
  }
  .d-holidays .d-copy-rail h2 {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: clamp(54px, 4.4vw, 64px);
    line-height: 1;
    letter-spacing: -.055em;
  }
  .d-holidays .d-copy-rail h2 span { color: var(--mg-ink); white-space: nowrap; }
  .d-holidays .d-copy-rail h2 em {
    display: inline-block;
    margin-top: .16em;
    padding: .07em .18em .12em;
    background: var(--mg-blue);
    color: var(--mg-yellow);
    box-shadow: .11em .11em 0 var(--mg-yellow);
    font-style: normal;
    white-space: nowrap;
  }
  .d-holidays .d-copy-rail > p:not(.d-eyebrow) { max-width: 25em; margin-top: 30px; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.72; }
  .d-holidays .d-copy-rail > p:not(.d-eyebrow) span { display: block; }
  .d-holidays .d-gallery-rail { align-items: stretch; }
  .d-holidays .d-gallery-rail figure { flex: 0 0 min(380px, 44vw); display: grid; grid-template-rows: 320px 62px; height: 382px; border: 0; border-radius: 18px; box-shadow: 0 18px 38px rgba(7, 23, 66, .11); }
  .d-holidays .d-gallery-rail img { width: 100%; height: 320px; max-height: none; padding: 0; object-fit: cover; }
  .d-holidays .d-gallery-rail figcaption { position: relative; min-height: 62px; padding: 13px 18px 13px 27px; display: flex; align-items: center; color: var(--mg-blue); font-size: 17px; }
  .d-holidays .d-gallery-rail figcaption::before { position: absolute; top: 17px; bottom: 17px; left: 15px; width: 4px; border-radius: 999px; background: var(--mg-yellow); content: ""; }

  /* Teaching methods are a balanced 2 × 2 set, with the section story above it. */
  .d-method .d-shell { display: block; }
  .d-method .d-copy-rail { width: min(100%, 860px); margin: 0 auto 48px; text-align: center; }
  .d-method .d-copy-rail .d-eyebrow { display: none; }
  .d-method .d-copy-rail h2 { margin: 0; font-size: clamp(52px, 5.6vw, 82px); line-height: 1.03; letter-spacing: -.07em; white-space: nowrap; }
  .d-method .d-copy-rail h2 em { display: inline-block; padding: .06em .17em .11em; background: var(--mg-blue); color: var(--mg-yellow); font-style: normal; letter-spacing: -.075em; }
  .d-method .d-copy-rail > p:not(.d-eyebrow) { max-width: none; margin: 28px auto 0; color: var(--mg-muted); font-size: clamp(18px, 1.45vw, 21px); line-height: 1.65; }
  .d-method .d-copy-rail > p:not(.d-eyebrow) span { display: block; }
  .d-method .d-copy-rail > p:not(.d-eyebrow) { margin-inline: auto; }
  .d-method-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(350px, auto); gap: 18px; width: min(100%, 1120px); margin: 0 auto; }
  .d-method-feature { min-height: 350px; padding: 18px; border-radius: 14px; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; }
  .d-method-feature img { max-height: 250px; }
  .d-method-feature > div { padding: 0; }
  .d-method-content .d-eyebrow { display: none; }
  .d-method-feature h3, .d-method-cards h3 { margin: 0; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.2; white-space: nowrap; }
  .d-method-feature > div > p:not(.d-eyebrow), .d-method-cards p:not(.d-eyebrow) { margin: 10px 0 0; font-size: 16px; line-height: 1.6; }
  .d-method-feature ul { margin-top: 14px; }
  .d-method-feature li { padding-block: 7px; font-size: 16px; font-weight: 600; }
  .d-method-cards { display: contents; }
  .d-method-cards article { min-height: 350px; padding: 18px; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; border-radius: 14px; }
  .d-method-cards article:first-child h3 { white-space: normal; }
  .d-method-cards article img { width: 170px; height: 250px; }
  .d-method-cards .method-card--preschool { grid-column: auto; width: auto; justify-self: stretch; }
  .d-method-points { margin: 14px 0 0; padding: 0; display: grid; list-style: none; border-top: 1px solid var(--mg-line); }
  .d-method-points li { padding: 7px 0; border-bottom: 1px solid var(--mg-line); color: var(--mg-ink); font-size: 16px; font-weight: 600; line-height: 1.35; }
  .d-method-points li::before { content: '✓'; margin-right: 8px; color: var(--mg-blue); }

  .d-hq-card, .d-branch-grid article { border-radius: 14px; overflow: hidden; }
  .d-hq-card { grid-template-columns: minmax(360px, 1.05fr) minmax(320px, .95fr); }
  .d-branch-grid { gap: 16px; }
  .d-branch-heading { width: min(100%, 860px); max-width: none; margin: 0 auto 52px; text-align: center; }
  .d-branch-heading .d-eyebrow { justify-content: center; }
  .d-branch-heading h2 { max-width: none; font-size: clamp(50px, 4.8vw, 70px); line-height: 1.03; }
  .d-branch-heading h2 br { display: block; }
  .d-branch-heading h2 em { display: inline-block; margin-top: 10px; padding: 4px 20px 8px; background: var(--mg-blue); color: var(--mg-yellow); font-style: normal; }
  .d-branch-heading > p:not(.d-eyebrow) { max-width: 42em; margin: 20px auto 0; }
  .d-branch-heading .d-button { margin-top: 26px; }
  .d-branch-grid--all { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 1280px); margin: 0 auto; }
  .d-branch-grid--all img { max-height: 190px; }
  .d-branch-grid--all address { min-height: 90px; }
  .d-branch-grid--all article { height: 100%; display: flex; flex-direction: column; }
  .d-branch-grid--all article > div { flex: 1; display: flex; flex-direction: column; }
  .d-branch-grid--all article strong { margin-top: auto; }
  .d-branch-grid--all .d-branch-actions { margin-top: 22px; display: flex; }
  .d-branch-grid--all .d-branch-actions a { width: auto; margin-top: 0; }

  .d-closing { padding-bottom: 96px; }

  .d-parent-note {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: clamp(56px, 7vw, 96px);
    align-items: start;
    padding: 10px 0 82px;
  }

  .d-parent-note > div { align-self: start; }

  .d-parent-note h2 {
    max-width: none;
    font-size: clamp(48px, 4.6vw, 64px);
    line-height: 1.08;
    letter-spacing: -.045em;
  }

  .d-parent-note h2 br { display: block; }

  .d-parent-note h2 em {
    display: inline-block;
    margin-top: .14em;
    padding: .08em .16em .13em;
    color: var(--mg-yellow);
    background: var(--mg-blue);
    box-shadow: .1em .1em 0 var(--mg-yellow);
    font-style: normal;
    white-space: nowrap;
  }

  .d-parent-note > p {
    align-self: start;
    max-width: 36em;
    margin: 0;
    padding: 4px 0 4px 24px;
    border-left: 5px solid var(--mg-yellow);
    color: var(--mg-muted);
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.75;
  }

  .d-parent-note > p br { display: block; }
  .d-final-cta {
    position: relative;
    isolation: isolate;
    min-height: 300px;
    padding: clamp(46px, 5vw, 68px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(38px, 5vw, 72px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-top: 8px solid var(--mg-yellow);
    border-left: 0;
    border-radius: 24px;
    background:
      radial-gradient(circle at 92% 12%, rgba(255, 210, 28, .15) 0 15%, transparent 15.3%),
      linear-gradient(120deg, var(--mg-ink) 0%, var(--mg-blue) 100%);
    box-shadow: 0 24px 55px rgba(7, 23, 66, .18);
  }
  .d-final-cta > div:first-child { max-width: 680px; }
  .d-final-cta p {
    margin-bottom: 12px;
    font-size: 13px;
    letter-spacing: .14em;
  }
  .d-final-cta h2 {
    max-width: 11em;
    font-size: clamp(44px, 4vw, 58px);
    line-height: 1.08;
  }
  .d-final-cta .d-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
  }
  .d-final-cta .d-button {
    min-width: 180px;
    min-height: 68px;
    padding: 18px 28px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: .02em;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  }
  .d-final-cta .d-button--yellow {
    border-color: var(--mg-yellow);
    box-shadow: 0 8px 0 #d4aa00;
  }
  .d-final-cta .d-button--white-line {
    border-color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 8px 0 rgba(0, 0, 0, .2);
  }
  .d-final-cta .d-button:hover { transform: translateY(-3px); }
  .d-final-cta .d-button--yellow:hover { box-shadow: 0 11px 0 #d4aa00; }
  .d-final-cta .d-button--white-line:hover {
    background: rgba(255, 255, 255, .14);
    box-shadow: 0 11px 0 rgba(0, 0, 0, .2);
  }
  .d-final-cta .d-button:active {
    transform: translateY(4px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, .24);
  }
  .d-final-cta .d-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
  }
  .social-follow {
    display: block;
    padding: clamp(76px, 7vw, 108px) max(32px, calc((100vw - 1240px) / 2));
    background: var(--mg-mist);
  }
  .social-follow-intro {
    width: min(100%, 920px);
    margin: 0 auto 56px;
    text-align: center;
  }
  .social-follow h2 {
    position: relative;
    z-index: 0;
    display: inline-block;
    margin: 0;
    color: var(--mg-ink);
    font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: clamp(64px, 6.1vw, 88px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
  }
  .social-follow h2::before {
    content: "";
    position: absolute;
    z-index: -1;
    right: -0.12em;
    bottom: 0.02em;
    left: -0.12em;
    height: 0.3em;
    background: var(--mg-yellow);
    transform: skewX(-8deg);
  }
  .social-follow h2::after { display: none; }
  .social-follow-intro > p:last-child {
    max-width: 42em;
    margin: 28px auto 0;
    color: var(--mg-muted);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.7;
    white-space: normal;
  }
  .social-account-directory {
    width: min(100%, 1120px);
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }
  .social-account-group {
    position: relative;
    min-height: 310px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 8px solid var(--mg-blue);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(7, 23, 66, 0.08);
  }
  .social-account-group::after {
    content: "";
    position: absolute;
    top: 0;
    right: 30px;
    width: 54px;
    height: 8px;
    background: var(--mg-yellow);
  }
  .social-account-heading { gap: 14px; }
  .social-account-heading img { width: 36px; height: 36px; }
  .social-account-heading h3 {
    color: var(--mg-blue);
    font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.035em;
  }
  .social-account-links { margin-top: 26px; gap: 0; }
  .social-account-links a {
    min-height: 54px;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--mg-line);
    color: var(--mg-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
  }
  .social-account-links a:last-child { border-bottom: 1px solid var(--mg-line); }
  .social-account-links a span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mg-yellow);
    color: var(--mg-blue);
    font-size: 16px;
    font-weight: 900;
  }
  .site-bottom-bar {
    min-height: 190px;
    padding: 42px max(32px, calc((100vw - 1240px) / 2));
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    border-top: 8px solid var(--mg-yellow);
  }
  .site-bottom-bar .bottom-brand {
    min-width: 0;
    justify-self: start;
    gap: 18px;
    transform: translateX(clamp(-98px, calc(0px - (100vw - 1240px) / 2), 0px));
  }
  .site-bottom-bar .bottom-brand img {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
  }
  .site-bottom-bar .bottom-brand strong {
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    white-space: nowrap;
  }
  .site-bottom-bar .bottom-brand span {
    margin-top: 6px;
    color: #cbd5f5;
    font-size: 15px;
    line-height: 1.45;
    white-space: nowrap;
  }
  .site-bottom-bar p {
    justify-self: center;
    color: var(--mg-yellow);
    font-size: clamp(26px, 2vw, 31px);
    line-height: 1.25;
    text-align: center;
    transform: translateX(55px);
  }
  .site-bottom-bar small {
    justify-self: end;
    color: #cbd5f5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-align: right;
  }

  @media (min-width: 1101px) and (max-width: 1190px) {
    .site-header .brand img { width: 132px; }
    .site-header .nav { gap: 10px; }
    .site-header .nav a { font-size: 12px; }
    .d-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr); gap: 42px; }
    .d-hero-copy h1 { font-size: clamp(44px, 4.25vw, 52px); }
    .d-hero-carousel { max-width: 470px; }
    .d-branch-grid--all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .d-final-cta { min-height: 280px; padding: 42px 38px; gap: 30px; }
    .d-final-cta h2 { font-size: 42px; }
    .d-final-cta .d-actions { grid-template-columns: 190px; }
    .d-final-cta .d-button { min-width: 190px; min-height: 60px; }
    .site-bottom-bar {
      grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
      gap: 18px;
    }
    .site-bottom-bar .bottom-brand img { width: 68px; height: 68px; flex-basis: 68px; }
    .site-bottom-bar .bottom-brand strong { font-size: 18px; }
    .site-bottom-bar .bottom-brand span { font-size: 14px; }
    .site-bottom-bar p { font-size: 24px; transform: none; }
    .site-bottom-bar small { font-size: 13px; }
  }

  /* One consistent horizontal canvas from Latest News through Follow MyGuru. */
  :root { --mg-lower-content-width: min(calc(100% - 64px), 1280px); }
  .d-daycare > .d-shell,
  .d-news > .d-shell,
  .d-holidays > .d-shell,
  .d-method > .d-shell,
  .d-branches > .d-shell,
  .d-closing > .d-shell {
    width: var(--mg-lower-content-width);
    max-width: none;
  }
  .d-daycare-visual {
    width: 100%;
    max-width: none;
    grid-template-columns: calc((100% - 40px) / 3) minmax(0, 1fr);
    gap: 20px;
  }
  .d-method .d-copy-rail,
  .d-method-content,
  .d-branch-heading,
  .d-branch-grid--all {
    width: 100%;
    max-width: none;
  }
  .d-method .d-copy-rail h2 {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }
  .social-follow {
    padding-right: max(32px, calc((100vw - 1280px) / 2));
    padding-left: max(32px, calc((100vw - 1280px) / 2));
  }
  .social-follow-intro,
  .social-account-directory {
    width: 100%;
    max-width: none;
  }

  /* Hero: keep the familiar mobile message, with a more intentional desktop
     editorial frame that carries the same blue-and-yellow MyGuru language. */
  .d-hero {
    position: relative;
    padding-block: clamp(72px, 6vw, 98px);
    background:
      radial-gradient(circle at 92% 15%, rgba(25, 81, 210, .1) 0 11%, transparent 11.2%),
      linear-gradient(90deg, var(--mg-paper) 0 55%, #f2f5ff 55% 100%);
  }
  .d-hero::before {
    position: absolute;
    inset: 0;
    opacity: .42;
    background-image:
      linear-gradient(rgba(6, 43, 154, .055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(6, 43, 154, .055) 1px, transparent 1px);
    background-size: 76px 76px;
    content: "";
    mask-image: linear-gradient(90deg, transparent 0 40%, #000 66%, transparent 100%);
    pointer-events: none;
  }
  .d-hero-grid { align-items: stretch; gap: clamp(40px, 4.8vw, 72px); }
  .d-hero-copy {
    position: relative;
    min-height: 100%;
    padding: clamp(28px, 2.5vw, 40px) clamp(26px, 2.8vw, 44px) clamp(26px, 2.4vw, 38px);
    border: 1px solid #dce3f4;
    border-top: 7px solid var(--mg-yellow);
    border-radius: 24px;
    background: rgba(255, 253, 247, .92);
    box-shadow: 0 22px 46px rgba(11, 43, 122, .1);
  }
  .d-hero-copy::before {
    position: absolute;
    top: 28px;
    right: 30px;
    width: 90px;
    height: 90px;
    border: 17px solid rgba(6, 43, 154, .07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
  }
  .d-hero-kicker {
    position: relative;
    z-index: 1;
    width: max-content;
    max-width: 100%;
    margin-bottom: 19px;
    padding: 8px 12px 7px;
    background: var(--mg-blue);
    color: var(--mg-yellow);
    font-size: 13px;
    letter-spacing: .055em;
  }
  .d-hero-copy h1 {
    position: relative;
    z-index: 1;
    max-width: 11.5em;
    font-size: clamp(52px, 4.25vw, 68px);
    line-height: 1.06;
  }
  .d-hero-copy h1 strong {
    position: relative;
    width: fit-content;
    margin-top: .08em;
  }
  .d-hero-copy h1 strong::after {
    position: absolute;
    z-index: -1;
    right: -.06em;
    bottom: .08em;
    left: -.06em;
    height: .27em;
    background: var(--mg-yellow);
    content: "";
    transform: skewX(-14deg);
  }
  .d-lead { position: relative; z-index: 1; max-width: 38em; margin-top: 24px; font-size: 17px; }
  .d-hero-copy .d-actions { position: relative; z-index: 1; margin-top: 27px; }
  .d-hero-proof {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    gap: 10px;
    border: 0;
  }
  .d-hero-proof div {
    min-height: 104px;
    padding: 15px 14px;
    border: 1px solid #d9e2f5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(11, 43, 122, .06);
  }
  .d-hero-proof div + div { padding-left: 14px; border-left: 1px solid #d9e2f5; }
  .d-hero-proof div::before { width: 27px; height: 5px; margin-bottom: 10px; background: var(--mg-yellow); }
  .d-hero-proof dt { font-size: 12px; }
  .d-hero-proof dd { max-width: none; font-size: 13px; line-height: 1.48; }
  .d-hero-carousel {
    align-self: center;
    max-width: 650px;
    border-width: 7px;
    border-radius: 24px;
    box-shadow: 15px 15px 0 var(--mg-yellow), 0 24px 46px rgba(11, 43, 122, .16);
  }
  .d-hero-slide { border-radius: 15px; }
  .d-hero-slide figcaption { left: 18px; bottom: 18px; border-radius: 7px; }

  /* Keep the desktop hero aligned with the phone layout: clear copy on the
     left and one generous, uncropped programme banner as the visual focus. */
  .d-hero {
    padding: clamp(66px, 6.5vw, 96px) 0 clamp(78px, 7vw, 106px);
    background: linear-gradient(90deg, transparent 0 54%, rgba(243,246,255,.94) 54% 100%), var(--mg-paper);
  }
  .d-hero::before { display: none; }
  .d-hero-grid {
    min-height: 620px;
    grid-template-columns: minmax(0, .78fr) minmax(540px, 1.22fr);
    gap: clamp(42px, 5vw, 76px);
    align-items: center;
  }
  .d-hero-copy {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .d-hero-copy::before { display: none; }
  .d-hero-kicker {
    width: auto;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    color: var(--mg-blue);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: normal;
  }
  .d-hero-copy h1 {
    max-width: 760px;
    font-family: var(--mg-display);
    font-size: clamp(58px, 4.75vw, 70px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.045em;
  }
  .d-hero-copy h1 strong { width: auto; margin-top: 0; color: var(--mg-blue); }
  .d-hero-copy h1 strong::after { display: none; }
  .d-lead { max-width: 620px; margin-top: 27px; color: #465274; font-size: clamp(16px, 1.35vw, 19px); }
  .d-hero-copy .d-actions { margin-top: 28px; }
  .d-hero-proof { margin-top: 43px; gap: 0; border-top: 1px solid #c9d2e8; }
  .d-hero-proof div { min-height: 0; padding: 16px 14px 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .d-hero-proof div + div { padding-left: 14px; border-left: 1px solid #c9d2e8; }
  .d-hero-proof div::before { display: none; }
  .d-hero-proof dt { font-size: 11px; }
  .d-hero-proof dd { margin-top: 6px; font-size: 12px; line-height: 1.5; }
  .d-hero-carousel {
    width: 100%;
    max-width: 780px;
    aspect-ratio: 4 / 3;
    border: 1px solid #d6dff2;
    border-radius: 8px;
    box-shadow: 22px 22px 0 var(--mg-yellow);
  }
  .d-hero-slide { border-radius: 7px; }
  .d-hero-slide figcaption { left: 18px; bottom: 18px; border-radius: 0; }
  @media (min-width: 1101px) and (max-width: 1190px) {
    .d-hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(440px, .95fr); gap: 42px; }
    .d-hero-carousel { max-width: 570px; }
  }

  /* Two clear headline lines, with a light MyGuru-yellow emphasis rather
     than another large panel competing with the banner. */
  .d-hero > .d-shell { width: min(calc(100% - 96px), 1500px); }
  .d-hero-grid {
    grid-template-columns: minmax(560px, .92fr) minmax(620px, 1.08fr);
    gap: clamp(44px, 4.4vw, 74px);
  }
  .d-hero-copy h1 {
    max-width: none;
    font-size: clamp(50px, 3.8vw, 64px);
    line-height: 1.14;
    letter-spacing: -.045em;
  }
  .d-hero-copy h1 span,
  .d-hero-copy h1 strong { white-space: nowrap; }
  .d-hero-copy h1 strong {
    position: relative;
    display: block;
    width: max-content;
    color: var(--mg-blue);
    text-decoration: underline 9px var(--mg-yellow);
    text-decoration-skip-ink: none;
    text-underline-offset: 10px;
  }
  .d-hero-kicker {
    position: relative;
    padding-left: 20px;
    color: var(--mg-blue);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
  }
  .d-hero-kicker::before {
    position: absolute;
    top: .28em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mg-yellow);
    content: "";
  }
  .d-lead { max-width: 36em; margin-top: 30px; font-size: clamp(17px, 1.28vw, 19px); }
  @media (min-width: 1101px) and (max-width: 1190px) {
    .d-hero > .d-shell { width: min(calc(100% - 64px), 1280px); }
    .d-hero-copy h1 { font-size: 52px; }
  }

  .d-hero-proof { display: none; }
  .d-hero-copy .d-actions { gap: 18px; margin-top: 36px; }
  .d-hero-copy .d-button {
    min-width: 190px;
    min-height: 68px;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 900;
  }

  .d-hero {
    padding-block: clamp(42px, 3.8vw, 62px);
    background: var(--mg-paper);
  }
  .d-hero-grid { min-height: 0; align-items: center; }
  .d-hero-copy h1 {
    position: relative;
    padding-left: 22px;
    font-family: "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 900;
    letter-spacing: -.055em;
  }
  .d-hero-copy h1::before {
    position: absolute;
    top: .1em;
    bottom: .12em;
    left: 0;
    width: 8px;
    border-radius: 999px;
    background: var(--mg-yellow);
    content: "";
    transform: rotate(4deg);
  }
  .d-hero-copy h1 strong { color: var(--mg-blue); }

  /* Match the daycare service treatment: a focused navy information panel
     paired with the real programme banner. */
  .d-hero-copy {
    align-self: center;
    padding: clamp(34px, 3vw, 48px);
    border-top: 7px solid var(--mg-yellow);
    border-radius: 22px;
    background: linear-gradient(145deg, #08216d 0%, #0a36aa 100%);
    box-shadow: 0 24px 52px rgba(12, 43, 125, .18);
  }
  .d-hero-kicker { color: var(--mg-yellow); }
  .d-hero-kicker::before { background: var(--mg-yellow); }
  .d-hero-copy h1 { color: #fff; }
  .d-hero-copy h1 strong {
    color: var(--mg-yellow);
    text-decoration-color: rgba(255,255,255,.9);
  }
  .d-lead { color: #e8efff; }
  .d-hero-copy .d-button--line {
    border-color: rgba(255,255,255,.78);
    background: rgba(255,255,255,.05);
    color: #fff;
  }

  /* iPad: preserve the desktop composition, with proportionally tighter values
     instead of switching to a separate tablet layout. */
  @media (min-width: 768px) and (max-width: 1100px) {
    :root { --mg-shell: min(calc(100% - 40px), 1040px); }
    .site-header { min-height: 68px; padding: 8px 20px; gap: 12px; }
    .site-header .brand img { width: clamp(108px, 13vw, 132px); }
    .site-header .nav { gap: clamp(5px, .9vw, 10px); }
    .site-header .nav a { font-size: clamp(10px, 1.35vw, 13px); white-space: nowrap; }
    .site-header .header-cta { min-height: 40px; padding-inline: 12px; font-size: 12px; }

    .d-section { padding-block: clamp(52px, 6vw, 76px); }
    .d-hero { padding-block: clamp(38px, 5vw, 56px); }
    .d-hero > .d-shell,
    .d-proof > .d-shell,
    .d-promise > .d-shell,
    .d-daycare > .d-shell,
    .d-news > .d-shell,
    .d-holidays > .d-shell,
    .d-method > .d-shell,
    .d-branches > .d-shell,
    .d-closing > .d-shell { width: min(calc(100% - 40px), 1040px); }
    .d-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); gap: clamp(22px, 3vw, 36px); }
    .d-hero-copy { padding: clamp(24px, 3vw, 34px); }
    .d-hero-copy h1 { font-size: clamp(36px, 5.2vw, 52px); }
    .d-hero-copy .d-actions { gap: 12px; margin-top: 24px; }
    .d-hero-copy .d-button { min-width: 0; min-height: 48px; padding: 11px 16px; font-size: 15px; }
    .d-hero-carousel { max-width: none; border-width: 4px; box-shadow: 9px 9px 0 var(--mg-yellow); }
    .d-hero-proof { margin-top: 24px; }

    .d-proof-grid,
    .d-promise-grid { grid-template-columns: minmax(230px, .82fr) minmax(0, 1.18fr); gap: clamp(22px, 3vw, 34px); }
    .d-proof-grid > .d-copy-rail,
    .d-promise-content { padding: clamp(22px, 3vw, 30px); border-radius: 18px; }
    .d-proof-grid > .d-copy-rail h2,
    .d-promise-content h2 { font-size: clamp(28px, 3.5vw, 38px); }
    .d-proof-grid .d-value-tags { gap: 10px; margin-top: 20px; }
    .d-proof-grid .d-value-tags li { min-height: 56px; padding: 8px 10px 8px 8px; gap: 9px; border-radius: 14px; font-size: clamp(12px, 1.55vw, 15px); }
    .d-proof-grid .d-value-tags li::before { width: 34px; height: 34px; flex-basis: 34px; font-size: 11px; }

    .d-daycare .d-copy-rail { grid-template-columns: minmax(0, 1.1fr) minmax(230px, .9fr); gap: 16px 22px; padding: 24px; }
    .d-daycare .d-copy-rail h2 { font-size: clamp(36px, 4.4vw, 50px); }
    .d-daycare .d-service-list .d-service-transport img { width: calc(100% + 14px); margin-inline: -7px; transform: translateY(-8px); }
    .d-daycare .d-service-list .d-service-lunch img { height: 90px; }
    .d-daycare .d-service-list .d-service-report img { height: 112px; }
    .d-daycare .d-service-list .d-service-homework img { height: 112px; }
    .d-daycare .d-service-list .d-service-mental img { height: 112px; }
    .d-daycare .d-service-list .d-service-holiday img { height: 112px; }
    .d-method-feature { grid-template-columns: minmax(145px, .75fr) minmax(0, 1.25fr); gap: 16px; }
    .d-method-feature img { max-height: 190px; }
    .d-branch-heading { margin-bottom: 36px; }
    .d-branch-heading h2 { font-size: clamp(38px, 5.3vw, 52px); }
    .d-parent-note { grid-template-columns: minmax(0, 1.05fr) minmax(220px, .95fr); gap: 30px; padding-bottom: 56px; }
    .d-parent-note h2 { font-size: clamp(36px, 5vw, 48px); }
    .d-parent-note > p { padding-left: 16px; font-size: 16px; }
    .d-final-cta { min-height: 240px; padding: 36px; transform: none; }
  }
}
