/* マナビエ向けの追加部品。色は site.css のティール1色＋淡い帯（--mist）だけを使う。 */
.logo { align-items: baseline; }
.logo-jp { font-size: 11px; letter-spacing: .08em; margin-left: 8px; color: var(--teal); font-weight: 500; }
.hd-cta { position: absolute; right: 18px; top: 13px; height: 32px; line-height: 32px; padding: 0 18px; border-radius: var(--radius-btn); background: var(--teal); color: #fff; font-size: 13px; font-weight: 500; }
.hd-cta:hover { opacity: .85; }
@media (max-width: 1199px) and (min-width: 992px) { .main-nav > ul { padding-left: 290px; } .hd-cta { padding: 0 12px; } }
@media (max-width: 991px) { .hd-cta { right: 10px; top: 14px; height: 30px; line-height: 30px; padding: 0 12px; font-size: 12px; } .logo-jp { display: none; } }

/* hero copy over the band */
.hero .band { overflow: hidden; }
@media (min-width: 768px) { #Service > .hero .band { aspect-ratio: auto; height: min(calc(100vh - 60px), 56.3vw); } }
.hero-copy { position: absolute; left: 6%; bottom: 10%; max-width: 560px; padding: 26px 30px; background: rgba(255,255,255,.93); border-left: 4px solid var(--teal); }
.hero-en { color: var(--teal); letter-spacing: .3em; font-size: 12px; font-weight: 500; }
.hero-copy h2 { font-size: 26px; font-weight: 500; line-height: 1.55; margin: 6px 0 8px; letter-spacing: .04em; }
.hero-copy p { font-size: 13px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 767px) {
  .hero .band { aspect-ratio: auto; }
  .hero .band > img, .hero .band > svg { aspect-ratio: 1425 / 802; height: auto; }
  .hero-copy { position: static; max-width: none; margin: 0; padding: 20px 16px 6px; border-left: 0; background: #fff; }
  .hero-copy h2 { font-size: 20px; }
}
.btn-fill, .btn-line { display: inline-block; padding: 0 22px; height: 40px; line-height: 40px; border-radius: 22px; font-size: 14px; font-weight: 500; text-align: center; }
.btn-fill { background: var(--teal); color: #fff; }
.btn-line { border: 1px solid var(--teal); color: var(--teal); background: #fff; }
.btn-fill.center { display: block; width: fit-content; max-width: 100%; margin: 40px auto 0; padding: 0 34px; height: 46px; line-height: 46px; }

/* card grid (中高一貫ガイドのカード一覧をティール1色で) */
.wide-c { max-width: 1040px; }
.m-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 36px 0 48px; }
.m-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 22px 40px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.m-card:hover { opacity: 1; border-color: var(--teal); box-shadow: 0 6px 18px rgba(0,149,170,.12); }
.m-card b { font-size: 17px; font-weight: 500; color: var(--teal); }
.m-card span:not(.m-tag) { font-size: 13px; line-height: 1.8; color: #333; }
.m-card i { position: absolute; right: 18px; bottom: 12px; font-style: normal; color: var(--teal); }
.m-tag { font-size: 10px; letter-spacing: .2em; color: var(--teal); font-weight: 500; }
.mist .m-card { border-color: #fff; }

/* 塾の特長 */
.m-points { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 40px 0 24px; }
.m-points li { text-align: center; padding: 18px 6px; border: 1px solid var(--line); border-radius: 10px; }
.m-points b { display: block; font-size: 20px; font-weight: 500; color: var(--teal); }
.m-points span { font-size: 12px; }
@media (max-width: 767px) { .m-points { grid-template-columns: repeat(2, 1fr); } }

/* TOPのお知らせ */
.m-news { margin: 30px 0 40px; border-top: 1px solid var(--line); }
.m-news a { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.m-news time { font-size: 13px; color: #555; }
.m-news b { font-weight: 400; font-size: 14px; flex: 1 1 260px; }

/* ガイドのページ */
.m-head { padding: 50px 0 10px; }
.m-crumb { font-size: 12px; color: #555; margin-bottom: 26px; }
.m-en { color: var(--teal); letter-spacing: .3em; font-size: 12px; font-weight: 500; }
.m-head h2 { font-size: 28px; font-weight: 500; letter-spacing: .06em; margin: 4px 0 14px; }
.m-lead { font-size: 15px; line-height: 1.9; }
.m-prose { padding-bottom: 60px; }
.m-prose h3 { font-size: 20px; font-weight: 500; color: var(--teal); margin: 36px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.m-prose p, .m-prose li { font-size: 15px; line-height: 1.95; }
.m-prose ol, .m-prose ul { padding-left: 1.4em; margin: 0; }
.m-prose ul { list-style: disc; }
.m-prose li + li { margin-top: 8px; }
.btnrow-c { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 48px; }
.btnrow-c .btn-round { margin: 0; }
.m-cta { padding-bottom: 70px; }
.m-guide .service { margin-top: 30px; }

/* 高校をさがす */
.m-tool .container { padding-bottom: 60px; }
.m-filter { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; padding: 18px; background: var(--mist); border-radius: 10px; }
.m-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #333; }
.m-filter label.chk { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; }
.m-filter input[type=search], .m-filter select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; background: #fff; }
.m-count { margin: 18px 0 8px; font-size: 14px; color: var(--teal); }
.m-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; max-height: 70vh; }
.m-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.m-table th { position: sticky; top: 0; background: var(--teal); color: #fff; font-weight: 500; padding: 9px 10px; text-align: left; white-space: nowrap; }
.m-table td { padding: 9px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.m-table tr:nth-child(even) td { background: #f8fcfd; }
.m-table small { color: #555; margin-left: 4px; }
.m-read { font-size: 12px; border: 1px solid var(--teal); border-radius: 10px; padding: 1px 10px; }
.m-note { font-size: 12px; color: #555; margin-top: 14px; line-height: 1.8; }

/* footer access */
.foot-access p { font-size: 13px; line-height: 2; }
.foot-access b { font-weight: 500; }

/* 写真（Adobe Stock・教室写真） */
.logo img { height: 40px; width: auto; margin-top: -4px; }
@media (max-width: 991px) { .logo img { height: 34px; margin-top: -2px; } }
.service-image img, .band img { width: 100%; height: 100%; object-fit: cover; }
.service-image { overflow: hidden; border-radius: 6px; }
.hero-copy { left: auto; right: 5%; }
.m-campus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 10px; }
.m-campus img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.m-campus b { display: block; text-align: center; font-weight: 500; margin-top: 6px; color: var(--teal); }
#Company .coinfo .info-table, .coinfo .info-table { padding-bottom: 0 !important; }
#Company .coinfo .container { padding-bottom: 60px; }
.policy-note { margin-top: 48px; padding: 18px 20px; background: var(--mist); border-radius: 8px; }
.policy-note h4 { font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.policy-note p { font-size: 12px; line-height: 1.9; margin-bottom: 10px; }

/* S1値シミュレータ（/sim/）と高校ごとのページ　2026-11-14 */
.m-sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .m-sim-grid { grid-template-columns: 1fr; } }
.m-sim-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.m-sim-card h4 { font-size: 17px; font-weight: 500; color: var(--teal); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.m-sim-card h5 { font-size: 15px; font-weight: 500; color: var(--teal); margin: 20px 0 6px; }
.m-sim-card p { font-size: 14px; line-height: 1.9; }
.m-sim-lab { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #333; margin-bottom: 10px; }
.m-sim input[type=search], .m-sim input[type=number], .m-sim input[type=email], .m-sim input[type=text], .m-sim select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 16px; background: #fff; }
.m-sim input:focus, .m-sim select:focus { outline: 2px solid var(--teal); outline-offset: 0; }
.m-sim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-sim-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .m-sim-row3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .m-sim-row { grid-template-columns: 1fr; } }
.m-sim-info { background: var(--mist); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.m-sim-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.m-sim-tags span { font-size: 12px; color: #fff; background: var(--teal); border-radius: 10px; padding: 1px 10px; }
.m-sim-subj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
@media (max-width: 520px) { .m-sim-subj { grid-template-columns: repeat(2, 1fr); } }
.m-sim-cell { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: #555; }
.m-sim-cell input { text-align: center; }
.m-sim-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.m-sim-tabs button { flex: 1; min-height: 40px; border: 1px solid var(--teal); background: #fff; color: var(--teal); border-radius: 20px; font: inherit; font-size: 14px; cursor: pointer; }
.m-sim-tabs button.on { background: var(--teal); color: #fff; }
.m-sim-result { border: 2px solid var(--teal); }
.m-sim-s1row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.m-sim-sub { display: block; font-size: 13px; color: #555; }
.m-sim-big { font-size: 46px; font-weight: 500; line-height: 1.1; color: var(--teal); }
.m-sim-big small { font-size: 16px; color: #555; }
.m-sim-pct { margin-left: auto; text-align: right; }
.m-sim-pct b { font-size: 26px; font-weight: 500; color: var(--teal); }
.m-sim-track { display: flex; height: 30px; border-radius: 6px; background: var(--mist); overflow: hidden; margin: 14px 0 2px; }
.m-sim-track i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; color: #fff; white-space: nowrap; overflow: hidden; transition: width .4s; }
.m-sim-track i.n { background: var(--teal); }
.m-sim-track i.g { background: #66bfcc; }
.m-sim-tbl { max-height: none; margin-top: 12px; }
.m-sim-tbl .m-table td { white-space: normal; }
.m-sim-lever { background: var(--mist); border-radius: 8px; padding: 12px 14px; margin-top: 14px; }
.m-sim-lever p { margin: 0 0 6px; }
.m-sim-lever p:last-child { margin: 0; }
.m-sim-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.m-sim-btns .btn-line, .m-sim-btns .btn-fill { cursor: pointer; font-family: inherit; border-style: solid; }
.m-sim-btns .btn-fill { border: 0; }
.m-sim-msg { min-height: 1.5em; font-size: 13px; color: var(--teal); margin-top: 8px; }
.m-sim-link { background: none; border: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; padding: 0 4px; }
.m-sim-back { background: var(--mist); border-left: 4px solid var(--teal); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; line-height: 2; }
.m-sim-back .btn-line { height: 32px; line-height: 30px; margin-left: 6px; cursor: pointer; font-family: inherit; }
.m-sim-rep .btn-fill { border: 0; cursor: pointer; font-family: inherit; margin-top: 6px; }
.m-sim-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.8; margin: 6px 0 10px; }
.m-sim-agree input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.m-sim-report { border: 2px solid var(--teal); }
.m-sim-rhead { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid var(--teal); padding-bottom: 10px; }
.m-sim-rhead b { display: block; font-size: 18px; font-weight: 500; color: var(--teal); }
.m-sim-rhead span { font-size: 13px; color: #555; }
.m-sim-rbig b { font-size: 26px; font-weight: 500; color: var(--teal); }
.m-sim-rank { padding-left: 1.4em; }
.m-sim-rank li { font-size: 14px; line-height: 2; list-style: decimal; }
.m-sim-rfoot { font-size: 12px; color: #555; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 16px; }
.m-sim-cta { border: 2px solid var(--teal); border-radius: 10px; padding: 20px; margin: 10px 0 16px; background: #fff; }
.m-sim-cta h4 { font-size: 19px; font-weight: 500; color: var(--teal); margin: 0 0 8px; }
.m-sim-cta p { font-size: 14px; line-height: 1.9; margin-bottom: 10px; }
.m-sim-cta .btn-fill { display: block; width: fit-content; max-width: 100%; margin: 12px auto; padding: 12px 30px; height: auto; min-height: 46px; line-height: 1.5; }
.m-sim-memo { background: var(--mist); border-radius: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.9; margin-bottom: 12px; }
.m-sim-memo .btn-line { margin-top: 6px; cursor: pointer; font-family: inherit; }
.m-sim-tels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.m-sim-tels .btn-line { height: auto; min-height: 44px; line-height: 1.5; padding: 10px 12px; }
@media (max-width: 520px) { .m-sim-tels { grid-template-columns: 1fr; } }
.m-sim-hy th, .m-sim-hy td { text-align: center; }
.m-sim-hy tbody th { background: var(--mist); color: var(--ink); font-weight: 500; position: static; }
.m-sim-same a { display: inline-block; margin: 0 12px 6px 0; font-size: 14px; }
.m-prose > .btn-fill { display: block; width: fit-content; max-width: 100%; margin: 24px auto 0; padding: 0 30px; height: 46px; line-height: 46px; }
@media print {
  .site-header, .site-footer, .drawer { display: none !important; }
  body.pr-result .m-head, body.pr-result #repForm, body.pr-result #report, body.pr-result #cta, body.pr-result .m-sim-btns, body.pr-result #back, body.pr-result #histCard, body.pr-result #cmpCard { display: none !important; }
  body.pr-report .m-head, body.pr-report .m-sim-main, body.pr-report .m-noprint { display: none !important; }
  .m-sim-card { break-inside: avoid; border-color: #999; }
}

/* 旧サイトの記事・固定ページ（/posts/ /pages/ /books/ /oshirase/）を統合サイトのデザインで　2026-11-15 */
.m-legacy { padding-bottom: 50px; overflow-wrap: anywhere; margin-top: -24px; }
.m-legacy > h3:first-child, .m-legacy > div:first-child h3:first-of-type { margin-top: 0; }
.m-legacy p { margin: 0 0 12px; }
.m-legacy h4 { font-size: 17px; font-weight: 500; color: var(--teal); margin: 26px 0 8px; }
.m-legacy h5 { font-size: 15px; font-weight: 500; margin: 20px 0 6px; }
.m-legacy b, .m-legacy strong { font-weight: 700; }
.m-legacy a { color: var(--teal); text-decoration: underline; }
.m-legacy img { max-width: 100%; height: auto; border-radius: 6px; margin: 10px 0; }
.m-legacy ol { list-style: decimal; }
.m-legacy table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 14px 0; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; }
.m-legacy th { background: var(--teal); color: #fff; font-weight: 500; padding: 8px 10px; text-align: left; white-space: nowrap; }
.m-legacy td { border-top: 1px solid var(--line); padding: 8px 10px; vertical-align: top; min-width: 5em; }
.m-legacy tr:nth-child(even) td { background: #f8fcfd; }
.m-legacy iframe { width: 100%; max-width: 100%; border: 0; }
.m-legacy iframe[src*="google.com/maps"] { height: 320px; border-radius: 6px; }
.m-legacy iframe[src*="heyzine"] { height: 520px; }
.m-legacy-raw iframe { display: block; width: 100%; min-height: 470px; }
.m-legacy-date { font-size: 13px; color: #555; margin-top: -6px; }
.m-legacy-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 10px; }
.m-legacy-more .btn-line { height: auto; min-height: 40px; line-height: 1.5; padding: 9px 18px; text-decoration: none; }
.m-legacy-back { margin-top: 30px; font-size: 14px; }

.m-legacy details { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; padding: 0 16px; background: #fff; }
.m-legacy details[open] { padding-bottom: 10px; }
.m-legacy summary { cursor: pointer; padding: 12px 0; color: var(--teal); font-weight: 500; }
.m-legacy summary:hover { opacity: .8; }

/* 2026-11-16 TOP：ヒーロー内の本の1行と、ヒーロー直下の「マナビエの本」帯（社長指示＝本の宣伝コピーを上の方に） */
.hero-books { margin: 12px 0 0; font-size: 13px; }
.hero-books a, .hero-books b { color: var(--teal-dark); }
.m-books-strip { background: var(--teal-dark); color: #fff; padding: 26px 0; }
.m-books-in { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.m-books-txt { flex: 1 1 520px; }
.m-books-k { font-size: 12px; letter-spacing: .2em; color: #cfeef3; margin: 0 0 6px; }
.m-books-strip h3 { font-size: 20px; font-weight: 500; line-height: 1.5; margin: 0 0 8px; letter-spacing: .03em; color: #fff; }
.m-books-strip p { font-size: 14px; line-height: 1.85; margin: 0; }
.m-books-strip p b { color: #fff; border-bottom: 2px solid rgba(255,255,255,.6); }
.m-books-cta { display: flex; flex-direction: column; gap: 10px; min-width: 260px; }
.m-books-cta .btn-fill { background: #fff; color: var(--teal-dark); }
.m-books-cta .btn-line { background: transparent; border: 1px solid #fff; color: #fff; }
.m-books-cta .btn-line:hover { background: rgba(255,255,255,.12); }
@media (max-width: 767px) { .m-books-strip { padding: 22px 0; } .m-books-strip h3 { font-size: 17px; } .m-books-cta { min-width: 0; width: 100%; } }
