﻿:root {
  --paper: #f4efe6;
  --paper-2: #fffaf1;
  --ink: #171614;
  --ink-2: #26231f;
  --muted: #776f65;
  --line: rgba(23, 22, 20, 0.16);
  --line-dark: rgba(255, 250, 241, 0.22);
  --accent: #e75635;
  --sage: #8d9a8f;
  --cream: #fbf6ed;
  --max: min(1180px, calc(100% - 48px));
  --progress: 0;
  --header-height: 60px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  transform: scaleX(var(--progress));
  transform-origin: left center;
  z-index: 100;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 22, 20, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
  z-index: -1;
}

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

p,
h1,
h2,
h3,
figure,
dl,
dd {
  margin: 0;
}

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

main {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.24);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--cream);
  background: rgba(23, 22, 20, 0.24);
  backdrop-filter: blur(12px);
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.site-header[data-scrolled="true"],
.page:not(.page-top) .site-header {
  color: var(--ink);
  background: rgba(244, 239, 230, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}

.site-nav a {
  height: var(--header-height);
  min-height: var(--header-height);
  padding: 0 13px;
  border-left: 1px solid rgba(255, 250, 241, 0.16);
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-header[data-scrolled="true"] .site-nav a,
.page:not(.page-top) .site-nav a {
  border-left-color: var(--line);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cream);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: 96px 32px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  grid-template-rows: 1fr auto;
  gap: 24px;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
}

.hero-bg,
.hero-shade,
.hero-frame {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(23, 22, 20, 0.86) 0%, rgba(23, 22, 20, 0.52) 42%, rgba(23, 22, 20, 0.16) 72%),
    linear-gradient(180deg, rgba(23, 22, 20, 0.16) 0%, rgba(23, 22, 20, 0.64) 100%);
}

.hero-frame {
  inset: 60px 32px 36px;
  border: 2px solid rgba(255, 250, 241, 0.76);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 900px;
}

.kicker {
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 20px;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 8rem;
  font-weight: 800;
  line-height: 0.95;
}

.hero h1 > span {
  display: block;
}

.hero-lead {
  max-width: 560px;
  margin-top: 28px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 2;
}

.hero-meta {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 16px;
  padding: 18px 0 0;
  border-top: 2px solid rgba(255, 250, 241, 0.8);
  font-weight: 800;
  line-height: 1.7;
}

.hero-image-note {
  position: absolute;
  top: 122px;
  right: 46px;
  bottom: auto;
  z-index: 3;
  width: min(520px, calc(100% - 64px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 250, 241, 0.58);
  background: rgba(23, 22, 20, 0.62);
  color: var(--cream);
  font-size: 0.72rem;
  line-height: 1.7;
}

.hero-actions {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

/* ============================================
   Hero Promo Badge（はめこリズム公開中）
   ============================================ */
.hero-wrap {
  position: relative;
  z-index: 1;
}

.hameco-promo {
  position: absolute;
  z-index: 3;
  left: 48px;
  bottom: 36px;
  width: 244px;
  height: 244px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(50%);
}

.hameco-promo-ring {
  position: absolute;
  inset: 0;
  border: 3px solid #3a6ef8;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: promoRingWave 7s ease-in-out infinite, promoRingSpin 18s linear infinite;
  pointer-events: none;
}

.hameco-promo-disc {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}

.hameco-promo-title {
  color: #3a6ef8;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.hameco-promo-btn {
  display: inline-block;
  background: #3a6ef8;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.18s ease;
}

.hameco-promo-btn:hover {
  background: #1f51d8;
  transform: translateY(-2px);
}

@keyframes promoRingWave {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25%       { border-radius: 40% 60% 60% 40% / 40% 50% 60% 50%; }
  50%       { border-radius: 30% 60% 70% 40% / 50% 40% 60% 40%; }
  75%       { border-radius: 50% 40% 50% 60% / 30% 60% 40% 70%; }
}

@keyframes promoRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.button {
  position: relative;
  min-height: 62px;
  padding: 0 28px;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--cream);
}

.button.primary:hover {
  color: var(--cream);
  background: var(--ink);
}

.button.secondary {
  color: var(--cream);
}

.button.secondary:hover {
  color: var(--ink);
  background: var(--cream);
}

.hero-mega {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  z-index: 1;
  display: flex;
  width: max-content;
  opacity: 0.18;
  white-space: nowrap;
  animation: heroMarquee 32s linear infinite;
}

.hero-mega span {
  padding-right: 0.24em;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 9rem;
  line-height: 0.85;
}

.ticker-band {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--cream);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.ticker-band:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  padding: 18px 28px;
  border-right: 2px solid var(--ink);
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  white-space: nowrap;
}

