/* ==========================================================================
   野澤美匠 (NOZAWA BISHO) コーポレートサイト
   共通スタイル: リセット / デザイントークン / ヘッダー / フッター / ボタン / 汎用コンポーネント
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-secondary: #f4f5f7;
  --color-bg-card: #ffffff;
  --color-border: #e2e4e8;
  --color-accent: #16305c;
  --color-accent-soft: rgba(22, 48, 92, 0.08);
  --color-text: #0a0a0a;
  --color-muted: #5b6472;
  --color-tag-bg: #eef0f3;

  /* Typography */
  --font-body: "Inter", "Noto Sans JP", sans-serif;
  --font-display: "Outfit", "Inter", "Noto Sans JP", sans-serif;

  /* Layout */
  --container-max: 1440px;
  --side-padding: 80px;
  --header-height: 90px;
  --radius: 4px;
  --radius-lg: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* ページ内リンク(services.html#gaiheki 等)の見出しが固定ヘッダーに隠れないようにする */
[id] {
  scroll-margin-top: var(--header-height);
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--side-padding);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background: var(--color-accent);
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
}

.section-header p {
  color: var(--color-muted);
  font-size: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 16px;
  border: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.btn img {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid #cfd3da;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-badge {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.logo-text .logo-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--color-text);
}

.logo-text .logo-sub {
  font-weight: 500;
  font-size: 10px;
  color: var(--color-muted);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  padding: 3px 0;
  white-space: nowrap;
}

.main-nav a .nav-indicator {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-accent);
  opacity: 0;
}

.main-nav a.active {
  font-weight: 700;
  color: var(--color-accent);
}

.main-nav a.active .nav-indicator {
  opacity: 1;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.phone-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.phone-info .phone-label {
  font-size: 11px;
  color: var(--color-muted);
}

.phone-info .phone-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--color-accent);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-bg);
  white-space: nowrap;
}

.header-cta img {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 80px 60px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 340px;
  max-width: 100%;
}

.footer-left .logo-sub {
  color: var(--color-muted);
}

.footer-address {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-sns {
  display: flex;
  gap: 12px;
}

.footer-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.footer-sns img {
  width: 16px;
  height: 16px;
}

.footer-sitemap {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.sitemap-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 140px;
}

.sitemap-col.wide {
  width: 180px;
}

.sitemap-col h3 {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}

.sitemap-col a,
.sitemap-col p {
  font-size: 14px;
  color: var(--color-muted);
}

.sitemap-col .contact-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-accent);
}

.sitemap-col .contact-mail {
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 80px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  font-size: 12px;
  color: var(--color-muted);
}

.footer-bottom a {
  color: var(--color-muted);
}

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

/* ==========================================================================
   Page hero (下層ページ共通の見出し帯)
   ========================================================================== */

.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 320px;
  text-align: center;
  padding: 0 80px;
  overflow: hidden;
  background: var(--color-bg-secondary);
  border-bottom: 1px solid var(--color-border);
}

.page-hero > .page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
}

.page-hero > * {
  position: relative;
}

.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.page-hero .breadcrumb a:hover {
  color: var(--color-accent);
}

.page-hero .breadcrumb .current {
  color: var(--color-accent);
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 800;
}

.page-hero p {
  color: var(--color-muted);
  font-size: 16px;
}

/* ==========================================================================
   CTAバナー(下層ページ共通)
   ========================================================================== */

.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 80px;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-banner .hero-media {
  position: absolute;
  inset: 0;
}

.cta-banner .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
}

.cta-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
}

.cta-text h2 {
  font-size: 32px;
  font-weight: 800;
}

.cta-text p {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.5;
}

.cta-banner .btn {
  position: relative;
}

/* ==========================================================================
   下層ページ共通コンポーネント
   ========================================================================== */

.content-section {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 100px 80px;
}

.content-section.alt {
  background: var(--color-bg-secondary);
}

.two-col-block {
  display: flex;
  align-items: center;
  gap: 60px;
}

.two-col-block .col-media {
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.two-col-block .col-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.two-col-block .col-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.two-col-block .col-text > .section-header {
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0;
}

.numbered-card {
  flex: 1 1 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.numbered-card .number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--color-accent);
}

.numbered-card h3 {
  font-size: 20px;
  font-weight: 800;
}

.numbered-card p {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.info-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.info-table .row {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.info-table .row:last-child {
  border-bottom: none;
}

.info-table .label {
  width: 240px;
  flex-shrink: 0;
  padding: 20px;
  background: var(--color-bg-secondary);
  font-weight: 700;
  font-size: 15px;
}

.info-table .value {
  flex: 1 1 0;
  min-width: 0;
  padding: 20px;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 15px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.timeline .timeline-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.timeline .year {
  width: 100px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--color-accent);
}

.timeline .dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 4px solid var(--color-accent);
}

.timeline .desc {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1220px) {
  .site-header {
    padding: 0 32px;
  }

  .main-nav {
    gap: 20px;
  }

  .header-contact {
    gap: 16px;
  }
}

@media (max-width: 1100px) {
  :root {
    --side-padding: 40px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    /* 閉じている間はリンクにキーボードフォーカスが移らないよう、閉じるアニメーション後に非表示化 */
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0s linear 0.25s;
  }

  .main-nav.open {
    max-height: 480px;
    visibility: visible;
    transition: max-height 0.25s ease, visibility 0s;
  }

  .main-nav a {
    align-items: flex-start;
    width: 100%;
    padding: 16px 40px;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a .nav-indicator {
    display: none;
  }

  .header-contact .phone-info {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    padding: 0 24px;
  }

  .footer-main,
  .footer-bottom {
    padding-left: 24px;
    padding-right: 24px;
  }

  .content-section {
    padding: 60px 40px;
  }

  .cta-banner {
    padding: 60px 40px;
  }

  .two-col-block {
    flex-direction: column;
  }

  .two-col-block .col-media {
    width: 100% !important;
    height: auto !important;
  }

  .two-col-block .col-text > .section-header {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: 0 24px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .footer-main {
    flex-direction: column;
  }

  .header-cta span {
    display: none;
  }

  .content-section {
    padding: 48px 24px;
  }

  .cta-banner {
    padding: 48px 24px;
  }

  .card-row {
    flex-direction: column;
  }

  .info-table .row {
    flex-direction: column;
  }

  .info-table .label {
    width: 100%;
  }

  .timeline .timeline-row {
    gap: 16px;
  }

  .timeline .year {
    width: 64px;
    font-size: 16px;
  }
}
