:root {
  --ink: #f3f1f4;
  --muted: #aaa5ae;
  --line: #352c3e;
  --line-strong: #4a3b56;
  --soft: #0d0912;
  --paper: #18141e;
  --accent: #e45498;
  --accent-cool: #6076e8;
  --violet: #9368de;
  --shadow: 0 18px 48px rgba(0, 0, 0, .25), 0 0 36px rgba(180, 67, 128, .025);
  --radius: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--soft);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% -8%, rgba(224, 48, 137, .16), transparent 31rem),
    radial-gradient(circle at 97% 7%, rgba(58, 89, 224, .14), transparent 34rem),
    linear-gradient(180deg, #140b18 0%, #0e0b14 48%, #0a0e18 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: #ef8dbc;
  text-underline-offset: .2em;
}

a:hover { color: #ffc0dc; text-decoration-thickness: 2px; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(228, 84, 152, .62);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #fff;
  background: #17161a;
}

.skip-link:focus { top: 12px; }

.page-shell {
  width: min(100% - 32px, 820px);
  min-height: 68vh;
  margin-inline: auto;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #918c95;
  font-size: .875rem;
}

.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: #ef9dc3; }

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 28px 30px;
  border: 1px solid rgba(226, 84, 151, .28);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 4% 110%, rgba(231, 45, 139, .18), transparent 22rem),
    radial-gradient(circle at 102% -10%, rgba(61, 91, 226, .17), transparent 21rem),
    linear-gradient(125deg, #1a111f 0%, #171221 48%, #11172a 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14%;
  left: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239, 62, 148, .72), rgba(147, 104, 222, .62), rgba(71, 104, 238, .65), transparent);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: #e590b7;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 12px 0 0;
  color: #c9c1cd;
  line-height: 1.75;
}

.content-card {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(199, 115, 163, .20);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(225, 69, 145, .035), rgba(82, 104, 226, .028)),
    var(--paper);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .03);
}

.content-card h2 {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: #f7f5f7;
  font-size: 1.25rem;
  line-height: 1.5;
}

.content-card h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 68px;
  height: 2px;
  background: linear-gradient(90deg, rgba(228, 84, 152, .82), rgba(147, 104, 222, .64), rgba(96, 118, 232, .56));
}

.content-card h3 {
  margin: 24px 0 8px;
  color: #ded9e0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.content-card p { margin: 0 0 13px; }
.content-card p:last-child { margin-bottom: 0; }
.content-card ul,
.content-card ol { margin: 8px 0 12px; padding-left: 1.4em; }
.content-card li + li { margin-top: 6px; }

.note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #413249;
  border-left: 3px solid rgba(228, 84, 152, .72);
  border-radius: 0 12px 12px 0;
  color: #d1ccd3;
  background: linear-gradient(100deg, rgba(216, 61, 135, .08), rgba(83, 103, 213, .05)), #1b1720;
}

.contact-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(220, 67, 141, .065), rgba(79, 101, 220, .055)), #1b1721;
}

.contact-box a { overflow-wrap: anywhere; font-weight: 700; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(199, 105, 157, .23);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 0 100%, rgba(223, 55, 138, .09), transparent 10rem),
    radial-gradient(circle at 100% 0, rgba(66, 94, 220, .08), transparent 11rem),
    #17131d;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .02);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 102, 164, .48);
  color: #fff;
  background:
    radial-gradient(circle at 0 100%, rgba(223, 55, 138, .13), transparent 10rem),
    radial-gradient(circle at 100% 0, rgba(66, 94, 220, .11), transparent 11rem),
    #1b1622;
}

