:root {
  --ink: #0a2530;
  --ink-soft: #324951;
  --red: #a64b40;
  --paper: #ffffff;
  --mist: #f3f5f4;
  --sand: #e9e4dc;
  --line: #d5dcda;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Zen Old Mincho", "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  height: 88px;
  padding: 0 clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.97);
  position: relative;
  z-index: 2;
}
.brand img { display: block; width: 182px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 10px; }
.social-icon {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color .25s ease, color .25s ease;
}
.social-icon:hover { color: var(--red); border-color: var(--line); }
.social-icon img { width: 23px; height: 23px; object-fit: contain; display: block; }
.social-icon span {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-family: "Poppins", sans-serif;
  font-size: .58rem;
  font-weight: 300;
  letter-spacing: .06em;
  opacity: 0;
  pointer-events: none;
}
.social-icon:hover span { opacity: 1; }

.eyebrow { margin: 0 0 17px; color: var(--red); font-family: "Poppins", sans-serif; font-size: .76rem; font-weight: 300; letter-spacing: .22em; }
.section-heading h2, .results h2, .contact h2 {
  margin: 0;
  font-family: "Zen Old Mincho", "Noto Serif JP", "Yu Mincho", serif;
  font-weight: 400;
  letter-spacing: .085em;
}
.guide { padding: 95px clamp(24px, 7vw, 110px) 110px; background: var(--mist); }
.section-heading { text-align: center; margin-bottom: 55px; }
.section-heading h2 { font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1.55; }
.section-heading > p:last-child { color: var(--ink-soft); margin: 16px 0 0; }
.mobile-only { display: none; }
.category-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card {
  position: relative;
  min-height: 265px;
  border: 1px solid var(--line);
  background: white;
  padding: 28px;
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, color .25s ease, background .25s ease;
}
.category-card:hover, .category-card[aria-pressed="true"] { transform: translateY(-4px); border-color: var(--ink); background: var(--ink); color: white; }
.card-top { display: flex; justify-content: space-between; font-family: "Poppins", "Zen Old Mincho", sans-serif; font-size: .73rem; font-weight: 300; letter-spacing: .12em; color: var(--red); }
.category-card:hover .card-top, .category-card[aria-pressed="true"] .card-top { color: #e8b8b1; }
.category-card strong { display: block; margin-top: 36px; font-family: "Zen Old Mincho", "Noto Serif JP", serif; font-weight: 400; font-size: clamp(.94rem, 1.25vw, 1.08rem); line-height: 1.75; letter-spacing: .025em; white-space: nowrap; }
.card-note { display: block; margin-top: 13px; font-size: .875rem; color: #607078; }
.category-card:hover .card-note, .category-card[aria-pressed="true"] .card-note { color: #dbe3e5; }
.arrow { position: absolute; right: 25px; bottom: 20px; font-size: 1.5rem; }
.all-videos { display: flex; justify-content: space-between; align-items: center; width: min(100%, 1160px); margin: 18px auto 0; padding: 18px 26px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-weight: 400; }
.all-videos:hover { background: var(--ink); color: white; }

.results { padding: 85px clamp(24px, 7vw, 110px) 100px; background: white; }
.results-head { max-width: 1160px; margin: 0 auto 38px; display: flex; align-items: end; justify-content: space-between; }
.results h2 { font-size: clamp(1.8rem, 2.7vw, 2.7rem); line-height: 1.5; }
.close-results { border: 0; background: transparent; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.video-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; gap: 34px 20px; }
.video-card { display: block; width: 100%; min-width: 0; align-self: start; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.thumb { position: relative; display: block; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #dfe5e5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.video-card:hover .thumb img { transform: scale(1.035); }
.play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%; background: rgba(166,75,64,.94); color: white; display: grid; place-items: center; font-size: 1.15rem; padding-left: 3px; }
.video-card h3 { margin: 14px 0 0; max-width: 100%; font-size: 1rem; font-weight: 400; line-height: 1.85; overflow-wrap: anywhere; word-break: normal; }
.back-to-guide {
  width: min(100%, 1160px);
  margin: 56px auto 0;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid var(--ink);
  background: white;
  font-weight: 400;
  cursor: pointer;
}
.back-to-guide:hover { background: var(--ink); color: white; }

.contact { padding: 110px 24px 120px; text-align: center; color: white; background: var(--ink); }
.contact .eyebrow { color: #dda69f; }
.contact h2 { font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.6; }
.contact h2 span { display: block; white-space: nowrap; }
.contact p:not(.eyebrow) { color: #d7e0e2; margin: 22px auto 36px; max-width: 40em; }
.contact-methods { width: min(100%, 900px); margin: 38px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-method { min-height: 96px; padding: 19px 20px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 14px; color: var(--ink); background: white; text-align: left; transition: color .25s ease, background .25s ease, transform .25s ease; }
.contact-method:hover { color: white; background: var(--red); transform: translateY(-3px); }
.contact-method img { width: 26px; height: 26px; object-fit: contain; transition: filter .25s ease; }
.contact-method:hover img { filter: invert(1); }
.contact-method span { display: flex; flex-direction: column; line-height: 1.45; }
.contact-method small { font-family: "Poppins", "Noto Sans JP", sans-serif; font-size: .69rem; font-weight: 300; letter-spacing: .02em; overflow-wrap: anywhere; }
.contact-method b { font-family: "Poppins", sans-serif; font-size: 1rem; font-weight: 300; }
footer { padding: 36px clamp(24px, 6vw, 90px); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
footer img { width: 175px; }
footer p { font-size: .7rem; }

dialog { width: min(1000px, calc(100% - 32px)); border: 0; padding: 0; background: #000; overflow: visible; }
dialog::backdrop { background: rgba(4,17,22,.9); }
.dialog-close { position: absolute; right: 0; top: -48px; border: 0; background: transparent; color: white; font-size: 2.2rem; cursor: pointer; }
.player { aspect-ratio: 16/9; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-header { height: 72px; padding: 0 20px; }
  .brand img { width: 155px; }
  .site-header nav { gap: 4px; }
  .social-icon { width: 40px; height: 40px; }
  .social-icon img { width: 21px; height: 21px; }
  .social-icon span { display: none; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .site-header { padding-inline: 16px; }
  .brand img { width: 128px; }
  .site-header nav { gap: 0; }
  .social-icon { width: 38px; height: 40px; }
  .social-icon img { width: 20px; height: 20px; }
  .eyebrow { margin-bottom: 13px; font-size: .68rem; letter-spacing: .18em; }
  .guide { padding: 72px 16px 80px; }
  .mobile-only { display: block; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2 { font-size: 1.85rem; line-height: 1.55; letter-spacing: .04em; }
  .section-heading > p:last-child { font-size: .92rem; line-height: 1.75; }
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .category-card { min-height: 205px; padding: 23px; }
  .category-card strong { margin-top: 24px; font-size: clamp(.94rem, 4.2vw, 1.08rem); font-weight: 400; }
  .results { padding: 60px 16px 72px; }
  .results-head { align-items: start; gap: 12px; }
  .results h2 { font-size: 1.7rem; }
  .close-results { font-size: 1.9rem; }
  .video-grid { grid-template-columns: 1fr; }
  .back-to-guide { margin-top: 42px; padding: 16px 20px; }
  .contact { padding: 80px 20px 88px; }
  .contact h2 { font-size: clamp(1.35rem, 6.1vw, 1.65rem); line-height: 1.7; letter-spacing: .025em; }
  .contact-methods { grid-template-columns: 1fr; gap: 9px; margin-top: 30px; }
  .contact-method { min-height: 82px; }
  footer { flex-direction: column; text-align: center; }
}

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