:root { color-scheme: light; --bg: #faf9fc; --ink: #222033; --muted: #545166; --purple: #5031a4; --line: #e4deee; --surface: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif; line-height: 1.7; }
a { color: var(--purple); text-underline-offset: .24em; }
a:hover { color: #35206e; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #6a3acc; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 64px); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.bar, nav { display: flex; align-items: center; gap: 25px; }
.bar { justify-content: space-between; min-height: 71px; }
.brand, nav a { text-decoration: none; font-weight: 700; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); white-space: nowrap; }
.brand-mark { display: inline-block; width: 18px; height: 25px; border: 2px solid var(--purple); border-radius: 5px; background: #f4eeff; }
.brand-mark::after { content: ""; display: block; margin: 5px auto; width: 5px; height: 5px; border-radius: 50%; background: #a44892; }
nav a { color: var(--muted); font-size: .90rem; white-space: nowrap; }
.hero { background: #eee9f7; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 54px; padding-block: 46px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.35; }
h1 { font-size: clamp(2rem, 4.3vw, 3.65rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.32rem, 2.6vw, 1.95rem); }
.hero-copy p, .intro { color: var(--muted); font-size: 1.08rem; }
.hero-copy p { margin: 20px 0 26px; }
.hero-image { display: block; width: 100%; height: auto; max-height: 355px; object-fit: cover; object-position: 50% 24%; border-radius: 20px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 10px; padding: 8px 15px; border: 0; border-radius: 9px; background: var(--purple); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #39217e; color: white; }
.text-link { font-weight: 700; }
.section { padding-block: 46px 62px; }
.section-head { margin-bottom: 22px; }
.section-head p { margin: 7px 0 0; color: var(--muted); }
.cards, .tool-grid { display: grid; gap: 15px; align-items: stretch; }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .tool { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 21px; }
.card h3 { font-size: 1.13rem; }
.card h3 a { color: var(--ink); text-decoration-thickness: .08em; }
.card p:last-child { margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.category { margin: 0 0 8px; color: var(--purple); font-weight: 800; font-size: .86rem; }
.foot { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .92rem; }
.article { max-width: 760px; padding-block: 36px 62px; min-height: 68vh; }
.article h1, .utility h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.article h2 { font-size: 1.34rem; }
.article section, .article aside { margin-top: 28px; }
.article p { overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: 25px; }
.updated, .note { color: var(--muted); font-size: .85rem; }
.advertisement { border: 2px solid #7852b1; border-radius: 12px; background: #f2ebfc; padding: 16px 20px; }
.ad-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.ad-label strong { font-size: 1.02rem; }
.ad-label p { margin: 0; }
.source, .related { border-top: 1px solid var(--line); padding-top: 16px; }
.source h2, .related h2 { margin-bottom: 6px; }
.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 24px; }
.tool h2 { font-size: 1.32rem; }
.tool p { margin-block: 8px 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
label { display: grid; gap: 3px; font-size: .9rem; font-weight: 700; }
input { width: 100%; min-height: 42px; border: 1px solid #9484a6; border-radius: 8px; padding: 6px 9px; color: var(--ink); background: #fff; font: inherit; }
output { display: block; margin-top: 14px; min-height: 52px; padding: 8px 11px; background: #eee9f7; border-radius: 8px; font-size: 1.15rem; font-weight: 800; overflow-wrap: anywhere; }
.skip { position: absolute; inset: 0 auto auto 0; transform: translateY(-150%); padding: 8px; background: white; }
.skip:focus { transform: translateY(0); z-index: 2; }
@media (max-width: 820px) {
  .hero-grid { gap: 25px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 32px); }
  .bar, nav { gap: 11px; }
  .bar { min-height: 62px; }
  .brand { font-size: .95rem; gap: 7px; }
  nav a { font-size: .78rem; }
  .hero-grid, .cards, .tool-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 30px 20px; gap: 20px; }
  .hero-image { max-height: 250px; }
  .section { padding-block: 30px 45px; }
  .hero-copy p { margin-block: 12px 17px; }
  .desktop { display: none; }
}

