/* =====================================================
   OMU I-Dorm Sugimoto ファーストビュー 案B2（2026-10-08）
   参考：wasedalife.com（型のそろえ方・抑えた色・申込は1つだけ色付き）
         keiolife.jp（実写の大きな写真・品のある文字組み）
   ・色はゴールド（大学色：申込・リンク・印）＋アクセントの濃紺（濃い面）＋白・グレー。2026-10-08 確定
   ・文字は太さ 400〜700。極太は使わない
   ・値はこの :root だけに置く
   ===================================================== */
:root {
  --white: #ffffff;
  --ink: #212121;
  --muted: #666b6d;
  --line: #e4e6e6;
  --gray: #f4f5f5;
  /* 基調色＝大阪公立大学のゴールド（公式サイトのボタン・リンク色 #AC8322 に合わせ、白文字が読める濃さに） */
  --accent: #a07a1e;
  --accent-deep: #85651a;
  --accent-soft: #eee3c7;
  --accent-pale: #f7f2e4;
  --gold: #c9a92b;      /* 大学ロゴの金。小さな印だけ */
  --dark: #1e2f4b;      /* アクセント＝濃紺。申込バー・RAの段・フッターなど濃い面だけ（2026-10-08 ゴールド＋アクセント1色） */
  --dark-soft: #2a3d5c;
  --line-green: #06c755;
  --on-dark-muted: rgba(255, 255, 255, .84);
  --on-dark-fill: rgba(255, 255, 255, .14);
  --on-dark-fill-hover: rgba(255, 255, 255, .24);
  --shade: linear-gradient(90deg, rgba(14, 22, 24, .72) 0%, rgba(14, 22, 24, .45) 38%, rgba(14, 22, 24, .05) 70%), linear-gradient(0deg, rgba(14, 22, 24, .3) 0%, rgba(14, 22, 24, 0) 28%);
  --shade-sp: linear-gradient(0deg, rgba(14, 22, 24, .82) 0%, rgba(14, 22, 24, .45) 48%, rgba(14, 22, 24, .05) 82%);

  --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic Medium", sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;
  --header-h: 80px;
  --gutter: 40px;
  --content: 1200px;
  --radius: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --slide-time: 6s;
}
@media (max-width: 1000px) { :root { --header-h: 64px; --gutter: 20px; } }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-ja); font-weight: 400; color: var(--ink); background: var(--white); line-height: 1.8; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p, h1, h2, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, .slide__title { word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
  color: var(--accent); background: var(--accent-pale); border-radius: 999px;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--accent-soft); }
.btn--primary { color: var(--white); background: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn__arrow { position: relative; width: 14px; height: 1.5px; background: currentColor; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn__arrow::after { content: ""; position: absolute; right: 0; top: -3.5px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
a:hover > .btn__arrow { transform: translateX(3px); }
.btn__line { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- ヘッダー ---------- */
.hd {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 40px;
  height: var(--header-h); padding: 0 var(--gutter);
  background: var(--white);
}
.hd__logo img { display: block; height: 44px; width: auto; }
.hd__nav { display: flex; gap: 32px; margin-left: auto; }
.hd__nav a { position: relative; padding: 6px 0; font-size: 14px; font-weight: 500; letter-spacing: .08em; }
.hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hd__nav a:hover::after { transform: scaleX(1); }
.hd__actions { display: flex; align-items: center; gap: 6px; }
.hd__icon { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 64px; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--accent); }
.hd__icon svg { width: 24px; height: 24px; }
.hd__icon:hover { opacity: .7; }
.hd__apply { margin-left: 10px; height: 44px; }
.hd__menu { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.hd__menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s, top .3s; }
.hd__menu span:nth-child(1) { top: 15px; }
.hd__menu span:nth-child(2) { top: 21px; }
.hd__menu span:nth-child(3) { top: 27px; }
.is-menu-open .hd__menu span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-menu-open .hd__menu span:nth-child(2) { opacity: 0; }
.is-menu-open .hd__menu span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1320px) { .hd { gap: 28px; } .hd__nav { gap: 22px; } .hd__nav a { font-size: 13px; letter-spacing: .04em; } }
@media (max-width: 1180px) { .hd__icon { width: 56px; } .hd__nav { gap: 16px; } }
@media (max-width: 1000px) {
  .hd { gap: 4px; padding: 0 8px 0 16px; }
  .hd__logo img { height: 32px; }
  .hd__nav, .hd__actions { display: none; } /* スマホのヘッダーはロゴとメニューだけ（2026-10-08 決定） */
  .hd__menu { margin-left: auto; }
  .hd__actions { margin-left: auto; }
  .hd__icon { width: 48px; }
  .hd__menu { display: block; }
}

/* スマホのメニュー */
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 19; padding: 8px var(--gutter) 32px; overflow-y: auto; background: var(--white); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
.is-menu-open { overflow: hidden; }
.is-menu-open .drawer { opacity: 1; visibility: visible; transform: none; }
.drawer__nav { margin-bottom: 24px; }
.drawer__nav a { display: flex; justify-content: space-between; align-items: center; padding: 17px 4px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer__nav a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); }

/* 申込4つ（同じ大きさ。差は塗りだけ） */
.cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cta-grid .btn { width: 100%; min-width: 0; height: 54px; padding: 0 12px; }
.cta-grid.is-on-dark .btn { color: var(--white); background: var(--on-dark-fill); }
.cta-grid.is-on-dark .btn:hover { background: var(--on-dark-fill-hover); }
.cta-grid.is-on-dark .btn--primary { color: var(--white); background: var(--accent); }
.cta-grid.is-on-dark .btn--primary:hover { background: var(--accent-deep); }

/* ---------- ファーストビュー ---------- */
.fv { position: relative; display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); min-height: 640px; max-height: 960px; color: var(--white); overflow: hidden; }
.fv__slides { position: relative; flex: 1; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__photo { position: absolute; inset: 0; background: center 45% / cover no-repeat; transform: scale(1.06); transition: transform 8s ease-out; }
.slide.is-active .slide__photo { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: var(--shade); }
.slide__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; height: 100%; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.slide__body > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.is-active .slide__body > * { opacity: 1; transform: none; }
.slide.is-active .slide__body > :nth-child(2) { transition-delay: .15s; }
.slide.is-active .slide__body > :nth-child(3) { transition-delay: .3s; }
.slide__tag { display: flex; align-items: center; gap: 14px; font-family: var(--font-en); font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--on-dark-muted); }
.slide__tag b { padding: 3px 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--ink); background: var(--gold); border-radius: 999px; }
.slide__title { margin-top: 26px; font-size: clamp(34px, 3.4vw, 50px); font-weight: 700; line-height: 1.45; letter-spacing: .06em; }
.slide__title small { display: block; margin-bottom: 10px; font-size: 18px; font-weight: 500; letter-spacing: .12em; color: var(--on-dark-muted); }
.slide__lead { margin-top: 22px; font-size: 16px; line-height: 2; color: var(--on-dark-muted); }
.slide__note { position: absolute; right: 16px; top: 12px; z-index: 1; font-size: 11px; color: var(--on-dark-muted); }