.section,
.product-feature,
.about-prompt,
.about-grid,
.about-timeline,
.principle-section,
.next-links,
.page-heading,
.product-list,
.release-list,
.news-list,
.start-panel,
.contact-notes,
.site-footer,
.error-page {
  width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 110px 0;
}

.section-copy h2 {
  max-width: 880px;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 52px;
  align-items: start;
}

.section-heading h2,
.section-copy h2,
.mission-copy h2,
.product-main h2,
.page-heading h1,
.start-panel h1,
.error-page h1 {
  margin-top: 18px;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.08;
}

.section-body {
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.section-lead,
.product-copy p,
.principle-row p,
.next-links p,
.page-heading p,
.product-item p,
.release-item p,
.news-item p,
.article-detail p,
.article-detail li,
.contact-notes p,
.start-panel p,
.error-page p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 2;
  line-break: strict;
  overflow-wrap: break-word;
  text-wrap: pretty;
  word-break: auto-phrase;
}

.black-section {
  position: relative;
  overflow: hidden;
  padding: 104px max(32px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  color: var(--cream);
  background: var(--ink);
}

.black-section p {
  position: relative;
  z-index: 2;
  align-self: end;
  color: rgba(255, 250, 241, 0.86);
  font-weight: 700;
  line-height: 2;
}

.outline-word {
  position: absolute;
  left: -16px;
  bottom: -14px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 250, 241, 0.28);
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 8rem;
  line-height: 0.82;
  white-space: nowrap;
}

.product-feature {
  padding: 90px 0;
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: start;
}

.about-prompt {
  position: relative;
  padding: 86px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 42px;
  align-items: end;
}

.about-prompt h2 {
  max-width: 820px;
  margin-top: 16px;
  font-size: 4rem;
  line-height: 1.12;
}

.about-prompt p:not(.kicker) {
  max-width: 520px;
  color: var(--ink-2);
  line-height: 2;
}

.about-prompt > div {
  min-width: 0;
}

.about-heading h1 {
  max-width: 1120px;
}

.keep-line {
  display: inline-block;
}

.copy-line {
  display: inline-block;
}

.about-statement {
  position: relative;
  overflow: hidden;
  padding: 94px max(24px, calc((100vw - 1180px) / 2));
  color: var(--cream);
  background: var(--ink);
}

.about-statement p {
  position: relative;
  z-index: 2;
  max-width: 860px;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.65;
}

.about-statement p > span:not(.char-unit) {
  display: block;
}

.mobile-break {
  display: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 80px 0 0;
}

.about-grid article {
  min-height: 280px;
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--cream);
  position: relative;
  z-index: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.about-grid article:not(:first-child) {
  margin-left: -2px;
}

.about-grid article:hover {
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-6px);
  z-index: 1;
}

