/*
Theme Name: Monodict
Description: モノの名前辞典サイト用のシンプルでモダンなテーマ
Author: monodict
Version: 0.2.0
Text Domain: monodict
*/

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --border: #f1f5f9;
  --text-main: #1e293b;
  --text-body: #475569;
  --text-muted: #94a3b8;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #fff7ed;
  --gradient-main: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px -15px rgba(0, 0, 0, 0.2);
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hero__title,
.hero__bg-row,
.site-title,
.search-box button,
.amazon-button {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.site-title {
  font-weight: 900;
  font-size: 24px;
  color: var(--text-main);
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  background: var(--gradient-main);
  border-radius: 4px;
  transform: rotate(45deg);
}

.site-tagline {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.site-nav__link:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

.site-nav__link.is-active {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--accent);
}

/* Main Content */
.site-main {
  padding: 20px 0 80px;
}

.home .site-main {
  padding-top: 0 !important;
}

.home .hero {
  margin-top: 0 !important;
}

.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #ffffff;
  background-image: 
    radial-gradient(at 0% 0%, rgba(250, 112, 154, 0.08) 0, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(254, 225, 64, 0.08) 0, transparent 50%),
    radial-gradient(at 50% 100%, rgba(250, 112, 154, 0.05) 0, transparent 50%);
  padding: clamp(100px, 15vh, 200px) 20px;
  margin-bottom: 80px;
  color: var(--text-main);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}

.hero--fullwidth {
  width: 100%;
  position: relative;
  left: 0;
  border-radius: 0;
}

.hero__bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  opacity: 0.15;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: skewY(-6deg);
  z-index: 1;
}

@media (max-width: 768px) {
  .hero__bg {
    opacity: 0.1;
    top: -10%;
    height: 120%;
  }
}

.hero__bg-row {
  display: flex;
  white-space: nowrap;
  gap: 30px;
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
}

.hero__bg-row:nth-child(odd) {
  animation: scroll-left 140s linear infinite;
}

.hero__bg-row:nth-child(even) {
  animation: scroll-right 160s linear infinite;
}

.hero__bg-row:nth-child(3n) {
  animation-duration: 180s;
}

.hero__bg-row:nth-child(4n) {
  animation-duration: 120s;
}

.hero__bg-row:nth-child(5n) {
  animation-duration: 200s;
  animation-direction: reverse;
}

.hero__bg-row span {
  display: inline-block;
  color: rgba(250, 112, 154, 0.3);
  -webkit-text-stroke: 1px rgba(250, 112, 154, 0.2);
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
}

.hero__title {
  margin: 0;
  font-size: clamp(60px, 18vw, 240px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  text-transform: lowercase;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(250, 112, 154, 0.15));
  margin-bottom: -0.05em;
  word-break: break-all;
}

.hero__lead {
  margin: 40px auto 48px;
  color: var(--text-body);
  font-size: clamp(16px, 2vw, 24px);
  max-width: 800px;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.8;
  line-height: 1.6;
}

.search-box {
  display: flex;
  max-width: 640px;
  margin: 40px auto;
  gap: 12px;
  background: #ffffff;
  padding: 12px;
  border-radius: 24px;
  /* 白背景でも輪郭が分かるように少しだけコントラストを上げる */
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow:
    0 18px 45px -18px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(15, 23, 42, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 30px 60px -12px rgba(249, 115, 22, 0.25),
    0 0 0 1px rgba(249, 115, 22, 0.20);
  border-color: rgba(249, 115, 22, 0.3);
}

.search-box input[type="search"] {
  flex: 1;
  padding: 16px 24px;
  font-size: 18px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input[type="search"]:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 4px rgba(249, 115, 22, 0.10);
}

.search-box button {
  padding: 0 36px;
  border: none;
  border-radius: 16px;
  background: var(--gradient-main);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.search-box button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

/* Sections */
.section {
  margin-top: 30px;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.section__title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.03em;
  position: relative;
}

.section__title::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
}

.section__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  padding: 8px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.section__link:hover {
  background: var(--accent);
  color: #fff;
}

/* Grid and Cards */
.grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Pagination */
.navigation.pagination {
  margin-top: 28px;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.navigation.pagination a.page-numbers:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--accent);
  transform: translateY(-1px);
}

.navigation.pagination .page-numbers.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.navigation.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0 6px;
  min-width: auto;
}

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

.mono-card {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}

.mono-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(249, 115, 22, 0.1);
}

.mono-card__thumb-wrapper {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
}

.mono-card__thumb-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
}

.mono-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mono-card:hover .mono-card__thumb {
  transform: scale(1.1);
}

