/*
Theme Name: Tsunagu Corporate Site
Theme URI: https://example.com/tsunagu-corporate-site
Author: ZOVA WordPress Theme Builder
Description: 株式会社つなぐの事業内容と信頼性を日本語で伝える自己完結型コーポレートテーマです。
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tsunagu-corporate
*/

:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #fffdf8;
  --text: #1f2a2b;
  --muted: #5b6763;
  --line: rgba(31, 42, 43, 0.12);
  --accent: #0f766e;
  --accent-deep: #124e66;
  --accent-soft: #dcefea;
  --highlight: #d8a84d;
  --shadow: 0 24px 60px rgba(18, 78, 102, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --wrap: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 168, 77, 0.18), transparent 32%),
    linear-gradient(180deg, #fcfaf5 0%, var(--bg) 100%);
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

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

a:hover {
  opacity: 0.82;
}

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

.site-shell {
  position: relative;
  overflow: clip;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/grid-pattern.svg") center top / 720px auto repeat;
  opacity: 0.32;
  pointer-events: none;
}

.site-header,
.site-main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: var(--wrap);
  margin: 24px auto 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 253, 248, 0.76);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.branding-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.branding-mark::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--highlight), var(--accent));
}

.branding-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  line-height: 1.2;
}

.branding-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav .is-current a {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.16);
  transform: translateY(-1px);
}

.site-main {
  width: var(--wrap);
  margin: 28px auto 0;
  padding-bottom: 56px;
}

.hero {
  padding: clamp(38px, 7vw, 88px);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(18, 78, 102, 0.92));
  color: #f8faf8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button {
  background: #fff5df;
  color: var(--accent-deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.button-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.section-grid,
.detail-grid,
.metrics,
.info-strip,
.story-grid {
  display: grid;
  gap: 22px;
}

.section-grid,
.story-grid {
  grid-template-columns: repeat(12, 1fr);
  margin-top: 28px;
}

.card,
.stat,
.panel,
.page-hero,
.cta-banner,
.notice {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card,
.panel,
.notice,
.cta-banner {
  padding: 28px;
}

.card h2,
.panel h2,
.notice h2,
.cta-banner h2,
.section-heading {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}

.card p,
.panel p,
.notice p,
.stat p,
.cta-banner p {
  margin: 0;
  color: var(--muted);
}

.col-7 {
  grid-column: span 7;
}

.col-5 {
  grid-column: span 5;
}

.col-4 {
  grid-column: span 4;
}

.col-6 {
  grid-column: span 6;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.stat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.92);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-deep);
}

.info-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.info-strip .panel {
  padding: 22px;
}

.page-hero {
  padding: clamp(34px, 6vw, 64px);
}

.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.cta-banner {
  margin-top: 32px;
  background: linear-gradient(135deg, rgba(216, 168, 77, 0.18), rgba(15, 118, 110, 0.12)), var(--surface-strong);
}

.site-footer {
  width: var(--wrap);
  margin: 0 auto 32px;
  padding: 24px 6px 0;
  color: var(--muted);
}

.site-footer-inner {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.notice {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .col-7,
  .col-5,
  .col-4,
  .col-6 {
    grid-column: 1 / -1;
  }

  .metrics,
  .info-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(100vw - 24px, 1120px);
  }

  .site-header {
    margin-top: 12px;
    padding: 18px;
  }

  .primary-nav ul {
    width: 100%;
  }

  .primary-nav li {
    flex: 1 1 auto;
  }

  .primary-nav a {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .page-hero,
  .card,
  .panel,
  .notice,
  .cta-banner {
    padding: 22px;
  }
}
