/*
Theme Name: KAR Corporate Theme
Description: kar-hd.jp 公式テーマ
Version: 1.0.0
Text Domain: kar-theme
*/

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --color-primary: #3c7d44;
  --color-primary-dark: #2e6035;
  --color-accent: #1a73e8;
  --color-text: #333333;
  --color-text-sub: #666666;
  --color-bg: #ffffff;
  --color-bg-gray: #f5f5f5;
  --color-border: #e0e0e0;
  --container: 1100px;
  --header-height: 64px;
}

/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-height);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .05em;
}
.site-header__logo svg {
  width: 32px;
  height: 32px;
}
.site-header__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 4px;
}
.site-header__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: .3s;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  height: min(560px, 72vw);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}
.hero__title {
  color: #fff;
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* ============================================================
   SECTION COMMON
============================================================ */
.section {
  padding: 72px 0;
}
.section--gray {
  background: var(--color-bg-gray);
}
.section__label {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 14px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.section__heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section__heading::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--color-primary);
}
.section__center-heading {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section__center-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
}

/* ============================================================
   ABOUT
============================================================ */
.about__body {
  max-width: 700px;
}
.about__text {
  color: var(--color-text-sub);
  line-height: 2;
  margin-bottom: 32px;
}

/* ============================================================
   BUTTON
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 28px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn::after {
  content: '→';
  font-size: 12px;
}

/* ============================================================
   GROUP COMPANIES
============================================================ */
.group__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.group-card {
  background: #fff;
  border-radius: 8px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.group-card__logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
}
.group-card__logo-text {
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.group-card__logo-text span {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: .03em;
}
.group-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.group-card__desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.9;
  flex: 1;
  margin-bottom: 24px;
}

/* ============================================================
   COMPANY PAGE
============================================================ */
.company-page {
  min-height: calc(100vh - var(--header-height) - 120px);
}
.company-page__bg {
  background-color: #eef6f7;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 20px,
    rgba(100,180,190,.08) 20px,
    rgba(100,180,190,.08) 40px
  );
  padding: 64px 0 80px;
}
.company-page__title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--color-text);
}
.company-table-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.7;
  vertical-align: top;
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}
.company-table th {
  width: 130px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  background: #fafafa;
}
.company-table td {
  color: var(--color-text-sub);
}
@media (max-width: 600px) {
  .company-table th,
  .company-table td { display: block; width: 100%; padding: 12px 16px; }
  .company-table th { background: #f0f0f0; padding-bottom: 4px; border-bottom: none; }
  .company-table td { padding-top: 4px; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #222;
  color: #ccc;
  padding: 40px 0 24px;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #444;
}
.site-footer__logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer__nav a {
  color: #ccc;
  font-size: 13px;
  transition: color .2s;
}
.site-footer__nav a:hover { color: #fff; }
.site-footer__copy {
  font-size: 12px;
  color: #888;
  text-align: center;
}

/* ============================================================
   MOBILE NAV
============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav__list {
  list-style: none;
  text-align: center;
}
.mobile-nav__list li + li { margin-top: 24px; }
.mobile-nav__list a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}
.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .group__grid { grid-template-columns: 1fr; }
  .hero { height: 56vw; min-height: 260px; }
  .section { padding: 52px 0; }
}
