@charset "utf-8";
/**
 * youji-pre 比較（スマイルゼミなら お子さま一人で学習が進む）＋その下の見守り写真
 *
 * .cmp・.cx 以下は、モック（smilezemi-site/css/style.css・modules/youji/youji.css）の比較セクションの指定を移したもの。
 * 教材例（youji-pre-eg.css）と同じく、スマホ幅 375px で作ったモックの数値のまま、.l-sect-cmp の zoom でページと同じ大きさにそろえる。
 * 写真2枚は、モックでは大きな画像（pattern-b.png）の一部を背景位置で切り出していたので、その範囲だけを切り出した画像にしている。
 */

/* ========================================
 * セクション
 * ======================================== */
.l-sect-cmp,
.l-sect-cmp-photo {
  zoom: 2;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: normal;
  color: #333;
}
.l-sect-cmp {
  padding: 0;
}
.l-sect-cmp .cmp__title {
  padding-left: 12px;
  padding-right: 12px;
  font-size: 26px;
  letter-spacing: 0;
}
.l-sect-cmp .cmp__title,
.l-sect-cmp .cx__head b,
.l-sect-cmp .cx__sub {
  font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif;
}
.l-sect-cmp .cx__head small,
.l-sect-cmp .cx__oldtitle,
.l-sect-cmp .cx__result,
.l-sect-cmp .cx__list li {
  font-family: var(--font-family-maru-medium);
}

/* 比較の下の写真：お子さまがタブレットに向かい、お母さんがそばで見守る（上端は白へフェード） */
.l-sect-cmp-photo {
  padding: 0;
}
.l-sect-cmp-photo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 10%, #000 27%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 10%, #000 27%);
}

/* ========================================
 * 比較（モックの指定）
 * ======================================== */
