/*
Theme Name: 週刊おっさんアップデート通信
Theme URI: https://ossan-update.jp/
Author: Ossan Update
Description: 背伸びしない40代・50代男性向け生活更新WebマガジンのWordPressテーマ。
Version: 0.1.6
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: ossan-update
*/

:root {
  --bg: #f8f1e5;
  --paper: #fffaf1;
  --ink: #29251f;
  --muted: #72685c;
  --line: #dfd0b8;
  --amber: #c9843c;
  --green: #71836b;
  --blue: #637b8a;
  --red: #b26052;
  --night: #383028;
  --radius: 4px;
  --shadow: 0 10px 0 rgba(38, 33, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--bg);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, sans-serif;
  font-size: 17px;
  letter-spacing: 0.018em;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 64%, rgba(105, 87, 62, 0.045) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(176, 145, 101, 0.035) 42%, rgba(255, 255, 255, 0.24)),
    var(--bg);
  background-size: 17px 19px, 23px 29px, auto, auto;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #fbf1e2;
  border-bottom: 2px solid rgba(86, 70, 48, 0.11);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 92px;
  padding: 12px max(18px, env(safe-area-inset-left)) 11px max(18px, env(safe-area-inset-right));
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(460px, 58vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 96px;
}

.header-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f6ead8;
  border-top: 2px solid rgba(86, 70, 48, 0.1);
  border-bottom: 2px solid rgba(86, 70, 48, 0.12);
}

.category-nav {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

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

.nav-list {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  width: fit-content;
  min-width: 100%;
}


.nav-item {
  /* No position relative here, so mega menu aligns to wrapper */
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 112px;
  padding: 10px 14px 9px;
  border-right: 1px solid rgba(86, 70, 48, 0.11);
  text-align: center;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-item:hover .nav-link,
.nav-link[aria-current="page"] {
  background: rgba(201, 132, 60, 0.12);
}

.nav-link span,
.nav-link small {
  display: block;
}

.nav-link .cat-icon {
  width: 18px;
  height: 18px;
  color: var(--amber);
  opacity: 0.7;
}

.nav-link small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.25s ease;
  z-index: 20;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 画面幅が狭い場合（スマホ等）はメガメニューを非表示にし、ナビを3列表示 */
@media (max-width: 768px) {
  .mega-menu {
    display: none !important;
  }

  .category-nav {
    overflow-x: hidden;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    white-space: normal;
  }

  .nav-link {
    min-width: 0;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(86, 70, 48, 0.11);
  }

  /* 下段のボーダーを消す（9個想定） */
  .nav-list li:nth-last-child(-n+3) .nav-link {
    border-bottom: none;
  }

  /* スクロール時：1行のスワイプメニューに縮小 */
  .category-nav-wrapper.is-scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  /* 右端のフェード（続きがあることを示す影） */
  .category-nav-wrapper.is-scrolled::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    background: linear-gradient(to right, rgba(246,234,216,0), rgba(246,234,216,1));
    pointer-events: none;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  /* 右端までスクロールしきったらフェードを消す */
  .category-nav-wrapper.is-scroll-end::after {
    opacity: 0;
  }

  .category-nav-wrapper.is-scrolled .category-nav {
    overflow-x: auto;
  }

  .category-nav-wrapper.is-scrolled .nav-list {
    display: flex;
    white-space: nowrap;
    justify-content: flex-start;
    margin: 0;
  }

  .category-nav-wrapper.is-scrolled .nav-item {
    flex: 0 0 auto;
  }

  .category-nav-wrapper.is-scrolled .nav-link {
    min-width: 90px;
    border-bottom: none;
    padding: 8px 10px 7px;
    flex-direction: row;
    gap: 8px;
  }
  
  .category-nav-wrapper.is-scrolled .nav-link .cat-icon {
    width: 14px;
    height: 14px;
  }
}

.mega-menu-inner {
  display: flex;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px max(18px, env(safe-area-inset-left));
}

.mega-menu-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 160px;
  border-right: 2px solid var(--line);
  padding-right: 24px;
}

.mega-menu-header .cat-icon {
  width: 24px;
  height: 24px;
  color: var(--amber);
  opacity: 0.8;
  margin-top: 2px;
}

.mega-menu-header strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.mega-menu-header span {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.mega-menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-menu-list li {
  flex: 0 0 auto;
}

.mega-menu-list a {
  display: block;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(201, 132, 60, 0.05);
  border: 1px solid rgba(201, 132, 60, 0.15);
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.mega-menu-list a:hover {
  background: rgba(201, 132, 60, 0.15);
}

.hero {
  position: relative;
  min-height: min(78vh, 760px);
  background: var(--night);
  overflow: hidden;
}

.hero img {
  height: min(78vh, 760px);
  min-height: 520px;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.03) saturate(0.9);
  opacity: 0.76;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(56, 48, 40, 0.06), rgba(56, 48, 40, 0.46) 56%, rgba(56, 48, 40, 0.72));
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  max-width: 1120px;
  padding: 0 22px 56px;
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #e4b176;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.9rem, 6.2vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-badges span {
  padding: 6px 9px;
  color: rgba(255, 248, 236, 0.92);
  background: rgba(56, 48, 40, 0.32);
  border: 1px solid rgba(255, 248, 236, 0.28);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-lead {
  max-width: 1040px;
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.86);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.75;
}

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

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.85rem;
  font-weight: 700;
}

