/* Native WordPress homepage styles. Keep in sync with the former Sites homepage. */
:root {
  --red: #ff2929;
  --red-dark: #dd1616;
  --ink: #18181b;
  --muted: #68686f;
  --background: #f4f4f6;
  --surface: #ffffff;
  --line: #dedee2;
  --soft-red: #fff0f0;
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(24, 24, 27, 0.07);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
}

.site-header nav a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-store,
.primary-button {
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 18px rgba(255, 41, 41, 0.2);
}

.site-header .nav-store { padding: 0.7rem 1rem; }

.hero {
  padding: clamp(2rem, 5vw, 4.5rem) max(24px, calc((100vw - 1240px) / 2)) 3.25rem;
  background: var(--surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.hero-kicker,
.section-label {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.hero-lead {
  max-width: 590px;
  margin: 1.7rem 0 0;
  color: #4f4f55;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  font-weight: 500;
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 24px 70px rgba(24, 24, 27, 0.14);
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.hero-visual > p {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 16px;
  background: rgba(25, 25, 28, 0.58);
  color: #fff;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.hero-visual > p strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-visual > p span {
  max-width: 110px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.search {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  width: min(940px, 100%);
  margin: 3rem auto 0;
  padding: 0.75rem 0.8rem 0.75rem 1.35rem;
  border-radius: 20px;
  background: var(--background);
}

.search label {
  font-size: 0.82rem;
  font-weight: 800;
}

.search > div {
  display: flex;
  min-width: 0;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.search input {
  min-width: 0;
  flex: 1;
  padding: 0.65rem 0.8rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
}

.search input::placeholder { color: #96969d; }

.search button {
  min-width: 74px;
  border: 0;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.52fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.section-heading h2,
.discovery h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.text-link span,
.card-link i { color: var(--red); font-style: normal; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.15rem;
}

.article-card {
  grid-column: span 3;
  min-width: 0;
}

.article-card-featured { grid-column: span 6; }
.article-card:nth-child(n + 4) { grid-column: span 4; }

.article-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(24, 24, 27, 0.055);
  transition: transform 170ms ease-out, box-shadow 170ms ease-out;
}

.article-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8e8eb;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease-out;
}

.article-image > span {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 5px 15px rgba(100, 0, 0, 0.25);
}

.article-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.article-copy time,
.update-list time {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.article-copy h3 {
  margin: 0.65rem 0 1.3rem;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.55;
}

.article-card-featured .article-copy { padding: 1.55rem; }
.article-card-featured .article-copy h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.42; }

.card-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 800;
}

.find-section { border-top: 1px solid var(--line); }
.compact-heading { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr); }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.entry-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.05rem;
  min-height: 178px;
  padding: 1.5rem;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(24, 24, 27, 0.04);
  transition: transform 170ms ease-out, border-color 170ms ease-out, box-shadow 170ms ease-out;
}

.entry-number {
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.entry-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.75;
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--background);
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
}

.discovery {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.popular-panel,
.updated-panel {
  min-width: 0;
  padding: clamp(4.5rem, 7vw, 7.5rem) max(24px, calc((100vw - 1240px) / 2));
}

.popular-panel {
  padding-right: clamp(2rem, 5vw, 5rem);
  background: var(--red);
  color: #fff;
}

.updated-panel {
  padding-left: clamp(2rem, 5vw, 5rem);
  background: var(--surface);
}

.popular-panel .section-label { color: #fff; opacity: 0.75; }
.updated-panel .section-label { color: var(--red); }

.panel-intro {
  max-width: 470px;
  margin: 1rem 0 2.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.8;
}

.popular-panel .panel-intro { color: rgba(255, 255, 255, 0.78); }
.updated-panel .panel-intro { color: var(--muted); }

.standard-list { border-top: 1px solid rgba(255, 255, 255, 0.42); }

.standard-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 90px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.standard-list > a > span,
.standard-list i {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.standard-list small {
  display: block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.62rem;
  font-weight: 700;
}

.standard-list strong {
  display: block;
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  line-height: 1.5;
}

.update-list { border-top: 1px solid var(--line); }

.update-list article { border-bottom: 1px solid var(--line); }

.update-list a {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 104px;
  padding: 0.75rem 0;
}

.update-list img {
  width: 116px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
  background: var(--background);
}

.update-list h3 {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.update-list a > span { color: var(--red); font-weight: 900; }

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

.category-grid a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 1rem;
  min-height: 132px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 170ms ease-out, border-color 170ms ease-out;
}

.category-grid strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.category-grid span {
  align-self: end;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.6;
}

.category-grid i {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--red);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 900;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding: clamp(5rem, 9vw, 9rem) max(24px, calc((100vw - 1240px) / 2));
  background: var(--ink);
  color: #fff;
}

.manifesto h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.manifesto > div:last-child {
  align-self: end;
}

.manifesto > div:last-child p {
  margin: 0;
  color: #b8b8be;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 2;
}

.manifesto a {
  display: inline-flex;
  gap: 0.65rem;
  margin-top: 1.8rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.manifesto a span { color: var(--red); }

.faq-section { padding-bottom: clamp(5rem, 8vw, 8rem); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
  padding: 1rem 0;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft-red);
  color: var(--red);
  font-size: 1.1rem;
  transition: transform 180ms ease-out;
}

.faq-list details[open] summary span { transform: rotate(45deg); }

.faq-list details p {
  max-width: 840px;
  margin: 0;
  padding: 0 0 1.7rem;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.95;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  padding: 4rem max(24px, calc((100vw - 1240px) / 2)) 2rem;
  background: #0e0e10;
  color: #fff;
}

.footer-brand img { width: 48px; height: 48px; }
.footer-main p { margin: 0.8rem 0 0; color: #98989f; font-size: 0.76rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 1.5rem;
  font-size: 0.74rem;
  font-weight: 700;
}

footer small {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid #2d2d31;
  color: #727279;
  font-size: 0.65rem;
}

.site-header a,
.hero-actions a,
.search button,
.article-card a,
.entry-card,
.standard-list a,
.update-list a,
.category-grid a,
.text-link,
.manifesto a,
.footer-links a {
  -webkit-tap-highlight-color: transparent;
}

.site-header a:active,
.hero-actions a:active,
.search button:active,
.article-card a:active,
.entry-card:active,
.standard-list a:active,
.update-list a:active,
.category-grid a:active {
  transform: scale(0.98);
  transition-duration: 90ms;
}

@media (hover: hover) {
  .site-header nav a:not(.nav-store):hover,
  .footer-links a:hover { color: var(--red); }
  .nav-store:hover,
  .primary-button:hover { background: var(--red-dark); }
  .secondary-button:hover { border-color: var(--ink); }
  .article-card > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 44px rgba(24, 24, 27, 0.11);
  }
  .article-card > a:hover .article-image img { transform: scale(1.025); }
  .entry-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 41, 41, 0.45);
    box-shadow: 0 14px 34px rgba(24, 24, 27, 0.08);
  }
  .category-grid a:hover { transform: translateY(-3px); border-color: var(--red); }
  .standard-list a:hover strong,
  .update-list a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.55rem, 5.2vw, 4rem); }
  .article-card,
  .article-card:nth-child(n + 4) { grid-column: span 6; }
  .article-card-featured { grid-column: span 12; }
  .entry-grid,
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery { grid-template-columns: 1fr; }
  .popular-panel,
  .updated-panel { padding-inline: max(24px, calc((100vw - 760px) / 2)); }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto > div:last-child { max-width: 620px; }
}