.mono-card__category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mono-reading {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.mono-card__label {
  position: absolute;
  bottom: 20px;
  left: 12px;
  background: #ffffff;
  padding: 8px 14px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 85%;
  border-left: 5px solid var(--accent);
  transition: all 0.3s ease;
}


.mono-card:hover .mono-card__label {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 6px 6px 20px rgba(0, 0, 0, 0.2);
}

.mono-card__label .mono-reading {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mono-card__label .mono-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Chips / Categories */
.chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  padding: 10px 24px;
  background: #ffffff;
  color: var(--text-body);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.chip:hover {
  background: var(--gradient-main);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.chip span {
  opacity: 0.6;
  font-size: 12px;
  margin-left: 6px;
  font-weight: 500;
}

/* Single Page */
.mono-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 48px;
}

.mono-header .page-header {
  margin: 0;
  flex: 1;
}

.mono-header .page-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin: 0;
}

.amazon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #ff9900 0%, #ffb300 100%);
  color: #fff !important;
  padding: 0 32px;
  height: 52px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 153, 0, 0.2);
}

.amazon-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 153, 0, 0.3);
}

/* Monodict Suggestions (mds) */
.mds-entrypoint {
  margin: 18px 0 10px;
}

.mds-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: var(--accent-soft);
  color: var(--text-main);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.mds-open:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.18);
}

.mds-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.mds-modal__dialog {
  position: relative;
  max-width: 920px;
  margin: 5vh auto;
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-md);
  padding: 18px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
}

.mds-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-main);
  font-weight: 800;
  cursor: pointer;
}

.mds-close:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

.mds-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gradient-main);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.mds-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mds-chips .mds-chip--readonly {
  cursor: default;
}

.mds-chips .mds-chip--readonly:hover {
  background: #fff;
  color: var(--text-body);
  border-color: var(--border);
  transform: none;
  box-shadow: var(--shadow-sm);
}

.mono-single {
  background: var(--panel);
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-lg);
  padding: 60px 60px 20px;
  box-shadow: var(--shadow-lg);
}

.mono-alias {
  margin: -32px 0 48px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
}

.mono-single__media {
  margin: 0 0 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 40px;
}

.mono-single__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

.mono-single__content {
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-body);
}

.mono-single__content h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 20px 0 20px;
  padding-bottom: 16px;
  color: var(--text-main);
  position: relative;
}

.mono-single__content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
}

.mono-single__content h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 48px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.mono-single__content h3::before {
  content: "";
  display: block;
  width: 6px;
  height: 24px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
}

.mono-single__content strong {
  font-weight: 800;
  color: var(--text-main);
  /* 下線（ハイライト）色をオレンジ系に */
  background: linear-gradient(transparent 70%, rgba(249, 115, 22, 0.18) 70%);
  padding: 0 4px;
}

/* モノ詳細本文: リスト（・）の見た目をトンマナに合わせ、左のアキを詰める */
.mono-single__content ul,
.mono-single__content ol {
  margin: 18px 0;
}

/* ul: デフォルトの・を置き換え（余白も最適化） */
.mono-single__content ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.mono-single__content ul > li {
  position: relative;
  padding-left: 1.25em;
  margin: 0.35em 0;
}

.mono-single__content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  transform: translateY(-50%);
  width: 0.45em;
  height: 0.45em;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.95);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

/* 入れ子は少しだけ控えめに（インデントも確保） */
.mono-single__content li > ul,
.mono-single__content li > ol {
  margin: 10px 0 0;
}

.mono-single__content li > ul {
  padding-left: 1.1em;
}

.mono-single__content li > ol {
  padding-left: 1.35em;
}

.mono-single__content ul ul > li::before {
  width: 0.4em;
  height: 0.4em;
  opacity: 0.85;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

/* ol: 数字は活かしつつ、インデントと色味を調整 */
.mono-single__content ol {
  padding-left: 1.25em;
  margin-left: 0;
}

.mono-single__content ol > li {
  margin: 0.35em 0;
  padding-left: 0.15em;
}

.mono-single__content ol > li::marker {
  color: var(--accent);
  font-weight: 800;
}

.mono-single__meta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.mono-single__meta strong {
  color: var(--text-main);
}

.mono-single__categories {
  margin-top: 16px;
  margin-bottom: 12px;
}

.mono-single__affiliate-note {
  display: block;
  margin: 30px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.mono-amazon-items {
  margin-top: 28px;
  margin-bottom: 18px;
}

.mono-amazon-items__title {
  color: var(--text-main);
  margin: 48px 0 14px;
}

/* h3: モノ詳細本文内のh3と同じ見た目（左のアクセントバー） */
h3.mono-amazon-items__title {
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
}

h3.mono-amazon-items__title::before {
  content: "";
  display: block;
  width: 6px;
  height: 24px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
}

/* h2: モノ詳細本文内のh2と同じ見た目（下線） */
h2.mono-amazon-items__title {
  font-size: 28px;
  font-weight: 900;
  margin: 20px 0 20px;
  padding-bottom: 16px;
  position: relative;
}

h2.mono-amazon-items__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-main);
  border-radius: var(--radius-full);
}

.mono-amazon-items__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.mono-amazon-items__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .mono-amazon-items__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mono-amazon-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 153, 0, 0.28);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255, 179, 0, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, rgba(255, 153, 0, 0.12) 0%, rgba(255, 179, 0, 0.06) 60%, rgba(15, 23, 42, 0.02) 100%);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.2s ease;
}

