:root {
  --ink: #211d18;
  --sub: #665c50;
  --paper: #fff8ec;
  --cream: #f4e4ca;
  --green: #123d31;
  --green-2: #1f5b46;
  --red: #8d202d;
  --gold: #c49a45;
  --sky: #d8e6e6;
  --white: #fffdf8;
  --line: rgba(33, 29, 24, 0.14);
  --shadow: 0 24px 70px rgba(33, 29, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  line-height: 1.75;
  letter-spacing: 0;
}

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

.text-link {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 42px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(18, 61, 49, 0.88), rgba(18, 61, 49, 0.18));
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-solid {
  padding: 13px 42px;
  color: var(--green);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 12px 32px rgba(33, 29, 24, 0.11);
  backdrop-filter: blur(10px);
}

.site-logo {
  display: grid;
  line-height: 1.18;
}

.site-logo span {
  color: var(--gold);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
}

.site-logo strong {
  font-size: 1.38rem;
  letter-spacing: 0;
}

.global-nav {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.global-nav a {
  padding: 8px 0;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 54px;
  align-items: end;
  min-height: 92vh;
  padding: 132px max(42px, calc((100vw - 1180px) / 2)) 76px;
  color: var(--white);
  overflow: hidden;
  background: var(--green);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 39, 31, 0.97) 0%, rgba(18, 61, 49, 0.78) 44%, rgba(18, 61, 49, 0.24) 100%),
    linear-gradient(180deg, rgba(6, 21, 16, 0.22), rgba(6, 21, 16, 0.34));
  pointer-events: none;
}

.home-hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 160px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 248, 236, 0), var(--paper));
}

.hero-backdrop,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  z-index: 0;
  background: var(--green);
}

.hero-bg {
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2600ms ease, transform 12000ms ease;
  will-change: opacity, transform;
}

.hero-bg.is-active {
  opacity: 1;
  transform: scale(1.035);
}

.hero-bg-1 {
  background-image: url("../images/home-hero-gift-01.png");
  background-position: 58% center;
}

.hero-bg-2 {
  background-image: url("../images/home-hero-gift-02.png");
  background-position: 60% center;
}

.hero-bg-3 {
  background-image: url("../images/home-hero-gift-03.png");
  background-position: 62% center;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 3;
}

.ad-label {
  display: inline-flex;
  margin: 0 0 24px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(141, 32, 45, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 1.16;
  font-weight: 800;
  word-break: keep-all;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.35rem;
  line-height: 1.35;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.45;
}

.lead {
  width: min(720px, 100%);
  margin-bottom: 30px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 16px 34px rgba(141, 32, 45, 0.34);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel div {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 29, 22, 0.76);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.hero-panel span {
  color: var(--gold);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.hero-panel strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.24rem;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p:last-child {
  color: var(--sub);
}

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

.quality-grid article,
.category-grid a,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(33, 29, 24, 0.08);
}

.quality-grid article {
  min-height: 220px;
  padding: 30px;
}

.quality-grid p,
.category-grid p,
.featured-copy p,
.content-panel p {
  color: var(--sub);
}

.featured-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 52px;
  align-items: center;
  padding: 96px max(42px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(18, 61, 49, 0.98), rgba(31, 91, 70, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
}

.featured-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 30px;
}

.spec-list div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.spec-list dt {
  color: var(--gold);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.spec-list dd {
  margin: 0;
}

.featured-card {
  overflow: hidden;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1.02;
  object-fit: cover;
}

.featured-card div {
  padding: 26px;
}

.featured-card span,
.category-grid span {
  color: var(--red);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.featured-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.featured-card p {
  margin-bottom: 0;
}

.category-grid a {
  min-height: 210px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-grid strong {
  display: block;
  margin: 10px 0;
  font-size: 1.24rem;
  line-height: 1.4;
}

.editorial-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 84px;
  padding: 48px;
  border-radius: 8px;
  background: var(--cream);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: rgba(255, 253, 248, 0.72);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px 42px;
  color: rgba(255, 255, 255, 0.78);
  background: #15130f;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

.site-footer.compact {
  display: flex;
  justify-content: center;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.88rem;
  font-weight: 800;
}

.category-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 46px;
  align-items: end;
  min-height: 620px;
  padding: 138px max(42px, calc((100vw - 1180px) / 2)) 78px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 39, 31, 0.97) 0%, rgba(18, 61, 49, 0.84) 52%, rgba(18, 61, 49, 0.32) 100%),
    url("../images/home-hero-gift-02.png") 62% center / cover no-repeat;
}

.category-hero h1 {
  max-width: 820px;
  font-size: 3.45rem;
  overflow-wrap: normal;
  word-break: keep-all;
}

.category-hero-copy p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.category-hero-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 29, 22, 0.78);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.23);
}

.category-hero-card span,
.product-row span,
.side-box span,
.point-grid span {
  color: var(--gold);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
}

.category-hero-card strong {
  display: block;
  margin: 8px 0 10px;
  font-size: 1.45rem;
  line-height: 1.38;
}

.category-hero-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.category-jouon-hozon .category-hero {
  background:
    linear-gradient(90deg, rgba(43, 31, 18, 0.97) 0%, rgba(57, 41, 23, 0.84) 52%, rgba(57, 41, 23, 0.26) 100%),
    url("../images/category-jouon-hozon-hero.jpg") 63% center / cover no-repeat;
}

