@charset "UTF-8";

/* ==========================================================================
   株式会社Frontier / style.css
   目次
     01. 変数
     02. ベース
     03. レイアウト・ユーティリティ
     04. パーツ（ボタン / チップ / アイコン / 見出し / チェックリスト）
     05. ヘッダー
     06. ヒーロー
     07. ミッション
     08. 事業内容
     09. 強み
     10. 対応可能な工事・設備
     11. 対応建物・対応地域
     12. 会社概要
     13. お問い合わせ
     14. フッター
     15. プライバシーポリシー（下からせり上がるウィンドウ）
     16. スクロールアニメーション
     17. レスポンシブ
   ========================================================================== */

/* 01. 変数 ================================================================= */

:root {
  /* 配色。案件ごとに色を変えるときはここだけを触る */
  --color-primary: #07589b;
  --color-primary-dark: #06346a;
  --color-primary-deep: #082d5b;
  --color-secondary: #00a4ce;
  --color-accent: #19b4d6;
  --color-light-blue: #eaf7fc;
  --color-pale-blue: #f3fafd;
  --color-navy: #092d5b;
  --color-text: #263b55;
  --color-muted: #68788c;
  --color-white: #fff;
  --color-light-gray: #f5f7f9;
  --color-border: #d8e1e8;
  --color-border-light: #e1e8ed;
  --color-contact-overlay: rgba(0, 74, 125, 0.82);

  --gradient-primary: linear-gradient(90deg, #007faf 0%, #00a8c9 100%);
  --gradient-heading: linear-gradient(90deg, #0872b6 0%, #19b5cf 100%);
  --gradient-hero: linear-gradient(90deg, #f5fcff 0%, rgba(245, 252, 255, 0.88) 45%, rgba(255, 255, 255, 0) 70%);
  --gradient-footer: linear-gradient(90deg, #006a9f 0%, #0083ac 100%);

  --shadow-card: 0 4px 18px rgba(16, 55, 90, 0.1);
  --shadow-soft: 0 2px 10px rgba(16, 55, 90, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-height: 74px;
  /* セクションの上下余白。セクション間のあきはこの2倍になる */
  --space-section: 38px;

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* 02. ベース =============================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

/* 03. レイアウト・ユーティリティ ============================================ */

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

.section {
  padding-block: var(--space-section);
}

.sp-only {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  color: var(--color-white);
  background: var(--color-primary);
}

.skip-link:focus {
  left: 0;
}

/* 04. パーツ =============================================================== */

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  /* PNGアイコンは縦横比がまちまちなので、枠内に収めて中央に置く */
  object-fit: contain;
}

.icon--md {
  width: 40px;
  height: 40px;
}

.icon--lg {
  width: 52px;
  height: 52px;
}

.icon--tail {
  width: 15px;
  height: 15px;
  margin-left: auto;
}

.icon--check {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn--primary {
  color: var(--color-white);
  background: var(--gradient-primary);
}

.btn--outline {
  color: var(--color-primary);
  background: var(--color-white);
  border: 2px solid #168cc2;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn--block .icon--tail {
  margin-left: 6px;
}

.btn--header {
  min-height: 42px;
  padding: 0 18px;
  color: var(--color-white);
  background: var(--color-primary);
  font-size: 14px;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 700;
}

.chip--area {
  min-width: 120px;
  justify-content: center;
  background: var(--color-white);
}

.section-head {
  margin-bottom: 34px;
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--color-primary-deep);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.45;
}

.section-title--sm {
  font-size: 21px;
}

.section-title-en {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-title-en::before,
.section-title-en::after {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--color-accent);
}

.section-lead {
  margin-top: 14px;
  color: var(--color-text);
}

.section-head--sm {
  margin-bottom: 22px;
}

.section-head--light .section-title,
.section-head--light .section-lead {
  color: var(--color-white);
}

.section-head--light .section-title-en {
  color: var(--color-light-blue);
}

.section-head--light .section-title-en::before,
.section-head--light .section-title-en::after {
  background: rgba(255, 255, 255, 0.6);
}

.check-list {
  display: grid;
  gap: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.check-list .icon--check {
  margin-top: 4px;
}

/* 05. ヘッダー ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(16, 55, 90, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  display: block;
  line-height: 1.2;
}

.brand-name {
  color: var(--color-primary-deep);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.header-body {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.header-nav a:hover {
  color: var(--color-secondary);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--color-primary-deep);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.site-header.is-open .nav-toggle-bar {
  background: transparent;
}

.site-header.is-open .nav-toggle-bar::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* 06. ヒーロー ============================================================= */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 510px;
  padding-block: 48px 40px;
  background-color: var(--color-pale-blue);
  background-image: url("images/hero-bathroom.webp");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--container));
}

.hero-copy {
  max-width: 52%;
}

.hero-eyebrow {
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-title {
  margin-top: 12px;
  color: var(--color-primary-deep);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.35;
}

.hero-lead {
  margin-top: 20px;
  color: var(--color-text);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-chips .chip {
  font-size: 16px;
}

.hero-chips .icon {
  width: 28px;
  height: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-actions .btn {
  min-width: 240px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.hero-features li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 10px;
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 700;
}

.hero-features .icon {
  color: var(--color-primary);
}

/* 07. ミッション =========================================================== */

.section-mission .section-head {
  margin-bottom: 22px;
}

.mission-text {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.mission-banner {
  margin-top: 28px;
  /* 帯の高さ。細くしたいときはこの値を小さくする（画像は上下中央で切り取られる） */
  height: 150px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.mission-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 08. 事業内容 ============================================================= */

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

.service-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.service-card-image {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

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

.service-card-body {
  padding: 16px 10px 8px;
}

.service-card-number {
  color: #009fd0;
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.service-card-title {
  margin-top: 8px;
  color: var(--color-primary-deep);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.45;
}

.service-card-text {
  margin-top: 10px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.85;
}

.service-card .check-list {
  margin-top: 16px;
}

/* 09. 強み ================================================================= */

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

.strength-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.strength-card-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 70px;
  height: 70px;
  color: var(--color-primary);
  background: var(--color-pale-blue);
  border-radius: var(--radius-sm);
}

.strength-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.strength-card-number {
  color: var(--color-secondary);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.strength-card-title {
  color: var(--color-primary-deep);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.strength-card-text {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* 10. 対応可能な工事・設備 ================================================= */

.construction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.construction-column {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.construction-column-title {
  padding: 10px 20px;
  color: var(--color-white);
  background: var(--gradient-heading);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.construction-list {
  padding: 6px 20px 14px;
}

.construction-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--color-border);
}

.construction-list li:last-child {
  border-bottom: 0;
}

.construction-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 62px;
  height: 62px;
  color: var(--color-primary);
}

.construction-icon .icon {
  width: 48px;
  height: 48px;
}

.construction-item-title {
  color: var(--color-primary-deep);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.construction-item-text {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* 11. 対応建物・対応地域 =================================================== */

.building-area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-box {
  padding: 26px 26px 30px;
  background: var(--color-pale-blue);
  border-radius: var(--radius-md);
}

.building-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.building-list li {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 16px 6px;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.building-list span {
  color: var(--color-primary-deep);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.area-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.area-detail {
  margin-top: 18px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}

/* 12. 会社概要 ============================================================= */

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.company-table {
  width: 100%;
  font-size: 14px;
}

.company-table th,
.company-table td {
  padding: 9px 15px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.company-table th {
  width: 140px;
  color: var(--color-primary-deep);
  background: var(--color-light-gray);
  font-weight: 700;
  white-space: nowrap;
}

.company-table a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.company-image {
  height: 100%;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 13. お問い合わせ ========================================================= */

.section-contact {
  position: relative;
  padding-block: 48px;
  background-color: var(--color-primary-dark);
  background-image: url("images/contact-img.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.section-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-contact-overlay);
}

.section-contact > .l-container {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}

.contact-card {
  padding: 22px 24px 20px;
  color: var(--color-primary-deep);
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  text-align: center;
}

.contact-card-label {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-card-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  color: var(--color-primary-deep);
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
}

.contact-card-value .icon {
  width: 34px;
  height: 34px;
  color: var(--color-secondary);
}

.contact-card-value--mail {
  font-size: 21px;
  word-break: break-all;
}

.contact-card .btn {
  margin-top: 14px;
  min-height: 60px;
  font-size: 18px;
}

.contact-card-note {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* 14. フッター ============================================================= */

.site-footer {
  color: var(--color-white);
  background: var(--gradient-footer);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding-block: 28px;
}

.site-footer .brand-name {
  color: var(--color-white);
  font-size: 20px;
}

.site-footer .brand-sub {
  color: rgba(255, 255, 255, 0.85);
}

.footer-tagline {
  margin-top: 10px;
  font-size: 13px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer-info li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-info .icon {
  width: 16px;
  height: 16px;
  /* 青いPNGアイコンを白く見せる */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-info a:hover {
  opacity: 0.75;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 14px;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-nav a:hover,
.footer-nav-button:hover {
  opacity: 0.75;
}

.footer-nav-button {
  padding: 0;
  background: none;
  border: 0;
  font-size: 12px;
  line-height: inherit;
  transition: opacity 0.2s ease;
}

.copyright {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-en);
}

/* 15. プライバシーポリシー ================================================= */

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.privacy-modal.is-open {
  display: block;
}

.privacy-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 45, 91, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.privacy-modal-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 86vh;
  padding: 8px 0 0;
  background: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 40px rgba(16, 55, 90, 0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.privacy-modal.is-visible .privacy-modal-overlay {
  opacity: 1;
}

.privacy-modal.is-visible .privacy-modal-panel {
  transform: translateY(0);
}

/* 指でドラッグしている間はアニメーションを切る */
.privacy-modal.is-dragging .privacy-modal-panel {
  transition: none;
}

.privacy-modal-handle {
  width: 44px;
  height: 4px;
  margin: 4px auto 0;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  cursor: grab;
}

.privacy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px 12px;
  border-bottom: 1px solid var(--color-border);
}

.privacy-modal-title {
  color: var(--color-primary-deep);
  font-size: 18px;
  font-weight: 800;
}

.privacy-modal-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--color-primary-deep);
  background: var(--color-light-gray);
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  transition: background 0.2s ease;
}

.privacy-modal-close:hover {
  background: var(--color-light-blue);
}

.privacy-modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 24px 40px;
  font-size: 14px;
}

.privacy-modal-body h2 {
  margin-top: 26px;
  padding-left: 12px;
  border-left: 4px solid var(--color-secondary);
  color: var(--color-primary-deep);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
}

.privacy-modal-body p {
  margin-top: 10px;
}

.privacy-modal-body ul {
  margin-top: 10px;
  padding-left: 1.4em;
  list-style: disc;
}

.privacy-modal-body li {
  list-style: inherit;
}

/* 16. スクロールアニメーション ============================================= */

/*
  画面に入ったら下からふわっと表示する。
  HTML側に class="js-fadein" を付けた要素が対象で、
  style.js の IntersectionObserver が .is-visible を付ける。
*/
.js-fadein {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.js-fadein.is-visible {
  opacity: 1;
  transform: none;
}

/* 横並びの要素は少しずつ遅らせて、左から順に出す */
.hero-features,
.company-grid > .js-fadein:nth-child(2),
.service-grid > .js-fadein:nth-child(2),
.strength-grid > .js-fadein:nth-child(2),
.construction-grid > .js-fadein:nth-child(2),
.building-area-grid > .js-fadein:nth-child(2),
.contact-grid > .js-fadein:nth-child(2) {
  transition-delay: 0.12s;
}

.service-grid > .js-fadein:nth-child(3),
.strength-grid > .js-fadein:nth-child(3) {
  transition-delay: 0.24s;
}

/* 動きを減らす設定の端末では、アニメーションさせずそのまま表示する */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-fadein {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* 17. レスポンシブ ========================================================= */

@media (max-width: 1024px) {
  .l-container,
  .hero-inner {
    width: min(100% - 64px, var(--container));
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-copy {
    max-width: 62%;
  }

  .header-nav {
    gap: 18px;
  }

  .header-body {
    gap: 18px;
  }

  .service-grid {
    gap: 20px;
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --space-section: 30px;
  }

  .l-container,
  .hero-inner {
    width: min(100% - 40px, var(--container));
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* ヘッダー */
  .header-inner {
    position: relative;
    min-height: 64px;
  }

  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-body {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(16, 55, 90, 0.12);
  }

  .site-header.is-open .header-body {
    display: flex;
  }

  .header-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--color-border);
  }

  .btn--header {
    margin-top: 14px;
    justify-content: center;
  }

  /* ヒーロー */
  .hero {
    min-height: 620px;
    padding-block: 36px;
    background-position: 65% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(245, 252, 255, 0.98) 0%, rgba(245, 252, 255, 0.9) 70%, rgba(245, 252, 255, 0.5) 100%);
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .hero-actions .icon--tail {
    margin-left: 6px;
  }

  .hero-features {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-features li {
    justify-content: flex-start;
  }

  /* 各セクション */
  .section-title {
    font-size: 25px;
  }

  .section-title--sm {
    font-size: 19px;
  }

  .service-grid,
  .construction-grid,
  .building-area-grid,
  .company-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .building-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-banner {
    height: 110px;
  }

  .company-table th {
    width: 110px;
    padding: 9px 12px;
    white-space: normal;
  }

  .company-table td {
    padding: 9px 12px;
  }

  .company-image {
    min-height: 170px;
  }

  .contact-card-value {
    font-size: 26px;
  }

  .contact-card-value--mail {
    font-size: 17px;
  }

  /* フッター */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }

  .footer-info {
    gap: 6px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* プライバシーポリシー */
  .privacy-modal-panel {
    left: 12px;
    right: 12px;
    max-height: 90vh;
  }

  .privacy-modal-head {
    padding: 10px 20px;
  }

  .privacy-modal-body {
    padding: 8px 20px 40px;
  }
}
