/* ============================================================
   sections.css — トップページ用セクション共通スタイル
   SoT: docs/specs/mock/hp/assets/style.css (section 系)
   hero.css の .btn 系を参照 (再定義しない)
   ============================================================ */

/* ── Section Common ──────────────────────────────────────── */
/* Sections are transparent — the <body> denim shows straight through.
   No per-section fills, so there is no seam between sections. */
.section {
  padding: 96px 0;
  background: transparent;
  position: relative;
}

/* Non-wash denim is a single continuous bolt of fabric — no alternating
   tonal bands between sections. Section rhythm comes from the glass panels
   sitting on the denim, not from background tints. */
.section-alt {
  background: transparent;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  isolation: isolate;
}

.section-header::before {
  content: '';
  position: absolute;
  inset: -24px max(-10%, -24px);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8, 20, 32, 0.55) 0%, transparent 72%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.section-label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  text-wrap: balance;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  /* Headings sit directly on the busy denim — shadow keeps them legible */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto 0;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  text-wrap: pretty;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* ── Glass / panel surface ───────────────────────────────────
   Text-heavy blocks sit on this semi-transparent dark panel so long-form
   copy never lands directly on the denim weave (readability / WCAG AA). */
.glass-panel {
  background: rgba(8, 16, 28, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(159, 176, 196, 0.12);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  padding: 40px 44px;
}

/* ── Products Section ────────────────────────────────────── */
/* Purpose links form one quiet strip directly below the hero. */
.home-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.home-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  color: var(--text-primary);
  background: rgba(8, 20, 32, 0.72);
  font-weight: 600;
  line-height: 1.6;
}

.home-path + .home-path { border-left: 1px solid var(--border-subtle); }
.home-path svg { flex-shrink: 0; color: var(--gold); }
.home-path:hover { color: var(--gold-hover); }

.approach-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.9;
}

.home-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.home-contact-inner { text-align: center; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  background: rgba(17, 31, 51, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(159, 176, 196, 0.16);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover,
.product-card:focus-within {
  border-color: rgba(201, 138, 60, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.product-card:hover::before,
.product-card:focus-within::before {
  opacity: 1;
}

.product-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 22%; /* iOS app icon style */
  margin-bottom: 20px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  border: 1px solid var(--border-card);
}

.product-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.product-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.product-card-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.02em;
}

.product-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.product-card-link:focus-visible {
  outline: none;
}

.product-card-link:hover,
.product-card-link:focus-visible {
  gap: 8px;
}

.products-footer {
  text-align: center;
}

.products-footer a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.products-footer a:hover { gap: 10px; }

/* ── About Section ───────────────────────────────────────── */
.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-body {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.02rem;
}

.about-body p + p { margin-top: 20px; }

.about-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-value {
  margin-top: 32px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: normal;
}

.about-value strong {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

html:lang(en) .about-value {
  font-style: italic;
}

html:lang(en) .about-value strong {
  font-style: normal;
}

/* ── Services Section ────────────────────────────────────── */
.services-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.services-inner p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 32px;
}

/* ── Publication Section ─────────────────────────────────── */
.pub-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.pub-inner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.8;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid var(--border-subtle);
  padding: 10px 22px;
  border-radius: 24px;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--gold);
  background: rgba(201,138,60,0.08);
  color: var(--gold-hover);
}

/* ── Scroll anchor offset (fixed header) ─────────────────── */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .home-paths { grid-template-columns: 1fr; padding-block: 16px; }
  .home-path { padding: 20px; }
  .home-path + .home-path {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-inner { max-width: 100%; }

  .glass-panel {
    padding: 28px 20px;
  }
}
