/* ===== カラー・フォント ===== */
:root {
  --bg: #faf6f3;
  --surface: #ffffff;
  --soft: #f5ece7;
  --blush: #efdcd5;
  --line: #ece1db;
  --text: #2b2321;
  --muted: #8b7b76;
  --accent: #b0707a;
  --accent-soft: #f6e4e6;
  --dark: #221c1b;
  --serif: "Cormorant Garamond", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(60, 35, 30, 0.07);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  line-break: strict;
  word-break: auto-phrase;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

h1,
h2,
h3,
h4,
.quote-main {
  font-variant-numeric: lining-nums;
}

/* 見出しの上に英字ラベル */
.section-head h2,
.shops h2,
.shindan-intro h2 {
  display: flex;
  flex-direction: column-reverse;
}

h2 small {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-light {
  background: #fff4f1;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-soft {
  background: #fff;
  color: var(--text);
  padding: 10px 20px;
  font-size: 13px;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--soft);
}

.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.round-btn svg {
  width: 16px;
  height: 16px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 0;
}

.link-btn svg {
  width: 14px;
  height: 14px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-tag {
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
}

.search {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin-left: auto;
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.search input:focus {
  border-color: var(--accent);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
}

.header-actions {
  display: flex;
  gap: 4px;
}

.badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.menu-btn,
.search-toggle {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: min(78vh, 620px);
  min-height: 460px;
  margin: 16px 24px 0;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background: #6d5a52;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 6s ease;
}

.hero-slides img.active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(40, 25, 20, 0.62) 0%, rgba(40, 25, 20, 0.25) 50%, rgba(40, 25, 20, 0.1) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  padding-bottom: 70px;
}

.hero-date {
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 420px;
  margin: 0 0 28px;
  font-size: 15px;
  opacity: 0.92;
}

.hero-script {
  position: absolute;
  z-index: 2;
  right: 7%;
  top: 22%;
  margin: 0;
  font-family: var(--script);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 0.95;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 96px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s, background 0.3s;
}

.hero-dots button.active {
  width: 22px;
  background: #fff;
}

/* ===== 特徴 ===== */
.features {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: -58px 24px 0;
  padding: 22px 26px;
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.features li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.features li > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.features b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.features span:not(.feature-icon) {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

/* ===== セクション共通 ===== */
.section {
  padding: 64px 0 8px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-head h2,
.shops h2,
.community h2 {
  font-size: clamp(24px, 2.6vw, 30px);
}

.section-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.empty {
  grid-column: 1 / -1;
  padding: 40px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
}

/* ===== チップ・絞り込み ===== */
.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-selects {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip-group,
.filter-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--blush);
}

.chip[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.select-wrap select {
  height: 36px;
  padding: 0 32px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%238b7b76' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  color: var(--text);
  font-size: 13px;
}

/* ===== お気に入り（ハート） ===== */
.heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  transition: transform 0.2s, color 0.2s;
}

.heart:hover {
  transform: scale(1.1);
}

.heart.on {
  color: var(--accent);
}

.heart.on svg {
  animation: pop 0.35s ease;
}

.heart-float {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
}

@keyframes pop {
  50% {
    transform: scale(1.3);
  }
}

/* ===== トレンド ===== */
.trend-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.trend-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.trend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(60, 35, 30, 0.12);
}

.card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--soft);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.trend-card:hover .card-img img,
.outfit-card:hover .outfit-main img,
.product-card:hover .card-img img,
.post-card:hover .card-img img {
  transform: scale(1.05);
}

.today-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
}

.hot-meter {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 28, 27, 0.7);
  color: #fff;
  font-size: 11px;
}

.hot-meter svg {
  width: 12px;
  height: 12px;
}

.trend-body {
  padding: 12px 14px 14px;
}

.trend-body h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.trend-body p {
  margin: 2px 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.trend-body small {
  font-size: 11px;
  color: var(--muted);
}

/* ===== シーンタブ ===== */
.scene-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow-x: auto;
  scrollbar-width: none;
}

.scene-tabs::-webkit-scrollbar {
  display: none;
}

.scene-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.scene-tab svg {
  width: 22px;
  height: 22px;
}

.scene-tab:hover {
  color: var(--text);
}

.scene-tab[aria-selected="true"] {
  background: var(--blush);
  color: var(--text);
  font-weight: 500;
}

/* ===== コーデ ===== */
.outfit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.outfit-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.25s;
}