.about-grid span:not(.char-hv),
.about-timeline span:not(.char-unit) {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.about-grid h2 {
  margin-top: 20px;
  font-size: 2rem;
  line-height: 1.3;
}

.about-grid p {
  margin-top: 18px;
  line-height: 2;
}

.about-grid article:hover p {
  color: rgba(255, 250, 241, 0.84);
}

.press-list {
  width: var(--max);
  margin: 0 auto;
  padding: 80px 0 0;
}

.press-list h2 {
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 800;
}

.press-list ul {
  margin-top: 28px;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.press-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  color: inherit;
  transition: color 0.18s ease;
}

.press-item:hover {
  color: var(--accent);
}

.press-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.press-item-meta time {
  font-size: 0.8rem;
  color: var(--muted);
}

.press-item-meta span {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
}

.press-item strong {
  font-weight: 700;
  line-height: 1.6;
}

.press-arrow {
  font-weight: 800;
  transition: transform 0.18s ease;
}

.press-item:hover .press-arrow {
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .press-item {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .press-item-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 12px;
  }
}

/* ---- External link guard ---- */
.ext-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 22, 20, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ext-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ext-modal-panel {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  background: var(--paper);
  border: 2px solid var(--ink);
  transform: translateY(16px);
  transition: transform 0.22s ease;
}

.ext-modal.is-open .ext-modal-panel {
  transform: translateY(0);
}

.ext-modal-domain {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  word-break: break-all;
}

.ext-modal-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ext-modal-panel .button.secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.ext-modal-panel .button.secondary:hover {
  color: var(--cream);
  background: var(--ink);
}

.about-timeline {
  padding: 90px 0 100px;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
}

.about-timeline h2 {
  margin-top: 16px;
  font-size: 4.8rem;
  line-height: 1.12;
}

.about-timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.about-timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 2px solid var(--ink);
}

.about-timeline p {
  line-height: 2;
}

.product-label {
  display: grid;
  gap: 20px;
}

.product-label span {
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 5rem;
  line-height: 0.85;
}

.product-main h2 {
  margin-top: 0;
  font-size: clamp(3.8rem, 5.8vw, 4.35rem);
}

.product-main p {
  margin-top: 16px;
  display: inline-block;
  padding: 8px 12px;
  color: var(--cream);
  background: var(--accent);
  font-weight: 800;
}

.product-copy {
  padding-top: 12px;
  border-top: 2px solid var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-weight: 800;
  transition: color 0.18s ease;
}

.text-link::after {
  content: "→";
}

.principle-section {
  padding: 80px 0 30px;
}

.principle-row {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.6fr) minmax(280px, 1fr);
  gap: 28px;
  padding: 30px 0;
  border-top: 2px solid var(--ink);
  align-items: start;
}

.principle-row:last-child {
  border-bottom: 2px solid var(--ink);
}

.principle-row span:not(.char-hv),
.next-links span,
.status,
.product-meta dt,
.release-item time,
.news-item time {
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
}

.principle-row h3,
.next-links strong,
.product-item h2,
.release-item h2,
.news-item h2,
.contact-notes h2 {
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 2rem;
  line-height: 1.25;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 70px 0 30px;
}

.next-links a {
  min-height: 250px;
  padding: 24px;
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--cream);
  position: relative;
  z-index: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.next-links a:not(:first-child) {
  margin-left: -2px;
}

.next-links a:hover {
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-6px);
  z-index: 1;
}

.next-links a:hover p {
  color: rgba(255, 250, 241, 0.82);
}

.next-links strong {
  display: block;
  margin-top: 16px;
}

.next-links p {
  margin-top: 24px;
}

.page-heading {
  padding: 140px 0 48px;
}

.page-heading h1,
.start-panel h1,
.error-page h1 {
  font-size: 5.8rem;
}

.page-heading p,
.start-panel p,
.error-page p {
  max-width: 780px;
  margin-top: 18px;
}

.article-detail {
  position: relative;
  overflow: hidden;
  width: var(--max);
  margin: 0 auto 54px;
  padding: 58px;
  color: var(--cream);
  background: var(--ink);
}

.article-detail::after {
  content: "ARTICLE";
  position: absolute;
  right: -0.08em;
  bottom: -0.18em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 250, 241, 0.18);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.article-detail > * {
  position: relative;
  z-index: 1;
}

.article-detail h2 {
  max-width: 940px;
  margin-top: 18px;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.12;
  text-wrap: pretty;
}

.article-detail p {
  max-width: 840px;
  color: rgba(255, 250, 241, 0.86);
}

.article-detail p:not(.kicker) {
  margin-top: 20px;
}

.article-detail .article-lead {
  max-width: 900px;
  color: var(--cream);
  font-size: 1.16rem;
  font-weight: 800;
}

.article-detail ul {
  max-width: 900px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 250, 241, 0.24);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.article-detail li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 250, 241, 0.42);
  color: var(--cream);
  font-size: 0.86rem;
  line-height: 1.5;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 34px;
}

