:root {
  color-scheme: light;
  --background: #fffafb;
  --ink: #665e63;
  --subtle: #786a72;
  --pink: #b47b93;
  --pink-deep: #936177;
  --pink-light: #f8eaf0;
  --pink-soft: #fff4f7;
  --line: #efe1e7;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 300px;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #c67a9d; outline-offset: 4px; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 960px) / 2));
  background: rgba(255, 254, 254, .96);
  border-bottom: 1px solid var(--line);
}
.header-social-link {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: #fff; color: #000; text-decoration: none;
}
.menu-trigger {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--pink-soft); border: 1px solid #f5e4eb;
  border-radius: 13px; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.menu-trigger:hover { background: var(--pink-light); transform: translateY(-1px); }
.burger-lines { width: 21px; display: grid; gap: 5px; }
.burger-lines span { display: block; height: 2px; width: 21px; background: var(--pink); border-radius: 10px; }
main { flex: 1; }
.home-main { width: 100%; }
.eyebrow { color: var(--pink-deep); font-size: 11px; font-weight: 600; letter-spacing: .19em; margin: 0 0 15px; }
.site-footer {
  padding: 22px;
  text-align: center; color: var(--subtle);
  font-size: 11px; background: #fff6f8; border-top: 1px solid var(--line);
  letter-spacing: .05em;
}
.site-footer span:first-child { color: #d5a3b6; padding-right: 7px; }
/* Separate pages */
.content-main { width: min(100% - 48px, 710px); margin: 0 auto; padding: 76px 0 96px; }
.page-heading { text-align: center; margin-bottom: 57px; }
.page-heading h1 { color: var(--pink-deep); font-size: clamp(25px,4.5vw,31px); font-weight: 550; letter-spacing: .1em; margin: 0 0 17px; }
.page-heading > p:last-child { color: var(--subtle); font-size: 13px; line-height: 2.1; margin: 0; }
.page-heading a { color: var(--pink-deep); text-underline-offset: 4px; }
.scenario-list { border-top: 1px solid var(--line); }
.scenario-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 30px 4px 34px; border-bottom: 1px solid var(--line); }
.scenario-number { color: #d4acbc; font-size: 16px; letter-spacing: .08em; padding-top: 5px; }
.scenario-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.scenario-tags span { border: 1px solid #f0d9e3; background: #fff5f8; color: var(--pink-deep); border-radius: 999px; padding: 1px 10px; font-size: 11px; line-height: 1.8; }
.scenario-item h2 { color: #65555e; font-size: 19px; font-weight: 650; line-height: 1.5; margin: 0 0 9px; letter-spacing: .02em; }
.scenario-item p { font-size: 13px; line-height: 2; color: var(--subtle); margin: 0 0 17px; }
.download-link, .download-pending { display: inline-flex; gap: 12px; align-items: center; border-radius: 8px; padding: 7px 16px; text-decoration: none; font-size: 12px; font-weight: 600; }
.download-link { min-height: 44px; border: 1px solid #d9a3b8; background: #edc1d0; color: #60404d; transition: background .2s ease; }
.download-link:hover { background: #e8b4c7; }
.download-pending { border: 1px solid #eae2e5; background: #f8f5f7; color: #a89aa0; cursor: default; }
.small-notice { margin: 27px 0 0; font-size: 12px; color: var(--subtle); line-height: 2; }
.about-main { max-width: 650px; }
.about-section { border-top: 1px solid var(--line); padding: 26px 5px 30px; }
.about-section h2 { color: var(--pink-deep); font-size: 16px; font-weight: 600; margin: 0 0 14px; letter-spacing: .05em; }
.about-section h2 span { color: #dab0bf; margin-right: 6px; }
.about-section p { font-size: 14px; line-height: 2.3; margin: 0 0 14px; color: var(--subtle); }
.about-section p:last-child { margin-bottom: 0; }
.about-section .about-small { color: var(--subtle); font-size: 12px; }
.about-section strong { color: var(--ink); font-weight: 600; }
.about-note {
  padding: 17px 20px; background: var(--pink-soft);
  border-left: 3px solid #dfb5c7; border-radius: 0 8px 8px 0;
}
.about-rules { margin: 23px 0 0; padding-left: 1.5em; font-size: 14px; line-height: 2.2; }
.about-rules li { padding-left: 5px; margin-bottom: 18px; }
.about-rules li:last-child { margin-bottom: 0; }
.about-rules li::marker { color: var(--pink); }
.contact-list { margin: 19px 0 0; font-size: 14px; }
.contact-list > div {
  display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px;
  align-items: baseline; padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.contact-list dt { color: var(--pink-deep); font-size: 12px; font-weight: 600; }
.contact-list dd { min-width: 0; margin: 0; }
.contact-list a {
  display: inline-block; padding: 9px 0; min-height: 44px;
  color: var(--pink-deep); overflow-wrap: anywhere; text-underline-offset: 4px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Off-canvas menu */
body.menu-open { overflow: hidden; }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 10; width: 100%; height: 100%;
  padding: 0; border: 0; background: rgba(53, 42, 49, .33);
  cursor: default; opacity: 0; transition: opacity .27s ease;
}
.drawer-backdrop[hidden] { display: none; }
body.menu-open .drawer-backdrop { opacity: 1; }
.site-drawer {
  position: fixed; z-index: 11; top: 0; bottom: 0; right: 0;
  width: min(340px, 83vw); padding: 30px 27px 25px;
  display: flex; flex-direction: column; background: #fff9fb;
  overflow-y: auto; overscroll-behavior-y: contain;
  border-left: 1px solid #f4e4ea;
  box-shadow: -12px 0 34px rgba(84, 51, 65, .11);
  transform: translateX(105%); visibility: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), visibility .3s;
}
.site-drawer > * { flex-shrink: 0; }
body.menu-open .site-drawer { transform: translateX(0); visibility: visible; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #efdee6; }
.drawer-close { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: #f8e8ee; color: var(--pink-deep); border-radius: 10px; font-size: 27px; line-height: 1; cursor: pointer; }
.drawer-close:hover { background: #f0d5df; }
.drawer-nav { display: grid; gap: 4px; margin-top: 28px; }
.drawer-nav a { text-decoration: none; color: #75656e; font-size: 14px; padding: 13px 12px; border-radius: 9px; transition: background .2s ease; }
.drawer-nav a span { display: inline-block; color: #c89daf; font-size: 11px; margin-right: 15px; letter-spacing: .03em; }
.drawer-nav a:hover, .drawer-nav a[aria-current="page"] { background: #f8eaf0; color: #98677e; }
.drawer-caption { margin-top: auto; padding-top: 18px; border-top: 1px solid #efdee6; text-align: center; color: var(--subtle); font-size: 11px; letter-spacing: .04em; }
@media (max-width: 600px) {
  .site-header { height: 66px; padding: 0 19px; }
  .content-main { width: min(100% - 42px, 710px); padding: 52px 0 74px; }
  .page-heading { margin-bottom: 40px; }
  .scenario-item { grid-template-columns: 29px minmax(0,1fr); gap: 12px; padding: 26px 0 28px; }
  .scenario-item h2 { font-size: 17px; }
  .scenario-number { font-size: 13px; }
  .scenario-item p { font-size: 12.5px; }
  .about-note { padding: 15px 16px; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 13px; }
  .drawer-nav a { padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
/* ホーム・シナリオ一覧 */
.home-classic { padding: 58px 23px 110px; }
.home-container { width: min(100%, 760px); margin: 0 auto; }
.welcome-section { text-align: center; padding: 32px 12px 55px; }
.welcome-section h1 { font-size: clamp(24px, 4.4vw, 32px); color: var(--pink-deep); font-weight: 550; letter-spacing: .06em; margin: 12px 0 13px; }
.welcome-message { color: var(--subtle); font-size: 13px; line-height: 2.1; margin: 0 0 24px; }
.classic-section { max-width: 630px; margin: 0 auto 40px; text-align: center; }
.classic-section h2 { font-size: 16px; font-weight: 650; line-height: 1.6; padding: 0 0 12px; border-bottom: 1px solid #e9cdd9; color: var(--pink-deep); margin: 0 0 19px; letter-spacing: .025em; }
.classic-section h2 > span { color: #d4a0b3; font-size: 17px; margin-right: 9px; }
.classic-section h2 small { color: var(--subtle); font-weight: 400; font-size: 11px; margin-left: 12px; }
.classic-section p { line-height: 2.2; font-size: 13px; color: #7e7177; margin: 0 3px 12px; }
.classic-section p a { color: var(--pink-deep); text-underline-offset: 3px; }
.classic-section .official-download-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; max-width: 100%; padding: 10px 22px;
  background: #edc1d0; color: #60404d; border: 1px solid #d9a3b8;
  border-radius: 8px; text-decoration: none; font-weight: 600; line-height: 1.6;
  transition: background .2s ease;
}
.classic-section .official-download-button:hover { background: #e8b4c7; }
.news-list { list-style: none; margin: 0; padding: 0 4px; }
.news-list li { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 17px; padding: 10px 2px 13px; font-size: 13px; color: #7e7177; border-bottom: 1px dashed #f0e3e8; line-height: 1.9; text-align: center; }
.news-list time { color: var(--pink-deep); font-variant-numeric: tabular-nums; }
.scenario-index { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; border-top: 1px solid var(--line); padding: 16px 3px 24px; }
.scenario-index span { font-size: 10px; color: var(--pink-deep); letter-spacing: .12em; margin-right: 5px; }
.scenario-index a { color: var(--pink-deep); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.scenario-item { scroll-margin-top: 24px; }
.scenario-item .scenario-meta { margin: -2px 0 12px; color: var(--pink-deep); font-size: 12px; }
@media (max-width: 600px) {
  .home-classic { padding: 36px 22px 70px; }
  .welcome-section { padding: 24px 0 48px; }
  .welcome-section h1 { font-size: 24px; }
  .classic-section { margin-bottom: 35px; }
  .news-list li { flex-direction: column; align-items: center; gap: 0; }
  .scenario-index { gap: 10px 14px; }
  .scenario-index span { flex-basis: 100%; }
}

.about-section p a { color: var(--pink-deep); text-underline-offset: 3px; }
