/* site.css — Corporate site shared chrome (header, footer, layout primitives) */

:root {
  --green: #1F4D3A;
  --green-2: #0F3D2F;
  --green-dark: #0F3D2F;
  --gold: #C6A85C;
  --beige: #F5F3E7;
  --yellow: #D6E300;
  --navy: #243A5E;
  --ink: #17352D;
  --text: #21342F;
  --muted: #6B7A75;
  --line: #E4E2D8;
  --white: #FFFFFF;
  --shadow: 0 14px 36px rgba(24, 45, 40, 0.08);
  --radius: 6px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Zen Kaku Gothic New", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

/* Header */
.header,
.site-header {
  position: relative;
  z-index: 10;
  height: 78px;
  background: #fff;
  border-bottom: 1px solid rgba(228, 226, 216, 0.55);
}

.site-header .header-inner,
.header .header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-header .brand,
.header .brand {
  min-width: 178px;
  line-height: 1;
}

.site-header .brand-main,
.header .brand-main {
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #213837;
}

.site-header .brand-sub,
.header .brand-sub {
  margin-top: 9px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #56645f;
  letter-spacing: 0.08em;
}

.site-header .nav,
.header .nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  color: #2F3D3A;
  white-space: nowrap;
}

.site-header .nav a.active,
.header .nav a.active {
  color: var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* Buttons (shared across corporate pages) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 3px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(31, 77, 58, 0.14);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: #2A3835;
  border-color: #C9CEC7;
}

/* Shared style for "記事一覧を見る" style buttons */
.btn.btn-article-list {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 3px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: #fff;
  color: #2A3835;
  border-color: #C9CEC7;
}

.btn.btn-article-list.btn-article-list--trust {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-yellow {
  background: var(--yellow);
  color: #203326;
  box-shadow: 0 10px 26px rgba(214, 227, 0, 0.2);
}

.arrow {
  font-size: 19px;
  line-height: 1;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* CTA (shared across corporate pages) */
.cta {
  background: linear-gradient(105deg, var(--green) 0%, #0F3D2F 100%);
  color: #fff;
}

.cta-inner {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 36px 0 44px;
}

.cta h2 {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.cta p {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.cta-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Footer */
.footer {
  min-height: 88px;
  height: auto;
  background: #fff;
  border-top: 1px solid #E5E4DC;
}

.footer-inner {
  min-height: 88px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer .brand-main {
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #213837;
  white-space: nowrap;
}

.footer .brand-sub {
  margin-top: 9px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #56645f;
  letter-spacing: 0.08em;
}

.footer-nav {
  display: flex;
  gap: 36px;
  font-size: 12px;
  font-weight: 800;
  color: #51605B;
  white-space: nowrap;
}

.back-to-top-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--beige);
  border-radius: 36px;
  background: #fff;
  color: var(--green);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-fab:hover {
  transform: translateY(-1px);
}

.back-to-top-fab__icon {
  width: 20px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-fab__icon svg {
  width: 20px;
  height: 20px;
}

.back-to-top-fab__text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.copyright {
  font-size: 12px;
  color: #6C7874;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .footer-inner {
    padding: 18px 0;
    min-height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px 24px;
  }

  .footer-nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 12px 20px;
    white-space: normal;
  }

  .footer-nav a {
    white-space: nowrap;
  }

  .copyright {
    margin-left: auto;
  }
}

@media (max-width: 1024px) {
  .container {
    width: min(var(--max), calc(100% - 40px));
  }

  .footer {
    height: auto;
  }

  .footer-inner {
    height: auto;
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 18px 26px;
  }

  .back-to-top-fab {
    right: 18px;
    bottom: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
  }

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

  .cta-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .cta-inner {
    min-height: auto;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
    margin: auto;
  }
}

@media (max-width: 680px) {
  .header,
  .site-header {
    height: 70px;
  }

  .site-header .header-inner,
  .header .header-inner {
    height: 70px;
  }

  .site-header .brand-main,
  .header .brand-main,
  .footer .brand-main {
    font-size: 24px;
  }

  .site-header .brand-sub,
  .header .brand-sub,
  .footer .brand-sub {
    font-size: 10px;
  }

  .cta h2 {
    font-size: 25px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-header .brand-main,
  .header .brand-main,
  .footer .brand-main {
    font-size: 22px;
  }

  .cta-inner {
    padding: 32px 0 56px;
  }

  .back-to-top-fab {
    right: 12px;
    bottom: 12px;
    width: 36px;
    height: 36px;
  }

  .back-to-top-fab__icon {
    width: 18px;
    height: 18px;
  }

  .back-to-top-fab__icon svg {
    width: 18px;
    height: 18px;
  }

  .back-to-top-fab__text {
    font-size: 8px;
  }
}