.section-head p {
  margin: 7px 0 0;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-description {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
}

.section-description p {
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 16px;
}

.feature-grid .lead-card {
  grid-column: span 3;
}

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

@media (max-width: 992px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid .lead-card,
  .feature-grid .article-card {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid .lead-card,
  .feature-grid .article-card {
    grid-column: 1 / -1;
  }
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.archive-grid .lead-card,
.archive-grid .article-card {
  min-height: auto;
}

.archive-grid .lead-card .card-thumb,
.archive-grid .card-thumb {
  height: 210px;
}

.feature-grid .section-head {
  grid-column: 1 / -1;
}

.lead-card,
.article-card,
.category-panel,
.service-cta,
.story-list a,
.product-box,
.member-box {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.lead-card a,
.article-card a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.lead-card {
  min-height: 420px;
}

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

.card-thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 2px solid var(--line);
  filter: sepia(0.04) saturate(0.94);
}

.lead-card .card-thumb {
  height: 230px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.card-meta-top {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--paper) !important;
  border-radius: 2px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.article-category > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  color: var(--paper) !important;
}

.cat-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.85;
}

.article-category b,
.article-category small {
  display: block;
  line-height: 1.1;
  color: var(--paper) !important;
}

.article-category small {
  font-size: 0.55rem;
  letter-spacing: 0.12em;
}

.article-category.style {
  background: var(--red);
}

.article-category.hobby {
  background: var(--blue);
}

.article-category.food {
  background: var(--green);
}

.article-category.eat {
  background: var(--amber);
}

.article-category.money {
  background: #9f6b36;
}

.article-category.life {
  background: #6f7f48;
}

.article-category.gear {
  background: #6b6674;
}

.article-category.recovery {
  background: #5f8a78;
}

.article-category.mind {
  background: #7a6f9f;
}

.article-category.secret {
  background: #2d2a2a;
}

.lead-card h3,
.article-card h3 {
  margin: 0;
  font-family: inherit;
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.36;
}

.article-card h3 {
  font-size: 1.06rem;
}

.lead-card p,
.article-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.meta {
  display: block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.78rem;
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.reading-time svg {
  opacity: 0.6;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-label {
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  background: rgba(201, 132, 60, 0.08);
  border-radius: 2px;
}

.category-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
}

.subcategory-list {
  display: flex;
  gap: 8px;
  margin: -2px 0 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.subcategory-list::-webkit-scrollbar {
  display: none;
}

.subcategory-list a {
  flex: 0 0 auto;
  min-width: 138px;
  padding: 12px 14px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.subcategory-list span,
.subcategory-list small {
  display: block;
}

.subcategory-list span {
  font-weight: 800;
}

.subcategory-list small {
  margin-top: 3px;
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-panel {
  display: block;
  padding: 22px;
  box-shadow: inset 0 5px 0 rgba(192, 122, 50, 0.16);
}

.category-panel span,
.story-list span,
.service-cta span,
.product-box span {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-label .cat-icon {
  width: 17px;
  height: 17px;
  opacity: 0.65;
}

.category-panel strong,
.service-cta strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

.category-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.special-feature {
  padding-top: 36px;
}

.feature-package {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 16px;
}

.feature-main,
.feature-side a,
.column-list section,
.ranking-list a {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.feature-main a {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1fr);
  min-height: 100%;
}

.feature-main img {
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-right: 2px solid var(--line);
  filter: sepia(0.04) saturate(0.94);
}

.feature-main > a > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
}

.feature-side span {
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}



.feature-main h3 {
  margin: 18px 0 0;
  font-family: inherit;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1.38;
}

.feature-main p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-side {
  display: grid;
  gap: 10px;
}

.feature-side a {
  display: block;
  padding: 18px;
}

.feature-side strong {
  display: block;
  margin-top: 10px;
  line-height: 1.55;
}

.category-latest {
  padding-top: 36px;
}

.column-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.column-list section {
  padding: 20px;
}

.column-list h3 {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
}

.cat-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-heading .cat-icon {
  width: 20px;
  height: 20px;
  color: var(--amber);
  opacity: 0.55;
  flex-shrink: 0;
}

.cat-heading > span {
  display: flex;
  flex-direction: column;
}

.column-list h3 small {
  display: block;
  margin-top: 3px;
  color: var(--amber);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.column-list a {
  display: block;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}

.story-list {
  display: grid;
  gap: 10px;
}

.story-list a {
  display: block;
  padding: 18px 20px;
}

.media-list a {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
}

.media-list img {
  grid-row: span 2;
  width: 124px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  filter: sepia(0.04) saturate(0.94);
}

.story-list strong {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
}

.side-rail {
  display: grid;
  align-content: start;
  gap: 12px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #fff8ec, #fff8ec 10px, #f2e4cf 10px, #f2e4cf 20px);
  border: 2px dashed #c9ae83;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
}

.ad-slot-live {
  display: block;
  padding: 0;
  background: transparent;
  border-style: solid;
}

.ad-section {
  padding-top: 12px;
  padding-bottom: 12px;
}

.article-ad {
  margin: 34px 0;
}

.service-cta {
  display: block;
  padding: 20px;
}

.ranking-section {
  padding-top: 36px;
}

.ranking-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 18px;
}

.ranking-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fffaf1;
  background: var(--amber);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
}

.ranking-list strong {
  line-height: 1.55;
}

.ranking-list small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.secret-strip {
  position: relative;
  margin-top: 28px;
  padding: 64px 22px 68px;
  color: #fff8ec;
  background:
    linear-gradient(135deg, rgba(20, 18, 17, 0.96), rgba(54, 41, 32, 0.98) 56%, rgba(27, 23, 21, 0.97)),
    #241f1d;
  border-top: 1px solid rgba(232, 194, 127, 0.44);
  border-bottom: 1px solid rgba(232, 194, 127, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.08), inset 0 -1px 0 rgba(255, 248, 236, 0.06);
  text-align: center;
  overflow: hidden;
}

.secret-strip::before,
.secret-strip::after {
  position: absolute;
  left: 50%;
  width: min(760px, calc(100% - 44px));
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(232, 194, 127, 0.52), transparent);
  transform: translateX(-50%);
}

.secret-strip::before {
  top: 22px;
}

.secret-strip::after {
  bottom: 22px;
}

.secret-lock {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  color: #ead09c;
  background: radial-gradient(circle at 35% 28%, rgba(255, 248, 221, 0.22), rgba(168, 120, 57, 0.13) 58%, rgba(20, 18, 17, 0.22));
  border: 1px solid rgba(232, 194, 127, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(232, 194, 127, 0.06), 0 14px 34px rgba(0, 0, 0, 0.28);
}

.secret-lock svg,
.button-lock {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secret-strip .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 12px;
  color: #e6b06d;
  border: 1px solid rgba(230, 176, 109, 0.48);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.secret-strip .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e6b06d;
  box-shadow: 0 0 12px rgba(230, 176, 109, 0.8);
}

.secret-strip h2 {
  margin: 0;
  font-family: inherit;
  color: #fff7e8;
  font-size: 2.42rem;
  font-weight: 700;
  letter-spacing: 0;
}

.secret-strip p:not(.eyebrow) {
  max-width: 580px;
  margin: 14px auto 0;
  color: rgba(247, 241, 232, 0.84);
  line-height: 1.75;
}

.secret-strip a,
.member-box a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 13px 21px;
  color: #231f1b;
  background: linear-gradient(180deg, #f1cf90, #d69a55);
  border: 1px solid rgba(255, 248, 236, 0.32);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 248, 236, 0.45);
}

.secret-strip .button-lock {
  width: 16px;
  height: 16px;
}

.secret-strip a span {
  padding: 3px 7px;
  color: #fff8ec;
  background: rgba(47, 41, 37, 0.86);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.site-footer {
  padding: 36px 22px 48px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 700;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-links a {
  color: var(--amber);
}

.copyright {
  display: block;
  margin-top: 28px;
  color: rgba(114, 104, 92, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
}

.article-layout {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 12px;
}

.page-layout {
  width: min(900px, calc(100% - 36px));
}

.article-hero h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(1.78rem, 5.8vw, 3.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.article-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-image {
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-body {
  margin-top: 34px;
  padding: 30px 32px 4px;
  background: #f4eadb;
  border: 1px solid rgba(86, 70, 48, 0.08);
  border-radius: var(--radius);
}

.page-body {
  max-width: 820px;
}

.article-body p {
  margin: 0 0 1.25em;
  font-size: 1.06rem;
  line-height: 1.9;
}

.article-body h2 {
  margin: 2.1em 0 0.65em;
  font-family: inherit;
  font-size: 1.58rem;
  font-weight: 700;
  line-height: 1.35;
}

.article-body h3 {
  margin: 1.8em 0 0.6em;
  font-size: 1.18rem;
}

.article-body ul {
  display: grid;
  gap: 10px;
  margin: 0 0 1.5em;
  padding-left: 1.2em;
  line-height: 1.85;
}

.article-body li::marker {
  color: var(--amber);
}

.concept-lead {
  margin: 26px 0 32px;
  padding: 24px;
  color: #fff8ec;
  background: #5c4a3a;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.7;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 34px;
}

.concept-grid section {
  padding: 18px 20px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.concept-grid h3 {
  margin-top: 0;
}

.concept-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.pull-quote {
  margin: 34px 0;
  padding: 22px 0 22px 20px;
  color: var(--green);
  border-left: 4px solid var(--green);
  font-family: inherit;
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.6;
}

.product-box,
.member-box {
  margin: 34px 0;
  padding: 22px;
}

.product-box.has-product-image {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.product-image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f6ead8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-image-affiliate {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-box h3,
.member-box h3 {
  margin: 8px 0 10px;
  font-size: 1.2rem;
}

.product-box p,
.member-box p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.affiliate-embeds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
}

.affiliate-embeds-mercari {
  gap: 10px;
}

.affiliate-embed {
  max-width: 100%;
}

.affiliate-embed a,
.affiliate-embed img,
.affiliate-embed iframe {
  max-width: 100%;
}

.affiliate-embed img {
  height: auto;
}

.product-image-affiliate .affiliate-embed {
  display: grid;
  place-items: center;
}

.shop-links a {
  padding: 10px 14px;
  background: #efe7d9;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.member-box {
  color: #fff8ec;
  background: #5c4a3a;
  border-color: #5c4a3a;
}

.member-box p {
  color: rgba(247, 241, 232, 0.76);
}

.tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

.tag-links span {
  width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-list span b,
.story-list span small {
  display: block;
  line-height: 1.25;
}

.story-list span small {
  margin-top: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.tag-links a {
  display: inline-flex;
  padding: 8px 11px;
  color: var(--ink);
  background: #f6ead8;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 700;
}

.article-next {
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 2px solid var(--line);
}

.article-next-head {
  margin-bottom: 14px;
}

.article-next-head h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.35;
}

.article-next-head p {
  margin: 5px 0 0;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.article-next .story-list a {
  background: #fff8ec;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.84rem;
  font-weight: 700;
}

.page-numbers.current {
  color: #fff8ec;
  background: var(--amber);
  border-color: var(--amber);
}

@media (min-width: 860px) {
  .hero-copy {
    left: max(36px, calc((100vw - 1120px) / 2));
    right: auto;
    padding-left: 0;
  }
}

@media (max-width: 820px) {
  html {
    font-size: 17px;
  }

  .site-header {
    min-height: auto;
  }

  .header-main {
    min-height: 82px;
  }

  .header-note {
    display: none;
  }

  .brand {
    width: min(360px, 82vw);
  }

  .category-nav a {
    min-width: 88px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero {
    min-height: 640px;
  }

  .hero img {
    height: 640px;
  }

  .hero-copy {
    padding-bottom: 42px;
  }

  .section {
    width: min(100% - 32px, 680px);
    padding: 42px 0;
  }

  .feature-grid,
  .category-band,
  .feature-package,
  .column-list,
  .two-column {
    grid-template-columns: 1fr;
  }

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

  .feature-main img {
    min-height: 220px;
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

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

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

  .lead-card,
  .article-card {
    min-height: auto;
  }

  .lead-card .card-thumb,
  .card-thumb {
    height: 190px;
  }

  .lead-card h3 {
    font-size: 1.42rem;
  }

  .two-column {
    gap: 18px;
  }

  .media-list a {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .media-list img {
    width: 108px;
  }

  .article-layout {
    width: min(100% - 32px, 680px);
  }

  .article-body {
    padding: 24px 22px 2px;
  }

  .page-layout,
  .page-body {
    width: min(100% - 32px, 680px);
  }

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

  .product-box.has-product-image {
    grid-template-columns: 1fr;
  }

  .product-image {
    max-width: 240px;
  }
}

@media (max-width: 520px) {
  .ranking-list {
    grid-template-columns: 1fr;
  }

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

  .media-list img {
    grid-row: auto;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 600px;
  }

  .hero img {
    height: 600px;
  }

  .hero h1 {
    font-size: 1.88rem;
  }

  .hero-lead,
  .article-hero p {
    font-size: 1rem;
  }

  .article-hero h1 {
    font-size: 1.72rem;
  }

  .article-body {
    padding: 22px 18px 1px;
  }
}