.article-actions .text-link {
  color: var(--cream);
}

/* ============================================
   法的文書ページ
   ============================================ */
.page-legal .article-detail {
  overflow: visible;
  padding: 0;
  color: var(--ink-2);
  background: none;
}

.page-legal .article-detail::after {
  content: none;
}

.page-legal .article-detail h2 {
  color: var(--ink);
}

.page-legal .article-detail p {
  color: var(--ink-2);
}

.page-legal .article-detail h3,
.page-legal .article-detail h4 {
  color: var(--ink);
}

.page-heading p.legal-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-heading p.legal-kid-note {
  margin-top: 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 560px) {
  .page-legal .article-detail {
    padding: 0;
  }
}

.article-detail h3 {
  max-width: 900px;
  margin-top: 34px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--cream);
}

.article-detail h4 {
  max-width: 900px;
  margin-top: 22px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--cream);
}

.article-detail p.legal-source {
  margin-top: 34px;
  font-size: 0.82rem;
}

.legal-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-list,
.release-list,
.news-list {
  display: grid;
  gap: 0;
  padding-bottom: 80px;
}

.article-list-note {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.8;
  text-wrap: pretty;
}

.product-item,
.release-item,
.news-item,
.contact-notes article {
  padding: 30px 0;
  border-top: 2px solid var(--ink);
}

.product-item:last-child,
.release-item:last-child,
.news-item:last-child {
  border-bottom: 2px solid var(--ink);
}

.release-item,
.news-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  color: inherit;
}

.feed-card {
  position: relative;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: inherit;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.feed-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.release-item time,
.news-item time {
  grid-column: 1;
}

.release-item h2,
.news-item h2,
.release-item p,
.news-item p {
  grid-column: 2;
  min-width: 0;
}

.release-item h2,
.news-item h2 {
  max-width: 760px;
  margin-top: 0;
  text-wrap: pretty;
}

.release-item p,
.news-item p {
  max-width: 760px;
}

.read-more {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 10px 14px;
  border: 2px solid currentColor;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-item p,
.release-item p,
.news-item p,
.contact-notes p {
  margin-top: 14px;
}

.product-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.product-meta div {
  min-width: 160px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--cream);
}

.product-meta dd {
  margin-top: 6px;
  font-weight: 800;
}

.use-section {
  padding-top: 76px;
}

.principle-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 36px;
}

.principle-card {
  min-height: 210px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-right: 0;
  background: var(--cream);
}

.principle-card:last-child {
  border-right: 2px solid var(--ink);
}

.principle-card span,
.principle-card h3,
.principle-card p {
  display: block;
}

.principle-card h3 {
  margin-top: 18px;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
}

.principle-card p {
  margin-top: 12px;
  line-height: 1.8;
}

.start-panel {
  min-height: calc(100svh - 60px);
  padding-top: 140px;
  display: grid;
  align-content: center;
}

.start-panel .button {
  width: fit-content;
  margin-top: 28px;
}

.contact-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 80px;
}

.error-page {
  min-height: 100svh;
  display: grid;
  align-content: center;
}

.site-footer {
  margin-top: 70px;
  padding: 32px 0;
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.site-footer p {
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
}

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

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--cream);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.18s ease, color 0.18s ease;
}

.back-top[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.back-top:hover {
  color: var(--cream);
  background: var(--ink);
}

.will-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity 0.72s ease, transform 0.72s ease;
  transition-delay: var(--delay, 0s);
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes heroMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333%);
  }
}

@media (hover: hover) and (pointer: fine) and (min-width: 561px) {
  .feed-card:hover {
    color: var(--cream);
    background: var(--ink);
  }

  .feed-card:hover p,
  .feed-card:hover time {
    color: rgba(255, 250, 241, 0.82);
  }
}

