:root {
  --blue: #0878f9;
  --blue-dark: #0062d7;
  --blue-soft: #dff1ff;
  --cyan: #46c7f2;
  --sky: #eef8ff;
  --yellow: #ffdf69;
  --yellow-soft: #fff6ca;
  --pink: #ff9fc4;
  --pink-soft: #fff0f7;
  --mint: #9de5d2;
  --mint-soft: #e9fbf5;
  --lavender: #bdaeff;
  --lavender-soft: #f1edff;
  --ink: #10213a;
  --muted: #637188;
  --line: #cfe7fb;
  --paper: #ffffff;
  --soft: #f5faff;
  --radius-sm: 18px;
  --radius-md: 30px;
  --radius-lg: 46px;
  --shadow-soft: 0 18px 44px rgba(31, 113, 188, 0.12);
  --shadow-pop: 0 9px 0 #b9ddfb;
  --container: 1180px;
  --rounded-font:
    "Arial Rounded MT Bold",
    "Hiragino Maru Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--rounded-font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid rgba(70, 199, 242, 0.6);
  outline-offset: 4px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.narrow {
  width: min(780px, 100%);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.section-copy {
  max-width: 690px;
  margin-top: 20px;
  color: var(--muted);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.text-link::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(5px) rotate(-8deg);
}

/* Header */

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 2px solid #e1f0fc;
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 32px;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.site-brand::before,
.footer-brand::before {
  content: "≋";
  display: inline-block;
  color: var(--cyan);
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.2em;
  transform: rotate(-4deg);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
  transform: rotate(-1deg);
}

.site-nav .nav-app {
  margin-left: 7px;
  padding-inline: 18px;
  background: var(--blue);
  box-shadow: 0 4px 0 #bddcff;
  color: #fff;
}

.site-nav .nav-app:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(2px);
}

/* Buttons */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.button:hover {
  transform: translateY(3px);
}

.button-primary {
  background: var(--blue);
  box-shadow: 0 7px 0 #a9d3ff;
  color: #fff;
}

.button-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 0 #a9d3ff;
}

.button-secondary {
  border-color: #bcdff9;
  background: #fff;
  box-shadow: 0 7px 0 #d9edfc;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--yellow-soft);
  box-shadow: 0 4px 0 #d9edfc;
}

.section-actions {
  margin-top: 32px;
}

/* App hero */

.app-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 100px;
  background:
    radial-gradient(circle at 12px 12px, rgba(70, 199, 242, 0.18) 0 2px, transparent 2.5px) 0 0 / 32px 32px,
    linear-gradient(180deg, #eef8ff 0%, #e5f4ff 100%);
}

.app-hero::before {
  position: absolute;
  top: 42px;
  right: 7%;
  width: 78px;
  height: 78px;
  border: 5px solid var(--yellow);
  border-radius: 50%;
  box-shadow:
    0 -18px 0 -14px var(--yellow),
    0 18px 0 -14px var(--yellow),
    18px 0 0 -14px var(--yellow),
    -18px 0 0 -14px var(--yellow);
  content: "";
  opacity: 0.85;
  transform: rotate(15deg);
}

.app-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 500px);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.app-hero-grid > *,
.category-hero-grid > *,
.portal-card > *,
.heading-row > *,
.spot-schema > * {
  min-width: 0;
}

.app-hero h1 {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: clamp(48px, 6.5vw, 78px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.app-hero-copy {
  max-width: 610px;
  margin-bottom: 36px;
  color: var(--muted);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: clamp(17px, 2vw, 19px);
}

.app-hero-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 570px;
  overflow: hidden;
  border: 3px solid #a9d8fb;
  border-radius: 52px;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 223, 105, 0.82) 0 7px, transparent 8px),
    radial-gradient(circle at 86% 12%, rgba(255, 223, 105, 0.48) 0 30px, transparent 31px),
    #fff;
  box-shadow: 13px 13px 0 #bfe4ff;
  transform: rotate(1deg);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.app-hero-card:hover {
  box-shadow: 8px 8px 0 #bfe4ff;
  transform: translate(5px, 5px) rotate(-1deg);
}

