/* Trend Closet home page specific styles. */
:root {
  --bg: #FBFAF7;
  --panel: #FFFFFF;
  --ink: #33262E;
  --ink-soft: #7A6B74;
  --line: #E9E2DC;
  --rose: #B0526B;
  --rose-bg: #FAF0F3;
  --fuji: #7A6AA8;
  --fuji-bg: #F3F0FA;
  --seiji: #54806F;
  --seiji-bg: #EFF5F2;
  --yamabuki: #D9912E;
  --yamabuki-bg: #FBF3E6;
  --gold: #C9A227;
  --shadow: 0 4px 16px rgba(51, 38, 46, .08);
  --r: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: min(100% - 28px, 1120px);
  margin-inline: auto;
}

.serif {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 700;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.h-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0 8px;
}

.logo {
  color: var(--ink);
  font-family: "Shippori Mincho B1", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-decoration: none;
}

.logo em {
  color: var(--rose);
  font-style: normal;
}

.logo small {
  display: block;
  color: var(--ink-soft);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
}

.h-koyomi {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: none;
}

.h-koyomi b {
  color: var(--ink);
  font-weight: 700;
}

.h-koyomi .kichi {
  color: var(--yamabuki);
  font-weight: 700;
}

.gnav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0 -4px;
  padding: 0 4px;
}

.gnav a {
  flex: 0 0 auto;
  border-bottom: 3px solid transparent;
  padding: 8px 14px 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.gnav a.on {
  border-color: var(--rose);
  color: var(--ink);
}

.gnav a:hover { color: var(--ink); }

.site-lead {
  padding: 16px 0 0;
}

.site-lead h1 {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1.55;
}

.site-lead h1 b { color: var(--rose); }

.site-lead p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.today {
  padding: 18px 0 6px;
}

.today-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.today-bar h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 900;
  letter-spacing: .02em;
}

.today-bar h2 .serif { font-size: 19px; }

.today-bar small {
  color: var(--ink-soft);
  font-size: 12px;
}

.today-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.today-nav {
  display: flex;
  gap: 6px;
}

.today-nav[hidden] { display: none; }

.today-nav-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .18s, transform .18s;
}

.today-nav-btn:hover:not(:disabled) {
  background: var(--fuji-bg);
  transform: translateY(-1px);
}

.today-nav-btn:disabled {
  opacity: .35;
  cursor: default;
}

.today-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, calc((70% - 40px) / 5));
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  padding: 6px 8px 56px;
  margin: -6px -8px -44px;
  scrollbar-width: none;
}

.today-grid::-webkit-scrollbar {
  display: none;
}

.today-grid .t-tile {
  scroll-snap-align: start;
}

.t-tile {
  --ac: var(--fuji);
  --acbg: var(--fuji-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--panel), var(--acbg));
  box-shadow: var(--shadow);
  padding: 13px 14px 12px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}

.t-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(51, 38, 46, .13);
}

.t-tile .thumb {
  width: calc(100% + 28px);
  margin: -13px -14px 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
  display: block;
}

.t-tile b {
  font-size: 14px;
}

.t-tile span {
  color: var(--ink-soft);
  font-size: 11px;
}

.t-tile .go {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--ac);
  font-size: 12px;
  font-weight: 900;
}

.t-tile .daily {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  background: var(--ac);
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 2px 8px;
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 22px;
  padding: 16px 0 8px;
}

.main,
.side { min-width: 0; }

section.block { margin: 0 0 26px; }

.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.block-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
  font-weight: 900;
}

.block-head h2::before,
.about h2::before,
.section-head h2::before {
  content: "";
  width: 5px;
  height: 19px;
  border-radius: 3px;
  background: var(--rose);
}

.block-head h2[data-c="fuji"]::before { background: var(--fuji); }
.block-head h2[data-c="seiji"]::before { background: var(--seiji); }
.block-head h2[data-c="yamabuki"]::before { background: var(--yamabuki); }
.block-head h2[data-c="gold"]::before { background: var(--gold); }

.more {
  color: var(--rose);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.more:hover { text-decoration: underline; }

.all-count {
  color: var(--ink-soft);
  font-size: 11.5px;
}

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

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

.card {
  --ac: var(--rose);
  --acbg: var(--rose-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(51, 38, 46, .13);
}

.card.hidden { display: none; }

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--acbg), color-mix(in srgb, var(--ac) 34%, var(--acbg)));
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  border-radius: 4px;
  background: var(--rose);
  box-shadow: 0 2px 6px rgba(176, 82, 107, .4);
  color: #fff;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 2px 7px;
}