@media (max-width: 980px) {
  :root {
    --max: min(100% - 32px, 760px);
  }

  .site-header {
    padding: 0 16px;
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .hero {
    min-height: 96svh;
    padding: 186px 16px 28px;
    grid-template-columns: 1fr;
  }

  .hero-frame {
    inset: 172px 16px 28px;
  }

  .hero h1 {
    font-size: 5.5rem;
  }

  .hero-meta {
    max-width: 520px;
  }

  .hero-image-note {
    right: 30px;
    top: 148px;
  }

  .hero-mega span {
    font-size: 6rem;
  }

  .intro-section,
  .black-section,
  .product-feature,
  .about-prompt,
  .about-timeline,
  .principle-row {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .section-copy h2,
  .mission-copy h2,
  .product-main h2,
  .page-heading h1,
  .start-panel h1,
  .error-page h1 {
    font-size: 3.8rem;
  }

  .product-feature {
    gap: 24px;
  }

  .next-links,
  .principle-grid,
  .about-grid,
  .contact-notes {
    grid-template-columns: 1fr;
  }

  .next-links a,
  .about-grid article,
  .principle-card {
    border-right: 2px solid var(--ink);
    border-bottom: 0;
  }

  .next-links a:not(:first-child),
  .about-grid article:not(:first-child) {
    margin-left: 0;
  }

  .next-links a:last-child,
  .about-grid article:last-child,
  .principle-card:last-child {
    border-bottom: 2px solid var(--ink);
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer nav {
    justify-content: start;
  }

  .article-detail {
    padding: 46px 30px;
  }

  .release-item,
  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .release-item time,
  .news-item time,
  .release-item h2,
  .news-item h2,
  .release-item p,
  .news-item p,
  .read-more {
    grid-column: 1;
  }

  .read-more {
    grid-row: auto;
    justify-self: start;
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  :root {
    --max: calc(100% - 24px);
  }

  .site-header {
    padding: 0 14px;
    gap: 8px;
  }

  .brand {
    font-size: 1.08rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 130px;
    padding-bottom: 18px;
  }

  .hero-frame {
    inset: 116px 16px 18px;
  }

  .hero h1 {
    margin-top: 12px;
    font-size: 3.3rem;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 0.88rem;
    line-height: 1.8;
  }

  .hero-meta {
    gap: 8px;
    padding-top: 10px;
    font-size: 0.8rem;
    line-height: 1.65;
  }

  .hero-image-note {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin-top: 4px;
    padding: 10px;
    font-size: 0.66rem;
  }

  .hameco-promo {
    left: 24px;
    bottom: 18px;
    width: 200px;
    height: 200px;
  }

  .hameco-promo-disc {
    width: 164px;
    height: 164px;
  }

  .hameco-promo-title {
    font-size: 0.95rem;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .hero-mega {
    bottom: 18px;
  }

  .hero-mega span {
    font-size: 4.4rem;
  }

  .ticker-track span {
    padding: 14px 18px;
    font-size: 0.88rem;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading h2,
  .section-copy h2,
  .mission-copy h2,
  .product-main h2,
  .about-prompt h2,
  .page-heading h1,
  .start-panel h1,
  .error-page h1 {
    font-size: 2.72rem;
  }

  .about-timeline h2 {
    font-size: 3.4rem;
  }

  .about-prompt {
    padding: 62px 0;
  }

  .about-statement {
    padding: 68px 12px;
  }

  .about-statement p {
    font-size: 1.45rem;
  }

  .mobile-break {
    display: block;
  }

  .about-grid {
    padding-top: 62px;
  }

  .about-grid article {
    min-height: auto;
    padding: 22px;
  }

  .about-timeline {
    padding: 68px 0 72px;
    gap: 28px;
  }

  .about-timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .black-section {
    padding: 74px 12px;
  }

  .outline-word {
    font-size: 4.4rem;
  }

  .product-feature {
    padding: 68px 0;
  }

  .product-label span {
    font-size: 3.8rem;
  }

  .principle-row {
    gap: 14px;
  }

  .next-links {
    padding-top: 48px;
  }

  .article-detail {
    margin-bottom: 42px;
    padding: 38px 18px;
  }

  .article-detail h2 {
    font-size: 2.3rem;
  }

  .article-detail .article-lead {
    font-size: 1rem;
  }

  .article-detail ul {
    display: grid;
    gap: 8px;
  }

  .article-detail h3 {
    margin-top: 26px;
    font-size: 1.1rem;
  }

  .article-detail h4 {
    margin-top: 18px;
    font-size: 0.92rem;
  }

  .article-actions {
    gap: 10px;
  }

  .article-actions .button {
    width: auto;
    min-height: 48px;
    padding: 0 16px;
  }

  .article-list-note {
    padding-bottom: 10px;
    font-size: 0.82rem;
  }

  .release-item,
  .news-item {
    padding: 24px 0;
  }

  .page-heading,
  .start-panel {
    padding-top: 130px;
  }

  .press-list {
    padding: 52px 0 0;
  }

  .press-list h2 {
    font-size: 1.6rem;
  }

  .contact-modal-panel,
  .ext-modal-panel {
    padding: 28px 20px;
  }

  .contact-modal-actions,
  .ext-modal-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }

  .char-unit {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================
   ページ遷移オーバーレイ（2レイヤー）
   ============================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  pointer-events: none;
}

.pt-bar {
  position: absolute;
  inset: 0;
  transform: scaleY(1);
  transform-origin: top center;
  will-change: transform;
}

.pt-bar-1 { background: var(--accent); }
.pt-bar-2 { background: var(--ink); }

/* ============================================
   文字単位リビールアニメーション
   ============================================ */
.char-unit {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.35em, 0);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: calc(var(--char-i, 0) * 0.028s);
}

.char-unit.char-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================================
   ヒーロー パーティクルキャンバス
   ============================================ */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  /* z-index なし — hero-shade の直後に DOM 挿入することで自然に積層 */
}

/* ============================================
   グレインオーバーレイ（About ステートメント）
   ============================================ */
.grain-overlay {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  animation: grainShift 0.8s steps(1) infinite;
}

@keyframes grainShift {
  0%   { background-position: 0 0; }
  20%  { background-position: -40px 20px; }
  40%  { background-position: 30px -10px; }
  60%  { background-position: -20px 30px; }
  80%  { background-position: 10px -20px; }
  100% { background-position: 0 0; }
}

/* ============================================
   リップルエフェクト
   ============================================ */
.button {
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.22);
  pointer-events: none;
  animation: rippleAnim 0.55s ease-out forwards;
}

.button.primary .ripple {
  background: rgba(23, 22, 20, 0.12);
}

@keyframes rippleAnim {
  from {
    transform: scale(0);
    opacity: 1;
  }
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ============================================
   ナビゲーション アンダーライン
   ============================================ */
.nav-has-line {
  position: relative;
}

.nav-has-line::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 16px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-has-line:hover::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .nav-has-line::after {
    display: none;
  }

  .hameco-promo {
    display: none;
  }
}

/* ============================================
   記事ページ — ヘッダ直下 戻るリンク
   ============================================ */
.article-back {
  width: var(--max);
  margin: 0 auto;
  padding-top: 72px;
}

.article-back + .page-heading {
  padding-top: 18px;
  padding-bottom: 36px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  transition: color 0.18s ease;
}

.article-back-link::before {
  content: "←";
}

.article-back-link:hover {
  color: var(--accent);
}

@media (max-width: 560px) {
  .article-back {
    padding-top: 58px;
  }
}

/* ============================================
   記事ページ — レッスン画像
   ============================================ */
.article-figure {
  margin: 32px 0;
}

.article-figure img {
  width: 100%;
  max-width: 560px;
  border-radius: 8px;
  display: block;
}

.article-figure figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255, 250, 241, 0.45);
}

/* ============================================
   Contact ページ補助スタイル
   ============================================ */
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.contact-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-notes article:last-child {
  border-bottom: 2px solid var(--ink);
}

/* ---- Contact modal ---- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 22, 20, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 540px;
  padding: 48px;
  background: var(--paper);
  border: 2px solid var(--ink);
  transform: translateY(20px);
  transition: transform 0.24s ease;
}

.contact-modal.is-open .contact-modal-panel {
  transform: translateY(0);
}

.contact-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.contact-modal-close:hover {
  opacity: 1;
}

.contact-modal-step[hidden] {
  display: none;
}

.contact-modal-step h2 {
  margin-top: 8px;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.3;
}

.modal-section-label {
  margin-top: 24px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.modal-section-label.accept {
  color: var(--accent);
}

.modal-section-label.decline {
  color: var(--muted);
}

.contact-modal-step ul {
  margin-top: 8px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-modal-step ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
  color: var(--ink-2);
}

.modal-body {
  margin-top: 16px;
  color: var(--ink-2);
  line-height: 2;
}

.contact-modal-address {
  margin-top: 20px;
  padding: 16px 20px;
  border: 2px solid var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.contact-modal-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-modal-panel .button.secondary {
  color: var(--ink);
  border-color: var(--ink);
}

.contact-modal-panel .button.secondary:hover {
  color: var(--cream);
  background: var(--ink);
}

@keyframes modal-step-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.contact-modal-step:not([hidden]) {
  animation: modal-step-in 0.22s ease both;
}

@media (max-width: 560px) {
  .contact-modal-panel {
    padding: 28px 20px;
  }

  .contact-modal-actions {
    flex-direction: column;
  }
}

/* ============================================
   改行制御の補強
   ============================================ */
.section-lead,
.hero-lead,
.product-copy p,
.about-prompt p:not(.kicker),
.principle-row p,
.contact-notes p,
.start-panel p,
.error-page p {
  hanging-punctuation: first allow-end last;
}


/* ============================================
   heroMega のループ修正（-50% で折り返し）
   ============================================ */
@keyframes heroMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   ハンバーガーボタン
   ============================================ */
.burger-btn {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  z-index: 10001;
  position: relative;
  flex-shrink: 0;
  display: none;
}

@media (max-width: 980px) {
  .burger-btn {
    display: flex;
  }
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-open .burger-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .burger-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   ドロワーナビゲーション
   ============================================ */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 82vw);
  height: 100dvh;
  background: var(--ink);
  color: var(--cream);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  padding: 72px 28px 36px;
  gap: 0;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.77, 0, 0.18, 1);
  overflow-y: auto;
}

