@font-face {
  font-family: AdjustedYuGothic;
  font-weight: 400;
  src: local("Yu Gothic Medium");
}

@font-face {
  font-family: AdjustedYuGothic;
  font-weight: 700;
  src: local("Yu Gothic Bold");
}

:root {
  --color-brand: #0077c7;
  --color-brand-strong: #0061a3;
  --color-link: #0071c1;
  --color-accent: #ff9900;
  --color-text: #23221e;
  --color-text-soft: #706d65;
  --color-text-muted: #aaa69f;
  --color-page: #f8f7f6;
  --color-surface: #ffffff;
  --color-surface-soft: #f2f1f0;
  --color-border: #d6d3d0;
  --color-border-strong: #bdb8b1;
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-panel: 0 16px 40px rgba(35, 34, 30, 0.08);
  --radius-card: 12px;
  --radius-button: 6px;
  --radius-pill: 999px;
  --container: min(1120px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(0, 196, 204, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 153, 0, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfaf9 0%, var(--color-page) 100%);
  font-family: AdjustedYuGothic, "Yu Gothic", YuGothic, "Hiragino Sans", sans-serif;
  line-height: 1.5;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

img {
  max-width: 100%;
  display: block;
}

i[class^="ti"] {
  font-size: 1.1rem;
  line-height: 1;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(214, 211, 208, 0.9);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
}

.brand-link:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 119, 199, 0.08), rgba(255, 153, 0, 0.12));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(214, 211, 208, 0.9);
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 700;
}

.topbar-nav a:hover {
  text-decoration: none;
  background: var(--color-surface-soft);
}

.hero {
  position: relative;
  overflow: clip;
  padding: 48px 0 28px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(16px);
}

.hero-glow-left {
  top: 64px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: rgba(0, 196, 204, 0.14);
}

.hero-glow-right {
  top: 20px;
  right: -40px;
  width: 260px;
  height: 260px;
  background: rgba(255, 153, 0, 0.12);
}

.hero-grid {
  position: relative;
  max-width: 760px;
}

.hero-copy,
.hero-card,
.summary-card,
.tool-card,
.info-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hero-copy {
  padding: 28px 32px;
  box-shadow: var(--shadow-panel);
}

.eyebrow,
.section-kicker,
.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--color-brand-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 14px 0 0;
  max-width: 42rem;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-brand);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--color-brand-strong);
}

.button-secondary {
  border-color: var(--color-brand);
  background: transparent;
  color: var(--color-brand);
}

.button-secondary:hover {
  background: rgba(0, 119, 199, 0.06);
}

.button-wide {
  width: 100%;
}

.link-list i {
  color: var(--color-brand);
}

.page-main {
  padding-top: 36px;
}

.section {
  padding: 28px 0;
}

.section-head {
  display: block;
  margin-bottom: 18px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.25;
}

.section-copy {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.tool-main h3,
.content-card h2,
.policy-section h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.5;
}

.tool-description,
.content-copy,
.policy-section p,
.policy-section li {
  margin: 10px 0 0;
  color: var(--color-text-soft);
  line-height: 1.75;
}

.tools-section {
  scroll-margin-top: 88px;
}

.tool-card {
  padding: 24px;
}

.tool-card + .tool-card {
  margin-top: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.pill-accent {
  border-color: rgba(255, 153, 0, 0.22);
  background: rgba(255, 153, 0, 0.1);
  color: #9b5b00;
}

.tool-card-body {
  display: block;
}

.tool-main {
  display: grid;
  gap: 14px;
}

.tool-feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--color-text-soft);
}

.tool-feature-list li {
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tool-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--color-text-soft);
  font-size: 0.875rem;
}

.tool-open-button {
  width: fit-content;
}

.update-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.update-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.update-list li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.update-list time {
  min-width: 6.5rem;
  color: var(--color-text-soft);
  font-size: 0.8125rem;
  font-weight: 700;
}

.update-list span {
  color: var(--color-text);
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
}

.link-list a:hover {
  text-decoration: none;
  background: var(--color-surface-soft);
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-inner {
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-size: 0.875rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p + p {
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--color-text-soft);
  font-size: 0.8125rem;
}

.footer-links a:hover {
  color: var(--color-link);
}

.subpage-hero {
  padding: 40px 0 12px;
}

.subpage-shell,
.content-card,
.policy-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.subpage-shell {
  padding: 28px 32px;
  box-shadow: var(--shadow-panel);
}

.subpage-shell h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.subpage-lead {
  margin: 16px 0 0;
  max-width: 42rem;
  color: var(--color-text-soft);
  line-height: 1.8;
}

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

.content-card {
  padding: 24px;
}

.content-card-visual {
  padding: 14px;
  overflow: hidden;
}

.content-card h2,
.policy-section h2 {
  margin-top: 0;
}

.detail-grid div,
.policy-meta div {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.detail-grid dt,
.policy-meta dt {
  margin: 0 0 6px;
  color: var(--color-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.detail-grid dd,
.policy-meta dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.about-visual-frame {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at top left, rgba(255, 153, 0, 0.14), transparent 26%),
    linear-gradient(180deg, #fff7fb 0%, #fff2f8 100%);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.about-visual-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: block;
  background-image: url("./assets/about-portrait.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 57% 24%;
  transform: translateZ(0);
}

.subtle-button {
  margin-top: 18px;
}

.policy-card {
  padding: 24px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.policy-section + .policy-section {
  margin-top: 22px;
}

.policy-links ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 600ms ease forwards;
}

.reveal-delay-1 {
  animation-delay: 80ms;
}

.reveal-delay-2 {
  animation-delay: 160ms;
}

.reveal-delay-3 {
  animation-delay: 240ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 960px) {
  .content-grid,
  .policy-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-main {
    padding-top: 24px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .topbar-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy,
  .hero-card,
  .tool-card,
  .subpage-shell,
  .content-card,
  .policy-card {
    padding: 20px;
  }

  .brand-text {
    font-size: 0.875rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .button {
    width: 100%;
  }
}