.link-card strong { color: #f7f5f7; font-size: 1.05rem; line-height: 1.5; }
.link-card span { margin-top: 10px; color: #d18aa9; font-size: .875rem; font-weight: 700; }

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--ink);
  background: #18141e;
  font-size: .95rem;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th { color: #ece6ee; background: linear-gradient(90deg, rgba(215, 68, 138, .08), rgba(73, 96, 213, .07)), #211a27; font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td:last-child { white-space: nowrap; font-weight: 700; }

.definition-list {
  display: grid;
  grid-template-columns: minmax(150px, 31%) 1fr;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  overflow: hidden;
}

.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.definition-list dt { color: #e2dbe4; background: linear-gradient(110deg, rgba(211, 68, 137, .075), rgba(75, 98, 213, .05)), #211a27; font-weight: 800; }
.definition-list dd { color: var(--ink); background: #18141e; }
.definition-list dt:last-of-type,
.definition-list dd:last-of-type { border-bottom: 0; }

.faq-group { margin-top: 18px; }
.faq-group-title { margin: 32px 0 10px; color: #f5f3f5; font-size: 1.25rem; }
.faq-item {
  margin-top: 10px;
  border: 1px solid rgba(196, 108, 158, .20);
  border-radius: 16px;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.55;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "Q";
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(229, 107, 165, .42);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #a84173, #7050a5 55%, #465aaa);
  font-size: .8rem;
  line-height: 1;
}

.faq-item summary::after { content: "+"; margin-left: auto; color: #d77ca8; font-size: 1.35rem; line-height: 1.2; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 19px 57px; color: #bcb7bf; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

.status-panel {
  padding: 40px 24px;
  border: 1px solid rgba(202, 108, 160, .24);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 8% 110%, rgba(225, 53, 139, .13), transparent 18rem),
    radial-gradient(circle at 95% -5%, rgba(65, 94, 224, .12), transparent 18rem),
    #17131d;
  text-align: center;
  box-shadow: var(--shadow);
}

.status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(230, 109, 166, .46);
  border-radius: 18px;
  color: #e8e4e8;
  background: linear-gradient(135deg, #a43e70, #7250a7 52%, #455bad);
  font-size: 1.4rem;
  font-weight: 900;
}

.status-panel h2 { margin: 0 0 10px; font-size: 1.35rem; }
.status-panel p { margin: 0; color: #aaa5ae; }
.updated { margin: 24px 2px 0; color: #918c95; font-size: .875rem; text-align: right; }
.loading { padding: 72px 0; color: #aaa5ae; text-align: center; }
.noscript { margin: 24px; padding: 16px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--paper); }

.site-footer {
  padding: 38px max(20px, env(safe-area-inset-right)) calc(44px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  color: #8f8a93;
  border-top: 1px solid #35293d;
  background:
    radial-gradient(circle at 20% 0, rgba(220, 50, 137, .075), transparent 18rem),
    radial-gradient(circle at 82% 0, rgba(59, 87, 214, .07), transparent 19rem),
    #0b0910;
  text-align: center;
}

.footer-nav {
  display: flex;
  max-width: 820px;
  margin: 0 auto 25px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 20px;
}

.footer-nav a { color: #aaa5ae; font-size: .82rem; text-decoration: none; }
.footer-nav a:hover { color: #efa0c4; }
.company-name { margin: 0 0 3px; color: #d8d4d9; font-size: .88rem; font-weight: 700; }
.copyright { margin: 0; font-size: .75rem; letter-spacing: .08em; }

@media (max-width: 640px) {
  .page-shell { width: min(100% - 24px, 820px); padding: 24px 0 56px; }
  .page-hero { padding: 24px 21px; border-radius: 19px; }
  .content-card { padding: 22px 19px; border-radius: 19px; }
  .info-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 110px; }
  .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { padding-bottom: 6px; border-bottom: 0; }
  .definition-list dd { padding-top: 4px; }
  .definition-list dt:last-of-type { border-bottom: 0; }
  .faq-answer { padding-left: 18px; }
  .table-wrap { overflow-x: visible; }
  .table-wrap table { min-width: 0; table-layout: fixed; font-size: .9375rem; line-height: 1.5; }
  .table-wrap th:first-child, .table-wrap td:first-child { width: 58%; }
  .table-wrap th:last-child, .table-wrap td:last-child { width: 42%; }
  .table-wrap th, .table-wrap td { padding: 12px 10px; overflow-wrap: anywhere; }
  .table-wrap td:last-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