.nav-open .nav-drawer { transform: translateX(0); }

.nav-drawer a {
  display: block;
  padding: 16px 0;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cream);
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] { color: var(--accent); padding-left: 8px; }

.nav-drawer-brand {
  position: absolute;
  top: 20px;
  left: 28px;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--cream);
  opacity: 0.5;
}

.nav-drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid rgba(255, 250, 241, 0.3);
  cursor: pointer;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color 0.18s ease;
}

.nav-drawer-close:hover { border-color: var(--cream); }

.nav-drawer-promo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 16px 0;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #6b96fb;
  border-top: 1px solid rgba(255, 250, 241, 0.1);
  border-bottom: 1px solid rgba(255, 250, 241, 0.12);
  transition: color 0.18s ease, padding-left 0.18s ease;
  text-decoration: none;
}

.nav-drawer-promo:hover { color: #a0baff; padding-left: 8px; }

.nav-drawer-promo-badge {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 800;
  background: #3a6ef8;
  color: #fff;
  padding: 2px 5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 22, 20, 0.55);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }
.nav-open body { overflow: hidden; }



/* ============================================
   プロダクトアイテム（リンク）
   ============================================ */
a.product-item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease;
}

a.product-item:hover {
  background: var(--cream);
}

/* ============================================
   フッター ソーシャルアイコン
   ============================================ */
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  transition: color 0.18s ease;
}

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

