:root {
  --ink: #f5f2f6;
  --muted: #b5aeba;
  --line: #302c39;
  --line-strong: #423b4c;
  --soft: #0b0a10;
  --paper: #17151c;
  --accent: #d68bad;
  --accent-warm: #c7a078;
  --accent-cool: #7faabc;
  --violet: #9a88b2;
  --spectrum: linear-gradient(90deg, rgba(214, 139, 173, .78), rgba(199, 160, 120, .68), rgba(127, 170, 188, .72), rgba(154, 136, 178, .72));
  --shadow: 0 18px 48px rgba(0, 0, 0, .28), 0 1px 0 rgba(255, 255, 255, .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 4% -8%, rgba(207, 95, 150, .085), transparent 30rem),
    radial-gradient(circle at 53% -12%, rgba(203, 149, 92, .04), transparent 26rem),
    radial-gradient(circle at 98% 5%, rgba(84, 150, 181, .065), transparent 34rem),
    radial-gradient(circle at 75% 76%, rgba(128, 105, 166, .045), transparent 30rem),
    linear-gradient(180deg, #110e16 0%, #0d0c13 48%, #0a0b10 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: #dba0ba;
  text-underline-offset: .2em;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(177, 145, 194, .58);
  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: #d9a8bd; }

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 28px 30px;
  border: 1px solid rgba(173, 155, 184, .23);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 2% 112%, rgba(207, 92, 148, .105), transparent 22rem),
    radial-gradient(circle at 55% 120%, rgba(199, 151, 95, .04), transparent 18rem),
    radial-gradient(circle at 103% -12%, rgba(83, 145, 176, .09), transparent 22rem),
    linear-gradient(125deg, #19151e 0%, #17151e 50%, #131923 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 2px;
  background: var(--spectrum);
  opacity: .72;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: #d4a3ba;
  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: #c9c2cd;
  line-height: 1.75;
}

.content-card {
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(168, 151, 179, .18);
  border-radius: var(--radius);
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(205, 106, 151, .024), rgba(101, 151, 175, .022)),
    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: 76px;
  height: 2px;
  background: var(--spectrum);
  opacity: .72;
}

.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 #3b3543;
  border-left: 3px solid rgba(199, 160, 120, .62);
  border-radius: 0 12px 12px 0;
  color: #d1ccd3;
  background: linear-gradient(100deg, rgba(199, 145, 112, .055), rgba(112, 146, 169, .035)), #1a181f;
}

.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(205, 108, 151, .04), rgba(102, 151, 173, .04)), #1a181f;
}

.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 {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(168, 151, 179, .20);
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 0 100%, rgba(203, 93, 145, .055), transparent 10rem),
    radial-gradient(circle at 100% 0, rgba(83, 145, 176, .05), transparent 11rem),
    #17151c;
  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::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: var(--spectrum);
  opacity: .38;
}

.link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 165, 195, .36);
  color: #fff;
  background:
    radial-gradient(circle at 0 100%, rgba(203, 93, 145, .075), transparent 10rem),
    radial-gradient(circle at 100% 0, rgba(83, 145, 176, .07), transparent 11rem),
    #1a181f;
}

.link-card strong { color: #f7f5f7; font-size: 1.05rem; line-height: 1.5; }
.link-card span { margin-top: 10px; color: #c9a1b5; 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: #17151c;
  font-size: .95rem;
}

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

th { color: #eee9ef; background: linear-gradient(90deg, rgba(199, 128, 159, .055), rgba(108, 151, 170, .05)), #201c24; 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: #e4dee6; background: linear-gradient(110deg, rgba(198, 126, 158, .05), rgba(107, 148, 168, .04)), #201c24; font-weight: 800; }
.definition-list dd { color: var(--ink); background: #17151c; }
.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(168, 151, 179, .19);
  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(197, 169, 195, .34);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #8f6178, #76678e 54%, #587889);
  font-size: .8rem;
  line-height: 1;
}

.faq-item summary::after { content: "+"; margin-left: auto; color: #c89aae; 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(168, 151, 179, .22);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 8% 110%, rgba(203, 93, 145, .07), transparent 18rem),
    radial-gradient(circle at 95% -5%, rgba(83, 145, 176, .065), transparent 18rem),
    #17151c;
  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(197, 169, 195, .36);
  border-radius: 18px;
  color: #e8e4e8;
  background: linear-gradient(135deg, #8f6178, #8a735f 34%, #587f8c 68%, #75698d);
  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 #302b38;
  background:
    radial-gradient(circle at 18% 0, rgba(203, 93, 145, .045), transparent 18rem),
    radial-gradient(circle at 82% 0, rgba(83, 145, 176, .04), transparent 19rem),
    #0a090e;
  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: #d9a9bd; }
.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; }
}