/* 番号と進み具合の線（早稲田の型） */
.fv__pager { position: absolute; z-index: 2; right: var(--gutter); bottom: 132px; display: flex; gap: 18px; }
.fv__pager button { display: flex; flex-direction: column; gap: 8px; width: 64px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--on-dark-muted); text-align: left; }
.fv__pager span { font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .1em; }
.fv__pager i { position: relative; display: block; height: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.fv__pager i::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.fv__pager .is-active { color: var(--white); }
.fv__pager .is-active i::after { animation: pager var(--slide-time) linear forwards; }
@keyframes pager { to { transform: scaleX(1); } }

/* 下端の申込バー */
.fv__bar { position: relative; z-index: 2; background: var(--dark); }
.fv__bar-inner { display: flex; align-items: center; gap: 40px; max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 24px var(--gutter); }
.fv__bar-text { font-size: 17px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; white-space: nowrap; }
.fv__bar-text small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--on-dark-muted); }
.fv__bar .cta-grid { margin-left: auto; grid-template-columns: repeat(4, 180px); }

@media (max-width: 1000px) {
  /* スマホ：ヘッダー＋スライド＋申込バーで、どの端末でもちょうど1画面（svh＝アドレスバーを出した状態の高さ） */
  .fv { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 0; max-height: none; }
  .fv__slides { flex: 1; min-height: 0; }
  .slide::after { background: var(--shade-sp); }
  .slide__body { justify-content: flex-end; padding-bottom: 64px; }
  .slide__title { margin-top: 18px; font-size: min(28px, 6vw); letter-spacing: 0; } /* 画面幅に合わせ、1行の文が途中で割れない大きさに */
  .slide__title small { font-size: 14px; }
  .slide__lead { margin-top: 14px; font-size: 14px; }
  .fv__pager { left: var(--gutter); right: auto; bottom: 24px; gap: 12px; }
  .fv__pager button { width: 48px; }
  .fv__bar-inner { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px var(--gutter); }
  .fv__bar-text { font-size: 15px; }
  .fv__bar .cta-grid { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid .btn { height: 50px; font-size: 13px; }
}

/* ---------- お知らせ ---------- */
.news { padding: 56px var(--gutter) 64px; background: var(--white); border-bottom: 1px solid var(--line); }
.news__inner { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: var(--content); margin: 0 auto; }
.news__en { font-family: var(--font-en); font-size: 36px; font-weight: 500; letter-spacing: .06em; line-height: 1.2; }
.news__ja { margin-top: 4px; font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.news__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; font-weight: 700; color: var(--accent); }
.news__list li + li { border-top: 1px solid var(--line); }
.news__list a { display: grid; grid-template-columns: 128px auto 1fr 24px; grid-template-rows: 1fr auto auto 1fr; align-items: center; column-gap: 24px; padding: 18px 8px 18px 4px; font-size: 16px; transition: color .2s, background-color .2s; }
/* PC：写真｜1行目に日付・分類、2行目に題名｜右端に矢印。写真と文章は高さの中央でそろえる（2026-10-08） */
.news__list a > .news__ph { grid-row: 1 / 5; grid-column: 1; }
.news__list a > time { grid-row: 2; grid-column: 2; }
.news__list a > .news__cat { grid-row: 2; grid-column: 3; }
.news__list a > p { grid-row: 3; grid-column: 2 / 4; margin-top: 8px; font-weight: 500; line-height: 1.7; }
.news__list a::after { content: ""; grid-row: 1 / 5; grid-column: 4; justify-self: end; width: 9px; height: 9px; border-top: 1.5px solid var(--accent); border-right: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform .25s var(--ease); }
.news__list a:hover::after { transform: translateX(4px) rotate(45deg); }
.news__list a:hover { background: var(--gray); }
.news__ph { display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--gray) center / cover no-repeat; } /* 左に写真（2026-10-08） */
.news__list a:hover { color: var(--accent); }
.news__list time { font-family: var(--font-en); font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.news__cat { margin-left: -12px; }
.news__cat { justify-self: start; padding: 1px 10px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-pale); border-radius: 999px; }
@media (max-width: 1000px) {
  .news { padding: 40px var(--gutter) 48px; }
  .news__inner { grid-template-columns: 1fr; gap: 16px; }
  .news__head { display: flex; align-items: baseline; gap: 12px; }
  .news__en { font-size: 26px; }
  .news__more { margin: 0 0 0 auto; }
  /* スマホ：左に写真、右に日付・分類・題名 */
  /* 写真と右の文章は高さの中央でそろえる（上下に伸びる空き行で挟む） */
  .news__list a { grid-template-columns: 104px auto 1fr; grid-template-rows: 1fr auto auto 1fr; align-items: center; gap: 0 10px; padding: 16px 0; font-size: 14px; }
  .news__list a::after { display: none; }
  .news__list a > .news__cat { grid-column: 3; margin-left: 0; }
  .news__list a > p { grid-column: 2 / -1; font-weight: 400; }
  .news__list a:hover { background: none; }
  .news__ph { grid-row: 1 / 5; }
  .news__list time, .news__cat { grid-row: 2; }
  .news__list p { grid-row: 3; margin-top: 6px; }
  .news__list time { font-size: 12px; }
  .news__cat { justify-self: start; }
  .news__list p { grid-column: 2 / -1; line-height: 1.7; }
}

