:root {
  --blue: #1d67cd;
  --sky: #5ec4f5;
  --sky-deep: #3aa8e8;
  --navy: #071a36;
  --deep: #04101f;
  --ink: #172031;
  --yellow: #f6d859;
  --gold: #e0ac2b;
  --orange: #bd5e1c;
  --paper: #eef8ff;
  --parchment: #fff9ec;
  --line: #dfe5ed;
  --pixel: "DotGothic16", "Noto Sans JP", sans-serif;
  --sky-art: url("assets/images/3e7ec0_28834af430514fc18cfee1b09ea4cf4b~mv2.jpeg");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; background: var(--sky); }
body { position: relative; margin: 0; color: var(--ink); font-family: "Noto Sans JP", sans-serif; font-size: 17px; line-height: 1.8; background: transparent; }

/* 背景層：固定の青空ドット（前面のパネルが上に乗る） */
body::before {
  position: fixed; inset: 0; z-index: -2; content: "";
  background: var(--sky-art) center center / cover no-repeat;
  image-rendering: pixelated;
}
body::after {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; content: "";
  background-image:
    radial-gradient(rgba(255, 255, 255, .6) 1.2px, transparent 1.2px),
    radial-gradient(rgba(255, 255, 255, .3) 1px, transparent 1px);
  background-position: 0 0, 14px 20px;
  background-size: 30px 30px, 42px 42px;
  opacity: .4;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* ドラクエ風コマンドウィンドウ（黒地＋白枠＋外側の縁取り） */
.dq-window {
  position: relative;
  padding: 24px 26px;
  color: #fff;
  background: var(--deep);
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--deep), 7px 8px 0 rgba(4, 16, 31, .35);
}
.win-cursor { position: absolute; right: 15px; bottom: 8px; color: #fff; font: 13px var(--pixel); animation: blink 1.05s steps(1, end) infinite; }

.site-header { position: fixed; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 20px 5vw; color: white; transition: background .3s ease, padding .3s ease, box-shadow .3s ease; }
.site-header.is-scrolled { padding: 12px 5vw; background: rgba(4, 16, 31, .93); box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .8); }
.header-start { display: flex; align-items: center; gap: 20px; }
.header-end { display: flex; align-items: center; gap: 18px; }
.header-social { margin: 0; gap: 10px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 700; }
.header-social a {
  width: 34px; height: 34px;
  color: var(--navy); background: var(--yellow);
  border: 2px solid #fff; border-radius: 7px;
  box-shadow: 0 0 0 2px var(--navy);
}
.header-social a:hover { color: var(--yellow); background: var(--deep); }
.header-social svg { width: 16px; height: 16px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font: 400 28px var(--pixel); letter-spacing: .08em; text-shadow: 2px 2px 0 rgba(4, 16, 31, .7); }
.brand-logo { width: auto; height: 40px; object-fit: contain; image-rendering: auto; filter: drop-shadow(2px 2px 0 rgba(4, 16, 31, .5)); }
.footer-logo { height: 44px; filter: none; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border: 2px solid currentColor; font: 11px var(--pixel); letter-spacing: 0; text-shadow: none; }
.site-nav a { position: relative; transition: color .2s; text-shadow: 1px 1px 0 rgba(4, 16, 31, .6); }
.site-nav a:not(.nav-contact)::before {
  position: absolute; top: 50%; left: -15px; content: "▶";
  color: var(--yellow); font: 9px var(--pixel);
  opacity: 0; transform: translate(-5px, -50%);
  transition: opacity .18s ease, transform .18s ease;
}
.site-nav a:not(.nav-contact):hover::before,
.site-nav a.is-current::before { opacity: 1; transform: translate(0, -50%); }
.site-nav a:hover, .site-nav a.is-current { color: var(--yellow); }
.site-nav .nav-contact { padding: 9px 17px; color: var(--navy); background: var(--yellow); border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 2px var(--navy); text-shadow: none; }
.site-nav .nav-contact:hover { color: var(--navy); background: #fff; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 780px; padding: 190px 8vw 90px; overflow: hidden; color: white; background: #0a1830; }
.hero::before {
  position: absolute; inset: -4%; content: "";
  background: url("assets/images/3e7ec0_f05486a4b9094f1b92b41c198ec64f3d~mv2.jpg") center / cover no-repeat;
  animation: hero-drift 22s ease-in-out infinite alternate;
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 18% 24%, rgba(255, 255, 255, .85) 50%, transparent 50%),
    radial-gradient(2px 2px at 66% 12%, rgba(246, 216, 89, .8) 50%, transparent 50%),
    radial-gradient(2px 2px at 41% 71%, rgba(255, 255, 255, .6) 50%, transparent 50%);
  background-size: 230px 190px, 310px 270px, 190px 250px;
  animation: twinkle 3.4s steps(2, end) infinite;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 14, 31, .82) 0%, rgba(4, 14, 31, .42) 54%, rgba(30, 90, 150, .12)); }