.outfit-card:hover {
  transform: translateY(-4px);
}

.outfit-media {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  gap: 6px;
}

.outfit-main {
  aspect-ratio: 3 / 4.2;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
}

.outfit-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.outfit-items {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}

.outfit-items img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.outfit-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px 4px;
}

.outfit-body h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.outfit-body p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--accent);
}

/* ===== Quote ===== */
.quote {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  margin-top: 64px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(120deg, #ead6cf 0%, #f3e6e0 100%);
}

.quote-text {
  padding: 48px 56px;
}

.quote-main {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.7;
}

.quote-sign {
  margin: 8px 0 22px;
  font-family: var(--script);
  font-size: 38px;
  color: var(--accent);
}

.quote-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 380px;
  object-fit: cover;
}

/* ===== アイテム ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card .card-img {
  aspect-ratio: 1 / 1.1;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 14px 14px;
}

.product-body h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.product-shop {
  margin: 2px 0 8px;
  font-size: 11px;
  color: var(--muted);
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price {
  font-weight: 600;
  font-size: 14px;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.buy-btn svg {
  width: 14px;
  height: 14px;
}

.buy-btn:hover {
  background: var(--dark);
  color: #fff;
}

.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.more-wrap .btn[hidden] {
  display: none;
}

/* ===== アイテム詳細・着回し（F-09〜F-11） ===== */
.text-btn {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  letter-spacing: inherit;
}

.text-btn:hover {
  color: var(--accent);
}

button.card-img {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
}

.wear-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}

.mini-img {
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: none;
}

.detail-gallery.single {
  grid-template-columns: 1fr;
}

.detail-gallery.single img:first-child {
  aspect-ratio: 7 / 8;
}

.detail-price {
  margin: 10px 0 18px;
  font-size: 24px;
  font-weight: 700;
}

.detail-price small {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-links .btn {
  padding: 11px 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button.tag {
  border: none;
  font-size: 12px;
  padding: 5px 12px;
}

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

/* ===== かんたんスタイル診断（F-16） ===== */
.shindan {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 32px;
  padding: 36px 40px;
  border-radius: 22px;
  background: linear-gradient(120deg, #f3e6e0 0%, #f7efe9 100%);
}

.shindan-intro p {
  margin: 12px 0 16px;
  color: #5e504c;
}

.shindan-points {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.shindan-points li::before {
  content: "✓ ";
  color: var(--accent);
}

.shindan-form,
.shindan-result {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shindan-form[hidden],
.shindan-result[hidden] {
  display: none;
}

.shindan-form fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: none;
}

.shindan-form legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
}

.shindan-form legend span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.shindan-form legend small {
  font-size: 12px;
  color: var(--muted);
}

.result-type {
  font-size: 24px;
  margin: 4px 0 8px;
}

.result-text {
  margin: 0;
  color: #5e504c;
}

.shindan-result .result-group h3 {
  font-size: 14px;
}

/* ===== 最近見たもの（F-19） ===== */
#recent[hidden] {
  display: none;
}

.recent-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

/* ===== Shops ===== */
.shops {
  margin-top: 64px;
  padding: 32px 36px;
  border-radius: 22px;
  background: var(--soft);
}

.shops-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.shop-list {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.shop-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.shop-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-list a:hover .shop-logo {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(60, 35, 30, 0.14);
}

.shop-type {
  font-size: 11px;
  color: var(--muted);
}

/* ===== コラム ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.post-card .card-img {
  aspect-ratio: 16 / 11;
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.post-body h3 {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
}

/* ===== コミュニティ ===== */
.community {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
  padding: 32px 36px;
  border-radius: 22px;
  background: var(--soft);
}

.community-text p {
  margin: 8px 0 22px;
  color: var(--muted);
}

.community-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.community-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 10px;
  background: var(--blush);
}

.community-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 18px 12px 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.community-perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.community-perks svg {
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  margin-top: 72px;
  padding: 48px 0 20px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr 1fr 1.6fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

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

.socials {
  display: flex;
  gap: 12px;
  color: var(--text);
}

.socials svg {
  width: 22px;
  height: 22px;
}

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

.news-form {
  display: flex;
  gap: 8px;
}

.news-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  outline: none;
}

.news-form input:focus {
  border-color: var(--accent);
}

.news-form button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.news-msg {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.news-msg.ok {
  color: #3d7a5a;
}

.news-msg.err {
  color: #b3413b;
}

.footer-script {
  grid-column: 5;
  margin: 8px 0 0;
  font-family: var(--script);
  font-size: 32px;
  line-height: 1;
  text-align: right;
  transform: rotate(-4deg);
}

.footer-bottom p {
  margin: 28px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom a {
  text-decoration: underline;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 28, 27, 0.55);
  animation: fade 0.25s ease;
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: rise 0.3s ease;
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px 0 0;
  z-index: 3;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-body {
  padding: 32px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

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

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: var(--soft);
}

.detail-gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3.6;
}

.detail-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail h2 {
  font-size: 32px;
  margin-bottom: 6px;
}

.detail-lead {
  margin: 12px 0 18px;
  color: #4d403c;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.stat {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
}

.stat small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.stat b {
  font-size: 14px;
  font-weight: 600;
}

.meter {
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.detail h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.detail ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}

.detail li + li {
  margin-top: 4px;
}

.mini-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.mini-product {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
}

.mini-product img {
  width: 54px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--soft);
}

.mini-product div {
  min-width: 0;
  font-size: 12px;
}

.mini-product b {
  display: block;
  font-weight: 500;
  line-height: 1.35;
}

.mini-product a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: var(--accent);
  font-weight: 500;
}

.mini-product a svg {
  width: 12px;
  height: 12px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
}

.btn-outline.on {
  border-color: var(--accent);
  color: var(--accent);
}

.article {
  max-width: 680px;
  margin: 0 auto;
}

.article img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin: 18px 0 22px;
}

