/* Reference-matched homepage modules. All rules stay inside these three sections. */
.reference-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body #news, body #rules, body #safety { --reference-ink: #3e1d68; color: var(--reference-ink); font-family: "Noto Sans JP", sans-serif; position: relative; }
body #news, body #safety { padding-top: clamp(40px, 4vw, 64px); }
body #news { padding-top: 36px; }
body #safety { padding-top: 48px; }
body #news { padding-bottom: 30px; background: transparent !important; }
body #rules, body #safety { padding-bottom: clamp(56px, 5vw, 80px); background: transparent !important; }
body #news .hi-wrap, body #rules .card-wrap, body #safety .card-wrap { max-width: 1440px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
body #rules .card-wrap::before, body #rules .card-wrap::after { content: none; }
.reference-section-head { position: relative; z-index: 1; margin: 0 0 28px; }
body #news .overview-intro { min-height: 170px; padding: 0 28px; margin-bottom: 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.reference-eyebrow { display: flex; align-items: center; gap: 18px; margin: 0 0 14px; font-size: 12px; font-weight: 700; color: #9264b8; letter-spacing: .25em; }
.reference-eyebrow::after { content: ""; width: 180px; height: 1px; background: linear-gradient(90deg, #b286d5, transparent); }
body #news .reference-title, body #safety .reference-title { font: 700 clamp(32px, 3.6vw, 54px)/1.35 "Noto Sans JP", sans-serif !important; letter-spacing: .025em !important; color: #4d2380 !important; margin: 0 0 12px; }
body #news .reference-title { font-size: clamp(32px, 3.4vw, 50px) !important; line-height: 1.25 !important; margin-bottom: 8px; }
#news .reference-eyebrow { margin-bottom: 12px; }
#news .reference-lead { font-size: 18px; line-height: 1.6; }
.reference-lead { margin: 0; color: #705388; font-size: clamp(15px, 1.4vw, 20px); font-weight: 500; line-height: 1.8; }
.reference-title-line { display: block; height: 3px; width: 76px; background: linear-gradient(90deg, #9858ec, #f4a4d2); margin-top: 16px; }
.reference-presenters { position: absolute; pointer-events: none; user-select: none; }
.reference-presenters img { display: block; width: 100%; height: auto; }
.overview-presenters { width: 420px; right: 38px; bottom: -36px; translate: 14px 24px; }
.reference-presenters i { position: absolute; width: 4px; height: 22px; border-radius: 4px; background: #a76ae2; top: 22%; right: 0; transform: rotate(32deg); }
.reference-presenters i + i { right: -16px; top: 27%; transform: rotate(58deg); height: 18px; }
#news .reference-overview-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr 1fr; align-items: stretch; gap: 16px; }
body #news .overview-column { position: relative; isolation: isolate; min-width: 0; display: flex; flex-direction: column; padding: 26px 24px 24px; border: 2px solid rgba(255,255,255,.95); border-radius: 32px; background: linear-gradient(150deg, #fffffff2, #fff8ffde); box-shadow: 0 14px 34px rgba(123,69,165,.12); backdrop-filter: blur(8px); }
body #news .hi-news { gap: 0; }
.reference-card-head { display: flex; align-items: center; gap: 16px; min-height: 56px; margin-bottom: 22px; }
.reference-card-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(145deg, #b58bff, #8046df); color: #fff; box-shadow: 0 5px 12px #ad80e64d, inset 0 1px 2px #fff8; }
.reference-card-icon svg { width: 28px; height: 28px; }
.reference-card-head > div { min-width: 0; }
.reference-card-head p { margin: 0 0 6px; font-size: 10px; letter-spacing: .14em; font-weight: 700; color: #9875af; }
.reference-card-head h3 { margin: 0; font: 700 clamp(19px, 1.65vw, 25px)/1.4 "Noto Sans JP", sans-serif; color: #421d70; letter-spacing: .01em; }
.reference-list-link { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-left: auto; border-radius: 999px; padding: 7px 10px; background: #f1e8fa; color: #55267e; text-decoration: none; font-size: 10px; font-weight: 700; white-space: nowrap; }
.reference-list-link svg { width: 14px; height: 14px; }
#news .reference-news-list { display: grid; list-style: none; gap: 12px; margin: 0; padding: 0; border: 0; }
body #news .hi-news .reference-news-list li { border: 0; }
body #news .hi-news .reference-news-list a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding: 20px 32px 20px 18px; border-radius: 18px; background: linear-gradient(130deg, #f7effc, #f7f2fb); color: #4d2d73; text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.9; transition: background .2s; }
body #news .hi-news .reference-news-list a:hover { padding-left: 18px; background: #eee0f8; }
#news .reference-news-list .news-category { display: inline-block; flex: none; border-radius: 999px; padding: 3px 15px; font-size: 11px; font-weight: 700; line-height: 1.6; color: #db488f; background: #f9d4eb; }
#news .reference-news-list li:nth-child(2) .news-category { color: #7850c1; background: #e6d5ff; }
#news .reference-news-list li:nth-child(3) .news-category { color: #655ac5; background: #dfe0ff; }
#news .news-item-copy { flex: none; }
#news .news-date { flex: none; color: #8f71ac; font-size: 12px; font-weight: 500; }
.news-date svg { display: inline; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
#news .reference-news-list b { position: absolute; right: 12px; top: 50%; font-size: 22px; font-weight: 500; transform: translateY(-50%); }
.reference-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 22px; min-height: 60px; border: 2px solid #fff; border-radius: 999px; font: 700 17px/1.5 "Noto Sans JP", sans-serif; text-decoration: none; color: #4c2376; background: #fff; box-shadow: 0 5px 14px #8b55b52b; transition: transform .2s, box-shadow .2s; }
.reference-button > svg { flex: none; width: 26px; height: 26px; }
.reference-button > svg:last-child { margin-left: auto; width: 22px; }
.reference-gradient-button { background: linear-gradient(105deg, #9857dd, #b064da 47%, #edacd5 88%, #fde1ec); color: #fff; box-shadow: 0 8px 18px #9e66c94d; }
.reference-button:hover { transform: translateY(-2px); color: inherit; box-shadow: 0 10px 24px #8b55b547; }
.reference-gradient-button:hover { color: #fff; }
.reference-button:focus-visible, .safety-card-link:focus-visible, .reference-list-link:focus-visible { outline: 3px solid #a66de1; outline-offset: 4px; }
#news .hi-news > .reference-button { margin: 26px 10px 90px; width: auto; justify-content: flex-start; font-size: 16px; }
#news .hi-news::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 130px; border-radius: 0 0 30px 30px; background: url(/img/art/reference-waves.svg) center bottom / 150% 250px; opacity: .6; }
.reference-schedule-pills { display: flex; gap: 10px; justify-content: flex-end; margin: 0 0 14px; }
.reference-schedule-pills span { padding: 7px 12px; font-size: 10px; font-weight: 700; border-radius: 999px; color: #61368b; background: #f0e7fa; white-space: nowrap; }
.reference-schedule-pills span:first-child { background: #8a49bd; color: #fff; }
.overview-table-frame { overflow: hidden; border: 1px solid #f0e5f6; border-radius: 18px; }
.overview-schedule { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; color: #512a75; font-variant-numeric: tabular-nums; }
.overview-schedule th, .overview-schedule td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #f1e7f7; line-height: 1.55; }
.overview-schedule thead { background: #f0e4f8; font-size: 11px; }
.overview-schedule thead th { padding-block: 12px; }
.overview-schedule th:first-child { width: 28%; }
.overview-schedule th:nth-child(2) { width: 52%; }
.overview-schedule th:last-child, .overview-schedule td:last-child { width: 20%; text-align: right; }
.overview-schedule tbody tr:nth-child(even) { background: #fbf7fe; }
.overview-schedule tbody tr:last-child > * { border-bottom: 0; }
.schedule-date { display: block; font-weight: 700; font-size: 18px; line-height: 1.2; }
.overview-schedule small { display: block; font-size: 10px; font-weight: 500; line-height: 1.3; }
.schedule-time { display: block; white-space: nowrap; }
.schedule-count { display: inline-block; border-radius: 999px; padding: 1px 6px; background: #eee2ff; color: #8650ce; font-weight: 700; box-shadow: inset 0 0 0 3px #e0caff; }
.reference-calendar-intro { font-size: 12px; font-weight: 600; margin: -4px 0 24px; }
.reference-calendar-stack { display: grid; gap: 18px; }
body #news .hi-cal { padding: 16px 14px; border: 1px solid #e9d8f5; border-radius: 20px; background: #fbf5ff8c; scroll-margin-top: calc(var(--hd-h, 104px) + 20px); }
body #news .hi-cal-h { display: flex; justify-content: center; align-items: center; position: relative; font-size: 18px; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid #eadcf3; color: #411b69; }
.calendar-jump { display: grid; place-items: center; width: 28px; height: 28px; position: absolute; right: 2px; top: 0; font-size: 29px; line-height: 1; border: 0; background: transparent; color: #8653b2; text-decoration: none; }
.calendar-jump:first-child { left: 2px; right: auto; }
.calendar-jump:disabled { opacity: .35; }
body #news .hi-cal-g { gap: 4px 0; font-size: 12px; }
body #news .hi-cal-g b { font-size: 11px; padding-bottom: 3px; }
body #news .hi-cal-g > :is(a, span) { height: 31px; min-height: 31px; }
body #news .hi-cal-g a.on::before { width: 28px; height: 28px; background: #8245b2; box-shadow: none; }
body #news .hi-legend { font-size: 12px; margin-top: 12px; line-height: 1.9; }
body #news .hi-legend a { display: inline-flex; align-items: center; gap: 8px; margin-top: 5px; color: #743caa; font-weight: 700; text-decoration: underline; }
.hi-legend svg { width: 16px; height: 16px; }
.reference-section-signature { display: flex; align-items: center; gap: 24px; margin: 44px 0 0; color: #b397c8; font-size: 10px; }
.reference-section-signature strong { font-size: 20px; letter-spacing: .08em; }
.reference-section-signature i { flex: 1; height: 1px; background: #d9bae9; }

/* Safety: four tall glass cards, pastel topic pills and real circular links. */
body #safety .safety-reference-heading { min-height: 250px; margin-bottom: 0; padding: 0 60px 16px; }
.safety-reference-heading > div:first-child { max-width: 74%; }
.safety-presenters { width: 350px; height: calc(100% + 40px); right: calc(12.5% - 6px); top: -40px; bottom: auto; overflow: hidden; translate: 50% 24px; }
body #safety .sf-grid { position: relative; z-index: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body #safety .sf-card { --topic: #9e46c4; --topic-soft: #ecd8f8; position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: 24px 28px 72px; border: 2px solid #fff; border-radius: 44px; background: linear-gradient(145deg, #fffffff5, #fff8ffeb); box-shadow: 0 13px 30px #aa65b52b; overflow: hidden; transition: transform .2s; }
body #safety .sf-card:hover { transform: translateY(-3px); }
body #safety .sf-pink { --topic: #c83388; --topic-soft: #fbd6ed; }
body #safety .sf-violet { --topic: #6734bb; --topic-soft: #e8d4ff; }
body #safety .sf-blue { --topic: #1461df; --topic-soft: #dbe7ff; }
body #safety .sf-green { --topic: #009789; --topic-soft: #c9f1e7; }
body #safety .sf-card::after { content: ""; position: absolute; z-index: -1; left: -20%; right: -20%; height: 95px; bottom: -22px; border-radius: 50%; border-top: 2px solid #fff; background: linear-gradient(120deg, var(--topic-soft), #ffffffc9); transform: rotate(-12deg); opacity: .75; }
body #safety .sf-card .sf-ico { width: min(200px, 100%); margin: 0 auto 4px; }
body #safety .sf-tag { font: 700 16px/1.4 "Noto Sans JP", sans-serif; letter-spacing: 0; padding: 5px 22px; background: var(--topic-soft); color: var(--topic); }
body #safety .sf-card h3 { display: grid; place-items: center; color: #321750; font: 700 clamp(20px, 1.65vw, 25px)/1.25 "Noto Sans JP", sans-serif; margin: 16px 0; letter-spacing: 0; min-height: 2.5em; text-align: center; }
body #safety .sf-card p { font: 400 clamp(14px, 1.05vw, 16px)/1.75 "Noto Sans JP", sans-serif; color: #35204f; margin: 0; align-self: stretch; }
.safety-card-link { position: absolute; right: 24px; bottom: 22px; display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; color: var(--topic); background: var(--topic-soft); box-shadow: 0 3px 10px #936ab51a; }
.safety-card-link svg { width: 26px; height: 26px; }
body #safety .reference-safety-action { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 40px; }
.reference-safety-action > i { height: 1px; background: #c99fe1; flex: 1; max-width: 220px; }
.reference-privacy-button { padding: 10px 20px 10px 10px; min-height: 64px; }
.reference-privacy-button > svg:first-child { width: 44px; height: 44px; padding: 8px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #9d59cb, #7037a7); }

/* Call time: one continuous four-column comparison beside the reference photo. */
body #rules { padding-top: 48px; }
body #rules .duration-reference-heading { margin-bottom: 32px; padding-inline: 40px; }
body #rules .duration-heading { margin: 0 0 10px; gap: 18px; }
body #rules .rl-ico { width: 52px; height: 52px; border: 1px solid #edd9fa; background: #f8edfe; box-shadow: inset 0 0 12px #d6b7ed, 0 3px 10px #ac75d32b; }
body #rules .h-left { font: 700 clamp(32px, 3.7vw, 56px)/1.4 "Noto Sans JP", sans-serif !important; letter-spacing: .015em !important; color: #743a99 !important; border: 0 !important; padding: 0 !important; background: none; }
body #rules .reference-lead { margin-left: 70px; font-size: 16px; }
body #rules .reference-title-line { margin-left: 0; }
body #rules .duration-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 32px; align-items: stretch; }
body #rules .duration-art { aspect-ratio: 4 / 5; align-self: start; border: 3px solid #fff; border-radius: 40px; box-shadow: 0 8px 18px #a15aac38; }
body #rules .duration-art img { object-fit: cover; object-position: center; }
body #rules .duration-art figcaption { left: 24px; right: auto; bottom: 26px; transform: rotate(-6deg); font: 400 clamp(18px, 2.2vw, 32px)/1.4 "Yuji Boku", "Noto Sans JP", serif; color: #a54bd0; text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; }
.duration-comparison-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 24px; }
.duration-comparison-head h3 { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 8px; padding: 12px 8px; border-radius: 999px; border: 3px solid #fff; background: linear-gradient(100deg, #f5edff, #e9cbfb); color: #4a216e; font: 700 clamp(15px, 1.5vw, 22px)/1.4 "Noto Sans JP", sans-serif; box-shadow: 0 6px 14px #bd80d438; text-align: center; }
.duration-comparison-head .duration-bonus-label h3 { color: #fff; background: linear-gradient(105deg, #8e43b3, #bc59ce 55%, #f5a9d6); }
.duration-comparison-head svg { flex: none; width: 25px; height: 25px; }
.duration-comparison-head p { margin: 0; color: #3f1d5c; font-size: 13px; text-align: center; font-weight: 600; }
.duration-comparison-frame { padding: 10px 12px; border: 2px solid #fff; border-radius: 28px; background: #ffffffbf; box-shadow: 0 6px 16px #b468b526; }
body #rules .duration-comparison { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; box-shadow: none; }
body #rules .duration-comparison thead th { background: #f0dff8; padding: 16px 8px; font-size: 15px; font-weight: 700; color: #744094; text-align: center; }
body #rules .duration-comparison thead th:first-child { border-radius: 16px 0 0 0; }
body #rules .duration-comparison thead th:last-child { border-radius: 0 16px 0 0; }
body #rules .duration-comparison tbody th, body #rules .duration-comparison tbody td { width: 25%; padding: 14px 8px; text-align: center; font: 700 clamp(16px, 1.55vw, 23px)/1.5 "Noto Sans JP", sans-serif; color: #4c2b68; border: 0; border-radius: 0; box-shadow: none; background: #fff9ff8c; white-space: nowrap; }
body #rules .duration-comparison tbody tr:nth-child(even) > * { background: #f8eafbc9; }
body #rules .duration-comparison tr > :nth-child(3) { border-left: 1px solid #caa2df; }
body #rules .duration-comparison td small, body #rules .duration-comparison th small { font-size: .7em; margin-left: 3px; }
body #rules .duration-comparison tbody tr:last-child > * { border-bottom: 1px solid #f2e5f7; }
body #rules .duration-note { display: flex; align-items: flex-start; gap: 8px; font: 500 11px/1.7 "Noto Sans JP", sans-serif; color: #735087; margin: 14px 2px 0; }
.duration-note > span { flex: none; display: grid; place-items: center; width: 20px; height: 20px; background: #8541ad; color: #fff; border-radius: 50%; font-weight: 700; }
body #rules .duration-details > .reference-button { display: flex; width: fit-content; max-width: 100%; margin: 28px auto 0; padding-inline: 28px; min-width: 70%; font-size: clamp(16px, 1.55vw, 23px); }

@media (max-width: 1250px) {
  .reference-card-head { gap: 10px; }
  .reference-card-icon { width: 44px; height: 44px; }
  .reference-list-link { padding: 6px 8px; font-size: 9px; }
  .reference-list-link svg { display: none; }
  body #news .overview-column { padding-inline: 18px; }
  .reference-schedule-pills { gap: 6px; }
  .reference-schedule-pills span { padding-inline: 8px; font-size: 9px; }
  .overview-schedule th, .overview-schedule td { padding-inline: 8px; }
  .overview-presenters { width: 410px; right: 12px; }
  .safety-presenters { width: 300px; }
}
@media (max-width: 1100px) {
  #news .reference-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #news .hi-news { grid-column: 1 / -1; }
  #news .reference-news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #news .hi-news > .reference-button { margin: 24px auto 0; min-width: 300px; }
  #news .hi-news::after { height: 75px; }
  body #safety .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-presenters { right: calc(25% - 4px); }
  body #safety .safety-reference-heading { padding-inline: 20px; }
  .safety-reference-heading > div:first-child { max-width: 67%; }
  body #rules .duration-layout { grid-template-columns: minmax(0, 1fr); }
  body #rules .duration-art { max-width: 600px; width: 100%; aspect-ratio: 4 / 5; margin: 0 auto; }
  body #rules .duration-art img { position: absolute; height: 100%; }
}
@media (max-width: 700px) {
  body #news .overview-intro, body #safety .safety-reference-heading { min-height: 0; padding: 0 8px; margin-bottom: 0; }
  .reference-presenters, .overview-presenters, .safety-presenters { position: relative; top: auto; right: auto; bottom: auto; width: min(380px, 100%); margin: 0 auto -18px; }
  .overview-presenters { width: min(380px, calc(100% - 16px)); translate: 8px 24px; }
  .safety-presenters { width: min(280px, 85%); height: 290px; translate: 0 24px; }
  .safety-reference-heading > div:first-child { max-width: none; }
  .reference-eyebrow { font-size: 10px; letter-spacing: .16em; }
  .reference-eyebrow::after { width: 80px; }
  .reference-lead { font-size: 15px; }
  #news .reference-overview-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #news .hi-news { grid-column: auto; }
  #news .reference-news-list { grid-template-columns: minmax(0, 1fr); }
  body #news .overview-column { padding: 24px; }
  .reference-card-head h3 { font-size: 22px; }
  .reference-card-icon { width: 52px; height: 52px; }
  .reference-card-head p { font-size: 9px; }
  .reference-list-link { margin-left: auto; }
  .reference-schedule-pills span { font-size: 11px; }
  .overview-schedule { font-size: 14px; }
  body #news .hi-cal-g { font-size: 14px; gap: 7px 0; }
  body #news .hi-cal-g > :is(a, span) { height: 38px; min-height: 38px; }
  body #news .hi-cal-g a.on::before { width: 32px; height: 32px; }
  .reference-section-signature { margin-top: 28px; gap: 14px; }
  .reference-section-signature span { display: none; }
  body #safety .sf-grid { grid-template-columns: minmax(0, 1fr); }
  body #safety .sf-card { padding: 24px 28px 80px; border-radius: 36px; }
  body #safety .sf-card h3 { font-size: 25px; min-height: 0; }
  body #safety .sf-card p { font-size: 16px; }
  body #safety .reference-safety-action { gap: 12px; }
  .reference-safety-action > i { display: none; }
  .reference-privacy-button { font-size: 14px; gap: 10px; }
  body #rules .duration-reference-heading { padding-inline: 0; }
  body #rules .duration-heading { gap: 12px; }
  body #rules .rl-ico { width: 40px; height: 40px; }
  body #rules .reference-lead { margin-left: 0; margin-top: 16px; font-size: 14px; }
  .duration-comparison-head { gap: 8px; }
  .duration-comparison-head h3 { min-height: 58px; font-size: 12px; border-width: 2px; }
  .duration-comparison-head svg { display: none; }
  .duration-comparison-head p { font-size: 10px; }
  .duration-comparison-frame { padding: 6px; border-radius: 22px; }
  body #rules .duration-comparison thead th { font-size: 11px; padding: 12px 3px; }
  body #rules .duration-comparison tbody th, body #rules .duration-comparison tbody td { padding: 12px 2px; font-size: 14px; }
  body #rules .duration-details > .reference-button { min-width: 0; width: 100%; font-size: 15px; padding-inline: 18px; gap: 10px; }
}