.mono-amazon-link::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease, color 0.15s ease;
}

.mono-amazon-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 153, 0, 0.45);
  color: var(--text-main);
}

.mono-amazon-link:hover::after {
  transform: translate(2px, -50%);
  color: rgba(15, 23, 42, 0.55);
}

.mono-amazon-link:focus-visible {
  outline: 3px solid rgba(255, 153, 0, 0.35);
  outline-offset: 3px;
}

.mono-amazon-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff9900 0%, #ffb300 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px rgba(255, 153, 0, 0.18);
}

.mono-amazon-link__text {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding-right: 26px; /* → と被らない */
}

.mono-amazon-link__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.55);
}

.mono-amazon-link__host {
  font-weight: 700;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mono-amazon-items__debug {
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px dashed rgba(249, 115, 22, 0.35);
  border-radius: 14px;
  background: rgba(249, 115, 22, 0.06);
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.5;
  overflow: auto;
}

.mono-amazon-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-width: 0;
}

.mono-amazon-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(249, 115, 22, 0.25);
}

.mono-amazon-item__thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mono-amazon-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mono-amazon-item__title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mono-amazon-item__footer {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.mono-amazon-item__price {
  font-size: 15px;
  font-weight: 900;
  color: #ef4444;
  white-space: nowrap;
}

.mono-amazon-item__source {
  font-size: 11px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.45);
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: #0b1220;
  color: rgba(255, 255, 255, 0.78);
  padding: 0;
  border-top: none;
}

.site-footer__brand {
  padding: clamp(56px, 7vw, 110px) 0 clamp(22px, 3vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.site-footer__wordmark {
  display: inline-block;
  width: fit-content;
  margin: 0 auto;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-weight: 900;
  /* 画面幅に追従して“全幅”感が出るように大きめに */
  font-size: 23vw;
  /* ヒーローの monodict と同じカーニング（letter-spacing） */
  letter-spacing: -0.08em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(250, 112, 154, 0.92) 0%, rgba(254, 225, 64, 0.92) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}

.site-footer__bottom {
  padding: 18px 0 22px;
}

.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
}

.site-footer__copyright {
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.03em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 2px;
}

.site-footer__links a:hover {
  color: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 40px 24px;
  }
  
  .search-box {
    flex-direction: column;
    background: transparent;
    border: none;
  }
  
  .search-box button {
    padding: 14px;
  }

  /* モノ詳細: タイトル + AmazonボタンはSPでは縦並びにする */
  .mono-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0 0 32px;
  }

  .mono-header .page-header {
    width: 100%;
    font-size: 28px;
    line-height: 1.2;
  }

  .amazon-button {
    width: 100%;
    height: 48px;
    font-size: 18px;
  }

  /* モノ詳細: SP時の文字サイズを全体的に少し小さく */
  .mono-reading {
    font-size: 12px;
  }

  .mono-alias {
    margin: 12px 0 32px;
    font-size: 14px;
  }

  .mono-single__content {
    font-size: 18px;
  }

  .mono-single__content h2 {
    font-size: 26px;
  }

  .mono-single__content h3 {
    font-size: 20px;
  }

  h3.mono-amazon-items__title {
    font-size: 20px;
  }

  h2.mono-amazon-items__title {
    font-size: 26px;
  }

  .mono-single__meta {
    font-size: 13px;
  }

  .mono-single__affiliate-note {
    font-size: 10px;
    line-height: 1.5;
    opacity: 0.85;
  }

  .mono-amazon-items {
    margin-top: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mono-amazon-items__grid {
    display: flex;
    gap: 12px;
    width: max-content;
    padding-bottom: 6px;
  }

  .mono-amazon-item {
    width: 160px;
  }

  .mono-single {
    padding: 24px 24px 16px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__wordmark {
    font-size: 22.5vw;
  }
}

/* Quiz */
.quiz {
  margin-top: 18px;
}

.quiz__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.quiz__card {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.quiz__image-wrap {
  aspect-ratio: 16 / 9;
  background: rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quiz__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.quiz__choice {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  border-radius: 14px;
  padding: 14px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
}

.quiz__choice:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
}

.quiz__choice:disabled {
  cursor: default;
  opacity: 0.95;
}

.quiz__choice.is-correct {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
}

.quiz__choice.is-wrong {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

.quiz__feedback {
  margin-top: 12px;
  font-weight: 800;
  color: var(--text-main);
}

.quiz__result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quiz__result[hidden] {
  display: none !important;
}

.quiz__result-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.quiz__result-lead {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-weight: 700;
}

.quiz__restart {
  appearance: none;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
  border-radius: 999px;
  height: 40px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}

.quiz__restart:hover {
  background: rgba(249, 115, 22, 0.18);
}

.quiz.is-finished .quiz__status,
.quiz.is-finished .quiz__feedback {
  display: none;
}

.quiz.is-finished .quiz__result {
  margin-top: 0;
}

@media (max-width: 720px) {
  .site-header__brand {
    gap: 10px;
  }
  .site-tagline {
    display: none;
  }
}

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