.footer-social svg { height: 16px; width: auto; fill: currentColor; }

/* ============================================
   Contact: 感想・要望ブロックの下罫線
   ============================================ */
.contact-notes article:not(:last-child) {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 36px;
}

/* ============================================
   追加アニメーション
   ============================================ */
@keyframes pulse-border {
  0%, 100% { border-color: var(--ink); }
  50%       { border-color: var(--accent); }
}

.product-item:focus-visible,
.feed-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .principle-row:hover h3 {
    color: var(--accent);
  }
}

/* ============================================
   文字ホバーカラーアニメーション
   ============================================ */
.char-hv {
  display: inline-block;
  transition: color 0.26s ease;
  transition-delay: calc(var(--char-i, 0) * 0.024s);
}

.char-hv-active .char-hv {
  color: var(--accent);
}

/* ============================================
   モバイル レスポンシブ補完
   ============================================ */
@media (max-width: 560px) {
  .nav-drawer { padding: 68px 20px 28px; }
}

/* ============================================
   はめこリズム — モードギャラリー
   ============================================ */
.principle-row[data-mode] {
  cursor: pointer;
}

.mode-hint {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.hameco-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 22, 20, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.hameco-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hameco-lightbox-panel {
  position: relative;
  background: var(--paper);
  padding: 48px;
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
}

.hameco-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.hameco-lightbox-close:hover {
  background: var(--ink);
  color: var(--cream);
}

.hameco-lightbox-title {
  margin-bottom: 28px;
  font-size: 1.3rem;
  font-weight: 800;
}

.hameco-lightbox-images {
  display: grid;
  gap: 20px;
}

.hameco-lightbox-images[data-count="1"] {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

.hameco-lightbox-images[data-count="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.hameco-lightbox-img-wrap {
  margin: 0;
}

.hameco-lightbox-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hameco-lightbox-img-wrap figcaption {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .hameco-lightbox-images[data-count="3"] {
    grid-template-columns: 1fr;
  }

  .hameco-lightbox-panel {
    padding: 36px 20px;
  }
}

/* ============================================
   はめこリズム 詳細ページ
   ============================================ */
.hameco-hero {
  width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 120px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 48px;
  align-items: end;
  border-bottom: 2px solid var(--ink);
}

.article-back + .hameco-hero {
  padding-top: 24px;
}

.hameco-hero h1 {
  margin-top: 12px;
  font-size: 8rem;
  line-height: 0.95;
}

.hameco-tagline {
  margin-top: 28px;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--muted);
}

.hameco-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 8px;
}

