:root {
  --red: #e50000;
  --red-dark: #c30000;
  --yellow: #ffeb33;
  --blue: #0084c8;
  --ink: #111;
  --muted: #666;
  --line: #ccc;
  --canvas: #eee;
  --white: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-size: 14px; line-height: 1.5; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 1000; padding: 10px 16px;
  background: #111; color: #fff; border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.mobile-header, .mobile-menu, .mobile-download-bar { display: none; }

.site-shell {
  width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 224px 713px 304px;
  column-gap: 16px;
  padding-right: 7px;
  align-items: start;
}

.left-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 820px;
  overflow-y: auto;
  background: #fff;
  scrollbar-width: none;
}
.left-rail::-webkit-scrollbar { display: none; }

.desktop-logo {
  height: 116px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.desktop-logo img { width: 192px; height: 84px; object-fit: contain; }

.side-nav { display: block; }
.side-nav a {
  position: relative;
  height: 49px;
  display: flex;
  align-items: center;
  padding: 0 6px 0 52px;
  border-bottom: 1px solid var(--line);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.side-nav a::after {
  content: "›";
  position: absolute;
  right: 11px;
  top: 50%;
  color: #999;
  font-size: 19px;
  line-height: 1;
  transform: translateY(-50%);
}
.side-nav a:hover, .side-nav a:focus-visible, .side-nav a.is-current { color: var(--red); background: #fff7f7; }
.side-nav a img {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 25px;
  height: 25px;
  object-fit: contain;
  transform: translateY(-50%);
}

.side-utility { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.side-utility a {
  height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #333;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.side-utility a + a { border-left: 1px solid var(--line); }
.side-utility img { width: 25px; height: 25px; object-fit: contain; }

.site-search { height: 64px; display: flex; gap: 8px; padding: 16px; }
.site-search input { width: 152px; height: 32px; padding: 5px 8px; border: 1px solid #aaa; border-radius: 3px; font-size: 12px; }
.site-search button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 3px; color: #fff; background: #777; font-size: 21px; line-height: 32px; }

.main-column { min-width: 0; padding: 8px 0 40px; }

.hero-stage { width: 713px; aspect-ratio: 718 / 320; overflow: hidden; border-radius: 8px; background: #ddd; }
.hero-stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.hero-stage img.is-changing { opacity: .25; }
.hero-thumbnails { height: 80px; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 8px; overflow: hidden; border-radius: 4px; }
.hero-thumb { position: relative; height: 80px; padding: 0; border: 0; background: #fff; overflow: hidden; }
.hero-thumb + .hero-thumb { border-left: 2px solid var(--canvas); }
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.5); transition: opacity .15s ease; }
.hero-thumb.is-active::after, .hero-thumb:hover::after { opacity: 0; }
.hero-thumb.is-active { box-shadow: inset 0 -4px 0 var(--red); }
.hero-dots { display: none; }

.notice-card {
  min-height: 47px;
  margin: 16px 0;
  padding: 9px 44px 9px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}
.notice-icon {
  width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: #fff; font-weight: 800;
}
.notice-text { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.notice-text strong { color: #555; font-size: 12px; font-weight: 400; white-space: nowrap; }
.notice-text u { color: var(--blue); font-size: 16px; font-weight: 700; text-underline-offset: 2px; }
.chevron { position: absolute; right: 16px; top: 50%; color: var(--red); font-size: 25px; transform: translateY(-52%); }

.carryover { display: flex; gap: 8px; margin: 20px -4px; }
.carryover picture { width: calc(50% - 4px); }
.carryover img { width: 100%; height: auto; }

.wide-banner { width: 713px; min-height: 96px; display: block; margin: 0 0 16px; overflow: hidden; border-radius: 8px; }
.wide-banner img { width: 100%; height: auto; }

.category-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px 3px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(224, 224, 224, .75);
}
.category-panel a {
  height: 61px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.category-panel img { width: 100%; height: 55px; object-fit: contain; }
.secondary-banner { margin-top: 0; }

.topic-section, .app-section, .product-section { margin: 0 0 16px; padding: 0 16px 20px; border-radius: 8px; background: #fff; }
.section-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -16px 20px; }
.section-tabs button { height: 52px; border: 0; border-bottom: 4px solid #ddd; color: #555; background: #f5f5f5; font-weight: 700; }
.section-tabs button.is-active { border-bottom-color: var(--red); color: var(--red); background: #fff; }
.topic-section h2, .product-section h2 { margin: 0 0 15px; font-size: 20px; line-height: 1.35; }
.campaign-grid, .ticket-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.campaign-card, .ticket-grid a { display: flex; min-width: 0; flex-direction: column; color: #111; text-decoration: none; }
.campaign-card img, .ticket-grid img { width: 100%; aspect-ratio: 16 / 9; border-radius: 5px; object-fit: cover; }
.campaign-card span, .ticket-grid strong { margin-top: 9px; font-size: 13px; line-height: 1.45; font-weight: 700; }
.campaign-card small, .ticket-grid small { margin-top: 4px; color: #777; font-size: 11px; }
.more-link {
  height: 44px; margin: 18px auto 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--red); border-radius: 4px; color: var(--red); font-weight: 700; text-decoration: none;
}
.more-link span { margin-left: 10px; font-size: 22px; }

.app-section { padding: 0 0 24px; overflow: hidden; scroll-margin-top: 16px; }
.app-section-title { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 15px 20px; border-bottom: 1px solid #ddd; }
.red-square { width: 7px; height: 45px; flex: 0 0 7px; background: var(--red); }
.app-section-title p { margin: 0 0 2px; color: var(--red); font-size: 12px; font-weight: 700; }
.app-section-title h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.app-intro { display: grid; grid-template-columns: 45% 55%; align-items: center; padding: 22px 24px 12px; }
.app-visual { width: 100%; }
.app-copy { padding-left: 18px; }
.app-copy > p { margin: 0 0 12px; font-size: 13px; line-height: 1.8; }
.app-copy .app-note { color: #666; font-size: 11px; line-height: 1.55; }
.apk-button, .right-download-button, .dialog-download {
  width: 100%; min-height: 60px; border: 0; border-radius: 4px;
  color: #fff; background: linear-gradient(#f12626, #c90000);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 0 #970000;
  font-weight: 700;
}
.apk-button { display: grid; grid-template-columns: 34px 1fr 16px; align-items: center; padding: 8px 12px; text-align: left; font-size: 17px; line-height: 1.25; }
.apk-button small { display: block; font-size: 11px; font-weight: 400; }
.apk-button b { font-size: 24px; }
.android-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 6px; color: #a4ca39; background: #fff; font-size: 10px; }
.apk-meta { margin-top: 9px !important; color: #777; text-align: center; font-size: 11px !important; }
.app-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 24px 0; }
.app-feature-grid div { min-height: 118px; padding: 12px; border: 1px solid #ddd; border-radius: 5px; }
.app-feature-grid span { display: block; color: var(--red); font: 700 17px/1 Arial, sans-serif; }
.app-feature-grid strong { display: block; margin-top: 8px; font-size: 13px; }
.app-feature-grid p { margin: 6px 0 0; color: #666; font-size: 11px; line-height: 1.55; }

.product-section { padding-top: 20px; }
.product-section h2 { display: flex; align-items: center; gap: 9px; }
.product-section h2 > span { width: 6px; height: 25px; background: var(--red); }
.bottom-banner { margin-bottom: 22px; }

.site-footer { padding: 22px 16px 12px; border-top: 1px solid #ccc; color: #666; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.site-footer a { color: #555; font-size: 11px; }
.site-footer p { margin: 16px 0 0; font-size: 10px; }

.right-rail { padding-top: 8px; }
.download-card, .schedule-card { margin-bottom: 8px; border-radius: 8px; background: #fff; }
.download-card { padding: 16px; border: 4px solid var(--yellow); }
.welcome-title { width: 170px; height: 50px; margin: 0 auto 5px; object-fit: contain; }
.download-lead { margin: 0; color: var(--red); text-align: center; font-size: 21px; font-weight: 800; }
.right-app-visual { width: 180px; height: 100px; margin: 7px auto 5px; object-fit: cover; object-position: center; }
.download-card-copy { margin: 5px 0 12px; font-size: 12px; line-height: 1.65; }
.right-download-button { position: relative; min-height: 62px; padding: 7px 31px 7px 13px; text-align: left; }
.right-download-button span { display: block; font-size: 11px; font-weight: 400; }
.right-download-button strong { display: block; font-size: 17px; }
.right-download-button b { position: absolute; right: 13px; top: 50%; font-size: 25px; transform: translateY(-52%); }
.download-meta { margin: 14px 0 9px; border-top: 1px solid #ddd; }
.download-meta div { display: grid; grid-template-columns: 76px 1fr; padding: 7px 0; border-bottom: 1px solid #ddd; font-size: 11px; }
.download-meta dt { color: #666; }
.download-meta dd { margin: 0; font-weight: 700; }
.text-link { display: flex; justify-content: center; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: underline; }
.text-link span { margin-left: 6px; color: var(--red); text-decoration: none; }

.schedule-card { padding: 16px; }
.schedule-card > img { width: 200px; height: 24px; margin: 0 auto 8px; object-fit: contain; }
.schedule-date { display: flex; align-items: baseline; justify-content: center; padding: 5px 0; color: var(--red); border-top: 1px solid #eee; }
.schedule-date strong { font: 700 31px/1 Arial, sans-serif; }
.schedule-date span { margin-left: 3px; font-weight: 700; }
.schedule-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #ddd; }
.schedule-card li { min-height: 46px; display: grid; grid-template-columns: 42px 1fr; align-items: center; border-bottom: 1px solid #ddd; }
.schedule-card li > span { color: var(--red); font: 700 19px/1 Arial, sans-serif; text-align: center; }
.schedule-card li p { margin: 0; padding: 5px 8px; border-left: 1px solid #ddd; }
.schedule-card li b, .schedule-card li small { display: block; font-size: 11px; }
.schedule-card li small { color: #777; }
.schedule-card > a { min-height: 38px; display: flex; align-items: center; justify-content: center; margin-top: 10px; border: 1px solid var(--red); border-radius: 4px; color: var(--red); font-size: 12px; font-weight: 700; text-decoration: none; }
.schedule-card > a span { margin-left: 6px; font-size: 18px; }
.right-mini-card { height: 48px; margin-bottom: 8px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; color: var(--blue); background: #fff; font-weight: 700; text-decoration: none; }
.right-mini-card b { color: var(--red); font-size: 22px; }

.download-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 28px 28px 24px;
  border: 0;
  border-radius: 8px;
  color: #111;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.3);
  text-align: center;
}
.download-dialog::backdrop { background: rgba(0,0,0,.62); }
.dialog-close { position: absolute; right: 10px; top: 8px; width: 36px; height: 36px; border: 0; color: #777; background: transparent; font-size: 28px; }
.dialog-icon { width: 54px; height: 54px; margin: 0 auto 13px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 31px; font-weight: 800; }
.download-dialog h2 { margin: 0 0 10px; font-size: 22px; }
.download-dialog > p { margin: 0 0 17px; color: #555; font-size: 13px; }
.download-dialog dl { margin: 0 0 18px; border-top: 1px solid #ddd; }
.download-dialog dl div { display: grid; grid-template-columns: 110px 1fr; padding: 8px; border-bottom: 1px solid #ddd; font-size: 12px; text-align: left; }
.download-dialog dt { color: #666; }
.download-dialog dd { margin: 0; font-weight: 700; }
.dialog-download { min-height: 52px; font-size: 16px; }
.dialog-download span { float: right; padding-right: 8px; font-size: 22px; }
.download-dialog > a { display: inline-block; margin-top: 15px; color: var(--blue); font-size: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 1000; max-width: calc(100% - 32px);
  padding: 11px 18px; border-radius: 5px; color: #fff; background: rgba(20,20,20,.94);
  opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
  body { padding: 60px 0 76px; font-size: 14px; }

  .mobile-header {
    position: fixed; inset: 0 0 auto; z-index: 300; height: 60px;
    display: grid; grid-template-columns: 60px minmax(0, 1fr) 90px;
    background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25);
  }
  .mobile-menu-button { position: relative; width: 60px; height: 60px; padding: 10px 0 2px; border: 0; background: #fff; color: var(--red); }
  .mobile-menu-button > span { width: 24px; height: 4px; display: block; margin: 0 auto 4px; border-radius: 2px; background: var(--red); transition: transform .2s ease, opacity .2s ease; }
  .mobile-menu-button small { display: block; margin-top: 2px; font-size: 9px; line-height: 1; font-weight: 700; }
  .mobile-menu-button[aria-expanded="true"] > span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-menu-button[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .mobile-menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-logo { display: flex; align-items: center; padding-left: 3px; overflow: hidden; }
  .mobile-logo img { width: 147px; height: 19px; object-fit: contain; }
  .mobile-header-download { width: 90px; height: 60px; padding: 4px 4px 3px; border: 0; color: #fff; background: linear-gradient(#f12525, #c90000); }
  .mobile-header-download .download-arrow { display: block; font-size: 28px; line-height: 27px; font-weight: 800; }
  .mobile-header-download small { display: block; font-size: 9px; font-weight: 700; }

  .mobile-menu {
    position: fixed; z-index: 290; inset: 60px 0 auto; padding: 0 8px 12px;
    display: block;
    background: #eee; box-shadow: 0 6px 14px rgba(0,0,0,.2);
  }
  .mobile-menu nav { border-radius: 0 0 6px 6px; overflow: hidden; background: #fff; }
  .mobile-menu a, .mobile-menu button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; border-bottom: 1px solid #ddd; color: #111; background: #fff; font-weight: 700; text-align: left; text-decoration: none; }
  .mobile-menu a::after { content: "›"; color: var(--red); font-size: 22px; }
  .mobile-menu button { justify-content: center; color: #fff; background: linear-gradient(#ed2020, #c90000); }

  .site-shell { width: auto; display: block; margin: 0; padding: 0; }
  .left-rail, .right-rail { display: none; }
  .main-column { width: 100%; padding: 16px 8px 32px; }

  .hero-carousel { margin: 0; }
  .hero-stage { width: 100%; aspect-ratio: 718 / 320; border-radius: 6px; }
  .hero-thumbnails { display: none; }
  .hero-dots { height: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; }
  .hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d3d3d3; }
  .hero-dots span.is-active { background: var(--red); }

  .notice-card { min-height: 40px; margin: 12px 0; padding: 8px 34px 8px 12px; gap: 8px; }
  .notice-icon { width: 24px; height: 24px; flex-basis: 24px; font-size: 12px; }
  .notice-text { display: block; }
  .notice-text strong { display: block; font-size: 11px; line-height: 1.25; }
  .notice-text u { display: block; font-size: 14px; line-height: 1.35; }
  .chevron { right: 12px; }

  .carryover { display: grid; gap: 8px; margin: 12px -4px; }
  .carryover picture { width: 100%; padding: 0 4px; }
  .carryover img { width: 100%; }

  .wide-banner { width: 100%; min-height: 0; margin: 12px 0 16px; border-radius: 6px; }
  .category-panel { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0 0 16px; background: transparent; }
  .category-panel a { height: 52px; border-radius: 6px; }
  .category-panel img { width: 100%; height: 46px; }

  .topic-section, .app-section, .product-section { border-radius: 6px; }
  .topic-section { margin-left: -8px; margin-right: -8px; padding-left: 8px; padding-right: 8px; border-radius: 0; background: transparent; }
  .section-tabs { display: flex; gap: 6px; margin: 0 0 15px; overflow-x: auto; scrollbar-width: none; }
  .section-tabs::-webkit-scrollbar { display: none; }
  .section-tabs button { flex: 0 0 auto; height: 35px; padding: 4px 15px; border: 1px solid var(--red); border-radius: 4px; color: var(--red); background: #fff; }
  .section-tabs button.is-active { color: #fff; background: var(--red); border-bottom-color: var(--red); }
  .topic-section h2 { padding: 0 8px; font-size: 19px; }
  .campaign-grid { display: flex; gap: 8px; padding: 0 8px 4px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .campaign-grid::-webkit-scrollbar { display: none; }
  .campaign-card { width: 164px; flex: 0 0 164px; padding-bottom: 12px; border-radius: 6px; background: #fff; overflow: hidden; scroll-snap-align: start; }
  .campaign-card img { width: 164px; height: 92px; border-radius: 0; }
  .campaign-card span { padding: 0 12px; font-size: 14px; }
  .campaign-card small { padding: 0 12px; font-size: 11px; }
  .more-link { margin-left: 8px; margin-right: 8px; background: #fff; }

  .app-section { padding-bottom: 20px; scroll-margin-top: 70px; }
  .app-section-title { min-height: 75px; padding: 13px 15px; }
  .app-section-title h2 { font-size: 18px; }
  .app-intro { display: block; padding: 16px; }
  .app-visual { width: 100%; max-height: 205px; object-fit: cover; }
  .app-copy { padding: 14px 0 0; }
  .app-copy > p { font-size: 13px; }
  .apk-button { min-height: 58px; font-size: 16px; }
  .app-feature-grid { grid-template-columns: 1fr; padding: 0 16px; }
  .app-feature-grid div { min-height: 0; }

  .product-section { padding: 18px 12px; }
  .product-section h2 { font-size: 18px; }
  .ticket-grid { grid-template-columns: 1fr; gap: 16px; }
  .ticket-grid a { display: grid; grid-template-columns: 144px 1fr; grid-template-rows: auto auto; gap: 0 8px; padding: 12px; border: 1px solid #e2e2e2; border-radius: 6px; }
  .ticket-grid img { grid-row: 1 / 3; width: 144px; height: 81px; }
  .ticket-grid strong { margin: 3px 0 0; font-size: 14px; }
  .ticket-grid small { font-size: 11px; }

  .site-footer { margin: 0 -8px -32px; padding-bottom: 24px; background: #fff; }

  .mobile-download-bar {
    position: fixed; z-index: 280; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom));
    height: 60px; padding: 7px 7px 7px 13px; display: flex; align-items: center; justify-content: space-between;
    border-radius: 6px; background: rgba(255,255,255,.97); box-shadow: 0 2px 15px rgba(0,0,0,.28);
  }
  .mobile-download-bar div { min-width: 0; }
  .mobile-download-bar strong, .mobile-download-bar small { display: block; }
  .mobile-download-bar strong { color: var(--red); font-size: 13px; }
  .mobile-download-bar small { color: #555; font-size: 10px; }
  .mobile-download-bar button { height: 46px; padding: 0 12px; border: 0; border-radius: 4px; color: #fff; background: linear-gradient(#f12626, #c90000); font-size: 13px; font-weight: 700; }
  .mobile-download-bar button span { margin-left: 7px; font-size: 18px; }

  .download-dialog { padding: 26px 20px 22px; }
  .download-dialog h2 { font-size: 19px; }
  .toast { bottom: 82px; width: calc(100% - 32px); text-align: center; }
}

@media (max-width: 390px) {
  .mobile-header { grid-template-columns: 60px minmax(0, 1fr) 85px; }
  .mobile-header-download { width: 85px; }
  .mobile-logo img { width: min(147px, 100%); }
  .ticket-grid a { grid-template-columns: 125px 1fr; }
  .ticket-grid img { width: 125px; height: 70px; }
  .mobile-download-bar strong { font-size: 12px; }
  .mobile-download-bar button { padding: 0 9px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