section.l-sect-cmp.cmp img { width: 100%; height: auto; }
section.l-sect-cmp.cmp img { display: block; width: 100%; height: auto; }
.cmp { background: #fff; }
.cmp__title { margin: 0; padding: 44px 16px 16px; text-align: center; font-size: 32px; line-height: 1.55; letter-spacing: .06em; font-weight: 700; color: #4a3a34; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cmp__note { margin: 0; padding: 18px 24px 44px calc(24px + 1.4em); font-size: 13px; line-height: 1.9; color: #333; letter-spacing: .02em; text-indent: -1.4em; }
.cmp__note span { display: inline-block; width: 1.4em; text-indent: 0; }
.cmp__icon { display: block; width: 80px; height: 80px; margin: 40px auto 0; }
.cmp__title { padding-top: 10px; }
section.l-sect-cmp.cmp img.cmp__icon { width: 56px; height: 56px; margin: 36px auto 0; }
section.l-sect-cmp.cmp img.cmp__icon { width: 88px; height: 88px; margin: 28px auto -4px; }
.cmp__note { margin-top: -18px; padding-top: 0; }
.cmp__title { font-size: 30px; line-height: 1.4; letter-spacing: 0; }
.cmp__note { line-height: 1.6; }
section.l-sect-cmp.cmp img.cmp__icon { margin-top: 0; }
.cmp__title { padding-bottom: 0; }
.cmp__note, .cmp__note span { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; letter-spacing: 0; }
.cmp__note { padding-bottom: 6px; }
.cmp__note { font-size: 11.5px; line-break: strict; }
.cmp__title { padding-bottom: 24px; }
.cmp__title { padding-bottom: 8px; }
.cmp__note { margin-top: 6px; }
section.l-sect-cmp.cmp img.cmp__icon { margin-top: 4px; }
.cmp__note { padding-left: calc(40px + 1.4em); padding-right: 40px; }
.cx { margin: 0 auto; padding: 4.9% 4.3% 4.9% 6.4%; }
.cx__in { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 47.5fr) minmax(0, 47fr); column-gap: 3.2%; align-items: start; }
.cx__col { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.cx__col--sz { z-index: 2; padding: 10.72px 8.71px 20.1px; border-radius: 25.12px; background: #fff; box-shadow: 0 5.36px 16.75px rgba(0, 0, 0, .14); }
.cx__col--old { margin-top: 5.36px; padding: 12.73px 6.7px 20.1px; border-radius: 20.1px; background: #f3f3f3; align-self: stretch; }
.cx__logo { width: 130.65px; max-width: 100%; height: auto; }
.cx__oldtitle { margin: 7.37px 0 0; color: #8d8d8d; font-size: 12.06px; font-weight: 700; letter-spacing: .01em; line-height: 1.3; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__photo { display: block; width: 76%; margin-top: 4.69px; }
.cx__photo--tablet { aspect-ratio: 430 / 270; }
.cx__photo--books { width: 80%; aspect-ratio: 440 / 290; }
.cx__head { position: relative; display: grid; gap: 2.68px; width: 100%; margin-top: 10.05px; padding: 12.06px 2.01px 12.73px; border-radius: 15.41px; color: #fff; line-height: 1.15; box-shadow: 0 1.68px 4.69px rgba(0, 0, 0, .12); }
.cx__head small { font-size: 9.05px; font-weight: 700; letter-spacing: .02em; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__head b { font-size: 17.09px; font-weight: 900; letter-spacing: 0; white-space: nowrap; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__head--sz { background: #58AE2B; }
.cx__head--old { background: #a0a0a0; margin-top: 11.39px; }
.cx__new { position: absolute; left: -15.41px; top: -15.41px; display: grid; place-items: center; width: 33.5px; height: 33.5px; border-radius: 50%; background: #E8242A; color: #fff; font-size: 10.72px; font-weight: 900; letter-spacing: .02em; line-height: 1; }
.cx__list { display: grid; gap: 6.03px; margin: 11.39px 0 0; padding: 0; list-style: none; text-align: left; }
.cx__list li { display: flex; align-items: center; gap: 6.7px; font-size: 10.38px; font-weight: 700; line-height: 1.3; color: #222; white-space: nowrap; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__list--old li { color: #555; gap: 2.01px; }
.cx__list--old li::before { content: "・"; }
.cx__mk { position: relative; flex: 0 0 auto; width: 13.73px; height: 13.73px; border: 2.01px solid #E8422F; border-radius: 50%; box-sizing: border-box; }
.cx__mk::after { content: ""; position: absolute; inset: 1.84px; border: 2.01px solid #E8422F; border-radius: 50%; }
.cx__arrow { display: block; margin-top: 10.05px; line-height: 0; }
.cx__arrow svg { width: 22.11px; height: auto; }
.cx__result { margin: 8.71px 0 0; font-size: 15.41px; font-weight: 900; line-height: 1.5; color: #111; letter-spacing: .02em; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__col--old .cx__result { font-size: 15.08px; }
.cx__result, .cx__col--old .cx__result, .cx__head b, .cx__new { font-weight: 700; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__result, .cx__col--old .cx__result, .cx__list li { font-weight: 500; }
.cx__head b { font-weight: 700; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__head small, .cx__oldtitle { font-weight: 500; }
.cx__in { align-items: stretch; }
.cx__col--old { margin-top: 0; }
.cx__photo--tablet { width: 127.97px; height: 80.4px; }
.cx__photo--books { width: 121.94px; height: 80.4px; }
.cx__arrow { margin-top: auto; padding-top: 10.05px; }
.cx__in { grid-template-rows: repeat(6, auto); }
.cx__col { display: grid; grid-row: 1 / span 6; grid-template-rows: subgrid; justify-items: center; align-content: start; }
.cx__col > * { align-self: start; }
.cx__col--sz, .cx__col--old { padding-top: 11.72px; }
.cx__logo, .cx__oldtitle { align-self: center; }
.cx__oldtitle { margin-top: 0; }
.cx__head--old { margin-top: 10.05px; }
.cx__arrow { margin-top: 0; padding-top: 10.05px; }
.cx__mk { border-width: 1px; }
.cx__mk::after { inset: 2.34px; border-width: 1px; }
.cx__in { position: relative; }
.cx__in::before { content: ""; position: absolute; z-index: 0; top: 5.36px; bottom: 0; left: 44%; right: -7.37px; border-radius: 25.12px; background: #fff; box-shadow: 0 2.01px 8.04px rgba(0, 0, 0, .09); transform-origin: 0 50%; }
.cx__col--old { z-index: 1; background: transparent; }
.cx__col--old::before { content: ""; position: absolute; z-index: -1; top: 8.04px; bottom: 8.04px; left: 0; right: 0; border-radius: 20.1px; background: #f3f3f3; }
@media (prefers-reduced-motion: reduce) {
  .cx__in::before, .cx__col--old { transition: none; }
}
.cx__logo { width: 100.5px; }
.cx__in::before { top: -7.37px; bottom: -7.37px; left: -7.37px; right: -7.37px; }
.cx__in { column-gap: 9.05px; }
.cx__in::before { top: -9.05px; bottom: -9.05px; left: -9.05px; right: -9.05px; }
.cx__col--old::before { top: 0; bottom: 0; }
.cx__col--old { padding-left: 3.35px; padding-right: 3.35px; }
.cx__head { min-width: 0; }
.cx__in { column-gap: 2.7%; }
.cx__head { box-shadow: none; }
.cx__head { border-radius: 30px; }
.cx__col--old { padding-left: 8.71px; padding-right: 8.71px; }
.cx__head b { font-size: 15.08px; }
.cx__col--sz { border-radius: 25.12px; }
.cx__col--old::before { border-radius: 25.12px; }
.cx__in::before { border-radius: 34.17px; }
.cx__logo { width: 80.4px; }
.cx__new { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; }
section.l-sect-cmp.cmp img.cx__logo { width: 80.4px; max-width: 100%; margin: 0; }
.cx__new { left: -10.72px; top: -11.39px; }
section.l-sect-cmp.cmp img.cx__logo { display: block; width: 70%; height: auto; margin-top: 5%; }
.cx__head { border-radius: 40px; }
.cx__mk { border-width: 1.51px; }
.cx__in::before, .cx__col--sz { box-shadow: 0 0.34px 10.05px rgba(0, 0, 0, .1); }
.cx__mk::after { inset: 1.68px; }
.cx__arrow svg { width: 16.75px; }
.cx__ref { font-size: .5em; font-weight: 500; vertical-align: super; line-height: 0; margin-left: .1em; }
.cx__mkbox { position: relative; display: inline-block; padding: .3em .55em; }
.cx__hana, .cx__scr { position: absolute; left: 50%; top: 50%; width: 128%; height: 150%; transform: translate(-50%, -50%); overflow: visible; pointer-events: none; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cx__hana { stroke: #E5483A; stroke-width: 3.6; opacity: .92; }
.cx__scr { stroke: #1a1a1a; stroke-width: 2.4; opacity: .8; width: 118%; height: 120%; }
.cx__hana path, .cx__scr path { vector-effect: non-scaling-stroke; }
.cx__hana, .cx__scr { position: absolute; left: 50%; top: 50%; height: auto; max-width: none; transform: translate(-50%, -50%); pointer-events: none; stroke: none; fill: none; opacity: 1; }
.cx__hana { width: 5.6em; }
.cx__scr { width: 5.6em; mix-blend-mode: multiply; opacity: .9; }
.cx__hana { width: 8.4em; }
.cx__scr { width: 8.4em; }
.cx__mkbox { display: flex; flex-direction: column-reverse; align-items: center; padding: 0; text-align: center; }
.cx__hana, .cx__scr { position: static; transform: none; display: block; width: 4.9em; height: auto; margin: 0 auto .15em; }
.cx__hana, .cx__scr { width: 3em; height: 3em; object-fit: contain; margin: 0 auto .1em; }
.cx__mkbox { width: 100%; }
.cx__hana, .cx__scr { width: 2.95em; height: 2.95em; }
.cx__hana, .cx__scr { width: 60%; height: auto; aspect-ratio: 1 / 1; }
.cx__result--mk { display: flex; justify-content: center; }
.cx__mkbox { width: 8.4em; max-width: 100%; flex: 0 0 auto; }
.cx__hana, .cx__scr { width: 40%; height: auto; aspect-ratio: 1 / 1; margin: 0 auto .35em; flex: 0 0 auto; }
.cx .cx__hana, .cx .cx__scr { width: 36.85px !important; height: 36.85px !important; aspect-ratio: 1 / 1; margin: 0 auto .3em !important; }
.cx .cx__hana, .cx .cx__scr { width: 63.65px !important; height: 63.65px !important; }
.cx .cx__result--mk { margin-top: -1.68px; }
.cx .cx__hana, .cx .cx__scr { margin-top: -10.05px !important; }
.cx .cx__hana, .cx .cx__scr { width: 51.93px !important; height: 51.93px !important; }
.cx .cx__hana, .cx .cx__scr { margin-top: 5.03px !important; }
.cmp--static *, .cmp--static *::before, .cmp--static *::after { animation: none !important; transition: none !important; }
.cx .cx__hana, .cx .cx__scr { width: 67px !important; height: 67px !important; }
.cx .cx__hana, .cx .cx__scr { margin-top: -8.38px !important; }
.cx + .cmp__note { margin-top: 0; padding-top: 10px; }
.cx__list .cx__sub { font-size: .78em; font-weight: 700; letter-spacing: .02em; font-family: 'MFW-PMaruAntipProN-DeBold', 'Zen Maru Gothic', sans-serif; }
.cx__list li:has(.cx__sub) .cx__mk { align-self: flex-start; margin-top: .15em; }
.cx__list--old li { align-items: flex-start; }
.cmp--static .cx .cx__hana, .cmp--static .cx .cx__scr { margin-top: 10.05px !important; }


/* ========================================
 * 写真（切り出した画像）
 * ======================================== */
.cx__photo--tablet {
  background: url("../images/sect-cmp_tablet.webp?20261028") center / 100% 100% no-repeat;
}
.cx__photo--books {
  background: url("../images/sect-cmp_books.webp?20261028") center / 100% 100% no-repeat;
}

/* 2026/11/05 左右の空きが対称でない（モックの左 6.4%・右 4.3%）のをそろえる（小学 shogaku-cmp.css と同じ）。中身の幅は変えないよう、左右とも平均の 5.35% に */
.l-sect-cmp .cx { padding-left: 5.35%; padding-right: 5.35%; }

/* 2026/11/09 Safari では zoom の中の cqw が2倍で計算されて大きくなりすぎるため、cqw は .cx__in の幅（335px 固定）を基準に px へ置き換え */
