/*
Theme Name: Kusukami Compressor
Theme URI: https://example.com/
Author: Codex
Description: 株式会社くすかみ様向けのコンプレッサー修理・保守サイト用WordPressテーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kusukami
*/

:root {
  --green: #002f24;
  --green-2: #004232;
  --ink: #0b1715;
  --muted: #5a6764;
  --line: #dce3e1;
  --paper: #ffffff;
  --soft: #f5f7f6;
  --red: #d60812;
  --gold: #d7aa47;
  --shadow: 0 18px 45px rgba(8, 24, 20, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

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

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

.site-wrap {
  overflow: clip;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  margin-inline: 0;
  padding-left: 28px;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 224px;
  max-width: 36vw;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.header-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  align-items: center;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.header-phone small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.header-contact {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 112px;
  margin-right: 0;
  padding-inline: 18px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 520px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 47, 36, .98) 0%, rgba(0, 47, 36, .94) 36%, rgba(0, 47, 36, .38) 68%, rgba(0, 0, 0, .25) 100%),
    url("assets/images/hero-machine.jpg") center center / cover no-repeat,
    var(--green);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  gap: 30px;
  min-height: 520px;
  padding-block: 72px 38px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 26px;
  font-size: 16px;
  font-weight: 700;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  min-height: 92px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 3px;
  background: rgba(0, 27, 20, .36);
}

.badge-title {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.badge-text {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 28px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 3px;
  font-weight: 900;
}

.button-red {
  min-width: 260px;
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.phone-button {
  min-width: 280px;
  background: rgba(0, 30, 24, .56);
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
}

.phone-button small,
.button small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.founded-badge {
  align-self: end;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 188px;
  aspect-ratio: 1;
  margin-bottom: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(0, 34, 27, .78);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .25);
  text-align: center;
  font-weight: 900;
}

.founded-badge strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
}

.founded-badge span {
  display: block;
  margin-top: 12px;
  color: #ffd45a;
  font-size: 17px;
  line-height: 1.45;
}

.section {
  padding-block: 54px;
}

.section-soft {
  background: var(--soft);
}

.section-title {
  margin: 0 0 30px;
  text-align: center;
}

.section-title span {
  display: block;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
}

.section-title strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.strength-item {
  padding: 0 26px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.strength-item:first-child {
  border-left: 0;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: var(--ink);
}

.strength-item h3,
.service-card h3,
.work-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.5;
}

.strength-item p,
.service-card p,
.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card,
.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.service-card img {
  width: 100%;
  height: 116px;
  object-fit: cover;
}

.service-card-body {
  position: relative;
  min-height: 142px;
  padding: 18px 44px 18px 18px;
}

.circle-arrow {
  position: absolute;
  right: 15px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.works-head {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.works-head .section-title {
  margin: 0;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 22px;
  border: 1px solid #9aa6a3;
  border-radius: 3px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.work-card {
  border: 0;
  background: transparent;
}

.work-card img {
  width: 100%;
  height: 122px;
  border-radius: 3px;
  object-fit: cover;
}

.label {
  display: inline-block;
  margin-top: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.7;
}

.label-blue { background: #6f95a6; }
.label-green { background: #38a696; }
.label-red { background: #d71920; }
.label-gold { background: #d7a21f; color: #221b08; }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  align-items: stretch;
  text-align: center;
}

.brand-item {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 10px;
  border-left: 1px solid var(--line);
  font-weight: 900;
}

.brand-item:first-child {
  border-left: 0;
}

.brand-item strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
}

.brand-item span {
  display: block;
  margin-top: 9px;
  font-size: 13px;
}

.brand-blue { color: #2d73b9; }
.brand-navy { color: #1a2938; }
.brand-red { color: #d71920; }

.note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.about {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 47, 36, .98) 0%, rgba(0, 47, 36, .92) 42%, rgba(0, 47, 36, .22) 72%, rgba(0, 0, 0, .08) 100%),
    url("assets/images/about-company.jpg") right center / auto 100% no-repeat,
    var(--green);
}

.about-inner {
  min-height: 240px;
  padding-block: 44px;
}

.about-copy {
  width: min(520px, 100%);
}

.about-copy h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.4;
}

.about-copy p {
  margin: 0 0 22px;
  font-weight: 700;
}

.about .outline-button {
  color: var(--ink);
}

.cta-band {
  color: #fff;
  background: linear-gradient(90deg, #002f24, #004232 52%, #002f24);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 34px;
  min-height: 116px;
  text-align: center;
}

.cta-inner h2 {
  flex: 0 0 auto;
  margin: 0;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.35;
  white-space: nowrap;
}

.cta-inner .phone-button,
.cta-inner .button-red {
  flex: 0 0 auto;
  min-height: 58px;
  white-space: nowrap;
}

.cta-inner .phone-button {
  min-width: 286px;
  font-size: 26px;
}

.cta-inner .button-red {
  min-width: 260px;
}

.cta-inner .phone-button small,
.cta-inner .button small {
  display: none;
}

.site-footer {
  background: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  padding-block: 34px 28px;
}

.footer-logo img {
  width: 220px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  font-size: 13px;
}

.footer-nav h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-nav a {
  display: block;
  color: var(--muted);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.wp-content {
  padding-block: 48px;
}

.wp-content article {
  max-width: 760px;
  margin-inline: auto;
}

@media (max-width: 1080px) {
  .header-phone,
  .header-contact {
    display: none;
  }

  .primary-nav {
    gap: 18px;
  }

  .primary-menu {
    gap: 18px;
  }

  .hero-badges,
  .service-grid,
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .strength-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 26px 0;
  }

  .strength-item:nth-child(4) {
    border-left: 0;
  }

  .cta-inner {
    gap: 14px;
  }

  .cta-inner h2 {
    font-size: 21px;
  }

  .cta-inner .phone-button {
    min-width: 248px;
    font-size: 22px;
  }

  .cta-inner .button-red {
    min-width: 220px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 64px;
    padding-left: 14px;
  }

  .brand img {
    max-width: 230px;
    width: 58vw;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    inset: 64px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 10px 22px 18px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .14);
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-menu {
    display: grid;
    gap: 0;
  }

  .primary-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .about {
    background-size: cover;
    background-position: 62% center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 54px 34px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-badges,
  .service-grid,
  .work-grid,
  .strength-grid,
  .brand-grid,
  .footer-main,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .hero-badges li {
    min-height: auto;
  }

  .phone-button,
  .button-red {
    width: 100%;
    min-width: 0;
  }

  .founded-badge {
    justify-self: start;
    width: 154px;
  }

  .strength-item,
  .strength-item:nth-child(4),
  .brand-item {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-block: 24px;
  }

  .strength-item:first-child,
  .brand-item:first-child {
    border-top: 0;
  }

  .works-head {
    display: block;
    text-align: center;
  }

  .outline-button {
    margin-top: 12px;
  }

  .cta-inner {
    display: grid;
    gap: 14px;
    padding-block: 26px;
  }

  .footer-bottom {
    display: block;
  }
}
