/*
Theme Name: ERABOW
Theme URI: https://erabow.jp
Author: Wingspan Inc.
Description: ERABOW専用コンシューマ向けWordPressテーマ
Version: 0.7.0
Text Domain: erabow
*/

:root {
  --bg: #fff;
  --text: #111;
  --muted: #707070;
  --subtle: #f6f6f6;
  --line: #e8e8e8;
  --black: #111;
  --white: #fff;
  --max: 1180px;
  --radius: 0px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 112px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
}

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

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

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

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

.erabow-wrap {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

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

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

/* Hero */
.hero {
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) 0 88px;
}

.hero__content {
  max-width: 940px;
}

.hero__eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 104px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero__lead {
  max-width: 580px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 18px);
}

/* Category */
.categories {
  padding: 0 0 140px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: .08em;
}

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

.category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-card {
  position: relative;
  min-height: 280px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.category-card:nth-child(odd) {
  padding-right: 34px;
  border-right: 1px solid var(--line);
}

.category-card:nth-child(even) {
  padding-left: 34px;
}

.category-card__inner {
  height: 100%;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.category-card__number {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}

.category-card__status {
  color: var(--muted);
  font-size: 12px;
}

.category-card h3 {
  margin: 32px 0 0;
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}

.category-card__action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 46px;
  color: var(--muted);
  font-size: 13px;
}

.category-card__arrow {
  font-size: 22px;
  line-height: 1;
  transition: transform .2s ease;
}

.category-card.is-active:hover {
  background: var(--subtle);
}

.category-card.is-active:hover .category-card__arrow {
  transform: translateX(5px);
}

.category-card.is-disabled {
  opacity: .38;
  cursor: default;
}

/* Short statement */
.statement {
  padding: 112px 0 124px;
  background: var(--black);
  color: var(--white);
}

.statement__inner {
  max-width: 850px;
}

.statement p {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 62px);
  line-height: 1.25;
  letter-spacing: -.035em;
}

/* Footer */
.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

/* Generic content */
.content-shell {
  padding: 88px 0 124px;
}

.content-shell__inner {
  max-width: 760px;
}

.content-shell h1 {
  margin: 0 0 36px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.content-shell p,
.content-shell li {
  color: #333;
}

/* Diagnosis page shell */
.diagnosis-hero {
  padding: 90px 0 56px;
}

.diagnosis-hero__meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.diagnosis-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.diagnosis-area {
  padding: 30px 0 130px;
}

.diagnosis-area__inner {
  max-width: 800px;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.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;
}

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

@media (max-width: 760px) {
  .erabow-wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header__inner {
    min-height: 62px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 82px 0 72px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero__lead {
    margin-top: 28px;
  }

  .categories {
    padding-bottom: 86px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 8px;
  }

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

  .category-card,
  .category-card:nth-child(odd),
  .category-card:nth-child(even) {
    min-height: 220px;
    padding: 28px 0;
    border-right: 0;
  }

  .category-card__inner {
    min-height: 165px;
  }

  .category-card h3 {
    margin-top: 24px;
  }

  .category-card__action {
    margin-top: 34px;
  }

  .statement {
    padding: 76px 0 82px;
  }

  .site-footer__inner {
    display: block;
  }

  .footer-links {
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .diagnosis-hero {
    padding-top: 70px;
  }
}

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