.hero-note {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 36px;
  color: var(--blue);
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  transform: rotate(-8deg);
}

.hero-note::after {
  display: block;
  width: 92%;
  height: 8px;
  margin: 7px auto 0;
  border-top: 4px solid var(--cyan);
  border-radius: 50%;
  content: "";
  transform: rotate(3deg);
}

.app-hero-card .hero-mascot {
  width: 98%;
  height: auto;
  margin-top: 12px;
  filter: drop-shadow(0 12px 12px rgba(36, 114, 176, 0.12));
}

.hero-session-chip {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 15px 20px;
  border: 2px solid #c9e7fb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 0 #d6ecfb;
  color: var(--ink);
  transform: rotate(-2deg);
}

.hero-session-chip strong {
  font-size: 15px;
}

.hero-session-chip small {
  margin-top: 2px;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.app-store-help {
  display: none;
  max-width: 440px;
  margin-top: 20px;
  padding: 14px 17px;
  border: 2px dashed #a8d5f6;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 13px;
}

.app-store-help.is-visible {
  display: block;
}

/* Media portals */

.media-intro {
  padding: 112px 0 54px;
  background: #fff;
}

.media-portals {
  padding-bottom: 120px;
  background: #fff;
}

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

.portal-card {
  --portal-bg: var(--sky);
  --portal-border: #a9d8fb;
  --portal-shadow: #cce8fc;
  --portal-accent: var(--blue);
  display: flex;
  min-height: 610px;
  overflow: hidden;
  border: 3px solid var(--portal-border);
  border-radius: var(--radius-lg);
  background: var(--portal-bg);
  box-shadow: 0 10px 0 var(--portal-shadow);
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.portal-card:nth-child(even) {
  transform: translateY(22px) rotate(0.5deg);
}

.portal-card:hover {
  box-shadow: 0 5px 0 var(--portal-shadow);
  transform: translateY(5px) rotate(-0.5deg);
}

.portal-card:nth-child(even):hover {
  transform: translateY(27px) rotate(-0.5deg);
}

.portal-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 4.5vw, 54px);
}

