/* Goodia legal pages (privacy-policy2.html, user-data-deletion-instructions.html)
   Brand tokens & fonts follow the namcoder theme used on goodia.co.jp */

@font-face { font-family: 'hopa'; src: url('/wp-content/themes/namcoder/css/fonts/hopa.otf'); font-display: swap; }
@font-face { font-family: 'GJGX-Msub'; src: url('/wp-content/themes/namcoder/css/fonts/GJGX-Msub.woff'); font-display: swap; }
@font-face { font-family: 'GJGX-Bsub'; src: url('/wp-content/themes/namcoder/css/fonts/GJGX-Bsub.woff'); font-display: swap; }

:root {
  --ink: #1b1b1b;
  --ink-2: #4a4a4a;
  --ink-3: #858585;
  --line: #ececec;
  --paper: #ffffff;
  --mist: #f6f7f9;
  --blue: #00a0e9;
  --pink: #ff00a8;
  --yellow: #fcff00;
  --display: 'hopa', 'Futura', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --body: 'GJGX-Msub', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Segoe UI', Meiryo, sans-serif;
  --bold: 'GJGX-Bsub', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Segoe UI', Meiryo, sans-serif;
  --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--ink); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: #fff; padding: 4px 14px 6px 12px; }
.brand-mark { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--ink); }
.brand-name { font-family: var(--display); font-size: 13px; letter-spacing: 3px; color: var(--ink); padding-top: 4px; }
.nav { display: flex; gap: 6px; }
.nav a {
  font-family: var(--display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; padding: 8px 14px; background: #fff;
  transition: background .25s, color .25s;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 150px 0 96px; background: var(--paper); }
.hero-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art polygon { transform-box: fill-box; transform-origin: center; }
.hero-card {
  position: relative; z-index: 2; max-width: 640px; margin: 0 auto; background: #fff;
  padding: 56px 48px 50px; text-align: center;
  box-shadow: 0 30px 80px -30px rgba(27,27,27,.28);
}
.eyebrow {
  display: inline-block; font-family: var(--display); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 4px 12px; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display); font-weight: normal; text-transform: uppercase;
  font-size: clamp(28px, 5.4vw, 52px); line-height: 1.12; letter-spacing: 1px; margin: 0;
}
.hero .sub { font-size: 15px; color: var(--blue); margin: 14px 0 0; letter-spacing: 1px; }
.hero .lead { font-size: 14px; color: var(--ink-3); margin: 22px auto 0; max-width: 440px; line-height: 1.8; }

