:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --ink: #35251f;
  --muted: #766860;
  --line: #eadfd3;
  --orange: #f47d32;
  --orange-dark: #d95d1f;
  --orange-soft: #fff0df;
  --yellow: #ffd964;
  --yellow-soft: #fff5bf;
  --pink: #ffd9cf;
  --shadow: 0 16px 40px rgba(76, 45, 25, .09);
  --radius-lg: 30px;
  --radius-md: 20px;
  --content: 1180px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; }
button, input { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(234, 223, 211, .85);
  background: rgba(255, 250, 243, .94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.14rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand img { border-radius: 50%; }
.brand-footprint { color: var(--orange); font-size: .7rem; }

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 30px);
  margin-left: auto;
}

.global-nav a {
  position: relative;
  padding: 27px 0 22px;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 700;
  white-space: nowrap;
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.global-nav a:hover::after, .global-nav a:focus-visible::after, .global-nav a.is-current::after { transform: scaleX(1); }
.global-nav a.is-current { color: var(--orange-dark); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.25;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid rgba(244, 125, 50, .34); outline-offset: 3px; }
.button-primary { background: var(--orange); color: #fff; box-shadow: 0 9px 22px rgba(244, 125, 50, .24); }
.button-primary:hover { background: var(--orange-dark); }
.button-outline { border-color: var(--ink); background: rgba(255, 255, 255, .64); }
.button-dark { min-height: 44px; padding: .65rem 1.2rem; background: var(--ink); color: #fff; }
.header-follow { margin-left: 4px; font-size: .88rem; }

.menu-button { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -230px;
  left: -250px;
  border-radius: 50%;
  background: var(--yellow-soft);
  opacity: .62;
}

.hero-inner {
  width: min(calc(100% - 40px), var(--content));
  min-height: 570px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding: 58px 0 42px;
}

.eyebrow, .section-kicker {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-family: ui-rounded, "Arial Rounded MT Bold", sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5.1vw, 5.1rem);
  line-height: 1.2;
  letter-spacing: -.055em;
}

.hero h1 span {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.hero h1 span::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: 3px;
  left: 0;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(-2deg);
}

.hero-lead { margin: 28px 0; font-size: 1.14rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.hero-sun {
  position: absolute;
  width: min(470px, 76%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 30px 30px 0 rgba(255, 255, 255, .1);
}

.hero-visual > img {
  position: relative;
  z-index: 2;
  width: min(520px, 88%);
  filter: drop-shadow(0 18px 10px rgba(66, 41, 22, .12));
}

.hero-note {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 35px;
  padding: 14px 18px;
  border: 2px solid #8a572f;
  border-radius: 12px;
  background: #f4c98d;
  color: #5a321b;
  font-weight: 800;
  line-height: 1.55;
  transform: rotate(3deg);
  box-shadow: 5px 7px 0 rgba(106, 61, 29, .13);
}

.hero-cloud {
  position: absolute;
  width: 74px;
  height: 26px;
  border-radius: 99px;
  background: #ffecc7;
}

.hero-cloud::before, .hero-cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.hero-cloud::before { width: 42px; height: 42px; left: 9px; }
.hero-cloud::after { width: 32px; height: 32px; right: 7px; }
.cloud-one { top: 48px; left: 6px; }
.cloud-two { top: 132px; right: -20px; transform: scale(.75); }

.topic-bar { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .72); }
.topic-inner { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 17px 0; }
.topic-chip { padding: .55rem 1.2rem; border-radius: 999px; background: #f5f0ea; text-decoration: none; font-size: .9rem; font-weight: 700; }
.topic-chip:hover { transform: translateY(-1px); }
.chip-pink { background: var(--pink); }
.chip-yellow { background: var(--yellow-soft); }
.topic-inner p { margin: 0 0 0 auto; color: #9d8c7f; font-size: .88rem; }

.section { width: min(calc(100% - 40px), var(--content)); margin: 0 auto; padding: 84px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section h2 { margin: 0; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.3; letter-spacing: -.035em; }
.text-link { text-decoration-thickness: 1px; text-underline-offset: 5px; font-weight: 800; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 12px 28px rgba(63, 38, 24, .06); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-image { position: relative; display: block; aspect-ratio: 1.28; overflow: hidden; background: var(--orange-soft); }
.post-image img {
  position: absolute;
  top: 50%;
  width: 300%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  transition: filter .25s ease;
}
.post-card:hover .post-image img { filter: saturate(1.06) brightness(1.02); }
.post-image-left img { left: 0; }
.post-image-center img { left: -100%; }
.post-image-right img { left: -200%; }
.post-body { padding: 23px 23px 25px; }
.post-tag { display: inline-flex; padding: .25rem .75rem; border-radius: 99px; background: #f4eee8; font-size: .78rem; font-weight: 800; text-decoration: none; }
.tag-pink { background: var(--pink); }
.tag-yellow { background: var(--yellow-soft); }
.post-body h3 { margin: 13px 0 6px; font-size: 1.24rem; }
.post-body p { margin: 0 0 16px; color: var(--muted); font-size: .94rem; }
.post-body > a { color: var(--orange-dark); font-weight: 800; text-decoration: none; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 20px; }
.game-card, .shop-card { position: relative; overflow: hidden; min-height: 470px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); }
.game-card { background: var(--yellow-soft); }
.shop-card { background: #ffe0ca; }
.game-card::after, .shop-card::after { content: ""; position: absolute; width: 210px; height: 210px; right: -90px; bottom: -100px; border: 35px solid rgba(255, 255, 255, .34); border-radius: 50%; }
.feature-icon { position: absolute; top: 34px; right: 34px; display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; background: #fff; color: var(--orange-dark); font-size: 1rem; font-weight: 900; transform: rotate(7deg); }
.game-card > p:not(.section-kicker), .shop-heading p:not(.section-kicker) { margin: 10px 0 22px; }
.prime-form { position: relative; z-index: 2; margin-top: 28px; }
.prime-form label { display: block; margin-bottom: 7px; font-weight: 800; }
.prime-controls { display: flex; gap: 10px; }
.prime-controls input { min-width: 0; flex: 1; min-height: 58px; padding: 0 18px; border: 2px solid rgba(87, 61, 42, .16); border-radius: 16px; background: #fff; color: var(--ink); }
.prime-controls .button { min-width: 154px; border-radius: 16px; }
.prime-result { min-height: 32px; margin: 18px 0 0; font-weight: 800; }
.prime-result.is-prime { color: #167144; }
.prime-result.is-not-prime { color: #9b3c2a; }
.shop-heading { display: flex; justify-content: space-between; gap: 15px; }
.shop-bag { color: var(--orange); font-size: 3rem; line-height: 1; }
.product-list { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.product-list a { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 9px; padding: 15px 10px; border: 1px solid rgba(112, 72, 40, .12); border-radius: 15px; background: rgba(255, 255, 255, .86); text-align: center; text-decoration: none; font-size: .76rem; font-weight: 800; transition: transform .2s ease; }
.product-list a:hover { transform: translateY(-3px); }
.product-mark { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); font-size: 1.45rem; }
.shop-button { position: relative; z-index: 2; width: max-content; margin: 24px auto 0; }

.about-section { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: clamp(30px, 6vw, 90px); }
.about-mark { position: relative; display: grid; min-height: 370px; place-items: center; border-radius: 50% 50% 42% 58% / 58% 42% 58% 42%; background: var(--orange-soft); }
.about-mark img { width: 88%; filter: drop-shadow(0 12px 9px rgba(78, 47, 27, .1)); }
.about-copy > p:not(.section-kicker) { max-width: 660px; margin: 18px 0 26px; color: var(--muted); font-size: 1.04rem; }
.about-points { display: flex; flex-wrap: wrap; gap: 10px; }
.about-points span { padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-weight: 800; }

.social-section { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; padding-top: 28px; }
.youtube-card, .social-links { min-height: 210px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.youtube-card { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 18px; }
.youtube-card .button { grid-column: 2; justify-self: start; }
.youtube-card h2 { font-size: 1.7rem; }
.youtube-card p:not(.section-kicker) { margin: 7px 0 0; color: var(--muted); }
.social-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; color: #fff; }
.youtube-icon, .youtube-mini { background: #f43737; }
.social-links > p { margin: 0 0 23px; }
.social-links > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.social-links a { display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 10px; padding: 10px; border-radius: 13px; text-decoration: none; }
.social-links a:hover { background: var(--orange-soft); }
.social-links a > span { grid-row: 1 / 3; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; }
.social-links a > span.youtube-mini { background: #f43737; }
.social-links a strong { font-size: .9rem; line-height: 1.3; }
.social-links a small { color: var(--muted); font-size: .73rem; line-height: 1.3; }

.site-footer { width: min(calc(100% - 40px), var(--content)); margin: 45px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 28px 0 38px; border-top: 1px solid var(--line); }
.site-footer > div { display: flex; align-items: center; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; }
.site-footer p { margin: 0; color: #96877d; font-size: .78rem; }

@media (max-width: 1040px) {
  .header-inner { gap: 16px; }
  .global-nav { gap: 16px; }
  .global-nav a { font-size: .84rem; }
  .header-follow { display: none; }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); }
  .hero-note { right: -6px; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1rem; }
  .brand img { width: 38px; height: 38px; }
  .menu-button { display: flex; width: 46px; height: 46px; margin-left: auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 50%; background: var(--orange-soft); }
  .menu-line { width: 20px; height: 2px; border-radius: 99px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] .menu-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-line:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] .menu-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 18px 28px rgba(60, 37, 23, .08); }
  .global-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .global-nav a { padding: 13px 10px; border-radius: 10px; font-size: .94rem; }
  .global-nav a:hover { background: var(--orange-soft); }
  .global-nav a::after { display: none; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 45px; text-align: center; }
  .hero-copy { position: relative; z-index: 4; }
  .hero h1 { font-size: clamp(2.75rem, 11vw, 4.1rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 400px; margin-top: -10px; }
  .hero-visual > img { width: min(440px, 84%); }
  .hero-note { right: 4%; bottom: 15px; font-size: .8rem; }
  .topic-inner { overflow-x: auto; padding-bottom: 18px; scrollbar-width: thin; }
  .topic-chip { flex: 0 0 auto; }
  .topic-inner p { display: none; }
  .section { padding: 66px 0; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; }
  .post-image { aspect-ratio: auto; min-height: 240px; }
  .feature-grid, .social-section { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .about-mark { width: min(420px, 85%); min-height: 320px; margin: 0 auto; }
  .site-footer, .site-footer > div { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .header-inner, .hero-inner, .topic-inner, .section, .site-footer { width: min(calc(100% - 28px), var(--content)); }
  .brand-footprint { display: none; }
  .hero-inner { padding-top: 35px; }
  .eyebrow { font-size: .66rem; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.55rem); }
  .hero h1 span::after { height: 10px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 340px; }
  .hero-sun { width: 84%; }
  .hero-visual > img { width: 88%; }
  .hero-note { display: none; }
  .section-heading { align-items: start; }
  .section-heading .text-link { margin-top: 19px; white-space: nowrap; font-size: .84rem; }
  .post-card { display: block; }
  .post-image { aspect-ratio: 1.25; min-height: 0; }
  .game-card, .shop-card { min-height: auto; padding: 30px 22px; border-radius: 23px; }
  .feature-icon { top: 24px; right: 22px; width: 50px; height: 50px; }
  .prime-controls { flex-direction: column; }
  .prime-controls .button { width: 100%; }
  .product-list { grid-template-columns: 1fr 1fr; }
  .product-list a:last-child { grid-column: 1 / -1; }
  .about-mark { min-height: 280px; }
  .youtube-card { grid-template-columns: auto 1fr; padding: 24px 20px; }
  .youtube-card .button { grid-column: 1 / -1; width: 100%; }
  .social-links { padding: 24px 18px; }
  .social-links > div { grid-template-columns: 1fr; }
  .social-links a { grid-template-columns: 42px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