.hero-scanlines { position: absolute; inset: 0; pointer-events: none; opacity: .28; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.hero-content { position: relative; max-width: 800px; }
.eyebrow, .section-heading > p { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--yellow); font: 15px var(--pixel); letter-spacing: .12em; }
.eyebrow::before, .section-heading > p::before { content: "◆"; font-size: 10px; }
.hero h1 { margin: 0; font: 400 clamp(42px, 5.4vw, 76px) var(--pixel); line-height: 1.35; letter-spacing: .09em; text-shadow: 4px 4px 0 var(--deep), 1px 0 0 currentColor; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-copy { max-width: 480px; margin: 32px 0; font-size: 18px; line-height: 1.8; }
.hero-copy strong { display: inline-block; margin-top: 4px; color: var(--yellow); font: 400 28px var(--pixel); letter-spacing: .1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-content > .eyebrow,
.hero-content > h1,
.hero-content > .hero-copy,
.hero-content > .hero-actions {
  opacity: 0;
  transform: translateY(28px);
  animation: rise-in .9s cubic-bezier(.22, 1, .36, 1) forwards;
}
.hero-content > .eyebrow { animation-delay: .15s; }
.hero-content > h1 { animation-delay: .32s; }
.hero-content > .hero-copy { animation-delay: .5s; }
.hero-content > .hero-actions { animation-delay: .68s; }

.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 22px;
  min-height: 56px; padding: 12px 26px;
  border: 3px solid #fff; border-radius: 8px;
  cursor: pointer; font: 700 16px "Noto Sans JP", sans-serif; letter-spacing: .04em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.button::before {
  position: absolute; left: 11px; content: "▶";
  font: 9px var(--pixel); opacity: 0; transform: translateX(-5px);
  transition: opacity .2s ease, transform .2s ease;
}
.button:hover::before { opacity: 1; transform: none; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--navy); background: var(--yellow); box-shadow: 0 0 0 3px var(--navy), 5px 6px 0 rgba(7, 26, 54, .38); }
.button-primary:hover { box-shadow: 0 0 0 3px var(--navy), 7px 9px 0 rgba(7, 26, 54, .38); }
.button-primary span { font-size: 19px; }
.button-secondary { color: #fff; background: var(--deep); box-shadow: 0 0 0 3px var(--deep), 5px 6px 0 rgba(4, 16, 31, .38); }
.button-secondary:hover { color: var(--yellow); box-shadow: 0 0 0 3px var(--deep), 7px 9px 0 rgba(4, 16, 31, .38); }

.scroll-cue { position: absolute; right: 5vw; bottom: 35px; display: flex; align-items: center; gap: 10px; opacity: 0; font: 11px var(--pixel); letter-spacing: .14em; writing-mode: vertical-rl; animation: rise-in .8s ease forwards .95s; }
.scroll-cue span { display: inline-block; width: 2px; height: 55px; background: white; transform-origin: top; animation: scroll-line 1.8s ease-in-out infinite; }

.section { position: relative; padding: 118px 0; }
.section-heading h2 { margin: 0; font: 400 clamp(34px, 3.8vw, 50px) var(--pixel); line-height: 1.4; letter-spacing: .1em; text-shadow: 3px 3px 0 rgba(7, 26, 54, .14), 1px 0 0 currentColor; }
.section-heading > p { color: var(--blue); }
.section-heading.centered { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* 前面層：背景の青空を透かす半透明パネル（スクリーンショット準拠） */
.sky-field {
  position: relative;
  color: var(--ink);
  background: rgba(198, 228, 248, .52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55);
}
.sky-field > .container { position: relative; z-index: 1; }
.sky-field .section-heading > p { color: #0d4f9c; text-shadow: 1px 1px 0 rgba(255, 255, 255, .7); }
.sky-field .section-heading h2 { color: var(--navy); text-shadow: 3px 3px 0 rgba(255, 255, 255, .65), 1px 0 0 currentColor; }

/* 前面のガラス帯・パネル（同じ透け感） */
.glass-panel {
  background: rgba(255, 255, 255, .55);
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(7, 26, 54, .55), 6px 7px 0 rgba(7, 26, 54, .14);
}

/* 悩み＝フィールド上のクエスト */
.challenges.sky-field { color: var(--ink); }
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.challenge-grid article {
  position: relative; min-height: 150px; padding: 24px 26px;
  color: #fff; background: var(--deep);
  border: 3px solid #fff; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--navy), 6px 7px 0 rgba(7, 26, 54, .22);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.challenge-grid article::before {
  position: absolute; top: 26px; left: 10px; content: "▶";
  color: var(--yellow); font: 10px var(--pixel);
  opacity: 0; transform: translateX(-5px);
  transition: opacity .25s ease, transform .25s ease;
}
.challenge-grid article:hover { transform: translateY(-6px); border-color: var(--yellow); box-shadow: 0 0 0 3px var(--navy), 9px 11px 0 rgba(7, 26, 54, .28); }
.challenge-grid article:hover::before { opacity: 1; transform: none; }
.challenge-grid span { color: var(--yellow); font: 19px var(--pixel); letter-spacing: .1em; }
.challenge-grid p { margin: 14px 0 0; font-size: 17px; font-weight: 700; line-height: 1.75; }
.reassurance {
  display: inline-block; width: 100%; margin: 58px 0 0; padding: 18px 24px;
  text-align: center; color: var(--navy);
  font: 400 clamp(22px, 2.6vw, 30px) var(--pixel); letter-spacing: .1em;
  text-shadow: none;
}

/* 冒険の書＝フィールド上の拠点 */
.journey::after { display: none; }
.journey-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.journey-copy {
  padding: 28px 30px;
}
.journey-copy .nowrap { white-space: nowrap; }
.quest-tag { display: inline-block; margin: 0 0 18px; padding: 7px 16px; color: var(--yellow); font: 12px var(--pixel); letter-spacing: .16em; background: var(--deep); border: 2px solid #fff; border-radius: 6px; box-shadow: 0 0 0 2px var(--deep); }
.journey-copy h2 { margin: 0 0 26px; font: 400 clamp(34px, 4.2vw, 52px) var(--pixel); line-height: 1.45; letter-spacing: .09em; text-shadow: 3px 3px 0 rgba(7, 26, 54, .12), 1px 0 0 currentColor; }
.journey-copy > p:not(.eyebrow):not(.quest-tag) { max-width: 610px; font-size: 17px; line-break: strict; word-break: keep-all; overflow-wrap: anywhere; }
.blue { color: var(--blue); }
.mascot-card { display: grid; min-height: 340px; place-items: end center; padding: 30px 45px 0; background: linear-gradient(145deg, #ffdae1, #f49daf); border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 3px var(--navy), 14px 15px 0 var(--yellow); }
.mascot-card img { max-height: 350px; object-fit: contain; image-rendering: pixelated; animation: mascot-float 4.5s ease-in-out infinite; }
.mascot-card--blue {
  place-items: center;
  padding: 36px;
  background: linear-gradient(145deg, #d8f0ff, #7ec8ef);
  box-shadow: 0 0 0 3px var(--navy), 14px 15px 0 #9ad4f5;
}
.mascot-card--blue img {
  max-height: 280px;
  width: 100%;
}
.mascot-card--pink-closeup {
  place-items: center;
  padding: 36px;
}
.mascot-card--pink-closeup img {
  max-height: 280px;
  width: 100%;
}

/* おすすめ＝青空の下で仲間を選ぶ */
.audience.sky-field { color: var(--ink); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.audience-grid article {
  padding: 36px 20px; text-align: center; color: #fff;
  background: var(--deep); border: 3px solid #fff; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--navy), 6px 7px 0 rgba(7, 26, 54, .22);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.audience-grid article:hover { transform: translateY(-6px); border-color: var(--yellow); box-shadow: 0 0 0 3px var(--navy), 9px 11px 0 rgba(7, 26, 54, .28); }
.crown { color: var(--yellow); font-size: 36px; line-height: 1; text-shadow: 2px 2px 0 rgba(0, 0, 0, .45); transition: transform .3s ease; }
.audience-grid article:hover .crown { transform: translateY(-4px); }
.audience-grid h3 { margin: 16px 0 8px; font: 400 23px var(--pixel); letter-spacing: .08em; }
.audience-grid p { margin: 0; font-size: 16px; line-height: 1.7; }
.audience-conclusion {
  display: inline-block; width: 100%; margin: 52px 0 0; padding: 18px 24px;
  text-align: center; color: var(--navy);
  font: 400 clamp(21px, 2.4vw, 28px) var(--pixel); letter-spacing: .1em;
}
.audience-conclusion strong { color: #0d4f9c; font-weight: 400; }

/* 事業内容＝クエスト選択 */
.services-intro {
  margin: 26px 0 46px; padding: 18px 22px; max-width: 720px;
  font-size: 20px; font-weight: 700; line-height: 1.9;
}
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.service-card {
  position: relative; overflow: hidden; min-height: 390px; color: white; background: var(--navy);
  border: 3px solid #fff; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--navy), 8px 9px 0 rgba(7, 26, 54, .25);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--navy), 12px 14px 0 rgba(7, 26, 54, .3); }
.service-card img { width: 100%; height: 100%; object-fit: cover; opacity: .32; transition: transform .7s ease, opacity .4s ease; }
.service-card:hover img { transform: scale(1.08); opacity: .45; }
.service-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(3, 15, 33, .96), rgba(3, 15, 33, .1)); }
.service-number, .service-body { position: absolute; z-index: 1; }
.service-number { top: 22px; left: 24px; padding: 3px 12px; color: var(--yellow); font: 22px var(--pixel); letter-spacing: .08em; background: rgba(4, 16, 31, .7); border: 2px solid var(--yellow); border-radius: 5px; }
.service-body { right: 30px; bottom: 30px; left: 30px; }
.service-body p { margin: 0; color: var(--yellow); font: 15px var(--pixel); letter-spacing: .1em; }
.service-body h3 { margin: 6px 0 20px; font: 400 30px var(--pixel); letter-spacing: .08em; text-shadow: 3px 3px 0 rgba(0, 0, 0, .5); }
.service-body a { display: inline-flex; align-items: center; gap: 18px; padding: 9px 18px; font-size: 15px; font-weight: 700; background: rgba(4, 16, 31, .72); border: 2px solid #fff; border-radius: 6px; transition: gap .25s ease, background .25s ease, color .25s ease; }
.service-card:hover .service-body a { gap: 26px; color: var(--navy); background: var(--yellow); border-color: var(--yellow); }

/* お問い合わせ＝ルーラの行き先えらび */
.contact {
  background:
    linear-gradient(180deg, #e7f2fc 0%, #f4f8fd 100%);
  border-top: 4px solid var(--navy);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, .65);
}
.contact .section-heading > p { color: var(--blue); }
.contact-intro {
  margin: 28px 0 36px; padding: 14px 18px; text-align: center;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 10px;
  box-shadow: 5px 6px 0 rgba(7, 26, 54, .12);
}
.contact-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto 30px; }
.contact-option {
  position: relative; display: flex; flex-direction: column; padding: 26px 30px;
  border: 3px solid #fff; border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-option::before {
  position: absolute; top: 50%; left: 12px; content: "▶";
  font: 10px var(--pixel); opacity: 0; transform: translate(-6px, -50%);
  transition: opacity .22s ease, transform .22s ease;
}
.contact-option:hover::before { opacity: 1; transform: translate(0, -50%); }
.contact-option:hover { transform: translateY(-4px); }
.contact-option.line { color: #fff; background: #08bd53; box-shadow: 0 0 0 3px #05702f, 6px 7px 0 rgba(5, 112, 47, .3); }
.contact-option.line:hover { box-shadow: 0 0 0 3px #05702f, 9px 11px 0 rgba(5, 112, 47, .3); }
.contact-option.phone { color: white; background: var(--blue); box-shadow: 0 0 0 3px #10396f, 6px 7px 0 rgba(16, 57, 111, .3); }
.contact-option.phone:hover { box-shadow: 0 0 0 3px #10396f, 9px 11px 0 rgba(16, 57, 111, .3); }
.option-label { font-size: 14px; }
.contact-option strong { margin-top: 5px; font: 400 23px var(--pixel); letter-spacing: .06em; }
.contact-option small { font-size: 13px; }
.contact-form { max-width: 820px; margin: 0 auto; padding: 38px; background: #fff; border: 3px solid var(--navy); border-radius: 10px; box-shadow: 6px 7px 0 rgba(7, 26, 54, .12); }
.contact-form h3 { margin: 0 0 24px; font: 400 25px var(--pixel); letter-spacing: .08em; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; }
label b { margin-left: 4px; color: #d52b29; font-size: 12px; }
input, select, textarea { width: 100%; padding: 12px; border: 2px solid #c3cdda; border-radius: 5px; color: var(--ink); font: 15px "Noto Sans JP"; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 103, 205, .16); }
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.contact-form .button { margin-top: 30px; }
.form-note { margin: 16px 0 0; color: #657287; font-size: 12px; }
.form-status { margin: 10px 0 0; color: var(--blue); font-size: 13px; font-weight: 700; }

/* 会社概要＝ステータス画面 */
.company {
  position: relative;
  padding: 95px 0;
  background: #fff8e8;
  border-top: 4px solid var(--yellow);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, .7);
}
.company::before {
  position: absolute; top: -2px; left: 50%; z-index: 1;
  width: 48px; height: 10px; content: "";
  transform: translateX(-50%);
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 3px;
  box-shadow: 0 0 0 2px #fff8e8;
}
.company .section-heading > p { color: var(--orange); }
.company .section-heading h2 { color: var(--navy); }
.company-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.status-window { padding: 12px 30px; color: #fff; background: var(--deep); border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 3px var(--navy), 8px 9px 0 rgba(7, 26, 54, .2); }
.company dl { margin: 0; }
.company dl div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 18px 0; border-bottom: 2px dotted rgba(255, 255, 255, .28); }
.company dl div:last-child { border-bottom: 0; }
.company dt { color: var(--yellow); font: 15px var(--pixel); letter-spacing: .08em; }
.company dd { margin: 0; font-size: 15px; }

.site-footer { padding: 55px 5vw 26px; color: white; background: var(--deep); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .8); }
.footer-brand { font-size: 25px; text-shadow: none; }
.site-footer > p { margin: 12px 0 26px; color: #c9d6e9; font-size: 13px; }
.footer-links { display: flex; gap: 26px; margin-bottom: 28px; font-size: 13px; }
.footer-links a { position: relative; transition: color .2s ease; }
.footer-links a::before { position: absolute; left: -14px; content: "▶"; color: var(--yellow); font: 9px var(--pixel); opacity: 0; transition: opacity .18s ease; }
.footer-links a:hover { color: var(--yellow); }
.footer-links a:hover::before { opacity: 1; }
.social-links { display: flex; gap: 14px; margin: 0 0 36px; padding: 0; list-style: none; }
.social-links a {
  display: grid; width: 44px; height: 44px; place-items: center;
  color: var(--navy); background: var(--yellow);
  border: 2px solid #fff; border-radius: 8px;
  box-shadow: 0 0 0 2px var(--navy);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.social-links a:hover { transform: translateY(-3px); color: var(--yellow); background: var(--deep); }
.social-links svg { width: 20px; height: 20px; }
.site-footer small { color: #91a5c1; font-size: 11px; }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > .reveal:nth-child(1) { transition-delay: .05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: .12s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: .19s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: .26s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: .33s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: .4s; }

@keyframes rise-in {
  to { opacity: 1; transform: none; }
}
@keyframes hero-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -1.5%, 0); }
}
@keyframes twinkle {
  0%, 100% { opacity: .85; }
  50% { opacity: .3; }
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(.35); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}
@keyframes mascot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-stars,
  .hero-content > .eyebrow,
  .hero-content > h1,
  .hero-content > .hero-copy,
  .hero-content > .hero-actions,
  .scroll-cue,
  .scroll-cue span,
  .win-cursor,
  .mascot-card img { animation: none; }
  .hero-content > .eyebrow,
  .hero-content > h1,
  .hero-content > .hero-copy,
  .hero-content > .hero-actions,
  .scroll-cue,
  .reveal { opacity: 1; transform: none; transition: none; }
  .challenge-grid article:hover,
  .audience-grid article:hover,
  .service-card:hover,
  .service-card:hover img,
  .contact-option:hover,
  .button:hover { transform: none; }
}

@media (max-width: 760px) {
  body::before { background-position: center top; }
  .container { width: min(100% - 32px, 560px); }
  .site-header { padding: 14px 20px; background: rgba(4, 16, 31, .94); }
  .site-header.is-scrolled { padding: 12px 20px; }
  .header-start { gap: 12px; }
  .header-end { gap: 12px; }
  .header-social a { width: 30px; height: 30px; }
  .header-social svg { width: 14px; height: 14px; }
  .brand { font-size: 23px; }
  .brand-logo { height: 34px; }
  .footer-logo { height: 36px; }
  .brand-mark { width: 30px; height: 30px; font-size: 9px; }
  .menu-toggle { z-index: 11; display: grid; gap: 5px; padding: 9px; border: 0; color: white; background: transparent; }
  .menu-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; background: currentColor; transition: .2s; }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 22px; background: var(--deep); border: 3px solid #fff; border-radius: 10px; box-shadow: 0 0 0 3px var(--deep), 6px 7px 0 rgba(0, 0, 0, .35); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; }
  .site-nav a:not(.nav-contact)::before { left: -13px; opacity: 1; transform: translate(0, -50%); color: rgba(246, 216, 89, .5); }
  .site-nav .nav-contact { margin-top: 10px; padding: 11px; text-align: center; }
  .hero { min-height: 700px; padding: 150px 24px 80px; }
  .hero::before { background-position: 56% center; }
  .hero h1 { font-size: 36px; }
  .hero-copy { max-width: none; }
  .hero-copy strong { font-size: 22px; }
  .hero-actions { flex-direction: column; }
  .section { padding: 78px 0; }
  .challenge-grid, .audience-grid, .service-list, .contact-options { grid-template-columns: 1fr; }
  .challenge-grid article { min-height: auto; }
  .journey-layout, .company-layout { grid-template-columns: 1fr; gap: 44px; }
  .break-md { display: none; }
  .journey-copy .nowrap { white-space: normal; }
  .mascot-card { min-height: 260px; padding-top: 25px; box-shadow: 0 0 0 3px var(--navy), 9px 10px 0 var(--yellow); }
  .mascot-card img { max-height: 270px; }
  .form-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .contact-form { padding: 26px 20px; }
  .status-window { padding: 8px 22px; }
  .company dl div { grid-template-columns: 1fr; gap: 4px; }
  .page-hero { padding: 120px 24px 60px; }
  .page-hero-layout, .reason-grid, .flow-grid, .pain-grid, .price-grid, .corp-price-tiers { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 30px; }
  .page-hero-copy .hero-actions { flex-wrap: wrap; }
  .flow-card { grid-template-columns: 1fr; grid-template-rows: auto auto; }
  .flow-card img { height: 180px; min-height: 180px; max-height: 180px; }
  .cycle-diagram { padding: 26px 20px 22px; }
  .cycle-list { grid-template-columns: 1fr; gap: 8px; }
  .cycle-arrow { padding-bottom: 0; }
  .cycle-arrow span { display: inline-block; transform: rotate(90deg); }
  .cycle-node img { max-width: 128px; }
  .corp-price-board { padding: 14px 12px 16px; }
  .corp-price-status { gap: 10px; }
  .tier-card header h3 { font-size: 18px; }
}

/* ===== サブページ共通 ===== */
.subpage .site-header { background: rgba(4, 16, 31, .94); }
.page-hero { padding: 140px 0 70px; }
.page-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 48px;
}
.page-hero-copy { padding: 32px 34px; }
.page-hero h1 {
  margin: 0 0 20px;
  font: 400 clamp(28px, 3.4vw, 42px) var(--pixel);
  line-height: 1.45;
  letter-spacing: .06em;
  color: var(--navy);
  text-shadow: 3px 3px 0 rgba(255, 255, 255, .65);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.page-hero-copy > p:not(.eyebrow):not(.quest-tag) {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.page-hero-copy .hero-actions {
  flex-wrap: nowrap;
}
.page-hero-copy .button {
  white-space: nowrap;
  padding: 12px 18px;
  gap: 12px;
  font-size: 14px;
}
.center-actions { justify-content: center; margin-top: 28px; }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.reason-card {
  padding: 22px;
  color: #fff;
  background: var(--deep);
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--navy), 7px 8px 0 rgba(7, 26, 54, .2);
}
.reason-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  margin-bottom: 16px;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
}
.reason-num { margin: 0; color: var(--yellow); font: 13px var(--pixel); letter-spacing: .08em; }
.reason-card h3 { margin: 8px 0 10px; font: 400 22px var(--pixel); letter-spacing: .06em; line-height: 1.45; }
.reason-card p:last-child { margin: 0; font-size: 14px; line-height: 1.8; color: #d7e2f2; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.flow-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  background: var(--deep);
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--navy), 7px 8px 0 rgba(7, 26, 54, .2);
}
.flow-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  align-self: stretch;
}
.flow-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  background: var(--deep);
}
.flow-body span { color: var(--yellow); font: 22px var(--pixel); letter-spacing: .08em; }
.flow-body h3 { margin: 8px 0 12px; font: 400 22px var(--pixel); letter-spacing: .06em; line-height: 1.4; }
.flow-body p { margin: 0; font-size: 14px; line-height: 1.8; color: #d7e2f2; }

.price-note {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 18px 22px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1080px;
  margin: 40px auto 0;
  align-items: start;
}
.price-card {
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--navy), 8px 9px 0 rgba(7, 26, 54, .2);
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 3px var(--navy), 11px 13px 0 rgba(7, 26, 54, .26);
}
.price-card img {
  width: 100%;
  height: auto;
  display: block;
}

.corp-price-board {
  max-width: 1080px;
  margin: 36px auto 0;
  padding: 18px 18px 22px;
  background: linear-gradient(180deg, #f7f4ea 0%, #efe8d6 100%);
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 4px var(--navy), 10px 12px 0 rgba(7, 26, 54, .22);
}
.corp-price-status {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: rgba(7, 26, 54, .92);
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 2px var(--navy);
}
.stat-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font: 400 13px var(--pixel);
  letter-spacing: .06em;
}
.stat-group em {
  font-style: normal;
  color: var(--yellow);
}
.stat-group i,
.stat-group b {
  display: inline-block;
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
.stat-group i {
  background: #e23b3b;
  clip-path: polygon(50% 92%, 8% 52%, 8% 30%, 22% 16%, 38% 16%, 50% 28%, 62% 16%, 78% 16%, 92% 30%, 92% 52%);
  box-shadow: none;
}
.stat-group i.is-empty {
  background: transparent;
  outline: 2px solid #e23b3b;
  outline-offset: -2px;
}
.stat-group b.mp {
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: #3aa0e8;
  clip-path: polygon(50% 100%, 10% 45%, 20% 20%, 40% 8%, 60% 8%, 80% 20%, 90% 45%);
}
.stat-group b.gold {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe58a, #e0a800 55%, #b57a00);
  box-shadow: inset 0 0 0 2px #7a5200;
}
.stat-spacer { flex: 1; min-width: 12px; }

.corp-price-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tier-card {
  display: grid;
  gap: 12px;
  padding: 16px 14px 18px;
  background: #fffdf7;
  border: 3px solid #c45a6a;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 2px rgba(7, 26, 54, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), 0 0 0 2px rgba(7, 26, 54, .45), 6px 8px 0 rgba(7, 26, 54, .15);
}
.tier-take { border-color: #3f9b4a; }
.tier-matsu { border-color: #1f6b3a; }
.tier-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px dashed rgba(7, 26, 54, .2);
}
.tier-card header img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.tier-card header h3 {
  margin: 0;
  color: var(--navy);
  font: 400 20px var(--pixel);
  letter-spacing: .04em;
  line-height: 1.35;
}
.tier-card header h3 span {
  display: inline-block;
  margin-left: 4px;
  color: #b45309;
}
.tier-block { display: grid; gap: 6px; }
.tier-label {
  margin: 0;
  width: fit-content;
  padding: 2px 8px;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
  font: 400 12px var(--pixel);
  letter-spacing: .08em;
}
.tier-ume .tier-label { background: #c45a6a; }
.tier-take .tier-label { background: #3f9b4a; }
.tier-matsu .tier-label { background: #1f6b3a; }
.tier-block > p,
.tier-block li {
  margin: 0;
  color: #2a3d55;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.tier-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.tier-block li {
  position: relative;
  padding-left: 16px;
}
.tier-block li::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-size: 10px;
  text-shadow: 1px 1px 0 var(--navy);
}

.faq-list { max-width: 860px; margin: 44px auto 0; display: grid; gap: 14px; }
.faq-item {
  overflow: hidden;
  background: rgba(255, 255, 255, .55);
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(7, 26, 54, .45);
  padding: 18px 20px;
}
.faq-item button,
.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--navy);
  font: 700 16px "Noto Sans JP", sans-serif;
  text-align: left;
  background: transparent;
  cursor: default;
  pointer-events: none;
}
.faq-item button span,
.faq-question span {
  flex: none;
  color: var(--yellow);
  font: 18px var(--pixel);
  text-shadow: 2px 2px 0 var(--navy);
}
.faq-answer {
  display: block;
  padding: 12px 0 0 32px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.85;
}
.faq-answer strong { margin-right: 8px; color: var(--blue); font: 16px var(--pixel); }

.message-panel {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 34px;
  font-size: 16px;
  line-height: 2;
}
.message-panel p { margin: 0 0 18px; }
.message-cta {
  margin-top: 28px !important;
  color: var(--navy);
  font: 400 22px var(--pixel);
  letter-spacing: .08em;
}
.hybrid-layout {
  display: grid;
  gap: 28px;
  max-width: 920px;
  margin: 40px auto 0;
}
.cycle-diagram { padding: 32px 28px 26px; }
.cycle-list {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cycle-node { text-align: center; }
.cycle-node img {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin: 0 auto 10px;
  image-rendering: pixelated;
}
.cycle-step {
  margin: 0;
  color: var(--blue);
  font: 18px var(--pixel);
  letter-spacing: .06em;
}
.cycle-node h3 {
  margin: 4px 0 6px;
  color: var(--navy);
  font: 400 17px var(--pixel);
  letter-spacing: .04em;
  line-height: 1.5;
}
.cycle-role {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #40556f;
}
.cycle-arrow {
  display: grid;
  place-items: center;
  align-self: center;
  padding-bottom: 46px;
}
.cycle-arrow span {
  color: var(--yellow);
  font: 20px var(--pixel);
  text-shadow: 2px 2px 0 var(--navy);
}
.cycle-loop {
  margin: 22px 0 0;
  padding-top: 16px;
  text-align: center;
  color: var(--navy);
  font: 400 16px var(--pixel);
  letter-spacing: .06em;
  border-top: 2px dashed rgba(7, 26, 54, .3);
}
.hybrid-layout .message-panel {
  max-width: none;
  margin: 0;
  padding: 28px 30px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.pain-grid article {
  padding: 28px 20px;
  text-align: center;
  color: #fff;
  background: var(--deep);
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 3px var(--navy), 6px 7px 0 rgba(7, 26, 54, .2);
}
.pain-grid img {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 0 0 transparent);
}
.pain-grid h3 {
  margin: 0;
  font: 400 18px var(--pixel);
  letter-spacing: .06em;
  line-height: 1.55;
}

.subpage .button-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, .75);
  border-color: var(--navy);
  box-shadow: 0 0 0 3px #fff, 5px 6px 0 rgba(7, 26, 54, .18);
}
.subpage .button-secondary:hover {
  color: #fff;
  background: var(--deep);
  border-color: #fff;
}

/* サブページのデスクトップ指定が上の @media より後にあるため、ここで再度モバイル上書きする */
@media (max-width: 760px) {
  .page-hero {
    padding: 120px 0 56px;
  }
  .page-hero-layout,
  .reason-grid,
  .flow-grid,
  .pain-grid,
  .price-grid,
  .corp-price-tiers {
    grid-template-columns: 1fr;
  }
  .page-hero-layout {
    gap: 28px;
  }
  .page-hero-copy {
    padding: 24px 20px;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .page-hero-copy .hero-actions {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .page-hero-copy .button {
    width: 100%;
    justify-content: center;
    white-space: normal;
    font-size: 13px;
  }
  .flow-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .flow-card img {
    height: 180px;
    min-height: 180px;
    max-height: 180px;
  }
  .flow-body {
    padding: 20px 18px 22px;
    background: var(--deep);
  }
  .flow-body span {
    text-shadow: 2px 2px 0 var(--navy);
  }
  .flow-body h3 {
    color: #fff;
    text-shadow: 2px 2px 0 rgba(7, 26, 54, .85);
  }
  .flow-body p {
    color: #e8eef8;
  }
  .reason-card h3,
  .flow-body h3 {
    font-size: 18px;
  }
  .price-note {
    margin-top: 28px;
    padding: 16px 18px;
    font-size: 15px;
  }
  .corp-price-board {
    padding: 14px 12px 16px;
  }
  .corp-price-status {
    gap: 10px;
  }
  .tier-card header h3 {
    font-size: 17px;
  }
  .cycle-diagram {
    padding: 22px 16px 18px;
  }
  .cycle-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cycle-arrow {
    padding-bottom: 0;
    text-align: center;
  }
  .cycle-arrow span {
    display: inline-block;
    transform: rotate(90deg);
  }
  .cycle-node img {
    max-width: 128px;
  }
  .message-panel,
  .hybrid-layout .message-panel {
    padding: 24px 18px;
    font-size: 15px;
  }
  .message-cta {
    font-size: 18px;
  }
  .faq-item {
    padding: 16px 14px;
  }
  .faq-answer {
    padding-left: 0;
  }
}

/* グリッド内の画像は自動最小幅で列を押し広げるため、常に縮小を許可する（Safari で横あふれの原因になる） */
.page-hero-layout,
.journey-layout,
.company-layout,
.reason-grid,
.flow-grid,
.price-grid,
.pain-grid,
.challenge-grid,
.audience-grid,
.service-list,
.contact-options,
.corp-price-tiers,
.cycle-list,
.form-grid {
  grid-auto-columns: minmax(0, 1fr);
}
.page-hero-layout > *,
.journey-layout > *,
.company-layout > *,
.reason-grid > *,
.flow-grid > *,
.price-grid > *,
.pain-grid > *,
.challenge-grid > *,
.audience-grid > *,
.service-list > *,
.contact-options > *,
.corp-price-tiers > *,
.cycle-list > *,
.form-grid > *,
.flow-card > *,
.hybrid-layout > * {
  min-width: 0;
}
.flow-card {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}
.reason-card img,
.flow-card img,
.price-card img,
.mascot-card img,
.cycle-node img,
.tier-card header img {
  max-width: 100%;
}

@media (max-width: 760px) {
  .flow-card {
    grid-template-columns: minmax(0, 1fr);
  }
}