/* ---------- Layout ---------- */
main { flex: 1; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding-top: 72px; padding-bottom: 96px; }
.toc { position: sticky; top: 32px; align-self: start; }
.toc-title { font-family: var(--display); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a {
  display: flex; gap: 12px; padding: 8px 0 8px 18px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s;
}
.toc a span { font-family: var(--display); font-size: 11px; letter-spacing: 1px; padding-top: 2px; min-width: 18px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--pink); }
.toc a.is-active span { color: var(--pink); }
.toc-aside { margin-top: 28px; padding: 18px 18px 16px; background: var(--mist); font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.toc-aside a { color: var(--blue); text-decoration: none; font-family: var(--bold); }
.toc-aside a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.intro { font-size: 17px; line-height: 1.95; color: var(--ink); padding-bottom: 40px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.intro p { margin: 0 0 1.1em; }
.intro p:last-child { margin-bottom: 0; }
.intro .first { font-family: var(--bold); font-size: 19px; }

.section { padding: 48px 0 8px; scroll-margin-top: 24px; }
.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.num { font-family: var(--display); font-size: 15px; color: var(--pink); letter-spacing: 1px; flex: none; }
.section h2 { font-family: var(--bold); font-weight: normal; font-size: 24px; line-height: 1.4; margin: 0; letter-spacing: .3px; }
.section h3 { font-family: var(--bold); font-weight: normal; font-size: 17px; margin: 34px 0 12px; }
.section p { margin: 0 0 1.1em; color: var(--ink-2); }
.section strong { color: var(--ink); font-family: var(--bold); font-weight: normal; }

.tri-list { list-style: none; padding: 0; margin: 4px 0 1.4em; }
.tri-list li { position: relative; padding-left: 28px; margin: 0 0 10px; color: var(--ink-2); }
.tri-list li::before {
  content: ''; position: absolute; left: 2px; top: .62em; width: 0; height: 0;
  border-left: 9px solid var(--blue); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.tri-list li:nth-child(4n+2)::before { border-left-color: var(--pink); }
.tri-list li:nth-child(4n+3)::before { border-left-color: var(--ink); }
.tri-list li:nth-child(4n+4)::before { border-left-color: #e3c800; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 1.6em; padding: 0; list-style: none; }
.chips li { font-family: var(--bold); font-size: 14px; padding: 8px 16px; border: 1.5px solid var(--ink); }

.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 1.6em; padding: 0; list-style: none; }
.link-card {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 44px 16px 18px; position: relative; height: 100%;
  background: var(--mist); text-decoration: none; transition: background .25s, transform .25s;
}
.link-card b { font-family: var(--bold); font-weight: normal; font-size: 14.5px; color: var(--ink); word-break: break-all; line-height: 1.5; }
.link-card small { font-size: 12.5px; color: var(--ink-3); word-break: break-all; line-height: 1.5; }
.link-card::after {
  content: '\2197'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 16px; color: var(--ink-3); transition: color .25s;
}
.link-card:hover { background: #eaf6fc; transform: translateY(-2px); }
.link-card:hover::after { color: var(--blue); }

.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 1.6em; }
.partner { border: 1px solid var(--line); padding: 22px 22px 18px; position: relative; overflow: hidden; background: #fff; }
.partner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); }
.partner:nth-child(2)::before { background: var(--pink); }
.partner:nth-child(3)::before { background: var(--yellow); }
.partner:nth-child(4)::before { background: var(--ink); }
.partner h4 { font-family: var(--bold); font-weight: normal; font-size: 17px; margin: 0 0 12px; }
.partner dl { margin: 0; font-size: 13.5px; line-height: 1.65; }
.partner dt { font-family: var(--display); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.partner dd { margin: 2px 0 0; color: var(--ink-2); word-break: break-word; }
.partner dd a { color: var(--blue); text-decoration: none; }
.partner dd a:hover { text-decoration: underline; }
.partner .note { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0; }

.cta {
  position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 34px 36px; margin: 10px 0 2em;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta::before {
  content: ''; position: absolute; right: -40px; top: -60px; width: 0; height: 0;
  border-left: 120px solid transparent; border-right: 120px solid transparent; border-top: 190px solid var(--pink); opacity: .9;
}
.cta::after {
  content: ''; position: absolute; right: 150px; bottom: -70px; width: 0; height: 0;
  border-left: 60px solid transparent; border-right: 60px solid transparent; border-bottom: 100px solid var(--blue); opacity: .85;
}
.cta-text { position: relative; z-index: 1; max-width: 440px; }
.cta-label { font-family: var(--display); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--yellow); margin: 0 0 6px; }
.section .cta-text p, .cta-text p { margin: 0; color: #fff; font-size: 15px; line-height: 1.7; }
.section .cta-text .cta-label { color: var(--yellow); font-size: 11px; margin-bottom: 6px; }
.btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink); text-decoration: none; padding: 14px 22px;
  font-family: var(--bold); font-size: 15px; letter-spacing: .3px; transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(252,255,0,.6); }
.btn svg { width: 18px; height: 18px; flex: none; }

.callout { display: flex; gap: 16px; align-items: flex-start; border: 1.5px solid var(--ink); padding: 18px 20px; margin: 10px 0 1.6em; background: #fff; }
.callout-icon { flex: none; width: 0; height: 0; margin-top: 7px; border-left: 12px solid var(--pink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.section .callout p, .callout p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.callout a { color: var(--blue); font-family: var(--bold); text-decoration: none; }
.callout a:hover { text-decoration: underline; }

.inline-link { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(0,160,233,.35); }
.inline-link:hover { border-bottom-color: var(--blue); }

/* ---------- Back to top & footer (matches goodia.co.jp) ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 10; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: 0 8px 24px -8px rgba(27,27,27,.35); opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .3s; transform: translateY(8px);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top img { width: 20px; height: auto; }

footer { background: #1b1b1b; padding: 2em 0; font-size: 13px; }
footer .wrap { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 3em; }
footer a { color: #fff; text-decoration: none; transition: opacity .2s; }
footer .text-pink { color: #ff00a8; text-transform: uppercase; }
footer a:hover { opacity: .8; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes floatA { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(6px, -10px) rotate(2deg); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-8px, 8px) rotate(-2deg); } }
.fa { animation: floatA 9s ease-in-out infinite; }
.fb { animation: floatB 11s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fa, .fb { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 48px; }
  .toc { position: static; margin-bottom: 40px; padding: 22px 22px 14px; background: var(--mist); }
  .toc ol { border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .toc a { padding: 6px 0; margin: 0; border-left: 0; }
  .toc-aside { background: #fff; margin-top: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .topbar .wrap { height: 64px; }
  .brand-name { display: none; }
  .brand { padding: 2px 10px 4px; }
  .brand-mark { font-size: 28px; }
  .nav { gap: 4px; }
  .nav a { font-size: 10px; letter-spacing: 1px; padding: 7px 9px; }
  .hero { padding: 100px 0 60px; }
  .hero-card { padding: 38px 20px 34px; }
  .hero .sub { font-size: 13.5px; }
  .intro { font-size: 16px; }
  .intro .first { font-size: 17px; }
  .section { padding-top: 40px; }
  .section h2 { font-size: 20px; }
  .toc ol { grid-template-columns: minmax(0, 1fr); }
  .link-grid, .partners { grid-template-columns: minmax(0, 1fr); }
  .cta { padding: 28px 22px; }
  .btn { width: 100%; justify-content: center; }
  footer .wrap { justify-content: center; }
  .to-top { right: 16px; bottom: 16px; }
}
@media print {
  .topbar, .hero-art, .toc, .to-top, .cta::before, .cta::after { display: none !important; }
  .hero { padding: 0 0 24px; }
  .hero-card { box-shadow: none; padding: 0; }
  .layout { display: block; padding: 0; }
  .cta { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
  .cta-text p, .section .cta-text p { color: var(--ink); }
  .js .reveal { opacity: 1; transform: none; }
}
