/* ========================================================================
   合同会社ハットウ コーポレートサイト 共通スタイル
   ======================================================================== */

:root {
  --bg:           #F5F0E8;
  --bg-paper:     #FBF7EF;
  --bg-dark:      #1C1C1C;
  --text:         #1C1C1C;
  --text-muted:   #6B6B6B;
  --text-light:   #9B9B9B;
  --text-on-dark: #ECE7DD;
  --accent:       #A88A3D;
  --accent-warn:  #C49545;
  --line:         #D8D2C5;
  --line-strong:  #B7AE9B;
  --line-dark:    #2E2E2E;
  --max-width:    1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 4px;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 24px; } }

.desktop-break { display: block; }
@media (max-width: 700px) { .desktop-break { display: inline; } }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 232, 0.92);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.site-header .brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  display: flex; gap: 12px; align-items: baseline;
}
.site-header .brand strong { color: var(--text); font-weight: 700; }
.site-header .brand .en {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  text-transform: uppercase;
}
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .15s;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 600px) { .site-header nav { display: none; } }

/* ============ Eyebrow ============ */
.eyebrow {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 16px;
}

/* ============ Page Hero (sub-pages) ============ */
.page-hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.page-hero .lead {
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.85;
}

/* ============ Footer ============ */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
footer .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 16px;
}
footer .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
footer .name strong { color: var(--text); font-weight: 700; }
footer .name .en {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text-light);
  margin-left: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  text-transform: uppercase;
}
footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
footer nav a {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
footer nav a:hover { color: var(--text); }
footer .copy {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 500;
}
@media (max-width: 700px) {
  footer .container { justify-content: center; text-align: center; }
}

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Products / Cards ============ */
.products { padding: 80px 0 64px; }
.category {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}
.category:last-child { border-bottom: none; }
.cat-head .no {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.cat-head h3 {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cat-head .desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.85;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.category--single .product-grid {
  grid-template-columns: 1fr;
  max-width: 560px;
}
@media (max-width: 900px) {
  .category { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .product-grid { grid-template-columns: 1fr; }
}

.card {
  display: flex; flex-direction: column;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card:hover,
a.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  outline: none;
}
a.card:focus-visible { box-shadow: 0 0 0 2px var(--text), 0 12px 28px rgba(0,0,0,0.06); }

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle, rgba(168,138,61,0.06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(135deg, #F0EADF 0%, #E5DCC9 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.shot-icon img {
  width: 88px; height: 88px;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 22px rgba(0,0,0,.08);
  display: block;
}
.shot-illustration {
  width: 78%; height: auto;
  max-width: 320px;
}
.shot-coming {
  position: absolute;
  right: 12px; bottom: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-warn);
  border: 1px solid var(--accent-warn);
  background: rgba(255,255,255,0.92);
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 500;
}

.card .body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card .meta-row {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.platforms { display: inline-flex; gap: 4px; }
.platform, .badge-pending {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
}
.badge-pending {
  border-color: var(--accent-warn);
  color: var(--accent-warn);
}
.card h4 {
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
.toggle { position: relative; }
.toggle .face {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
@media (hover: hover) and (pointer: fine) {
  .toggle { height: 4em; overflow: hidden; }
  .toggle .face { position: absolute; inset: 0; transition: opacity .28s ease, transform .28s ease; }
  .toggle .problem { opacity: 1; transform: translateY(0); }
  .toggle .solution { opacity: 0; transform: translateY(6px); }
  a.card:hover .toggle .problem,
  a.card:focus-visible .toggle .problem { opacity: 0; transform: translateY(-6px); }
  a.card:hover .toggle .solution,
  a.card:focus-visible .toggle .solution { opacity: 1; transform: translateY(0); }
  .card.is-static .toggle { height: auto; }
  .card.is-static .toggle .face { position: static; opacity: 1; transform: none; }
}
@media (hover: none), (pointer: coarse) {
  .toggle .face { display: block; margin-bottom: 6px; }
  .toggle .problem::before { content: "課題 / "; color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; font-weight: 500; }
  .toggle .solution::before { content: "道具 / "; color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.1em; font-weight: 500; }
}

.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  gap: 12px;
}
.more, .pending-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.more::after { content: " →"; color: var(--accent); margin-left: 2px; }
.more.external::after { content: " ↗"; color: var(--accent); }
.pending-text { color: var(--accent-warn); }
.privacy-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 500;
}

/* ============ CTA Button ============ */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 40px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: opacity .2s, transform .2s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn::after { content: "→"; color: var(--accent); }
.btn.btn-light {
  background: var(--bg-paper);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