.hameco-hero-meta dl {
  display: grid;
  gap: 0;
}

.hameco-hero-meta dl > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.hameco-hero-meta dt {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hameco-hero-meta dd {
  margin-top: 4px;
  font-weight: 700;
}

.hameco-concept {
  align-items: start;
}

.hameco-concept > div > p + p {
  margin-top: 20px;
}

.hameco-footer-cta {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  align-items: start;
}

.hameco-cta-body {
  position: relative;
  z-index: 2;
}

.hameco-cta-body h2 {
  margin-top: 12px;
  font-size: 3.8rem;
  line-height: 1.15;
  color: var(--cream);
}

.hameco-dl-btn {
  display: inline-flex;
  margin-top: 32px;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--cream);
}

.hameco-dl-btn:hover {
  background: transparent;
  color: var(--cream);
}

.hameco-credits {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0;
}

.hameco-credits > div {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 250, 241, 0.18);
}

.hameco-credits > div:last-child {
  border-bottom: 1px solid rgba(255, 250, 241, 0.18);
}

.hameco-credits dt {
  color: rgba(255, 250, 241, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hameco-credits dd {
  margin-top: 4px;
  font-weight: 700;
  color: var(--cream);
}

.hameco-legal-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
}

.hameco-legal-links a {
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(255, 250, 241, 0.72);
  transition: color 0.18s ease;
}

.hameco-legal-links a:hover {
  color: var(--cream);
}

@media (max-width: 980px) {
  .hameco-hero {
    grid-template-columns: 1fr;
  }

  .hameco-hero h1 {
    font-size: 5.5rem;
  }

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

@media (max-width: 560px) {
  .hameco-hero {
    padding-bottom: 56px;
  }

  .hameco-hero h1 {
    font-size: 3.8rem;
  }

  .hameco-tagline {
    font-size: 1.45rem;
  }

  .hameco-cta-body h2 {
    font-size: 2.6rem;
  }
}

/* ============================================
   イントロスプラッシュ（外部流入時のロゴアニメーション）
   ============================================ */
html.intro-pending,
html.intro-pending body {
  overflow: hidden;
  background: #f3f3f3;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: #f3f3f3;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.42s ease-in-out;
}

html.intro-pending .intro-splash {
  display: flex;
}

.intro-splash.is-revealing {
  opacity: 0;
  pointer-events: none;
}

.intro-video {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
  background: #f3f3f3;
  pointer-events: none;
}
