/* =========================================================
   Toys.co.jp — site.css
   Limited-image, robust editorial magazine system
   ========================================================= */

:root {
  --bg: #fbf7ef;
  --bg-soft: #f4eadb;
  --bg-paper: #fffaf2;
  --bg-ink: #201812;
  --text: #251b14;
  --muted: #6f6257;
  --line: rgba(42, 30, 20, 0.16);
  --line-strong: rgba(42, 30, 20, 0.32);
  --accent: #b6412d;
  --accent-dark: #842c20;
  --gold: #c9953a;
  --cream: #fff4df;
  --shadow: 0 24px 60px rgba(48, 30, 18, 0.14);
  --shadow-soft: 0 14px 34px rgba(48, 30, 18, 0.10);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(201, 149, 58, 0.16), transparent 32rem),
    linear-gradient(180deg, #fff8ec 0%, var(--bg) 42%, #f6efe3 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.85;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(55, 36, 22, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 36, 22, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
}

h3 {
  font-weight: 800;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

::selection {
  background: rgba(182, 65, 45, 0.22);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--bg-ink);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #d75b3e, #9b2f22);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(132, 44, 32, 0.24);
}

.brand-text {
  display: grid;
  gap: 0.03rem;
}

.brand-text strong {
  font-size: 1.04rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.74rem;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(182, 65, 45, 0.10);
  color: var(--accent-dark);
}

.menu-toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 99px;
}

/* =========================================================
   Shared layout
   ========================================================= */

.section-pad {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin-top: 0.3rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  margin-top: 0.9rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 800;
}

.text-link:hover {
  background: #fff;
  border-color: var(--line-strong);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  max-width: calc(var(--max) + 2.5rem);
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-media {
  min-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d7c3a7;
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 24, 18, 0.12), transparent 45%),
    linear-gradient(180deg, transparent 65%, rgba(32, 24, 18, 0.28));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel {
  min-height: 620px;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 4.4rem);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(246, 239, 227, 0.96));
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
  margin-top: 0.55rem;
  letter-spacing: 0.01em;
}

.hero-lede {
  margin-top: 1.35rem;
  color: #42352b;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 2.02;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 15px 30px rgba(132, 44, 32, 0.22);
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
}

/* =========================================================
   Start here cards
   ========================================================= */

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

.path-card {
  position: relative;
  min-height: 230px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.68), rgba(255,244,223,0.62));
  box-shadow: 0 10px 26px rgba(48, 30, 18, 0.06);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182, 65, 45, 0.42);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.path-card span {
  display: inline-flex;
  margin-bottom: 2.3rem;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.path-card strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.35;
}

.path-card p {
  margin-top: 0.72rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* =========================================================
   Editorial band
   ========================================================= */

.feature-band {
  margin: 1rem 0;
  background:
    linear-gradient(135deg, #2b1c15, #5a241b 54%, #8b3325);
  color: #fff7ed;
}

.feature-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.feature-band h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}

.feature-band .eyebrow {
  color: #f5c66e;
}

.feature-band p:last-child {
  max-width: 720px;
  color: rgba(255, 247, 237, 0.86);
  font-size: 1.08rem;
  line-height: 2;
}

/* =========================================================
   Article cards
   ========================================================= */

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

.article-card {
  min-height: 280px;
  padding: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 12px 28px rgba(48, 30, 18, 0.06);
  display: flex;
  flex-direction: column;
}

.article-card.lead-card {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(201, 149, 58, 0.24), transparent 18rem),
    linear-gradient(180deg, #fffaf2, #f8ead3);
}

.article-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-card h3 {
  margin-top: 0.75rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.32;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.82;
}

.read-more {
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.read-more::after {
  content: " →";
}

/* =========================================================
   Soft section and link columns
   ========================================================= */

.soft-section {
  max-width: none;
  background:
    linear-gradient(180deg, rgba(244, 234, 219, 0.68), rgba(251, 247, 239, 0.5));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.soft-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.link-columns {
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.link-column {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
}

.link-column h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  color: var(--accent-dark);
}

.link-column a {
  display: block;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(42, 30, 20, 0.09);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.link-column a:hover {
  color: var(--accent-dark);
}

/* =========================================================
   Practical guide list
   ========================================================= */

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 250, 242, 0.75);
  box-shadow: var(--shadow-soft);
}

.guide-list a {
  display: grid;
  gap: 0.28rem;
  padding: 1.35rem 1.45rem;
  min-height: 122px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.guide-list a:nth-child(2n) {
  border-right: 0;
}

.guide-list a:nth-last-child(-n+2) {
  border-bottom: 0;
}

.guide-list strong {
  font-size: 1.06rem;
  line-height: 1.4;
}

.guide-list span {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.68;
}

.guide-list a:hover {
  background: rgba(255, 244, 223, 0.75);
  color: var(--text);
}

/* =========================================================
   Quote section
   ========================================================= */

.quote-section {
  padding: 0 1.25rem;
}

.quote-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 5.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 16rem),
    linear-gradient(135deg, #8b3325, #c9953a);
  color: #fff;
  box-shadow: var(--shadow);
}

.quote-inner .eyebrow {
  color: #fff4c9;
}

.quote-inner h2 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 5rem);
}

