:root {
  --fo-ink: #10243e;
  --fo-muted: #60738a;
  --fo-blue: #0b5cff;
  --fo-cyan: #18c7e8;
  --fo-sun: #ffcc4d;
  --fo-surface: #f4f9ff;
  --fo-line: rgba(21, 77, 126, 0.14);
}

body:has(.fo-home), body:has(.fo-character-page) { background: #fff; color: var(--fo-ink); }
.fo-preview-header { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 24px 0; color: #fff; }
.fo-preview-header strong { font-size: 22px; letter-spacing: .08em; }
.fo-preview-header nav { display: flex; gap: 28px; }
.fo-preview-header a { color: #fff; font-size: 14px; font-weight: 700; }
.fo-home *, .fo-character-page * { box-sizing: border-box; }
.fo-home img, .fo-character-page img { max-width: 100%; }
.fo-home article, .fo-character-page article { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.fo-hero { position: relative; min-height: 760px; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: #113c73; }
.fo-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; z-index: -3; }
.fo-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,25,52,.88) 0%, rgba(5,25,52,.56) 38%, rgba(5,25,52,.05) 72%), linear-gradient(0deg, rgba(5,25,52,.72) 0%, transparent 45%); }
.fo-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; z-index: -1; background: #fff; clip-path: polygon(0 72%, 14% 48%, 29% 76%, 45% 42%, 62% 68%, 78% 36%, 100% 62%, 100% 100%, 0 100%); }
.fo-hero article { padding: 180px 0 150px; }
.fo-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #8df1ff; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.fo-kicker::before { content: ""; width: 34px; height: 3px; background: var(--fo-cyan); border-radius: 99px; }
.fo-hero h1 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(54px, 8vw, 108px); line-height: .9; letter-spacing: -.065em; word-break: keep-all; text-shadow: 0 8px 30px rgba(0,0,0,.22); }
.fo-hero h1 span { display: block; color: var(--fo-sun); }
.fo-hero__copy { max-width: 600px; margin: 28px 0 0; color: rgba(255,255,255,.9); font-size: 19px; line-height: 1.75; }
.fo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff; font-size: 15px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.fo-btn:hover { transform: translateY(-2px); }
.fo-btn--primary { border-color: var(--fo-sun); background: var(--fo-sun); color: #18283c; box-shadow: 0 12px 28px rgba(255,204,77,.28); }

.fo-section { padding: 100px 0; }
.fo-section--tint { background: var(--fo-surface); }
.fo-section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.fo-section__head p { margin: 0 0 8px; color: var(--fo-blue); font-size: 13px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.fo-section__head h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.03; letter-spacing: -.045em; }
.fo-text-link { color: var(--fo-ink); font-weight: 800; border-bottom: 2px solid var(--fo-cyan); padding-bottom: 4px; white-space: nowrap; }

.fo-update-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.fo-update-card { min-width: 0; overflow: hidden; border: 1px solid var(--fo-line); border-radius: 24px; background: #fff; box-shadow: 0 18px 46px rgba(35,74,112,.09); transition: transform .25s ease, box-shadow .25s ease; }
.fo-update-card:hover { transform: translateY(-6px); box-shadow: 0 24px 54px rgba(35,74,112,.15); }
.fo-update-card__media { aspect-ratio: 2/1; overflow: hidden; background: #dcecff; }
.fo-update-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fo-update-card:hover .fo-update-card__media img { transform: scale(1.035); }
.fo-update-card__body { padding: 24px; }
.fo-update-card__meta { display: flex; align-items: center; gap: 10px; color: var(--fo-blue); font-size: 13px; font-weight: 800; }
.fo-update-card__meta span { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #eaf2ff; }
.fo-update-card h3 { margin: 15px 0 10px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.fo-update-card p { margin: 0; color: var(--fo-muted); font-size: 15px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fo-empty { grid-column: 1/-1; padding: 52px; text-align: center; border: 1px dashed #a7bdd4; border-radius: 24px; color: var(--fo-muted); background: #fff; }

.fo-feature-band { padding: 72px 0; background: var(--fo-ink); color: #fff; }
.fo-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; overflow: hidden; }
.fo-feature { padding: 30px 26px; background: var(--fo-ink); }
.fo-feature strong { display: block; margin-bottom: 10px; color: var(--fo-sun); font-size: 28px; }
.fo-feature h3 { margin: 0 0 8px; font-size: 18px; }
.fo-feature p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.55; }

.fo-character-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.fo-character-tile { position: relative; min-height: 430px; overflow: hidden; border-radius: 24px; background: #dff1ff; }
.fo-character-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fo-character-tile:hover img { transform: scale(1.035); }
.fo-character-tile span { position: absolute; left: 18px; bottom: 18px; padding: 9px 15px; border-radius: 999px; background: rgba(10,32,58,.84); color: #fff; font-size: 16px; font-weight: 800; backdrop-filter: blur(8px); }

.fo-notice-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.fo-notice-intro h2 { margin: 0 0 16px; font-size: clamp(34px,5vw,58px); line-height: 1; letter-spacing: -.04em; }
.fo-notice-intro p { color: var(--fo-muted); font-size: 16px; line-height: 1.7; }
.fo-notice-list { border-top: 2px solid var(--fo-ink); }
.fo-notice-row { display: grid; grid-template-columns: 94px 1fr 100px; gap: 20px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--fo-line); color: var(--fo-ink); }
.fo-notice-row b { color: var(--fo-blue); font-size: 13px; }
.fo-notice-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.fo-notice-row time { color: var(--fo-muted); font-size: 13px; text-align: right; }

.fo-character-page { padding-bottom: 80px; background: var(--fo-surface); }
.fo-character-page .s_visual { min-height: 440px; background: linear-gradient(120deg, rgba(8,33,65,.92), rgba(11,92,255,.55)), url('/assets/images/hero-cast.png') center 42%/cover no-repeat; }
.fo-character-page .s_visual .text_wrap { color: #fff; }
.fo-character-page .s_01 .wrap { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; padding-top: 72px; }
.fo-character-page .s_01 figure { width: auto !important; margin: 0 !important; overflow: hidden; border: 1px solid var(--fo-line); border-radius: 24px; background: #fff; box-shadow: 0 18px 46px rgba(35,74,112,.08); }
.fo-character-page .s_01 figure .img_wrap { height: 560px !important; background: #dff1ff; }
.fo-character-page .s_01 figure .img_wrap > img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.fo-character-page .s_01 figure figcaption { padding: 24px 26px; }
.fo-character-page .s_01 figure .detail { position: static !important; display: block !important; width: auto !important; height: auto !important; padding: 0 26px 28px; opacity: 1 !important; visibility: visible !important; background: transparent !important; }
.fo-character-page .s_01 figure .detail dt { display: none; }
.fo-character-page .s_01 figure .detail dd { color: var(--fo-muted); }
.fo-character-page .s_01 figure .detail .c_info { display: flex; gap: 10px; margin-bottom: 14px; }
.fo-character-page .s_01 figure .detail .c_info p { margin: 0; padding: 7px 10px; border-radius: 999px; background: #edf5ff; font-size: 13px; }
.fo-character-page .s_01 figure .detail .store { font-size: 15px; line-height: 1.7; }

@media (max-width: 980px) {
  .fo-hero { min-height: 680px; }
  .fo-hero::before { background: linear-gradient(0deg, rgba(5,25,52,.93) 0%, rgba(5,25,52,.55) 68%, rgba(5,25,52,.1) 100%); }
  .fo-hero article { padding-top: 300px; }
  .fo-update-grid { grid-template-columns: 1fr 1fr; }
  .fo-update-card:first-child { grid-column: 1/-1; }
  .fo-feature-grid, .fo-character-strip { grid-template-columns: 1fr 1fr; }
  .fo-character-tile { min-height: 500px; }
  .fo-notice-panel { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .fo-preview-header nav { display: none; }
  .fo-home article, .fo-character-page article { width: min(100% - 24px,1180px); }
  .fo-hero { min-height: 660px; }
  .fo-hero__image { object-position: 57% 50%; }
  .fo-hero article { padding: 290px 0 118px; }
  .fo-hero h1 { font-size: 48px; line-height: .94; }
  .fo-hero__copy { font-size: 16px; }
  .fo-section { padding: 72px 0; }
  .fo-section__head { align-items: start; flex-direction: column; }
  .fo-update-grid, .fo-feature-grid, .fo-character-strip, .fo-character-page .s_01 .wrap { grid-template-columns: 1fr; }
  .fo-update-card:first-child { grid-column: auto; }
  .fo-character-tile { min-height: 460px; }
  .fo-notice-row { grid-template-columns: 76px 1fr; }
  .fo-notice-row time { display: none; }
  .fo-character-page .s_01 figure .img_wrap { height: 470px !important; }
}