.category-jouon-hozon .category-hero-card {
  background: rgba(36, 25, 14, 0.8);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.article-main {
  display: grid;
  gap: 18px;
}

.inline-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin-top: 20px;
}

.point-grid section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.point-grid h3 {
  margin: 6px 0 8px;
}

.point-grid p {
  margin-bottom: 0;
}

.product-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.product-row img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  border-radius: 8px;
}

.product-row strong {
  display: block;
  margin: 8px 0 8px;
  font-size: 1.38rem;
  line-height: 1.38;
}

.product-row p {
  margin-bottom: 0;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
  margin-top: 20px;
}

.candidate-grid div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.candidate-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 1.08rem;
}

.candidate-grid p {
  margin-bottom: 0;
}

.article-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 14px;
}

.side-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(33, 29, 24, 0.08);
}

.side-box a {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.side-box ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.side-box p {
  margin: 8px 0 0;
}

.side-box.accent {
  color: var(--white);
  background: var(--green);
}

.side-box.accent p {
  color: rgba(255, 255, 255, 0.78);
}

.subpage {
  background:
    linear-gradient(rgba(255, 248, 236, 0.92), rgba(255, 248, 236, 0.92)),
    repeating-linear-gradient(90deg, rgba(18, 61, 49, 0.04) 0 1px, transparent 1px 14px);
}

.page-main {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 128px 0 82px;
}

.page-hero {
  margin-bottom: 28px;
  padding: 44px 0 14px;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: 3rem;
}

.page-hero p:last-child {
  color: var(--sub);
}

.content-panel {
  margin-bottom: 18px;
  padding: 34px;
}

.content-panel h2 {
  font-size: 1.55rem;
}

.prose h2 {
  margin-top: 34px;
}

.prose h2:first-child {
  margin-top: 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.info-table th {
  width: 160px;
  color: var(--green);
  text-align: left;
}

.info-table a {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated {
  margin-top: 34px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
}

.form-placeholder {
  display: grid;
  place-items: center;
  min-height: 360px;
  margin-top: 24px;
  padding: 36px;
  border: 2px dashed rgba(18, 61, 49, 0.26);
  border-radius: 8px;
  text-align: center;
  background: linear-gradient(135deg, rgba(216, 230, 230, 0.55), rgba(244, 228, 202, 0.7));
}

.form-placeholder span {
  color: var(--red);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 900;
}

.form-placeholder strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
}

.embed-sample {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf5ea;
}

.embed-sample summary {
  cursor: pointer;
  padding: 16px 18px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 800;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  background: #1d1b17;
  color: #f8eddd;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 22px;
  }

  .site-header.is-scrolled,
  .site-header.is-solid {
    padding: 12px 22px;
  }

  .global-nav {
    display: none;
  }

  .home-hero,
  .category-hero,
  .featured-section,
  .editorial-section {
    grid-template-columns: 1fr;
  }

  .quality-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3rem;
  }

  .category-hero h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .featured-card {
    max-width: 520px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-side {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 92vh;
    padding: 106px 18px 58px;
  }

  .home-hero::before {
    background:
      linear-gradient(180deg, rgba(17, 39, 31, 0.98) 0%, rgba(18, 61, 49, 0.84) 48%, rgba(18, 61, 49, 0.42) 100%),
      linear-gradient(90deg, rgba(6, 21, 16, 0.72), rgba(6, 21, 16, 0.18));
  }

  .hero-bg-1 {
    background-position: 70% center;
  }

  .hero-bg-2 {
    background-position: 66% center;
  }

  .hero-bg-3 {
    background-position: 70% center;
  }

  .site-logo strong {
    font-size: 1.18rem;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.28;
  }

  .category-hero h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.62rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-panel div,
  .quality-grid article,
  .category-grid a,
  .content-panel {
    padding: 24px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 70px 0;
  }

  .featured-section {
    padding: 70px 18px;
  }

  .category-hero {
    min-height: auto;
    padding: 112px 18px 62px;
    background:
      linear-gradient(180deg, rgba(17, 39, 31, 0.98) 0%, rgba(18, 61, 49, 0.84) 58%, rgba(18, 61, 49, 0.46) 100%),
      url("../images/home-hero-gift-02.png") 66% center / cover no-repeat;
  }

  .category-jouon-hozon .category-hero {
    background:
      linear-gradient(180deg, rgba(43, 31, 18, 0.98) 0%, rgba(57, 41, 23, 0.86) 58%, rgba(57, 41, 23, 0.5) 100%),
      url("../images/category-jouon-hozon-hero.jpg") 70% center / cover no-repeat;
  }

  .category-hero-card {
    padding: 24px;
  }

  .inline-list,
  .point-grid,
  .candidate-grid,
  .article-side,
  .product-row {
    grid-template-columns: 1fr;
  }

  .product-row img {
    max-width: 320px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .editorial-section {
    width: calc(100% - 28px);
    padding: 28px 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 30px 18px;
  }

  .page-main {
    width: calc(100% - 28px);
    padding-top: 102px;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .info-table th {
    border-bottom: 0;
    padding-bottom: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    transition: none;
    transform: none;
  }

  .hero-bg.is-active {
    transform: none;
  }
}