.quote-inner p:last-child {
  max-width: 800px;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 2;
}

/* =========================================================
   Shelf cards
   ========================================================= */

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.shelf-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(48, 30, 18, 0.055);
}

.shelf-card h3 {
  font-size: 1.1rem;
  line-height: 1.32;
}

.shelf-card h3 a {
  text-decoration: none;
}

.shelf-card p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.shelf-card ul {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.shelf-card li + li {
  border-top: 1px solid rgba(42, 30, 20, 0.08);
}

.shelf-card li a {
  display: block;
  padding: 0.48rem 0;
  color: var(--accent-dark);
  font-size: 0.91rem;
  font-weight: 800;
  text-decoration: none;
}

/* =========================================================
   Newsletter/contact
   ========================================================= */

.newsletter {
  padding-top: 2rem;
}

.newsletter-inner {
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(244, 234, 219, 0.86));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 2rem;
  align-items: center;
}

.newsletter h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
}

.newsletter p {
  max-width: 720px;
  margin-top: 0.8rem;
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 0.7rem;
}

.contact-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.contact-card a:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(132, 44, 32, 0.10);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 2rem;
  background: #211712;
  color: rgba(255, 250, 242, 0.88);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.25rem 2.2rem;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
}

.footer-logo {
  color: #fff;
}

.footer-logo .brand-text small {
  color: rgba(255, 250, 242, 0.62);
}

.footer-brand p {
  max-width: 470px;
  margin-top: 1rem;
  color: rgba(255, 250, 242, 0.68);
  font-size: 0.95rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-nav h3 {
  color: #fff4df;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.footer-nav a {
  display: block;
  padding: 0.32rem 0;
  color: rgba(255, 250, 242, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.25rem 2rem;
  border-top: 1px solid rgba(255, 250, 242, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 250, 242, 0.55);
  font-size: 0.86rem;
}

.footer-bottom a {
  color: rgba(255, 250, 242, 0.76);
  text-decoration: none;
}

/* =========================================================
   Focus states
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(182, 65, 45, 0.42);
  outline-offset: 3px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-panel {
    min-height: auto;
  }

  .hero-media {
    height: min(68vw, 560px);
  }

  .hero-panel {
    margin-top: -4rem;
    position: relative;
    z-index: 2;
    width: calc(100% - 2rem);
    justify-self: center;
  }

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

  .article-card.lead-card {
    grid-column: span 2;
  }

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

  .feature-band-inner,
  .newsletter-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    align-items: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-nav a {
    justify-content: center;
    border: 1px solid rgba(42, 30, 20, 0.08);
    background: rgba(255, 255, 255, 0.45);
  }

  .section-pad {
    padding: 3.7rem 1rem;
  }

  .section-head.split {
    display: block;
  }

  .section-head.split .text-link {
    margin-top: 1.2rem;
  }

  .feature-band-inner {
    padding: 3.5rem 1rem;
  }

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

  .guide-list a,
  .guide-list a:nth-child(2n),
  .guide-list a:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .guide-list a:last-child {
    border-bottom: 0;
  }

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.78;
  }

  .header-inner {
    padding: 0.75rem 0.9rem;
  }

  .brand-mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  .brand-text strong {
    font-size: 0.96rem;
  }

  .brand-text small {
    font-size: 0.65rem;
  }

  .hero {
    padding: 0 0.8rem;
    margin-top: 0.8rem;
  }

  .hero-media {
    height: 68vw;
    min-height: 260px;
    border-radius: 22px;
  }

  .hero-panel {
    width: calc(100% - 1rem);
    margin-top: -2rem;
    padding: 1.5rem;
    border-radius: 22px;
  }

  .hero-panel h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .hero-lede {
    font-size: 0.98rem;
    line-height: 1.9;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .path-grid,
  .article-grid,
  .link-columns,
  .shelf-grid {
    grid-template-columns: 1fr;
  }

  .article-card.lead-card {
    grid-column: auto;
  }

  .path-card {
    min-height: auto;
  }

  .path-card span {
    margin-bottom: 1.4rem;
  }

  .quote-section {
    padding: 0 0.8rem;
  }

  .quote-inner {
    border-radius: 22px;
    padding: 2rem 1.35rem;
  }

  .newsletter-inner {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
