/* =========================================================
   学住リンク — style.css
   ========================================================= */
:root {
  --navy: #13294b;
  --navy-2: #1f3a63;
  --green: #2f7d32;
  --green-2: #3f9a3c;
  --green-dark: #1f5e25;
  --green-grad: linear-gradient(135deg, #4a9d3f 0%, #2a7531 60%, #1f6428 100%);
  --green-pale: #eef6e9;
  --green-pale-2: #f6faf3;
  --text: #1d2a3a;
  --muted: #5d6b7a;
  --line: #e1e7de;
  --line-2: #d3dbd0;
  --bg: #ffffff;
  --bg-soft: #f7f9f6;
  --orange: #f08c1a;
  --red: #d64545;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(19, 41, 75, .10);
  --shadow-sm: 0 3px 12px rgba(19, 41, 75, .08);
  --font: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  --font-hand: 'Klee One', 'Zen Kaku Gothic New', serif;
  --font-script: 'Dancing Script', cursive;
  --header-h: 96px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
img[data-ai-prompt]:not([src]), img[src=""] { background: linear-gradient(135deg, #e7f0e2, #d9e6d3); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid rgba(63, 154, 60, .55); outline-offset: 2px; }
[hidden] { display: none !important; }

.icon { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container-narrow { width: min(920px, 100% - 48px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-green { background: var(--green-pale); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 8px; border: 1px solid transparent;
  font-weight: 700; line-height: 1.3; cursor: pointer; text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--green-grad); color: #fff; box-shadow: 0 6px 16px rgba(47, 125, 50, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(47, 125, 50, .34); }
.btn-outline { background: #fff; border-color: var(--line-2); color: var(--navy); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-ghost-white { border: 2px solid #fff; color: #fff; border-radius: 999px; padding: .75em 1.8em; }
.btn-ghost-white:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-lg { padding: 1.05em 2.2em; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: .5em 1em; font-size: .85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-size: .88rem; font-weight: 700; color: var(--navy); }
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover { color: var(--green); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 見出し ---------- */
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { font-family: var(--font-script); color: var(--green); font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 6px; }
.sec-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; color: var(--navy); letter-spacing: .08em; }
.sec-head p { margin-top: 14px; color: var(--muted); }
.sec-head.left { text-align: left; }
.ttl-bar { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 900; color: var(--navy); }
.ttl-bar .icon { color: #f2b705; width: 1.3em; height: 1.3em; }
.ttl-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: blur(6px); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(19, 41, 75, .08); }
.header-bar { display: flex; align-items: center; gap: 28px; padding: 12px clamp(16px, 3vw, 40px); max-width: 1440px; margin-inline: auto; min-height: 84px; }
.logo { display: inline-block; flex: none; line-height: 0; }
/* ロゴ画像：元画像（約2:1・周囲に白い余白あり）の余白を切り詰めて表示 */
.logo-svg { display: block; position: relative; overflow: hidden; width: 150px; aspect-ratio: 1360 / 685; }
.logo-svg img { position: absolute; max-width: none; width: 130.9%; height: auto; left: -16.2%; top: -13.9%; mix-blend-mode: multiply; }
.header-tagline { font-size: .9rem; color: var(--navy); letter-spacing: .12em; font-weight: 500; }

.gnav { margin-left: auto; }
.gnav > ul { display: flex; align-items: center; gap: 4px; }
.gnav > ul > li { position: relative; }
.gnav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: .9rem; font-weight: 700; color: var(--navy); border-radius: 6px; position: relative; }
.gnav > ul > li > a .icon { width: .9em; height: .9em; }
.gnav > ul > li > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .25s; }
.gnav > ul > li > a:hover::after, .gnav > ul > li > a.is-active::after { transform: scaleX(1); }
.gnav-sub { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transition: .2s; }
.has-sub:hover .gnav-sub, .has-sub:focus-within .gnav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnav-sub a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.gnav-sub a .icon { color: var(--green); }
.gnav-sub a:hover { background: var(--green-pale); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gnav + .header-actions { margin-left: 8px; }
.btn-contact { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 8px; font-size: .85rem; font-weight: 700; white-space: nowrap; position: relative; transition: .2s; }
.btn-contact { background: var(--green-grad); color: #fff; box-shadow: 0 4px 12px rgba(47, 125, 50, .25); }
.btn-contact:hover { filter: brightness(1.07); }

.menu-btn { display: none; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; cursor: pointer; padding: 4px 6px; color: var(--navy); }
.menu-btn.is-always { display: flex; }
.menu-lines { display: grid; gap: 6px; width: 28px; }
.menu-lines i { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.menu-lines i:nth-child(2) { width: 70%; justify-self: end; }
.menu-label { font-size: .65rem; letter-spacing: .1em; font-weight: 700; }

/* 検索タブ（検索ページ用サブナビ） */
.search-tabs { border-top: 1px solid #f0f2ef; }
.search-tabs ul { display: flex; justify-content: center; gap: clamp(8px, 4vw, 64px); max-width: 1180px; margin-inline: auto; padding: 0 16px; }
.search-tabs a { display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: .88rem; font-weight: 700; color: var(--navy); position: relative; white-space: nowrap; }
.search-tabs a .icon { width: 1.25em; height: 1.25em; }
.search-tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); border-radius: 3px 3px 0 0; transform: scaleX(0); transition: transform .25s; }
.search-tabs a:hover::after, .search-tabs a.is-active::after { transform: scaleX(1); }
.search-tabs a.is-active { color: var(--green-dark); }

/* ドロワー */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(19, 41, 75, .45); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer-overlay { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw); background: #fff; padding: 20px 24px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 20px; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head .logo-svg { width: 130px; }
.drawer-close { background: var(--bg-soft); border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.drawer-nav a, .drawer-group-title { display: flex; align-items: center; gap: 12px; padding: 13px 4px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--line); }
.drawer-nav a .icon, .drawer-group-title .icon { color: var(--green); }
.drawer-nav a:hover { color: var(--green); }
.drawer-group ul { padding-left: 18px; background: var(--green-pale-2); }
.drawer-group ul a { font-size: .92rem; }
.drawer-tel { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; color: var(--navy); }
.drawer-tel a { font-size: 1.4rem; font-weight: 900; }
.drawer-tel small { grid-column: 2; color: var(--muted); }

/* =========================================================
   フッター
   ========================================================= */
.footer-cta { background: var(--green-pale); padding: 56px 0; }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-cta-en { font-family: var(--font-script); color: var(--green); font-size: 1.6rem; line-height: 1; }
.footer-cta-title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 900; color: var(--navy); margin: 6px 0 8px; }
.footer-cta p:last-child { color: var(--muted); }
.footer-cta-btns { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-tel { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.footer-tel > .icon { width: 2em; height: 2em; color: var(--green); }
.footer-tel b { display: block; font-size: 1.6rem; line-height: 1.2; font-weight: 900; letter-spacing: .04em; }
.footer-tel small { color: var(--muted); }
.footer-main { background: var(--navy); color: #d9e1ec; padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.logo-white { background: #fff; border-radius: 12px; padding: 10px 16px; }
.logo-white .logo-svg { width: 180px; }
.footer-brand p { margin-top: 16px; font-size: .88rem; line-height: 1.9; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav-title { color: #fff; font-weight: 900; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer-nav li + li { margin-top: 6px; }
.footer-nav a { font-size: .88rem; }
.footer-nav a:hover { color: #9fd38b; }
.footer-bottom { background: #0d1e38; color: #9aa8bb; text-align: center; padding: 16px 0; font-size: .8rem; }
.pagetop { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--green-grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 90; }
.pagetop .icon { transform: rotate(180deg); }

/* 準備中ページ（body[data-coming-soon]） */
.coming-soon { position: relative; z-index: 5; padding-bottom: 72px; }
.coming-soon:not(.overlap) { padding-top: 32px; }
.coming-panel { max-width: 760px; margin-inline: auto; text-align: center; padding: 56px 40px 52px; }
.coming-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--green-pale); color: var(--green); display: grid; place-items: center; }
.coming-ic .icon { width: 30px; height: 30px; }
.coming-en { font-family: var(--font-script); color: var(--green); font-size: 1.8rem; line-height: 1; margin-bottom: 8px; }
.coming-panel h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 900; color: var(--navy); margin-bottom: 14px; }
.coming-panel > p:not(.coming-en) { color: var(--muted); line-height: 2; }
.coming-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.is-coming-soon .sticky-cta { display: none !important; }
body.is-coming-soon { padding-bottom: 0 !important; }
@media (max-width: 760px) {
  .coming-panel { padding: 40px 20px 36px; }
  .coming-panel br { display: none; }
  .coming-btns .btn { width: 100%; }
  body.is-coming-soon .pagetop { bottom: 18px; }
}

/* 公式LINE フローティングバナー（ページトップボタンの上） */
.line-float { position: fixed; right: 18px; bottom: 112px; z-index: 92; }
.line-float-link { display: flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px; background: #06c755; color: #fff; box-shadow: 0 8px 24px rgba(6, 199, 85, .35); transition: transform .2s, box-shadow .2s; }
.line-float-link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(6, 199, 85, .45); }
.line-float-ic { width: 42px; height: 42px; flex: none; display: block; }
.line-float-txt b { display: block; font-size: .92rem; font-weight: 900; line-height: 1.3; letter-spacing: .04em; }
.line-float-txt small { display: block; font-size: .7rem; opacity: .92; line-height: 1.4; }
@media (max-width: 760px) {
  .line-float { right: 12px; bottom: 100px; }
  .line-float-link { gap: 8px; padding: 6px 14px 6px 6px; }
  .line-float-ic { width: 34px; height: 34px; }
  .line-float-txt b { font-size: .8rem; }
  .line-float-txt small { display: none; }
  body.has-sticky .line-float { bottom: 162px; }
  body.is-coming-soon .line-float { bottom: 100px; }
}

/* =========================================================
   ホーム：ヒーロー
   ========================================================= */
.hero { position: relative; overflow: hidden; min-height: 640px; padding: 40px 0 150px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .78) 32%, rgba(255, 255, 255, .25) 58%, rgba(255, 255, 255, 0) 75%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); }
.hero-inner { position: relative; z-index: 2; width: min(1280px, 100% - 48px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .6fr); align-items: center; gap: 12px; }
.hero-script { font-family: var(--font-script); color: var(--green); font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.1; transform: rotate(-12deg); transform-origin: left; display: inline-block; margin-bottom: 36px; }
.hero-copy h1 { font-family: var(--font-hand); font-weight: 600; color: var(--navy); font-size: clamp(1.6rem, 2.9vw, 2.6rem); line-height: 1.55; letter-spacing: .08em; transform: rotate(-4deg); transform-origin: left; }
.hero-copy h1 span { display: block; white-space: nowrap; }
.hero-copy h1 span + span { padding-left: .1em; }
.hero-lead { margin-top: 28px; font-size: clamp(.92rem, 1.2vw, 1.05rem); line-height: 2.1; color: var(--navy); font-weight: 500; text-shadow: 0 0 12px #fff, 0 0 4px #fff; }
/* ヒーロー中央の透かし画像（旧ロゴの位置）。濃さ・大きさは変数で調整 */
.hero { --hero-mark-opacity: 1; --hero-mark-width: clamp(240px, 27vw, 400px); }
/* PC：写真の女性の顔（画面幅の約6割より右）にかからないよう、中央列の左端に寄せてさらに左へずらす */
.hero-mark { position: relative; left: clamp(-110px, -6.5vw, -40px); top: clamp(-56px, -3vw, -20px); justify-self: start; width: var(--hero-mark-width); opacity: var(--hero-mark-opacity); pointer-events: none; user-select: none; }
.hero-mark img { display: block; width: 100%; height: auto; }
.hero-logo { justify-self: center; filter: drop-shadow(0 6px 18px rgba(255, 255, 255, .9)); }
.logo-svg-legacy { display: block; height: auto; }
.hero-logo .logo-svg-legacy { width: clamp(260px, 32vw, 460px); }
.hero-side { justify-self: end; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-vertical { font-family: var(--font-hand); color: var(--navy); font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.9; transform: rotate(-14deg); text-shadow: 0 0 10px rgba(255, 255, 255, .95); }
.hero-vertical span { display: block; }
.hero-vertical span:nth-child(2) { padding-left: .6em; }
.hero-vertical span:nth-child(3) { padding-left: 1.2em; }
.hero-vertical span:nth-child(4) { padding-left: 1.8em; }
.hero-badge { width: 138px; height: 138px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); display: grid; place-content: center; text-align: center; font-size: .78rem; line-height: 1.7; color: var(--navy); font-weight: 700; }
.hero-badge [data-icon] { display: block; }
.hero-badge .icon { color: var(--green); margin: 4px auto 0; width: 22px; height: 22px; display: block; }
.message [data-logo] .logo-svg { width: 100%; }

/* 検索ボックス */
.search-box { position: relative; z-index: 5; width: min(1140px, 100% - 48px); margin: -130px auto 0; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 8px 40px 32px; }
.sb-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.sb-tab { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 8px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--navy); position: relative; font-size: .95rem; }
.sb-tab .icon { width: 1.35em; height: 1.35em; }
.sb-tab::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 3px; background: var(--green); border-radius: 3px; transform: scaleX(0); transition: transform .25s; }
.sb-tab[aria-selected="true"]::after { transform: scaleX(1); }
.sb-tab[aria-selected="true"] { color: var(--green-dark); }
.sb-panel { display: flex; gap: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.sb-field { flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 20px; min-height: 64px; }
.sb-field + .sb-field { border-left: 1px solid var(--line); }
.sb-field .icon { color: var(--navy); width: 1.4em; height: 1.4em; }
.sb-field input, .sb-field select { flex: 1; border: 0; background: transparent; height: 62px; outline: none; font-size: 1rem; min-width: 0; }
.sb-field input::placeholder { color: #9aa5b1; }
.sb-submit { flex: none; border: 0; border-radius: 0; min-width: 260px; font-size: 1.05rem; }
.sb-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.sb-cond { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--green-pale-2); }
.sb-cond-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 700; color: var(--navy); }
.tag-green { background: var(--green-pale); border-color: #cfe4c5; color: var(--green-dark); }

/* 特徴アイコン */
.points { padding: 44px 0 40px; }
.points ul { display: grid; grid-template-columns: repeat(5, 1fr); }
.points li { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 6px 12px; color: var(--navy); font-weight: 700; font-size: .95rem; line-height: 1.7; }
.points li + li { border-left: 1px solid var(--line-2); }
.points .icon { width: 50px; height: 50px; flex: none; stroke-width: 1.4; }

/* モザイク */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: 1fr auto; }
.mosaic-main { grid-row: 1 / span 2; position: relative; min-height: 520px; color: #fff; overflow: hidden; }
.mosaic-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.mosaic-main:hover img { transform: scale(1.04); }
.mosaic-main::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10, 30, 20, .55) 0%, rgba(10, 30, 20, .25) 55%, rgba(0, 0, 0, .05)); }
.mosaic-main-body { position: relative; z-index: 2; padding: 56px 40px 48px; height: 100%; display: flex; flex-direction: column; }
.mosaic-main h2 { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.5; letter-spacing: .1em; transform: rotate(-5deg); transform-origin: left; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.mosaic-main h2 span { display: block; padding-left: 1.5em; border-bottom: 2px solid rgba(255, 255, 255, .85); padding-bottom: 4px; width: fit-content; white-space: nowrap; }
.mosaic-main p { margin-top: auto; padding-top: 28px; line-height: 2; text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.mosaic-main .btn { margin-top: 28px; align-self: flex-start; }
.mosaic-photo { position: relative; overflow: hidden; min-height: 280px; }
.mosaic-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.mosaic-photo:hover img { transform: scale(1.06); }
.mosaic-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 55%); }
.mosaic-photo figcaption { position: absolute; z-index: 1; left: 18px; right: 12px; bottom: 18px; color: #fff; font-family: var(--font-script); font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.15; transform: rotate(-12deg); transform-origin: left bottom; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.news-bar { grid-column: 2 / span 3; display: flex; align-items: center; gap: 24px; padding: 22px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.news-bar-label { font-weight: 900; letter-spacing: .15em; color: var(--navy); padding-right: 24px; border-right: 1px solid var(--line-2); }
.news-bar-item { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.news-bar-item time { font-size: .85rem; color: var(--muted); }
.news-bar-item a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.news-bar-item a:hover { color: var(--green); }
.cat { display: inline-block; padding: 2px 12px; border-radius: 4px; background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; line-height: 1.7; }
.cat-navy { background: var(--navy); }
.cat-orange { background: var(--orange); }
.news-bar .link-arrow { border-bottom: 1px solid var(--navy); padding-bottom: 2px; white-space: nowrap; }

/* ホーム：人気の学校チップ */
.school-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.school-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-weight: 700; color: var(--navy); transition: .2s; }
.school-chips a .icon { color: var(--green); }
.school-chips a:hover { border-color: var(--green); background: var(--green-pale); transform: translateY(-2px); }

/* 3つの探し方 */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.way { background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: .25s; }
.way:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.way-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green-pale); color: var(--green); display: grid; place-items: center; }
.way-icon .icon { width: 30px; height: 30px; }
.way h3 { font-size: 1.2rem; font-weight: 900; color: var(--navy); }
.way p { color: var(--muted); font-size: .92rem; flex: 1; }
.way .link-arrow { color: var(--green-dark); }
.way-flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; color: var(--navy); }
.way-flow span { background: var(--bg-soft); border-radius: 4px; padding: 2px 8px; }
.way-flow i { font-style: normal; color: var(--green); }

/* カード（記事） */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.05rem; font-weight: 900; color: var(--navy); line-height: 1.6; }
.card-body p { font-size: .88rem; color: var(--muted); }

/* =========================================================
   下層ページ共通：ページヒーロー
   ========================================================= */
.page-hero { position: relative; color: #fff; overflow: hidden; min-height: 380px; display: flex; align-items: flex-start; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15, 30, 50, .62) 0%, rgba(15, 30, 50, .35) 45%, rgba(15, 30, 50, 0) 75%); }
.page-hero-body { position: relative; z-index: 2; width: min(1280px, 100% - 48px); margin-inline: auto; padding: 56px 0 140px; }
.page-hero h1 { display: flex; align-items: center; gap: 18px; font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-weight: 900; letter-spacing: .08em; line-height: 1.3; text-shadow: 0 3px 14px rgba(0, 0, 0, .3); }
.page-hero h1 .icon { width: 1.25em; height: 1.25em; }
.page-hero p { margin-top: 20px; font-size: clamp(.95rem, 1.4vw, 1.15rem); line-height: 1.9; letter-spacing: .1em; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.page-hero-sm { min-height: 300px; }
.page-hero-sm .page-hero-body { padding: 64px 0 72px; }
.page-hero .en { font-family: var(--font-script); font-size: 1.6rem; display: block; color: #c6eab3; margin-bottom: 4px; }
.page-hero-plain { background: var(--green-grad); }
.page-hero-plain::before { content: none; }

.breadcrumb { padding: 14px 0; font-size: .8rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: #9aa5b1; }
.breadcrumb a { color: var(--navy); }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; }

.panel { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 32px; }
.overlap { position: relative; z-index: 5; margin-top: -110px; }

/* 検索フロー */
.flow-steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; font-weight: 700; color: var(--muted); }
.flow-steps li { display: flex; align-items: center; gap: 8px; }
.flow-steps li + li::before { content: ''; width: 22px; height: 2px; background: var(--line-2); }
.flow-steps .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--navy); font-size: .75rem; }
.flow-steps a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.flow-steps a:hover { color: var(--green); }
.flow-steps .is-current { color: var(--green-dark); }
.flow-steps .is-current .num { background: var(--green); color: #fff; }

/* =========================================================
   学校名から探す
   ========================================================= */
.school-search { display: flex; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px; gap: 10px; }
.school-search label { flex: 1; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.school-search label .icon { width: 1.4em; height: 1.4em; color: var(--navy); }
.school-search input { flex: 1; border: 0; outline: none; height: 56px; font-size: 1rem; min-width: 0; }
.school-search .btn { min-width: 220px; border-radius: 8px; }
.suggest { margin-top: 8px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.suggest a { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.suggest a:hover, .suggest a:focus { background: var(--green-pale); }
.suggest small { color: var(--muted); font-weight: 500; }
.suggest-empty { padding: 14px 20px; color: var(--muted); }

.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.school-card { display: flex; align-items: center; gap: 16px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: .2s; }
.school-card img { width: 72px; height: 56px; object-fit: cover; border-radius: 4px; flex: none; }
.school-card-name { flex: 1; font-weight: 700; color: var(--navy); line-height: 1.4; }
.school-card-name small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; margin-top: 2px; }
.school-card .icon { color: var(--navy); width: 1em; height: 1em; transition: transform .2s; }
.school-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.school-card:hover .icon { transform: translateX(3px); color: var(--green); }

.school-list-group + .school-list-group { margin-top: 28px; }
.school-list-group h3 { font-size: 1rem; font-weight: 900; color: var(--navy); padding-left: 12px; border-left: 4px solid var(--green); margin-bottom: 12px; }
.school-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.school-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.school-links a:hover { border-color: var(--green); color: var(--green); }
.school-links .count { font-size: .75rem; color: var(--muted); font-weight: 500; }

/* =========================================================
   エリアから探す
   ========================================================= */
/* 共通：左に一覧（全国）、右に詳細選択（固定表示） */
.search-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: start; position: relative; z-index: 5; }
.side-panel { position: sticky; top: 150px; }
.panel-ttl { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 900; color: var(--navy); margin-bottom: 16px; }
.panel-ttl .num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.side-current { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--green-pale-2); border: 1px solid #cfe4c5; border-radius: 8px; margin-bottom: 14px; font-size: .9rem; color: var(--navy); }
.side-current .icon { color: var(--green); }
.side-current b { font-size: 1.05rem; color: var(--green-dark); }
.code-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }

/* 地方ブロック */
.region-list { border-top: 1px solid var(--line); }
.region-block { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 170px; }
.region-name { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 900; color: var(--navy); align-self: start; padding-top: 8px; }
.region-name::before { content: ''; width: 4px; height: 1.1em; border-radius: 2px; background: var(--green); flex: none; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pref-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; font-weight: 700; font-size: .88rem; color: var(--navy); cursor: pointer; transition: .2s; white-space: nowrap; }
.pref-btn:hover { border-color: var(--green); color: var(--green-dark); }
.pref-btn[aria-pressed="true"] { background: var(--green-grad); color: #fff; border-color: transparent; }
.cnt { font-size: .68rem; font-weight: 700; color: var(--green-dark); background: var(--green-pale); border-radius: 999px; padding: 0 7px; line-height: 1.7; }
[aria-pressed="true"] .cnt { background: rgba(255, 255, 255, .25); color: #fff; }
.region-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.region-jump a { font-size: .8rem; font-weight: 700; color: var(--navy); padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.region-jump a:hover { border-color: var(--green); color: var(--green-dark); }

.ward-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px; max-height: 380px; overflow-y: auto; }
.ward { display: flex; align-items: center; gap: 8px; padding: 7px 2px; font-size: .85rem; cursor: pointer; border-bottom: 1px dashed #edf0eb; }
.ward input { accent-color: var(--green); width: 16px; height: 16px; }
.ward span { flex: 1; }
.ward small { color: var(--muted); font-size: .72rem; }
.ward:hover { color: var(--green); }
.ward.has-checked { color: var(--green-dark); font-weight: 700; }
.area-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 18px; font-size: .85rem; }
.text-btn { background: none; border: 0; color: var(--green-dark); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.area-selected { color: var(--muted); }
.area-selected b { color: var(--green-dark); }

/* =========================================================
   路線・駅から探す
   ========================================================= */
.line-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.line-chip .line-name { flex: 1; line-height: 1.4; }
.line-chip[aria-pressed="true"] { background: var(--green-grad); color: #fff; border-color: transparent; }
.station-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; max-height: 420px; overflow-y: auto; padding: 2px; }
.st-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .86rem; cursor: pointer; background: #fff; transition: .15s; }
.st-chip input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; flex: none; }
.st-chip span { flex: 1; }
.st-chip small { color: var(--green-dark); font-size: .72rem; font-weight: 700; }
.st-chip.has-prop { border-color: #cfe4c5; background: var(--green-pale-2); }
.st-chip:hover { border-color: var(--green); }
.st-chip:has(input:checked) { border-color: var(--green); background: var(--green-pale); color: var(--green-dark); font-weight: 700; }
.st-all { grid-column: 1 / -1; }
.side-panel .hint { margin: 10px 0 16px; }
.step-field + .step-field { margin-top: 22px; }
.step-label { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.step-label .num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.select-wrap { position: relative; display: flex; align-items: center; }
.select-wrap > [data-icon] { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--navy); pointer-events: none; display: flex; }
.select-wrap select { width: 100%; height: 52px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 44px 0 44px; background: #fff; appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 700; color: var(--navy); }
.select-wrap select:disabled { color: #9aa5b1; background: #f5f6f4; cursor: not-allowed; }
.select-wrap::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.line-chip { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-weight: 700; font-size: .86rem; color: var(--navy); cursor: pointer; text-align: left; transition: .2s; }
.line-chip .code { width: 26px; height: 26px; border-radius: 50%; border: 4px solid; display: grid; place-items: center; font-size: .55rem; font-weight: 900; flex: none; background: #fff; }
.line-chip:hover { border-color: var(--green); }
.line-chip.is-active { background: var(--green-grad); color: #fff; border-color: transparent; }

/* =========================================================
   こだわり条件
   ========================================================= */
.cond-hero { min-height: 420px; }
.cond-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: end; }
.cond-form { padding: 32px 36px; }
.cond-form > h2 { font-size: 1.05rem; font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.cond-base { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; background: var(--green-pale-2); border-radius: 8px; margin: 14px 0 22px; font-size: .9rem; }
.cond-base b { color: var(--green-dark); }
.cond-base .icon { color: var(--green); }
.cond-base a { margin-left: auto; font-size: .82rem; color: var(--navy); text-decoration: underline; }
.cond-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 28px; }
.cond-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.cond-group + .cond-group { margin-top: 20px; }
.cond-group h3, .cond-col > h3 { font-size: .9rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.chk-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 16px; justify-content: start; }
.chk-grid.col-2 { grid-template-columns: repeat(2, auto); }
.chk-grid.col-1 { grid-template-columns: 1fr; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; cursor: pointer; line-height: 1.5; padding: 3px 0; }
.chk input { width: 16px; height: 16px; accent-color: var(--green); flex: none; margin: 0; }
.chk:hover { color: var(--green-dark); }
.range-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-select { height: 38px; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 30px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%2313294b' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px; appearance: none; -webkit-appearance: none; font-size: .85rem; cursor: pointer; }
.cond-actions { display: grid; grid-template-columns: 1fr 1.8fr; gap: 20px; margin-top: 28px; align-items: center; }
.cond-count { text-align: center; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.cond-count b { font-size: 1.6rem; color: var(--green-dark); margin: 0 4px; font-weight: 900; }
.cond-guide { text-align: center; padding: 40px 32px; }
.cond-guide h2 { font-size: 1.3rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.cond-guide p { color: var(--muted); }
.ways-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.sb-flow { text-align: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cond-aside { text-align: center; padding-bottom: 24px; }
.cond-aside .hand { font-family: var(--font-hand); font-size: 1.35rem; color: var(--navy); line-height: 2; transform: rotate(-8deg); margin-bottom: 30px; }
.cond-aside .logo-svg { width: 200px; margin-inline: auto; }

/* =========================================================
   検索結果
   ========================================================= */
.result-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.result-head h1 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 900; color: var(--navy); line-height: 1.4; }
.result-head h1 .icon { color: var(--green); }
.result-count { margin-top: 6px; color: var(--muted); }
.result-count b { font-size: 1.8rem; color: var(--green-dark); font-weight: 900; margin-right: 2px; }
.result-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.chips-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; background: var(--bg-soft); border-radius: 10px; margin-bottom: 24px; }
.chips-box > span:first-child { font-size: .85rem; font-weight: 900; color: var(--navy); margin-right: 4px; }
.chips-box .link-arrow { margin-left: auto; color: var(--green-dark); }

.prop-list { display: grid; gap: 22px; }
.prop-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: .25s; }
.prop-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.prop-card-img { position: relative; display: block; min-height: 220px; background: var(--green-pale); }
.prop-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vacancy { position: absolute; top: 12px; left: 12px; z-index: 1; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 4px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--green); line-height: 1.6; }
.badge-orange { background: var(--orange); }
.badge-gray { background: #8592a0; }
.prop-card-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.prop-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.prop-card h2 { font-size: 1.2rem; font-weight: 900; color: var(--navy); line-height: 1.4; }
.prop-card h2 a:hover { color: var(--green); }
.prop-card .addr { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.school-access { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: var(--green-pale); color: var(--green-dark); border-radius: 999px; padding: 5px 16px 5px 6px; font-weight: 700; font-size: .9rem; }
.school-access .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.school-access .ic .icon { width: 16px; height: 16px; }
.school-access b { font-size: 1.15rem; }
.prop-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: center; }
.price { color: #d2462a; font-weight: 900; line-height: 1.1; }
.price b { font-size: 2rem; letter-spacing: 0; }
.price small { font-size: .78rem; color: var(--muted); font-weight: 500; display: block; margin-top: 4px; }
.facts-list { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; color: var(--navy); }
.facts-list li { display: flex; align-items: center; gap: 6px; }
.facts-list .icon { color: var(--green); width: 1.05em; height: 1.05em; }
.prop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-card-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.empty { text-align: center; padding: 64px 24px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.empty .icon { width: 56px; height: 56px; color: var(--green); margin-bottom: 12px; }
.empty h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }
.empty .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   物件詳細
   ========================================================= */
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.detail-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; color: var(--navy); line-height: 1.35; }
.detail-head .addr { color: var(--muted); margin-top: 4px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--green-pale); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent); color: #fff; font-size: .85rem; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.prev .icon { transform: rotate(180deg); }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--green-pale); }
.gallery-thumbs button[aria-current="true"] { border-color: var(--green); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.summary-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: sticky; top: 110px; background: #fff; }
.summary-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-price .price b { font-size: 2.6rem; }
.summary-price .mgmt { color: var(--muted); font-size: .9rem; }
.summary-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.summary-table th { text-align: left; color: var(--muted); font-weight: 700; width: 96px; padding: 8px 0; vertical-align: top; }
.summary-table td { padding: 8px 0; color: var(--navy); font-weight: 700; }
.summary-box .btn + .btn { margin-top: 10px; }
.access-hl { background: var(--green-pale); border-radius: 12px; padding: 16px 18px; margin: 16px 0; }
.access-hl p { font-size: .8rem; font-weight: 900; color: var(--green-dark); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.access-hl li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 4px 0; font-weight: 700; color: var(--navy); }
.access-hl li b { color: var(--green-dark); font-size: 1.15rem; white-space: nowrap; }
.detail-sec { margin-top: 56px; }
.detail-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 900; color: var(--navy); padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 20px; }
.detail-sec h2 .icon { color: var(--green); }
.detail-sec h2::after { content: ''; }
.desc { line-height: 2.1; }
.school-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.school-acc-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 12px; border: 1px solid #cfe4c5; background: var(--green-pale-2); }
.school-acc-card .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--green-grad); color: #fff; display: grid; place-items: center; flex: none; }
.school-acc-card .ic .icon { width: 26px; height: 26px; }
.school-acc-card .nm { font-weight: 900; color: var(--navy); }
.school-acc-card .tm { color: var(--green-dark); font-weight: 900; }
.school-acc-card .tm b { font-size: 1.6rem; }
.school-acc-card a { font-size: .8rem; color: var(--navy); text-decoration: underline; }
.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: .92rem; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.spec-table th { background: var(--bg-soft); color: var(--navy); width: 18%; font-weight: 700; white-space: nowrap; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.equip { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: .88rem; font-weight: 700; color: #b2bac3; background: #fafbfa; }
.equip .icon { width: 18px; height: 18px; }
.equip.on { color: var(--navy); background: #fff; border-color: #cfe4c5; }
.equip.on .icon { color: var(--green); }
.detail-cta { margin-top: 64px; border-radius: var(--radius-lg); background: var(--green-grad); color: #fff; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.detail-cta h2 { font-size: 1.5rem; font-weight: 900; }
.detail-cta p { margin-top: 8px; opacity: .92; }
.detail-cta-btns { display: flex; flex-direction: column; gap: 12px; }
.detail-cta .btn-white { background: #fff; color: var(--green-dark); }
.detail-cta .btn-white:hover { transform: translateY(-2px); }
.detail-cta .tel { display: flex; align-items: center; gap: 8px; font-size: 1.4rem; font-weight: 900; justify-content: center; }
.sticky-cta { display: none; }

/* =========================================================
   学住リンクとは
   ========================================================= */
.concept { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.concept-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.concept-img img { width: 100%; height: 100%; object-fit: cover; }
.concept h2 { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--navy); line-height: 1.6; margin-bottom: 20px; }
.concept p + p { margin-top: 14px; }
.concept .en { font-family: var(--font-script); color: var(--green); font-size: 1.6rem; display: block; }
.feature-rows { display: grid; gap: 64px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-row:nth-child(even) .feature-img { order: 2; }
.feature-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-num { font-family: var(--font-script); font-size: 3rem; color: var(--green); line-height: 1; }
.feature-row h3 { font-size: 1.4rem; font-weight: 900; color: var(--navy); margin: 8px 0 14px; }
.feature-row p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { background: #fff; border-radius: 14px; padding: 28px 18px 24px; text-align: center; position: relative; box-shadow: var(--shadow-sm); }
.step:not(:last-child)::after { content: ''; position: absolute; right: -14px; top: 50%; width: 12px; height: 12px; border-top: 3px solid var(--green); border-right: 3px solid var(--green); transform: translateY(-50%) rotate(45deg); }
.step-no { font-family: var(--font-script); color: var(--green); font-size: 1.1rem; }
.step-ic { width: 60px; height: 60px; border-radius: 50%; margin: 8px auto 12px; background: var(--green-pale); color: var(--green); display: grid; place-items: center; }
.step-ic .icon { width: 28px; height: 28px; }
.step h3 { font-size: 1rem; font-weight: 900; color: var(--navy); }
.step p { font-size: .82rem; color: var(--muted); margin-top: 6px; line-height: 1.7; }
.message { text-align: center; }
.message p { font-family: var(--font-hand); font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 2.3; color: var(--navy); }

/* =========================================================
   暮らし情報
   ========================================================= */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-tab { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--navy); }
.filter-tab[aria-pressed="true"] { background: var(--green-grad); color: #fff; border-color: transparent; }
.article { display: grid; grid-template-columns: 380px 1fr; gap: 40px; padding: 40px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); scroll-margin-top: 120px; }
.article + .article { margin-top: 28px; }
.article-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; align-self: start; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: 1.35rem; font-weight: 900; color: var(--navy); line-height: 1.5; margin: 10px 0 14px; }
.article p { color: var(--text); }
.article p + p { margin-top: 10px; }
.checklist { margin-top: 18px; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.checklist .icon { color: var(--green); margin-top: .3em; }
.cost-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .9rem; }
.cost-table th, .cost-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.cost-table th { background: var(--green-pale); color: var(--navy); }
.cost-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.cost-table tfoot td { background: var(--bg-soft); font-weight: 900; color: var(--green-dark); }
.toc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-search { display: flex; align-items: center; gap: 12px; max-width: 640px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq-search .icon { color: var(--navy); }
.faq-search input { flex: 1; border: 0; outline: none; height: 56px; background: none; min-width: 0; }
.faq-cat + .faq-cat { margin-top: 48px; }
.faq-cat h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 900; color: var(--navy); margin-bottom: 16px; }
.faq-cat h2 .icon { color: var(--green); }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.faq-item + .faq-item { margin-top: 12px; }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-weight: 700; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q, .faq-a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; flex: none; font-family: var(--font-script); font-size: 1.2rem; }
.faq-q { background: var(--navy); color: #fff; }
.faq-a { background: var(--green); color: #fff; }
.faq-item summary > [data-icon] { margin-left: auto; transition: transform .25s; color: var(--green); display: inline-flex; }
.faq-item[open] summary > [data-icon] { transform: rotate(180deg); }
.faq-item[open] summary { background: var(--green-pale-2); }
.faq-body { display: flex; gap: 14px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.faq-body p + p { margin-top: 8px; }
.faq-empty { text-align: center; color: var(--muted); padding: 32px; }

/* =========================================================
   お知らせ
   ========================================================= */
.news-list { border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-item summary { list-style: none; display: grid; grid-template-columns: 110px 110px 1fr auto; align-items: center; gap: 16px; padding: 22px 8px; cursor: pointer; }
.news-item summary::-webkit-details-marker { display: none; }
.news-item time { color: var(--muted); font-size: .9rem; }
.news-item .cat { justify-self: start; }
.news-item h2 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.news-item summary:hover h2 { color: var(--green); }
.news-item summary > [data-icon] { color: var(--green); transition: transform .25s; display: inline-flex; }
.news-item[open] summary > [data-icon] { transform: rotate(180deg); }
.news-body { padding: 0 8px 26px 252px; color: var(--text); }
.news-body p + p { margin-top: 10px; }

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.form-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.form-row:first-child { padding-top: 0; }
.form-label { font-weight: 700; color: var(--navy); padding-top: 10px; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.req, .opt { font-size: .7rem; padding: 1px 8px; border-radius: 4px; color: #fff; background: var(--red); font-weight: 700; line-height: 1.8; }
.opt { background: #9aa5b1; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(63, 154, 60, .18); }
.textarea { min-height: 180px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='%2313294b' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; padding-right: 40px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 8px; }
.is-invalid { border-color: var(--red) !important; background: #fff8f8; }
.err { color: var(--red); font-size: .82rem; margin-top: 6px; display: none; }
.err.show { display: block; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-agree { text-align: center; padding: 28px 0 12px; }
.form-submit { text-align: center; }
.form-submit .btn { min-width: 300px; }
.form-done { text-align: center; padding: 56px 24px; }
.form-done .icon { width: 64px; height: 64px; color: #fff; background: var(--green-grad); border-radius: 50%; padding: 14px; margin-bottom: 18px; }
.form-done h2 { font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
.contact-side .panel + .panel { margin-top: 20px; }
.contact-side h2 { font-size: 1.05rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.contact-side h2 .icon { color: var(--green); }
.contact-side .tel { font-size: 1.7rem; font-weight: 900; color: var(--navy); display: block; line-height: 1.3; }
.contact-side p { font-size: .88rem; color: var(--muted); }
.prop-mini { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #cfe4c5; background: var(--green-pale-2); border-radius: 10px; margin-top: 10px; }
.prop-mini b { color: var(--navy); }

/* =========================================================
   管理画面
   ========================================================= */
.admin-bar { background: var(--navy); color: #fff; padding: 14px 0; }
.admin-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-bar h1 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.admin-note { background: #fff8e6; border: 1px solid #f3dca2; border-radius: 10px; padding: 14px 18px; font-size: .88rem; margin-bottom: 24px; }
.admin-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
.admin-list { max-height: 80vh; overflow: auto; padding: 0; }
.admin-list-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.admin-item { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; text-align: left; background: #fff; border-left: 0; border-right: 0; border-top: 0; }
.admin-item:hover, .admin-item.is-active { background: var(--green-pale); }
.admin-item img { width: 56px; height: 42px; object-fit: cover; border-radius: 4px; }
.admin-item b { display: block; color: var(--navy); font-size: .92rem; }
.admin-item small { color: var(--muted); }
.admin-form h2 { font-size: 1.15rem; font-weight: 900; color: var(--navy); margin-bottom: 14px; }
.admin-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-fields .full { grid-column: 1 / -1; }
.admin-fields .two { grid-column: span 2; }
.admin-fields label > span { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.admin-fields .input, .admin-fields .select { padding: 9px 12px; font-size: .92rem; }
.admin-sub { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.admin-sub-title { display: flex; justify-content: space-between; align-items: center; font-weight: 900; color: var(--navy); font-size: .9rem; margin-bottom: 10px; }
.dyn-row { display: grid; grid-template-columns: 1.4fr 1.2fr .7fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.dyn-row .del { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; color: var(--red); display: grid; place-items: center; }
.admin-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.photo-preview { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-top: 8px; border: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 24px; border-radius: 999px; opacity: 0; transition: .3s; z-index: 500; pointer-events: none; font-weight: 700; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* アニメーション */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1180px) {
  .gnav { display: none; }
  .menu-btn { display: flex; }
  .header-actions, .gnav + .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-side { display: none; }
  .points ul { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .points li:nth-child(4) { border-left: 0; }
  .school-links { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .step:nth-child(3)::after { display: none; }
}

@media (max-width: 1000px) {
  .header-tagline { display: none; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic-main { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .news-bar { grid-column: 1 / -1; }
  .search-box { padding: 8px 24px 24px; }
  .sb-submit { min-width: 200px; }
  .search-split { grid-template-columns: 1fr; }
  .side-panel { position: static; scroll-margin-top: 130px; }
  .cond-wrap { grid-template-columns: 1fr; }
  .cond-aside { display: none; }
  .ways-mini { grid-template-columns: 1fr; }
  .cond-guide { padding: 28px 18px; }
  .cond-grid { grid-template-columns: 1fr 1fr; }
  .cond-grid > .cond-col:first-child { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .summary-box { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-list { max-height: 320px; }
  .article { grid-template-columns: 300px 1fr; padding: 28px; gap: 28px; }
  .concept, .feature-row { grid-template-columns: 1fr; gap: 28px; }
  .feature-row:nth-child(even) .feature-img { order: 0; }
  .ways, .cards, .toc { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .school-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .section { padding: 60px 0; }
  .container, .container-narrow { width: calc(100% - 32px); }
  .header-bar { min-height: 64px; padding: 8px 14px; gap: 10px; }
  .logo-svg { width: 112px; }
  .btn-contact span { display: none; }
  .btn-contact { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .search-tabs ul { justify-content: flex-start; overflow-x: auto; gap: 0; padding: 0 8px; scrollbar-width: none; }
  .search-tabs ul::-webkit-scrollbar { display: none; }
  .search-tabs a { padding: 10px 12px; font-size: .8rem; }

  .hero { min-height: 0; padding: 24px 0 120px; }
  .hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .72) 55%, rgba(255, 255, 255, .35) 100%); }
  .hero-inner { grid-template-columns: 1fr; width: calc(100% - 32px); }
  .hero-logo { order: -1; justify-self: start; margin-bottom: 8px; }
  /* スマホ：透かし画像を「Link for a Better Tomorrow.」の上（ヒーローの一番上）に配置
     （.hero-copy の中身をグリッドに展開して並び順を指定） */
  .hero-copy { display: contents; }
  /* 負のマージンで左上へ寄せる（下の要素も一緒に詰まる） */
  .hero-mark { order: 1; position: static; justify-self: start; width: min(62%, 240px); margin: -16px 0 22px -12px; }
  .hero-script { order: 2; justify-self: start; }
  .hero-copy h1 { order: 3; }
  .hero-lead { order: 4; }
  .hero-logo .logo-svg-legacy { width: 200px; }
  .hero-script { margin-bottom: 18px; font-size: 1.5rem; }
  .hero-copy h1 { font-size: clamp(1.4rem, 7.2vw, 1.85rem); }
  .hero-lead { margin-top: 18px; font-size: .9rem; }
  .search-box { width: calc(100% - 24px); padding: 4px 14px 18px; margin-top: -100px; }
  .sb-tabs { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
  .sb-tab { flex-direction: column; gap: 4px; font-size: .7rem; padding: 12px 2px; line-height: 1.35; letter-spacing: 0; }
  .sb-tab-label > span { display: block; white-space: nowrap; }
  .sb-panel { flex-direction: column; }
  .sb-field + .sb-field { border-left: 0; border-top: 1px solid var(--line); }
  .sb-field { min-height: 54px; padding: 0 14px; }
  .sb-field input, .sb-field select { height: 52px; font-size: .95rem; }
  .sb-submit { min-width: 0; padding: 1em; }
  .sb-cond { flex-direction: column; align-items: stretch; }
  .points { padding: 32px 0; }
  /* 左右の列を必ず同じ幅に（文字量で列幅が変わらないよう minmax(0, 1fr)） */
  .points ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .points li, .points li > span:last-child { min-width: 0; }
  .points li { justify-content: flex-start; border: 0 !important; font-size: .82rem; gap: 10px; padding: 10px; background: var(--bg-soft); border-radius: 10px; }
  .points li:last-child { grid-column: 1 / -1; }
  /* スマホ：5項目とも改行指定（<br>）なしで、枠の幅に合わせて自然に折り返す */
  .points li br { display: none; }
  /* 横幅いっぱいの最後の項目「初めての一人暮らしガイド」は1行で表示 */
  .points li:last-child span:last-child { white-space: nowrap; }
  .points .icon { width: 36px; height: 36px; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic-main { min-height: 440px; }
  .mosaic-main-body { padding: 40px 22px 32px; }
  .mosaic-main h2 { font-size: clamp(1rem, 6.2vw, 1.6rem); letter-spacing: .02em; }
  .mosaic-main h2 span { padding-left: 1em; }
  .mosaic-photo { min-height: 200px; }
  .mosaic figure.mosaic-photo:nth-of-type(3) { grid-column: 1 / -1; }
  .news-bar { flex-wrap: wrap; padding: 18px 16px; gap: 10px 14px; }
  .news-bar-label { border: 0; padding: 0; }
  .news-bar-item { flex-basis: 100%; order: 3; flex-wrap: wrap; gap: 6px 10px; }
  .news-bar-item a { white-space: normal; flex-basis: 100%; }
  .news-bar .link-arrow { margin-left: auto; }

  .ways, .cards, .toc { grid-template-columns: 1fr; }
  .page-hero { min-height: 300px; }
  .page-hero-body { width: calc(100% - 32px); padding: 36px 0 120px; }
  .page-hero::before { background: linear-gradient(180deg, rgba(15, 30, 50, .55), rgba(15, 30, 50, .35)); }
  .page-hero h1 { gap: 12px; }
  .page-hero p br { display: none; }
  .panel { padding: 22px 18px; }
  .overlap { margin-top: -90px; }
  .school-search { flex-direction: column; padding: 8px; }
  .school-search .btn { min-width: 0; }
  .school-grid { grid-template-columns: 1fr; gap: 10px; }
  .school-links { grid-template-columns: 1fr 1fr; }
  .ward-list { grid-template-columns: 1fr 1fr; max-height: 320px; }
  .region-block { grid-template-columns: 1fr; gap: 10px; padding: 14px 0; scroll-margin-top: 130px; }
  .region-name { padding-top: 0; }
  .pref-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pref-btn { font-size: .82rem; padding: 9px 4px; flex-direction: column; gap: 2px; }
  .line-grid { grid-template-columns: 1fr; gap: 6px; }
  .line-chip { font-size: .84rem; padding: 9px 10px; }
  .station-list { max-height: 360px; }
  .st-chip { font-size: .82rem; padding: 8px; }
  .cond-form { padding: 22px 18px; }
  .cond-grid { grid-template-columns: 1fr; gap: 22px; }
  .chk-grid { grid-template-columns: repeat(2, 1fr); }
  .cond-actions { grid-template-columns: 1fr; gap: 12px; }
  .cond-actions .btn-primary { order: -1; }

  .result-head { align-items: stretch; }
  .result-tools { width: 100%; }
  .result-tools .mini-select { flex: 1; }
  .prop-card { grid-template-columns: 1fr; }
  .prop-card-img { min-height: 0; aspect-ratio: 16 / 10; }
  .prop-card-body { padding: 18px; }
  .prop-facts { grid-template-columns: 1fr; gap: 8px; }
  .prop-card-foot .btn { flex: 1; }

  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .summary-price .price b { font-size: 2.2rem; }
  .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table th { border-bottom: 0; padding: 10px 14px 6px; }
  .spec-table td { padding: 6px 14px 12px; }
  .detail-cta { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .sticky-cta { display: grid; grid-template-columns: auto 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; padding: 10px 14px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); }
  body.has-sticky .pagetop { bottom: 80px; }
  body.has-sticky { padding-bottom: 70px; }

  .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .article { grid-template-columns: 1fr; padding: 20px; gap: 18px; }
  .news-item summary { grid-template-columns: auto 1fr auto; gap: 6px 12px; padding: 18px 4px; }
  .news-item h2 { grid-column: 1 / 3; grid-row: 2; }
  .news-item summary > [data-icon] { grid-row: 1 / 3; grid-column: 3; }
  .news-body { padding: 0 4px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .form-label { padding-top: 0; }
  .form-submit .btn { min-width: 0; width: 100%; }
  .admin-fields { grid-template-columns: 1fr 1fr; }
  .admin-fields .two { grid-column: 1 / -1; }
  .dyn-row { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-cta-btns { width: 100%; }
  .footer-cta-btns .btn { width: 100%; }
}

@media (max-width: 420px) {
  .header-actions { gap: 6px; }
  .ward-list { grid-template-columns: 1fr; }
  .school-links { grid-template-columns: 1fr; }
  .admin-fields { grid-template-columns: 1fr; }
  /* 「インターネット無料」など長い項目名は1列にして折り返しを防ぐ */
  .chk-grid.col-1 { grid-template-columns: 1fr; }
}

/* =========================================================
   学住リンクとは（コンテンツ）
   ========================================================= */
.lead-catch { font-family: var(--font-hand); font-weight: 600; color: var(--navy); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.6; text-align: center; letter-spacing: .06em; }
.about-intro { text-align: center; }
.about-intro .lead-catch { margin-bottom: 36px; }
.intro-text { font-size: 1.02rem; line-height: 2.1; }
.new-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.new-list li { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 150px; padding: 22px 10px; border-radius: 16px; background: var(--green-pale); color: var(--navy); font-weight: 900; font-size: 1.05rem; }
.new-list .icon { width: 34px; height: 34px; color: var(--green); }
.intro-and { font-family: var(--font-hand); font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--navy); margin-bottom: 36px; }
.intro-and b { color: var(--green-dark); font-weight: 600; }
.worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 40px; }
.worries li { position: relative; background: #fff; border: 2px solid var(--line-2); border-radius: 16px; padding: 20px 14px; font-weight: 700; color: var(--navy); line-height: 1.8; font-size: .95rem; }
.worries li::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 16px; height: 16px; background: #fff; border-right: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); transform: translateX(-50%) rotate(45deg); }
.lead-statement { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 2; color: var(--navy); padding: 28px 24px; border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); }
.lead-statement b { color: var(--green-dark); font-weight: 900; background: linear-gradient(transparent 62%, #d9eccd 62%); }

.feature-rows .feature-row p { color: var(--text); line-height: 2; }
.feature-rows .feature-row p + p { margin-top: 12px; }
.feature-ttl { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; color: var(--navy); line-height: 1.55; margin: 8px 0 18px; }
.feature-sub { display: inline-block; font-weight: 900; color: #fff !important; background: var(--green); padding: 4px 14px; border-radius: 4px; font-size: .9rem; margin-bottom: 14px; }
.em-line { font-weight: 900; color: var(--green-dark) !important; font-size: 1.08rem; }
.place-list { margin: 16px 0 18px; padding: 16px 20px; background: #fff; border-radius: 12px; display: grid; gap: 4px; }
.place-list li { position: relative; padding-left: 20px; font-family: var(--font-hand); font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.place-list li::before { content: ''; position: absolute; left: 2px; top: .75em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.check-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 18px; }
.check-chips li { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-radius: 10px; font-weight: 700; color: var(--navy); }
.check-chips .icon { color: var(--green); }

.message-box { border: 2px solid var(--green); border-radius: 24px; padding: 56px 48px 48px; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--green-pale-2) 100%); position: relative; }
.message-box::before { content: ''; position: absolute; inset: 8px; border: 1px dashed #b8d9a8; border-radius: 18px; pointer-events: none; }
.message-box .lead-catch { margin-bottom: 24px; }
.message-box p { line-height: 2.1; }
.link-pairs { display: grid; gap: 10px; margin: 24px auto; max-width: 520px; }
.link-pairs li { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 12px 16px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-sm); font-weight: 900; color: var(--navy); }
.link-pairs i { font-style: normal; color: var(--green); font-weight: 700; }
.message-hand { font-family: var(--font-hand); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--green-dark); margin-top: 36px; }
.message-sub { font-weight: 900; color: var(--navy); font-size: 1.1rem; margin-top: 10px; }
.message-end { margin-top: 18px; color: var(--navy); }
.message-logo { max-width: 230px; margin: 24px auto 0; }
.message-logo .logo-svg { width: 100%; }
.about-search { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.about-search .btn { min-width: 210px; }

/* =========================================================
   学生の暮らし情報（固定ページ）
   ========================================================= */
.life-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: none; }
.life-toc a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: .2s; height: 100%; }
.life-toc a:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.life-toc .no { grid-row: 1 / 3; font-family: var(--font-script); font-size: 2rem; color: var(--green); line-height: 1; }
.life-toc .cat { justify-self: start; }
.life-toc .t { font-weight: 700; color: var(--navy); font-size: .92rem; line-height: 1.6; }
.article { scroll-margin-top: 110px; }
.article-noimg { grid-template-columns: 1fr; }
.article-noimg > div:first-of-type { max-width: 760px; }
/* 各記事の上に横長の写真（カード幅いっぱい・高さを揃える） */
.article-banner { margin: 0 0 -12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 5; background: var(--green-pale); }
.article-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
@media (max-width: 760px) {
  .article-banner { aspect-ratio: 16 / 9; margin-bottom: -4px; border-radius: 10px; }
}
.article-label { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--green-dark); font-size: .9rem; }
.article-label .no { font-family: var(--font-script); font-size: 1.9rem; color: var(--green); line-height: 1; }
.list-lead { margin-top: 14px; font-weight: 700; color: var(--navy); }
.article .checklist { margin-top: 10px; margin-bottom: 14px; }
.checklist.cols-2 { grid-template-columns: repeat(2, 1fr); column-gap: 18px; }
.note-box { margin-top: 16px; padding: 14px 18px; border-radius: 10px; background: var(--green-pale); border-left: 4px solid var(--green); color: var(--navy) !important; font-weight: 700; line-height: 1.9; }
.article-wide > :nth-child(n+3) { grid-column: 1 / -1; }
.point-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.point-grid li { position: relative; padding: 18px 16px 16px; background: var(--bg-soft); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
.point-grid .pn { width: 30px; height: 30px; border-radius: 50%; background: var(--green-grad); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .9rem; }
.point-grid b { color: var(--navy); font-size: 1.02rem; }
.point-grid li > span:last-child { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { border: 1px solid #cfe4c5; border-radius: 14px; padding: 20px 22px; background: var(--green-pale-2); }
.compare-col h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.compare-col h3 .icon { color: var(--green); width: 1.4em; height: 1.4em; }
.compare-col .checklist { margin: 0; }
.note-box.wide { margin-top: 0; }

/* FAQ カテゴリナビ */
.faq-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; }
.faq-nav a { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .85rem; font-weight: 700; color: var(--navy); }
.faq-nav a:hover { border-color: var(--green); color: var(--green-dark); }
.faq-cat { scroll-margin-top: 110px; }

/* =========================================================
   TOP：想い／推薦・総合型選抜／暮らし情報一覧
   ========================================================= */
/* 想い：見出し＋画面幅いっぱいの3パネル */
.policy-wide { padding-top: 88px; background: #fff; }
.policy-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.policy-head .en { font-family: var(--font-script); color: var(--green); font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 10px; }
.policy-head h2 { font-family: var(--font-hand); font-weight: 600; color: var(--navy); font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.55; letter-spacing: .06em; }
.policy-head p { color: var(--muted); line-height: 2.1; padding-left: 24px; border-left: 3px solid var(--green); }
.policy-panels { display: flex; height: clamp(440px, 38vw, 600px); }
.policy-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; color: #fff; isolation: isolate; transition: flex .6s cubic-bezier(.2, .8, .2, 1); }
.policy-panel + .policy-panel { border-left: 1px solid rgba(255, 255, 255, .4); }
.policy-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s; }
.policy-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 41, 75, .05) 15%, rgba(19, 41, 75, .5) 50%, rgba(19, 41, 75, .92) 100%); }
.policy-panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: 12px; }
.policy-no { font-family: var(--font-script); font-size: 3.4rem; color: #c6eab3; line-height: 1; }
.policy-panel h3 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 900; line-height: 1.6; text-wrap: balance; }
.policy-panel p { color: rgba(255, 255, 255, .88); font-size: .92rem; line-height: 1.9; max-width: 30em; }
.policy-panel .link-arrow { color: #fff; align-self: flex-start; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .6); }
@media (hover: hover) and (min-width: 1001px) {
  .policy-panels:hover .policy-panel { flex-grow: .9; }
  .policy-panels .policy-panel:hover { flex-grow: 1.25; }
  .policy-panel:hover > img { transform: scale(1.05); }
}
/* フルワイド・枠なし */
/* 桜の写真をセクション全幅に敷き、空の部分に文章を重ねて境目をなくす
   （写真は左右反転：桜を左、空を右に配置） */
.early-banner { padding: 0; background: #e6eef9; }
.early-inner { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; color: var(--navy); }
.early-inner::after { content: 'New Life'; position: absolute; z-index: 0; right: 3%; bottom: -.16em; font-family: var(--font-script); font-size: clamp(5rem, 11vw, 10rem); line-height: 1; color: rgba(214, 112, 148, .13); white-space: nowrap; pointer-events: none; }
.early-img { position: absolute; z-index: 0; inset: 0; }
.early-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform: scaleX(-1); }
.early-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240, 245, 252, 0) 32%, rgba(240, 245, 252, .55) 58%, rgba(240, 245, 252, .78) 100%); }
.early-body { grid-column: 2; position: relative; z-index: 1; padding: 80px clamp(24px, 6vw, 96px) 80px clamp(8px, 2vw, 32px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.early-body h2 { text-shadow: 0 0 18px rgba(255, 255, 255, .9); }
.early-body h2::after { content: ''; display: block; width: 56px; height: 3px; border-radius: 2px; background: var(--green-grad); margin-top: 18px; }
.early-body > * { max-width: 600px; }
.early-label { display: inline-block; align-self: flex-start; background: var(--green-grad); color: #fff; font-weight: 900; font-size: .85rem; letter-spacing: .03em; padding: 6px 16px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.early-body h2 { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.55; color: var(--navy); }
.early-body p { color: var(--text); line-height: 2; text-shadow: 0 0 10px rgba(255, 255, 255, .9); }
.early-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.early-btns .btn-outline { background: rgba(255, 255, 255, .85); color: var(--navy); border-color: var(--line-2); }
.early-btns .btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.topic-list { margin-top: 28px; background: #fff; border-radius: var(--radius-lg); padding: 8px 24px; }
.topic-list li + li { border-top: 1px solid var(--line); }
.topic-list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-weight: 700; color: var(--navy); }
.topic-list a:hover { color: var(--green-dark); }
.topic-list .no { font-family: var(--font-script); color: var(--green); font-size: 1.5rem; line-height: 1; flex: none; width: 2em; }

@media (max-width: 1000px) {
  .point-grid { grid-template-columns: repeat(2, 1fr); }
  .policy-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .policy-panels { flex-direction: column; height: auto; }
  .policy-panel { flex: none; min-height: 340px; }
  .policy-panel + .policy-panel { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .4); }
  /* タブレット・スマホ：横長の桜写真を上に置き、下の空色背景へフェード */
  .early-inner { grid-template-columns: 1fr; min-height: 0; }
  .early-img { position: relative; inset: auto; width: 100%; height: 0; padding-top: 48%; }
  .early-img::after { background: linear-gradient(180deg, rgba(230, 238, 249, 0) 45%, rgba(230, 238, 249, .8) 80%, #e6eef9 100%); }
  .early-body { grid-column: auto; margin-top: -70px; padding: 0 clamp(22px, 6vw, 56px) 56px; }
}
@media (max-width: 760px) {
  .worries { grid-template-columns: 1fr; gap: 20px; }
  .new-list li { width: calc(33.333% - 10px); padding: 16px 6px; font-size: .92rem; }
  .new-list { gap: 10px; }
  .intro-text br, .lead-statement br { display: none; }
  .lead-statement { padding: 22px 6px; }
  .check-chips { grid-template-columns: 1fr; }
  .message-box { padding: 40px 20px 32px; border-radius: 18px; }
  .message-box br { display: none; }
  .about-search .btn { min-width: 0; width: 100%; }
  .life-toc { grid-template-columns: 1fr; }
  .point-grid, .compare { grid-template-columns: 1fr; }
  .checklist.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 10px; }
  .article p br { display: none; }
  .note-box br { display: none; }
  .policy-wide { padding-top: 60px; }
  .policy-head p { padding-left: 16px; }
  .policy-head p br { display: none; }
  .policy-panel { min-height: 300px; }
  .policy-panel-body { padding: 26px 22px; gap: 8px; }
  .policy-no { font-size: 2.8rem; }
  .early-img { padding-top: 56%; }
  .early-body { margin-top: -48px; padding: 0 22px 48px; }
  .early-inner::after { font-size: 4.5rem; }
  .early-btns .btn { width: 100%; }
  .topic-list { padding: 4px 16px; }
  .topic-list a { font-size: .9rem; }
  .faq-nav { margin-top: 0; }
}
@media (max-width: 420px) {
  .checklist.cols-2 { grid-template-columns: 1fr; }
}

/* =========================================================
   TOP：学生の暮らし情報（大きな1本＋横長2本のマガジン型）
   ========================================================= */
.life-mag { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.life-meta { display: flex; align-items: baseline; gap: 12px; }
.life-no { font-family: var(--font-script); font-size: 2.6rem; line-height: 1; color: var(--green); }
.life-cat { position: relative; padding-left: 18px; font-size: .8rem; font-weight: 900; letter-spacing: .08em; color: var(--green-dark); }
.life-cat::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 2px; background: currentColor; }
.life-more { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--green-dark); margin-top: auto; }
.life-more .icon { width: 1em; height: 1em; transition: transform .25s; }

/* 大きな記事 */
.life-feat { position: relative; display: block; min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; box-shadow: var(--shadow-sm); isolation: isolate; }
.life-feat > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; z-index: -2; }
.life-feat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 41, 75, 0) 30%, rgba(19, 41, 75, .55) 60%, rgba(19, 41, 75, .92) 100%); }
.life-feat-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 36px; display: flex; flex-direction: column; gap: 10px; }
.life-feat .life-no { font-size: 3.6rem; color: #c6eab3; }
.life-feat .life-cat { color: #fff; }
.life-feat h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 900; line-height: 1.55; }
.life-feat p { color: rgba(255, 255, 255, .88); font-size: .92rem; }
.life-feat .life-more { color: #fff; margin-top: 4px; padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .6); align-self: flex-start; }
.life-feat:hover > img { transform: scale(1.05); }

/* 横長の記事 */
.life-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.life-row { display: grid; grid-template-columns: 40% 1fr; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.life-row-img { position: relative; min-height: 200px; overflow: hidden; }
.life-row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s; }
.life-row-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.life-row h3 { font-size: 1.04rem; font-weight: 900; color: var(--navy); line-height: 1.6; }
.life-row p { font-size: .86rem; color: var(--muted); line-height: 1.8; }
.life-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.life-row:hover .life-row-img img { transform: scale(1.06); }
.life-feat:hover .life-more .icon, .life-row:hover .life-more .icon { transform: translateX(4px); }

@media (max-width: 1000px) {
  .life-mag { grid-template-columns: 1fr; }
  .life-feat { min-height: 400px; }
}
@media (max-width: 760px) {
  .life-mag, .life-side { gap: 16px; }
  .life-feat { min-height: 360px; }
  .life-feat-body { padding: 24px 20px; }
  .life-feat .life-no { font-size: 3rem; }
  .life-feat h3 br { display: none; }
  .life-row { grid-template-columns: 112px 1fr; }
  .life-row-img { min-height: 0; }
  .life-row-body { padding: 16px 16px 14px; gap: 4px; }
  .life-row .life-no { font-size: 2rem; }
  .life-row h3 { font-size: .95rem; }
  .life-row p { display: none; }
}

/* =========================================================
   スマホ表示の改行調整
   1〜2文字だけが次の行に残る「泣き別れ」を防ぐ
   ========================================================= */
@media (max-width: 760px) {
  /* 文節（意味のまとまり）単位で改行する */
  body { word-break: auto-phrase; }

  /* 見出し・ボタン・ラベルは各行の文字数を均等に分配 */
  h1, h2, h3,
  .btn, .sb-tab, .filter-tab, .pref-tab, .line-chip, .text-btn,
  .ttl-bar, .step-label, .form-label, .sec-head h2, .sec-head .en,
  .school-card-name, .faq-item summary, .news-item h2, .faq-cat h2,
  .prop-card h2, .article h2, .card-body h3, .way h3, .step h3,
  .detail-head h1, .detail-sec h2, .result-head h1, .footer-cta-title,
  .news-bar-item a, .empty h2, .form-done h2, .detail-cta h2,
  .school-acc-card .nm, .contact-side h2, .admin-item b, .concept h2 {
    text-wrap: balance;
  }

  /* 本文は最終行が極端に短くならないように調整 */
  p, li, dd, td, th, figcaption, .desc, .hint, .sb-note,
  .card-body p, .way p, .step p, .article p, .faq-body, .news-body {
    text-wrap: pretty;
  }

  /* チェックボックスの項目名が1文字だけ折り返さないよう余白と文字を調整 */
  .cond-form { padding: 20px 14px; }
  .chk-grid { gap: 6px 10px; }
  .chk { font-size: .82rem; letter-spacing: 0; }

  /* 文字数が多く泣き別れしやすい箇所は文字サイズを微調整 */
  .page-hero p { font-size: .92rem; letter-spacing: .02em; }
  .sec-head p { font-size: .9rem; }
  .facts-list { font-size: .84rem; column-gap: 14px; }
  .summary-table { font-size: .88rem; }
  .summary-table th { width: 84px; font-size: .82rem; }
  .school-acc-card { padding: 16px; }
  .prop-card .addr, .school-card-name small { letter-spacing: .01em; }

  /* ボタン・タグ・バッジなど短い文字列は折り返さない */
  .badge, .cat, .tag, .way-flow span, .flow-steps li,
  .btn-sm, .mini-select, .school-acc-card .tm,
  .access-hl li b, .price, .result-count b {
    text-wrap: nowrap;
  }
}

/* 追加　*/

.txtCenter {
	text-align:center !important;
}

.txtRight {
	text-align:right !important;
}

.txtLeft {
	text-align:left !important;
}

.fsMasu {
	font-size:90%;
}

/* privacyFrame */ 

.privacyFrame {
	box-sizing: border-box;
	width:90%;
	margin:2em auto;
	padding:2em;
	background:#F6F6F6;
	height:250px;
	overflow-y: auto;
	font-size:90%;
}



.privacyFrame h3 {
	text-shadow:none;
	text-align:left;
	font-size:1.4em;
	padding:0;
	margin-bottom:0.8em;
}

.privacyFrame h4 {
	text-shadow:none;
	text-align:left;
	font-size:1.2em;
	padding:0;
	margin:0.8em 0 0.4em 0;
}

.privacyFrame p {
	margin-bottom:1em;
}


/* --- スマホ表示時の動的行（駅・学校追加パーツ）のレイアウト改善 --- */
@media screen and (max-width: 768px) {
  /* 行全体の枠 */
  .dyn-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: #f8fafc !important;
    padding: 14px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    align-items: stretch !important;
  }

  /* 入力欄とセレクトボックスの横幅をいっぱいにする */
  .dyn-row select,
  .dyn-row input[type="text"],
  .dyn-row .select,
  .dyn-row .input {
    width: 100% !important;
    flex: 1 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 「数値入力欄」と「分」を横並びにするレイアウト（学校用） */
  .dyn-row input[type="text"] + span,
  .dyn-row input[type="number"] + span,
  .dyn-row .minute-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /* 分数入力欄の最後の行（入力欄 ＋ 分 ＋ 削除ボタン）の配置調整 */
  .dyn-row > input:last-of-type,
  .dyn-row > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* 最寄り駅・徒歩分数で、3番目の入力欄（数値）の右側に「分」を表示させる */
  .st-row input:nth-of-type(2),
  .dyn-row:not(:has(select:nth-of-type(2))) input[name*="st_walk"] {
    display: inline-block !important;
  }

  /* 削除ボタン（×）を右寄せ・または中央寄せにする */
  .dyn-row .del {
    margin-top: 4px !important;
    align-self: center !important;
    flex: none !important;
    width: 40px !important;
    height: 40px !important;
  }
}