@media (max-width: 1000px) and (max-height: 720px) {
  .fv__bar-text small { display: none; }
  .fv__bar-inner { gap: 10px; padding: 14px var(--gutter) 16px; }
  .fv__bar .cta-grid .btn { height: 46px; }
  .slide__lead { display: none; }
  .slide__body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide__photo, .slide__body > * { transition: none !important; }
  .fv__pager .is-active i::after { animation: none; transform: scaleX(1); }
}

/* ---------- 改行の全体ルール（2026-10-08 一括修正） ----------
   本文：行頭の小書き文字・1文字だけの行を避ける／見出し・吹き出し・カードの短文：語の途中で割らず行の長さをそろえる
   数字＋単位・固有名詞は .nw で改行させない。必要な所は HTML に <wbr> */
body { line-break: strict; word-break: auto-phrase; overflow-wrap: anywhere; } /* 本文は文節で改行（Chrome 119〜。未対応のブラウザは通常の改行） */
p, li, dd, td, th, figcaption, .text { text-wrap: pretty; }
/* 語の途中で割らない（短いラベル・見出し。区切りたい所は HTML の <wbr>） */
h1, h2, h3, .sec-head__ja, .slide__title, .overlap__title, .cards3 h3, .flow h3, .voices__bubble, .fac__t, .acc__title, .fpt__title span,
.guide__t, .places h3, .ra-roles h3, .day__body h3, .news__list p, .ra2__catch, .cv__lead, .m5__sub, .ovx-facts span, .lc-cards__name, .tbl th, .tbl td small, .ov-price__label small, .thumbs figcaption, .fpt__key {
  word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance;
}
/* 文になっている短文は、行の長さだけそろえる（句読点の禁則は line-break: strict に任せる） */
.guide__d, .places h3 + p, .fi-cmp__list p, .sub-lead, .summit-facts li, .fwe__lead { text-wrap: balance; }
.nw { white-space: nowrap; }

.fv__pager button { padding: 9px 0; }

/* 文字入りの横長バナーは切らずに全体を見せる（2026-10-08） */
.news__ph.is-banner { background-size: contain; background-color: #e9ecee; }