.portal-label {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 6px 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--portal-accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.portal-copy h3 {
  margin-bottom: 17px;
  font-size: clamp(34px, 4vw, 51px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.portal-copy p {
  max-width: 500px;
  margin-bottom: 28px;
  color: #53647d;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 15px;
}

.portal-art {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-top: 3px dashed var(--portal-border);
}

.portal-art::before,
.portal-art::after {
  position: absolute;
  content: "";
}

.portal-learn {
  --portal-bg: var(--yellow-soft);
  --portal-border: #f0cd45;
  --portal-shadow: #f7df83;
  --portal-accent: #c88900;
}

.portal-learn .portal-art {
  background:
    url("/surflog/assets/images/character-surfer.png") center 50% / auto 92% no-repeat,
    radial-gradient(circle at 18% 24%, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 84% 25%, var(--pink) 0 6px, transparent 7px),
    #fff9dd;
}

.portal-learn .portal-art::before,
.portal-learn .portal-art::after {
  display: none;
}

.portal-spots {
  --portal-bg: #e4f8ff;
  --portal-border: #74cbed;
  --portal-shadow: #a9e4f7;
  --portal-accent: #0879b7;
}

.portal-spots .portal-art {
  background:
    url("/surflog/assets/images/character-board.png") center 57% / 94% auto no-repeat,
    radial-gradient(circle at 25% 26%, var(--yellow) 0 17px, transparent 18px),
    #f3fcff;
}

.portal-spots .portal-art::before,
.portal-spots .portal-art::after {
  display: none;
}

.portal-care {
  --portal-bg: var(--mint-soft);
  --portal-border: #67cdb5;
  --portal-shadow: #a9ead9;
  --portal-accent: #248a73;
}

.portal-care .portal-art {
  background:
    radial-gradient(circle at 78% 24%, var(--yellow) 0 7px, transparent 8px),
    #f4fff9;
}

.portal-care .portal-art::before {
  width: 140px;
  height: 205px;
  left: 39%;
  top: 19%;
  border: 4px solid var(--ink);
  border-radius: 34px 34px 24px 24px;
  background:
    radial-gradient(circle at 41% 55%, var(--ink) 0 4px, transparent 5px),
    radial-gradient(circle at 59% 55%, var(--ink) 0 4px, transparent 5px),
    #fff5cf;
  box-shadow: 10px 10px 0 #bfebdf;
  transform: rotate(7deg);
}

.portal-care .portal-art::after {
  width: 82px;
  height: 36px;
  left: calc(39% + 29px);
  top: calc(19% - 24px);
  border: 4px solid var(--ink);
  border-radius: 14px 14px 5px 5px;
  background: var(--mint);
  transform: rotate(7deg);
}

.portal-journal {
  --portal-bg: var(--lavender-soft);
  --portal-border: #9d88ef;
  --portal-shadow: #cfc4f9;
  --portal-accent: #6550bd;
}

.portal-journal-art {
  background:
    url("/surflog/assets/images/character-cloud.png") center 52% / auto 88% no-repeat,
    radial-gradient(circle at 18% 24%, var(--pink) 0 7px, transparent 8px),
    #faf8ff;
}

.portal-journal-art::before,
.portal-journal-art::after {
  display: none;
}

/* App sections */

.product-section {
  padding: 108px 0;
  background: var(--soft);
}

.product-section + .product-section {
  border-top: 2px dashed #cbe6fa;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 54px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  min-height: 270px;
  padding: 31px;
  border: 3px solid #a9d8fb;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 0 #d5ebfb;
  transition: transform 0.2s ease;
}

.feature-card:nth-child(1) {
  background: var(--yellow-soft);
  transform: rotate(-1deg);
}

.feature-card:nth-child(2) {
  background: var(--pink-soft);
  transform: translateY(12px) rotate(1deg);
}

.feature-card:nth-child(3) {
  background: var(--mint-soft);
  transform: rotate(-0.5deg);
}

.feature-card:hover {
  transform: translateY(-5px) rotate(0deg);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 38px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.feature-card p {
  color: var(--muted);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 14px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.preview-card {
  overflow: hidden;
  padding: 9px;
  border: 3px solid var(--ink);
  border-radius: 34px;
  background: var(--yellow);
  box-shadow: 9px 10px 0 #b9dcf8;
}

.preview-card:nth-child(2) {
  margin-top: 42px;
  background: var(--pink);
}

.preview-card:nth-child(3) {
  background: var(--cyan);
}

.preview-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: 23px;
  object-fit: contain;
}

.brand-message {
  position: relative;
  overflow: hidden;
  padding: 118px 0;
  background:
    radial-gradient(circle at 15px 15px, rgba(255, 255, 255, 0.16) 0 3px, transparent 3.5px) 0 0 / 38px 38px,
    var(--blue);
  color: #fff;
  text-align: center;
}

.brand-message::before,
.brand-message::after {
  position: absolute;
  color: var(--yellow);
  content: "✦";
  font-size: 68px;
  transform: rotate(12deg);
}

.brand-message::before {
  top: 22%;
  left: 8%;
}

.brand-message::after {
  right: 9%;
  bottom: 18%;
  font-size: 48px;
}

.brand-message h2 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto 22px;
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.brand-message p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 17px;
}

/* Category pages */

.breadcrumb {
  padding-top: 24px;
  color: #7b8ba2;
  font-size: 12px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: var(--cyan);
  content: "/";
  font-weight: 900;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.category-hero {
  padding: 58px 0 96px;
  background:
    radial-gradient(circle at 12px 12px, rgba(70, 199, 242, 0.11) 0 2px, transparent 2.5px) 0 0 / 34px 34px,
    #fff;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 43%);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.category-hero h1 {
  max-width: 760px;
  margin-bottom: 25px;
  font-size: clamp(48px, 6.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.category-lead {
  max-width: 660px;
  color: var(--muted);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 18px;
}

.category-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 3px dashed var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: 10px 10px 0 #d3eafa;
  transform: rotate(1deg);
}

.category-art::before,
.category-art::after {
  position: absolute;
  content: "";
}

.art-learn {
  background:
    url("/surflog/assets/images/character-surfer.png") center 50% / auto 90% no-repeat,
    radial-gradient(circle at 20% 20%, var(--pink) 0 7px, transparent 8px),
    var(--yellow-soft);
}

.art-learn::before,
.art-learn::after {
  display: none;
}

.art-spots {
  background:
    url("/surflog/assets/images/character-board.png") center 55% / 92% auto no-repeat,
    radial-gradient(circle at 24% 24%, var(--yellow) 0 24px, transparent 25px),
    #e7f9ff;
}

.art-spots::before,
.art-spots::after {
  display: none;
}

.art-care {
  background:
    radial-gradient(circle at 78% 22%, var(--yellow) 0 9px, transparent 10px),
    var(--mint-soft);
}

.art-care::before {
  width: 158px;
  height: 258px;
  top: 22%;
  left: 37%;
  border: 4px solid var(--ink);
  border-radius: 38px 38px 25px 25px;
  background:
    radial-gradient(circle at 41% 52%, var(--ink) 0 5px, transparent 6px),
    radial-gradient(circle at 59% 52%, var(--ink) 0 5px, transparent 6px),
    #fff4c7;
  box-shadow: 12px 13px 0 #b9e9dc;
  transform: rotate(8deg);
}

.art-care::after {
  width: 92px;
  height: 42px;
  top: calc(22% - 28px);
  left: calc(37% + 33px);
  border: 4px solid var(--ink);
  border-radius: 15px 15px 6px 6px;
  background: var(--mint);
  transform: rotate(8deg);
}

.art-journal {
  background:
    url("/surflog/assets/images/character-cloud.png") center / auto 88% no-repeat,
    radial-gradient(circle at 82% 18%, var(--pink) 0 8px, transparent 9px),
    var(--lavender-soft);
  border-color: #9f8bef;
}

.art-journal::before,
.art-journal::after {
  display: none;
}

.page-section {
  padding: 102px 0;
  border-top: 2px dashed var(--line);
}

.page-section-soft {
  background:
    radial-gradient(circle at 10px 10px, rgba(8, 120, 249, 0.06) 0 2px, transparent 2.5px) 0 0 / 34px 34px,
    var(--soft);
}

.page-section .heading-row {
  margin-bottom: 46px;
}

.topic-grid,
.article-grid,
.directory-grid,
.routine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.topic-card,
.content-card,
.directory-card,
.routine-card {
  padding: 29px;
  border: 3px solid #b8ddf8;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 0 #d7ebf9;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.topic-card:nth-child(4n + 1),
.content-card:nth-child(4n + 1),
.directory-card:nth-child(4n + 1),
.routine-card:nth-child(4n + 1) {
  background: var(--yellow-soft);
}

.topic-card:nth-child(4n + 2),
.content-card:nth-child(4n + 2),
.directory-card:nth-child(4n + 2),
.routine-card:nth-child(4n + 2) {
  background: var(--pink-soft);
}

.topic-card:nth-child(4n + 3),
.content-card:nth-child(4n + 3),
.directory-card:nth-child(4n + 3),
.routine-card:nth-child(4n + 3) {
  background: var(--mint-soft);
}

.topic-card:nth-child(4n),
.content-card:nth-child(4n),
.directory-card:nth-child(4n),
.routine-card:nth-child(4n) {
  background: var(--lavender-soft);
}

.topic-card:hover,
.content-card:hover,
.directory-card:hover,
.routine-card:hover {
  box-shadow: 0 4px 0 #d7ebf9;
  transform: translateY(4px) rotate(-0.5deg);
}

.topic-card {
  min-height: 240px;
}

.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  margin-bottom: 34px;
  padding: 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.topic-card h2,
.topic-card h3,
.content-card h2,
.content-card h3,
.directory-card h2,
.directory-card h3,
.routine-card h2,
.routine-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.topic-card p,
.content-card p,
.directory-card p,
.routine-card p {
  color: var(--muted);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 14px;
}

.content-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 310px;
}

.content-card-published {
  border-color: var(--blue);
  color: var(--ink);
}

.content-card-published:nth-child(2) {
  border-color: #9f8bef;
}

.content-card-thumb {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 92px;
  height: 61px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(16, 33, 58, 0.14);
  object-fit: cover;
  transform: rotate(2deg);
}

.content-card-published:nth-child(2) .content-card-thumb {
  transform: rotate(-2deg);
}

.content-card-published .card-kicker {
  max-width: calc(100% - 112px);
}

.content-card-published h3 {
  text-wrap: balance;
}

.content-card-published .card-footer span:last-child {
  color: var(--blue);
  font-weight: 900;
}

.content-card-empty {
  pointer-events: none;
}

.card-kicker,
.status-label {
  width: fit-content;
  margin-bottom: 52px;
  padding: 5px 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 30px;
  color: #7989a1;
  font-size: 11px;
}

.directory-card {
  min-height: 225px;
}

.directory-card .status-label {
  margin-bottom: 39px;
  color: #087fa8;
}

.directory-card-wide {
  grid-column: span 2;
}

.routine-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.routine-card {
  min-height: 340px;
}

.routine-number {
  display: inline-flex;
  margin-bottom: 55px;
  padding: 6px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.routine-card ul {
  margin-top: 22px;
  padding-left: 18px;
  color: #58677e;
  font-size: 13px;
}

.routine-card li + li {
  margin-top: 7px;
}

.spot-schema {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  padding: clamp(29px, 5vw, 54px);
  border: 3px dashed #77cbed;
  border-radius: var(--radius-lg);
  background: #e9f9ff;
  box-shadow: 10px 10px 0 #d2ebf8;
}

.spot-schema h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.schema-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  list-style: none;
}

.schema-list li {
  padding: 13px 15px;
  border: 2px solid #b9def5;
  border-radius: 15px;
  background: #fff;
  color: #41627b;
  font-size: 13px;
}

.journey-section {
  padding: 96px 0;
  border-top: 3px solid #cce8fb;
  background:
    radial-gradient(circle at 11px 11px, rgba(8, 120, 249, 0.08) 0 2px, transparent 2.5px) 0 0 / 34px 34px,
    #eaf7ff;
  color: var(--ink);
}

.journey-section .eyebrow {
  background: #fff;
  color: var(--blue);
}

.journey-section .section-copy {
  color: var(--muted);
}

.journey-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.journey-link {
  min-height: 150px;
  padding: 23px;
  border: 3px solid #b9def8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 7px 0 #d3eafb;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.journey-link:nth-child(2) {
  background: var(--yellow-soft);
}

.journey-link:nth-child(3) {
  background: var(--mint-soft);
}

.journey-link:nth-child(4) {
  background: var(--pink-soft);
}

.journey-link:hover,
.journey-link[aria-current="page"] {
  border-color: var(--blue);
  box-shadow: 0 3px 0 #d3eafb;
  transform: translateY(4px) rotate(-1deg);
}

.journey-step {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.journey-link strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.journey-link span:last-child {
  color: var(--muted);
  font-size: 12px;
}

/* Footer */

.site-footer {
  padding: 58px 0 34px;
  border-top: 3px solid #c9e7fb;
  background: #f7fcff;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 0.5fr));
  gap: 36px;
  padding-bottom: 48px;
}

.footer-tagline {
  max-width: 300px;
  margin-top: 15px;
  color: var(--muted);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  font-size: 13px;
}

.footer-column h2 {
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column a {
  display: block;
  width: fit-content;
  color: #50647d;
  font-size: 13px;
}

.footer-column a + a {
  margin-top: 9px;
}

.footer-column a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 2px dashed #c9e7fb;
  color: #7f90a8;
  font-size: 11px;
}

@media (max-width: 960px) {
  .app-hero-grid,
  .category-hero-grid {
    grid-template-columns: 1fr;
  }

  .app-hero-card,
  .category-art {
    min-height: 480px;
  }

  .app-hero-card .hero-mascot {
    width: min(82%, 650px);
  }

  .portal-list {
    grid-template-columns: 1fr;
  }

  .portal-card,
  .portal-card:nth-child(even) {
    min-height: 510px;
    transform: none;
  }

  .portal-card:nth-child(even):hover {
    transform: translateY(5px) rotate(-0.5deg);
  }

  .topic-grid,
  .article-grid,
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .routine-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card:nth-child(n),
  .routine-card {
    min-height: auto;
    transform: none;
  }

  .feature-number,
  .routine-number {
    margin-bottom: 30px;
  }

  .journey-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .header-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 18px;
    gap: 12px;
  }

  .site-brand {
    width: 100%;
  }

  .site-nav {
    flex: 0 0 calc(100% + 36px);
    width: calc(100% + 36px);
    margin-left: -18px;
    padding: 0 18px 16px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    padding-block: 8px;
  }

  .site-nav .nav-app {
    order: -1;
    margin-left: 0;
  }

  .app-hero {
    padding: 60px 0 76px;
  }

  .app-hero::before {
    top: 28px;
    right: -20px;
  }

  .app-hero-grid,
  .category-hero-grid {
    gap: 46px;
  }

  .app-hero-card,
  .category-art {
    min-height: 410px;
    border-radius: 34px;
    box-shadow: 8px 8px 0 #c9e7fb;
  }

  .hero-note {
    top: 25px;
    left: 27px;
  }

  .hero-session-chip {
    right: 18px;
    bottom: 18px;
  }

  .media-intro {
    padding: 84px 0 42px;
  }

  .media-portals {
    padding-bottom: 88px;
  }

  .portal-card {
    min-height: 0;
  }

  .portal-copy {
    min-height: 340px;
  }

  .portal-art {
    min-height: 270px;
  }

  .product-section,
  .page-section {
    padding: 82px 0;
  }

  .heading-row {
    display: block;
    margin-bottom: 40px;
  }

  .heading-row .text-link {
    margin-top: 24px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-card {
    width: min(100%, 380px);
    margin-inline: auto;
  }

  .preview-card:nth-child(2) {
    margin-top: 0;
  }

  .breadcrumb {
    padding-top: 18px;
  }

  .category-hero {
    padding: 44px 0 80px;
  }

  .spot-schema {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-brand,
  .footer-brand {
    font-size: 23px;
  }

  .app-hero h1,
  .category-hero h1 {
    font-size: clamp(39px, 11vw, 49px);
  }

  .app-hero-card,
  .category-art {
    min-height: 350px;
  }

  .app-hero-card .hero-mascot {
    width: 108%;
  }

  .hero-note {
    font-size: 27px;
  }

  .hero-session-chip {
    min-width: 190px;
    padding: 12px 16px;
  }

  .hero-session-chip strong {
    font-size: 13px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .topic-grid,
  .article-grid,
  .directory-grid,
  .journey-links {
    grid-template-columns: 1fr;
  }

  .directory-card-wide {
    grid-column: auto;
  }

  .schema-list {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