@media (max-width: 760px) {
  .header-inner,
  .section { width: min(100% - 32px, 620px); }
  .header-inner { min-height: 66px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: 0.82rem; }
  .site-header nav a:not(.nav-store) { display: none; }
  .site-header .nav-store { padding: 0.58rem 0.82rem; font-size: 0.72rem; }
  .hero { padding-inline: 16px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 1.5rem 0 0; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-lead { line-height: 1.9; }
  .hero-visual,
  .hero-visual > img { min-height: 390px; }
  .search { grid-template-columns: 1fr; padding: 1rem; }
  .section { padding-block: 5rem; }
  .section-heading,
  .compact-heading { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading .text-link { justify-self: start; }
  .article-card,
  .article-card:nth-child(n + 4),
  .article-card-featured { grid-column: span 12; }
  .article-card-featured .article-copy h3 { font-size: 1.3rem; }
  .entry-grid,
  .category-grid { grid-template-columns: 1fr; }
  .popular-panel,
  .updated-panel,
  .manifesto { padding-inline: 16px; }
  .manifesto h2 br { display: none; }
  footer { grid-template-columns: 1fr; padding-inline: 16px; }
  footer small { grid-column: 1; }
}

@media (max-width: 440px) {
  .hero h1 br { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-visual,
  .hero-visual > img { min-height: 330px; }
  .search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .update-list a { grid-template-columns: 88px 1fr; }
  .update-list img { width: 88px; }
  .update-list a > span { display: none; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-visual > p { background: #29292d; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .site-header,
  .article-card > a,
  .entry-card,
  .category-grid a { border-color: var(--ink); }
}
