:root {
  --navy: #22365f;
  --navy-dark: #18284a;
  --navy-light: #eef2f8;
  --accent: #f0901e;
  --accent-dark: #d77808;
  --pink: #e04e9c;
  --text: #222;
  --muted: #5d6675;
  --line: #d6dce6;
  --white: #fff;
}

html { scroll-behavior: smooth; }
body {
  font-family: "UD Digi Kyokasho N", "UD デジタル 教科書体 N", "UD Digi Kyokasho N-R", "UD デジタル 教科書体 N-R", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent-dark); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 6px;
  font-weight: bold; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; font-size: 15px; line-height: 1.5;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-block { display: block; width: 100%; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-plain { background: #e9ecf1; color: var(--text); }
.btn-plain:hover { background: #dde1e8; }

.site-header { background: var(--navy-dark); color: var(--white); position: sticky; top: 0; z-index: 50; }
:root { --header-bar: 96px; --header-band: 0px; --header-h: calc(var(--header-bar) + var(--header-band) + var(--notice-h, 0px)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-bar); }
.brand { color: var(--white); text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand:hover { color: var(--white); }
.brand small { font-size: 22px; opacity: .85; }
.brand span { font-size: 44px; font-weight: bold; letter-spacing: .08em; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-row img { height: 44px; width: auto; }
.header-catch { flex: 1; min-width: 0; margin: 0 28px; container-type: inline-size; line-height: 1.12; font-weight: bold; color: rgba(255,255,255,.95); letter-spacing: .04em; }
.catch-in { display: block; white-space: nowrap; font-size: min(calc(100cqw / 12.9), 38px); }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-nav a { color: var(--white); text-decoration: none; font-size: 14px; }
.header-nav a:hover { color: #ffd39e; }
.header-nav .nav-cta { background: var(--accent); padding: 6px 14px; border-radius: 4px; font-weight: bold; }
.header-nav .nav-cta:hover { background: var(--accent-dark); color: var(--white); }

.hero {
  background: radial-gradient(ellipse at 30% 40%, #33508a 0%, var(--navy) 55%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 20px 0;
}
.hero-grid {
  padding: 0 12px;
  --vt-gap: 8px;
  --video-h: min(calc(100vh - var(--header-h) - 40px), calc(80vw * 16 / 9));
  --video-h: min(calc(100svh - var(--header-h) - 40px), calc(80vw * 16 / 9));
  --video-w: calc(var(--video-h) * 9 / 16);
  --vt-h: calc((var(--video-h) - 2 * var(--vt-gap)) / 3);
  --vt-w: calc(var(--vt-h) * 9 / 16);
}

.hero-left { display: flex; justify-content: center; align-items: stretch; column-gap: 10px; }
.hero-video {
  position: relative; flex: none; width: var(--video-w); height: var(--video-h); background: #000;
  border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;
}

.vticker { flex: none; position: relative; display: flex; gap: var(--vt-gap); overflow: hidden; height: var(--video-h); }
.vticker-col { position: relative; flex: none; width: var(--col-w, var(--vt-w)); overflow: hidden; border-radius: 8px; }
.vticker-track { position: absolute; top: 0; left: 0; right: 0; animation: oz-vticker var(--vt-dur, 18s) linear infinite; }
.hero-video video, .vticker video, .vticker img { pointer-events: none; }
.vticker-item { height: calc(var(--col-item-h, var(--vt-h)) + var(--vt-gap)); padding-bottom: var(--vt-gap); }
.vticker-item video, .vticker-item img {
  width: 100%; height: 100%; object-fit: cover; display: block; background: #000;
  border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.35);
}
.vticker[hidden] { display: none; }
.vticker.vcover { width: var(--cover-w); }
.vcov-item {
  position: absolute; top: 50%; left: 50%; width: var(--cov-w); height: var(--cov-h);
  border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transform: translate(calc(-50% + 190%), -50%) scale(.5); opacity: 0;
  transition: transform .8s cubic-bezier(.65, 0, .35, 1), opacity .8s;
}
.vcov-item .vticker-item { height: 100%; padding: 0; }
.vcov-item video, .vcov-item img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; box-shadow: none; }
.vcov-item.is-cur { transform: translate(-50%, -50%); opacity: 1; z-index: 2; }
.vcov-item.is-prev { transform: translate(calc(-50% - 92%), -50%) scale(.68); opacity: .35; z-index: 1; }
.vcov-item.is-next { transform: translate(calc(-50% + 92%), -50%) scale(.68); opacity: .35; z-index: 1; }
.vcov-item.is-before { transform: translate(calc(-50% - 190%), -50%) scale(.5); opacity: 0; }
@keyframes oz-vticker { from { transform: translateY(0); } to { transform: translateY(-50%); } }

.intro { background: radial-gradient(ellipse at 50% 30%, #33508a 0%, var(--navy) 55%, var(--navy-dark) 100%); padding: 36px 0 40px; }
.intro-inner { max-width: 1080px; margin: 0 auto; }
.intro-list { display: flex; flex-direction: column; gap: 24px; }
.slide {
  background: var(--white); color: var(--text); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  padding: 24px 40px 28px; display: flex; flex-direction: column;
}
.slide-title {
  font-size: 20px; line-height: 1.45; color: var(--navy);
  border-left: 6px solid var(--accent); padding-left: 12px; margin-bottom: 10px;
}
.slide-title.catch { font-size: 24px; }
.slide-body { display: flex; flex-direction: column; justify-content: center; font-size: 14px; }
.slide-body p + p { margin-top: .6em; }
.slide-body strong { color: var(--accent-dark); white-space: nowrap; }

.slide-a .guarantee { width: 100%; max-width: 560px; height: auto; margin: 12px auto 0; }
.checks { list-style: none; margin: .7em 0; padding: 8px 14px; background: var(--navy-light); border-radius: 6px; }
.checks li { font-weight: bold; color: var(--navy); }
.checks li::before { content: "✔ "; color: var(--accent); }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: center; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.card h3 { font-size: 15px; color: var(--navy); margin: 8px 0 4px; line-height: 1.45; }
.card p { font-size: 13px; line-height: 1.65; }
.slide-body .lead { margin-bottom: 14px; font-weight: bold; }
.slide-bd .card img { width: 100%; max-width: 130px; height: auto; aspect-ratio: 4 / 3; margin: 0 auto; }
.slide-bd .card h3 { margin: 6px 0 2px; text-align: center; }
.slide-bd .card p { font-size: 12.5px; line-height: 1.55; }
.slide-bd .slide-title-sub { margin-top: 14px; }
.slide-bd .lead { margin-bottom: 8px; font-size: 13px; }
.cards-mini .card { display: flex; flex-direction: column; }
.cards-mini .card img { width: 100%; max-width: 130px; height: auto; aspect-ratio: 4 / 3; margin: 0 auto; }
.cards-mini .card h3 { margin: 6px 0 0; font-size: 13px; }

.voices { gap: 16px; justify-content: center; }
.voice { position: relative; background: var(--navy-light); border-radius: 6px; padding: 10px 14px; }
.voice::after {
  content: ""; position: absolute; left: 24px; bottom: -12px;
  border-style: solid; border-width: 12px 18px 0 0; border-color: var(--navy-light) transparent transparent transparent;
}
.voice:nth-child(2)::after { left: auto; right: 24px; border-width: 12px 0 0 18px; }
.voice h3 { font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.voice h3::before { content: "\201C"; color: var(--accent); font-size: 1.4em; margin-right: 4px; vertical-align: -.15em; }
.voice p { font-size: 13px; line-height: 1.65; }

.slide-e { align-items: center; gap: 24px; }
.slide-e .jikki { width: 100%; max-width: 520px; height: auto; }
.rental-steps {
  list-style: none; margin: 8px 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: st;
}
.rental-steps li {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
  text-align: center; font-size: 15px; line-height: 1.35; color: var(--navy);
}
.rental-steps li + li::before {
  content: "\25B6"; position: absolute; left: -12px; top: 60%; transform: translate(-50%, -50%);
  color: var(--accent); font-size: 12px;
}
.slide-e .rental-steps img { width: auto; max-width: 100%; height: 90px; object-fit: contain; }

#member, #form { scroll-margin-top: calc(var(--header-h) + 10px); }

.duo { background: var(--navy-light); padding: 32px 0; }
.duo-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.duo-inner.is-framed { grid-template-columns: minmax(0, 1fr); }
.duo-inner.is-framed .member { order: -1; }
.duo .contact, .duo .member { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px 32px; }
.duo .contact .section-head h2, .duo .member .section-head h2 { font-size: 24px; }
.duo .contact-form .row { grid-template-columns: 172px minmax(0, 1fr); }
.duo .row-label { font-size: 13px; padding: 12px 12px; }
.duo .req { white-space: nowrap; }
.duo .member-head { margin-bottom: 20px; }
.duo .member-lead { font-size: 16px; }
.member.is-framed .member-lead { display: none; }

.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: 28px; color: var(--navy); display: inline-block; border-bottom: 4px solid var(--accent); padding-bottom: 4px; margin-bottom: 10px; }
.section-head p { color: var(--muted); }

.member-box { display: flex; }
.member-inner.wrap { padding: 0; }
.member.is-framed .member-box { padding-bottom: 12px; }
.member-inner { width: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.member-head { margin-bottom: 20px; }
.member.is-framed .member-head { margin-bottom: 10px; }

.member-lead { font-size: 18px; color: var(--navy); line-height: 1.6; }

.member-frame { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.member-frame[hidden], .member-grid[hidden] { display: none; }
.frame-bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 8px; font-size: 13px; }
.frame-close {
  border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 4px;
  padding: 3px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.frame-close:hover { background: var(--navy); color: var(--white); }
.member-frame iframe {
  display: block; width: 100%; height: 400px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
}

.member-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; }
.panel h3 { font-size: 19px; color: var(--navy); margin-bottom: 14px; }
.member-form label { display: block; font-weight: bold; font-size: 14px; margin-bottom: 14px; }
.member-form input { display: block; width: 100%; margin-top: 4px; }
.steps { padding-left: 1.4em; margin-bottom: 18px; font-size: 14px; }
.steps li + li { margin-top: 6px; }
.note { font-size: 13px; color: var(--muted); margin-top: 14px; }

input[type="text"], input[type="email"], input[type="password"], textarea {
  border: 1px solid #b9c2d0; border-radius: 6px; padding: 9px 12px; background: var(--white);
  font: inherit; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid #8fb0ea; outline-offset: 0; border-color: var(--navy); }
input[type="checkbox"] { width: 17px; height: 17px; vertical-align: -3px; border: 1px solid #8a94a6; border-radius: 3px; appearance: auto; -webkit-appearance: checkbox; }

.contact .tel { margin: 14px auto 0; }
.contact-form { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.contact-form .row { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.row-label { background: #f6f8fb; padding: 14px 16px; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.row-input { padding: 12px 16px; }
.row-input small { display: block; color: var(--muted); margin-top: 4px; }
.req { background: #d33; color: var(--white); font-size: 11px; padding: 1px 6px; border-radius: 3px; font-weight: normal; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.choices label { cursor: pointer; }
.form-buttons { text-align: center; margin-top: 28px; display: flex; gap: 14px; justify-content: center; }
.form-buttons .btn { min-width: min(160px, calc(50% - 7px)); }

.site-footer { background: var(--navy-dark); color: #d7deea; padding: 22px 0; font-size: 13px; text-align: center; }
.site-footer a { color: var(--white); }
.ga-note { margin: 10px auto 0; max-width: 900px; font-size: 11px; line-height: 1.6; color: #aab6cb; }
.ga-note a { color: #d7deea; }

.pagetop {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  background: var(--navy); color: var(--white); text-decoration: none; font-size: 12px; font-weight: bold;
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.pagetop.is-shown { opacity: .85; pointer-events: auto; }
.pagetop:hover { color: var(--white); opacity: 1; }

@media (max-width: 900px) {
  :root { --header-band: 36px; }
  .header-inner { flex-wrap: wrap; height: auto; }
  .brand, .header-nav { min-height: var(--header-bar); }
  .brand { justify-content: center; }
  .header-catch {
    order: 3; flex: 0 0 auto; width: calc(100% + 40px); margin: 0 -20px; height: var(--header-band);
    background: var(--accent); color: var(--white); font-size: 14px; line-height: var(--header-band);
    text-align: center; white-space: nowrap; overflow: hidden; letter-spacing: .06em;
  }
  .header-catch br { display: none; }
  .header-catch .l2 { margin-left: 1em; }
  .catch-in { font-size: min(calc((100cqw - 24px) / 21.8), 24px); line-height: var(--header-band); }
}
@media (max-width: 960px) {
  .duo-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 14px; }
  .wrap { padding: 0 16px; }
  .header-nav { gap: 10px; }
  .header-nav a:not(.nav-cta) { display: none; }
  :root { --header-bar: 72px; }
  .header-catch { width: calc(100% + 32px); margin: 0 -16px; }
  .brand small { font-size: 16px; }
  .brand span { font-size: 30px; }
  .brand-row { gap: 6px; }
  .brand-row img { height: 30px; }
  .hero { padding: 12px 0; }
  .intro { padding: 20px 0 24px; }
  .hero-grid {
    --video-h: min(calc(100vh - var(--header-h) - 24px), calc((100vw - 34px) * .75 * 16 / 9));
    --video-h: min(calc(100svh - var(--header-h) - 24px), calc((100vw - 34px) * .75 * 16 / 9));
  }
  .slide { padding: 18px 16px 20px; }
  .intro-list { gap: 16px; }
  .rental-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; }
  .rental-steps li:nth-child(4)::before { display: none; }
  .slide-e .rental-steps img { height: 64px; }
  .rental-steps li { font-size: 13px; }
  .duo { padding: 20px 0; }
  .duo-inner { padding: 0 16px; gap: 20px; }
  .duo .contact, .duo .member { padding: 20px 14px 24px; }
  .slide-title { font-size: 17px; }
  .slide-title.catch { font-size: 20px; }
  .slide-body { font-size: 13px; }
  .cols3 { gap: 8px; }
  .card h3 { font-size: 12px; }
  .card p { font-size: 11.5px; line-height: 1.55; }
  .voice p { font-size: 12px; }
  .section-head h2 { font-size: 23px; }
  .panel { padding: 20px 18px; }
  .contact-form .row, .duo .contact-form .row { grid-template-columns: minmax(0, 1fr); }
  .row-label { padding: 10px 12px; }
  .row-input { padding: 10px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vticker-col { overflow-y: auto; }
  .vcov-item { transition: none; }
  .vticker-track { animation: none; }
}
@media (max-width: 360px) {
  .brand span { font-size: 25px; }
  .brand-row img { height: 25px; }
  .brand small { font-size: 14px; }
  .header-nav .nav-cta { padding: 6px 10px; }
}

*, *::before, *::after { font-weight: 400 !important; }
