:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #edf4f9;
  --text: #142232;
  --muted: #4f657a;
  --line: #d2dfea;
  --brand: #0b816d;
  --brand-strong: #0d6a8b;
  --accent: #eea43a;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 24px 56px -34px rgba(11, 34, 56, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans JP", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 13% 8%, #d7f4ec 0%, transparent 35%),
    radial-gradient(circle at 86% 87%, #ffe8be 0%, transparent 34%),
    linear-gradient(130deg, #f2f7fb 0%, #f4f8fb 44%, #fff8ea 100%);
  line-height: 1.5;
  padding: 24px 16px 42px;
}

.background-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(28px);
  z-index: 0;
}

.orb-a {
  width: 210px;
  height: 210px;
  top: 20px;
  right: 6%;
  background: rgba(11, 129, 109, 0.15);
}

.orb-b {
  width: 240px;
  height: 240px;
  bottom: 18px;
  left: 4%;
  background: rgba(238, 164, 58, 0.16);
}

.hub-shell {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero {
  background: linear-gradient(120deg, #0c7f69 0%, #0d6887 56%, #2f586e 100%);
  color: #f4fcff;
}

.panel-hero {
  padding: 24px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 240, 235, 0.6);
  color: rgba(244, 255, 252, 0.92);
  font-family: "Sora", "Noto Sans JP", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: rgba(14, 78, 93, 0.3);
}

.lang-link:hover {
  background: rgba(17, 109, 130, 0.45);
  color: #ffffff;
}

.lang-link.is-active {
  border-color: rgba(255, 255, 255, 0.83);
  background: rgba(251, 255, 255, 0.94);
  color: #145471;
}

.hero-kicker {
  margin: 0 0 8px;
  font-family: "Sora", "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.hero h1 {
  margin: 0 0 10px;
  font-family: "Sora", "Noto Sans JP", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.hero-text {
  margin: 0;
  color: rgba(246, 255, 254, 0.92);
  max-width: 68ch;
}

.hero-quick-links {
  margin: 0 0 10px;
}

.hero-quick-links a {
  color: rgba(246, 255, 254, 0.96);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-quick-links a:hover {
  color: #ffffff;
}

.section-head h2 {
  margin: 0;
  font-family: "Sora", "Noto Sans JP", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: #15455f;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.tool-grid {
  margin-top: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.tool-card {
  border: 1px solid #cfe0eb;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafdff 0%, #f5f9fd 100%);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.tool-card[data-card-accent="string"] {
  border-left: 6px solid #0f7a8d;
}

.tool-card[data-card-accent="image"] {
  border-left: 6px solid #0b816d;
}

.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  height: 24px;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-live {
  background: #d9f7ea;
  color: #12653f;
  border: 1px solid #9fd6bc;
}

.tool-kind {
  font-size: 0.84rem;
  color: #3e5e74;
  font-weight: 600;
}

.tool-card h3 {
  margin: 0;
  font-family: "Sora", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  color: #1a425a;
}

.tool-card p {
  margin: 0;
  color: #29445a;
}

.tool-card ul {
  margin: 0;
  padding-left: 20px;
  color: #1f3e54;
}

.tool-card li {
  margin: 0 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 10px 16px;
  width: fit-content;
  text-decoration: none;
  font-family: "Sora", "Noto Sans JP", sans-serif;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(106deg, #0f7a8d 0%, #0a6172 100%);
  color: #f5fdff;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  background: #edf4f8;
  color: #16445b;
  border: 1px solid #cedde6;
}

.btn-secondary:hover {
  background: #e5edf3;
}

.panel-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.panel-split h2 {
  margin: 0 0 8px;
  font-family: "Sora", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  color: #15455f;
}

.panel-split p {
  margin: 0;
  color: #2a455a;
}

.panel-split ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #1f3f55;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 2px 4px 6px;
  color: #3e6075;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  font-weight: 600;
}

.site-footer a {
  color: #1a5e7d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:focus,
button:focus {
  outline: 3px solid rgba(11, 129, 109, 0.28);
  outline-offset: 2px;
}

@media (min-width: 880px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel-split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .panel {
    padding: 16px;
  }

  .panel-hero {
    padding: 20px;
  }

  .tool-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .panel {
    animation: panel-fade 320ms ease-out both;
  }

  .tool-card {
    transition: transform 200ms ease, box-shadow 200ms ease;
  }

  .tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -28px rgba(10, 32, 52, 0.7);
  }
}

@keyframes panel-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