.c-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 11px 12px 12px;
}

.c-cat {
  color: var(--ac);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.card h3 {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.c-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 9px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.c-foot b {
  color: var(--ac);
  font-size: 11.5px;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.chip {
  --ac: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  transition: .15s;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac);
}

.chip .n {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 500;
}

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

.chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, .7); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 16px 16px 14px;
}

.panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 900;
}

.panel h2 a {
  color: inherit;
  text-decoration: none;
}

.panel h2 a:hover {
  color: var(--rose);
}

.panel h2::before {
  content: "";
  width: 5px;
  height: 17px;
  border-radius: 3px;
  background: var(--gold);
}

.panel h2.pk::before { background: var(--rose); }
.panel h2.pf::before { background: var(--fuji); }

.rank,
.newlist,
.dailyside {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rank li { border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; }

.rank a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  text-decoration: none;
}

.rank a:hover h3 { color: var(--rose); }

.rk {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.rank li:nth-child(1) .rk {
  border: 0;
  background: linear-gradient(135deg, #F3D97C, #C9A227);
  color: #fff;
}

.rank li:nth-child(2) .rk {
  border: 0;
  background: linear-gradient(135deg, #D9D9DE, #A9A9B4);
  color: #fff;
}

.rank li:nth-child(3) .rk {
  border: 0;
  background: linear-gradient(135deg, #DFAE8D, #B57B52);
  color: #fff;
}

.rank .rt { min-width: 0; }

.rank h3 {
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank span {
  color: var(--ink-soft);
  font-size: 10.5px;
}

.rank .re {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 17px;
}

.newlist li { border-top: 1px dashed var(--line); }
.newlist li:first-child { border-top: 0; }

.newlist a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 2px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

.newlist a:hover { color: var(--rose); }

.newlist time {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .03em;
}

.newlist .nb {
  flex: 0 0 auto;
  border-radius: 4px;
  background: var(--rose);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 1px 6px;
}

.newlist-empty {
  display: grid;
  gap: 10px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}

.newlist-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.newlist-empty a {
  justify-self: start;
  border: 1px solid rgba(176, 82, 107, .2);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--rose-bg);
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.dailyside {
  display: grid;
  gap: 8px;
}

.dailyside a {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--fuji-bg);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 11px;
  text-decoration: none;
}

.dailyside a:hover { border-color: var(--fuji); }
.dailyside .de { font-size: 17px; }

.dailyside small {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
}

.trust {
  border-block: 1px solid var(--line);
  background: var(--panel);
  margin-top: 14px;
  padding: 22px 0 24px;
}

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

.trust-grid article {
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.7;
}

.trust-grid b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
  margin-bottom: 3px;
}

.trust-grid b::before {
  content: "✳ ";
  color: var(--rose);
}

.about {
  padding: 30px 0 34px;
}

.about h2,
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 900;
}

.about > .wrap > p {
  max-width: 60em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.9;
}

.about a { color: var(--rose); }

.originality-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.originality-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 13px 15px;
}

.originality-card span {
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.originality-card h3 {
  margin: 4px 0;
  font-size: 13px;
  font-weight: 900;
}

.originality-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.faq { margin-top: 22px; }

.faq h3 {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 900;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.faq-grid div {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  padding: 13px 15px;
}

.faq-grid b {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.faq-grid b::before {
  content: "Q. ";
  color: var(--fuji);
  font-weight: 900;
}

.faq-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.author-spotlight {
  padding: 28px 0 34px;
}

.author-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.author-name {
  font-size: 16px;
  font-weight: 900;
}

.author-role {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.author-card p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.author-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  padding: 7px 12px;
  text-decoration: none;
}

.author-link.primary {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--fuji);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .cols { grid-template-columns: 1fr; }
  .side { order: 2; }
  .today-grid { grid-auto-columns: calc((100% - 10px) / 2); }
  .grid,
  .grid.dense { grid-template-columns: repeat(2, 1fr); }
  .trust-grid,
  .originality-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .h-koyomi { display: none; }
  .gnav { margin: 0 -6px; }
  .gnav a {
    border-bottom-width: 2.5px;
    font-size: 12.5px;
    padding: 6px 10px 8px;
  }
}

@media (max-width: 620px) {
  .today-grid { grid-auto-columns: 76%; }

  .author-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .author-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .grid,
  .grid.dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card h3 { font-size: 13px; }
  .c-body { padding: 10px; }
  .c-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

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