.article h2 {
  font-size: 30px;
}

.article p {
  font-size: 15px;
  line-height: 1.8;
}

.list-title {
  font-size: 26px;
  margin-bottom: 6px;
}

.list-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.result-group h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  margin: 22px 0 10px;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  transition: box-shadow 0.2s;
}

.result-item:hover {
  box-shadow: var(--shadow);
}

.result-item img {
  width: 52px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--soft);
}

.result-item span {
  min-width: 0;
  font-size: 13px;
}

.result-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.result-item .heart {
  margin-left: auto;
}

mark {
  background: var(--accent-soft);
  color: inherit;
  border-radius: 3px;
}

.modal-search {
  position: relative;
  margin-bottom: 8px;
}

.modal-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.modal-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .nav {
    gap: 18px;
  }

  .trend-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .outfit-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-list {
    grid-template-columns: repeat(5, 1fr);
    row-gap: 20px;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-news {
    grid-column: span 2;
  }

  .footer-script {
    grid-column: auto;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .shindan {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px;
  }

  .shindan-form,
  .shindan-result {
    padding: 20px 16px;
  }

  :root {
    --header-h: 62px;
  }

  .menu-btn,
  .search-toggle {
    display: inline-flex;
  }

  .header-inner {
    gap: 8px;
  }

  .logo {
    margin-right: auto;
  }

  .logo-name {
    font-size: 22px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav a.active::after {
    display: none;
  }

  .search {
    display: none;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .quote,
  .community,
  .detail {
    grid-template-columns: 1fr;
  }

  .quote-img {
    max-height: 280px;
  }

  .quote-text {
    padding: 32px 28px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    margin: 10px 16px 0;
    height: 540px;
    border-radius: 18px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(40, 25, 20, 0.15) 0%, rgba(40, 25, 20, 0.7) 100%);
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-script {
    top: 8%;
    right: 6%;
    font-size: 32px;
  }

  .hero-controls {
    left: 0;
    right: 0;
    bottom: 62px;
    justify-content: center;
  }

  .hero-controls .round-btn {
    display: none;
  }

  .features {
    margin: -48px 8px 0;
    padding: 18px;
    grid-template-columns: 1fr 1fr;
  }

  .features b {
    font-size: 12px;
  }

  .features span:not(.feature-icon) {
    display: none;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
  }

  .section {
    padding-top: 48px;
  }

  .trend-grid,
  .product-grid,
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .scene-tab {
    flex-direction: column;
    gap: 4px;
    min-width: 76px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .shops,
  .community {
    padding: 24px 18px;
  }

  .shop-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-logo {
    width: 72px;
    height: 72px;
    font-size: 11px;
  }

  .community-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .community-perks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 16px 4px 0;
  }

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

  .footer-brand,
  .footer-news,
  .footer-script {
    grid-column: 1 / -1;
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-panel {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .modal-body {
    padding: 20px 16px 28px;
  }

  .detail h2 {
    font-size: 26px;
  }

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

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