/*
 * ===================================================
 * 追加クラス一覧（共通SCSS取り込み検討用）
 * ===================================================
 * .kawagami-head / __kicker / __en - グラデーション背景英語見出し
 * .kawagami-hero - MVセクション
 * .kawagami-biz-card - 事業紹介カード
 * .kawagami-prod-card - 商品カード
 * .kawagami-str-card - 特徴カード（緑背景上）
 * .kawagami-equip-card - 保有設備カード
 * .kawagami-biz-row - 事業内容2カラム
 * .kawagami-license-card - 許可証カード
 * .kawagami-tel-card - 電話番号カード
 * .kawagami-cform - お問い合わせフォーム
 * .kawagami-hours-card - 営業時間カード
 * .kawagami-ph - 写真プレースホルダー
 * .kawagami-itable - 会社概要テーブル
 * .kawagami-about-strip - 会社概要紹介
 * .kawagami-permit-note - 許可証注記
 * .kawagami-tagline - 商品タグ一覧
 * .kawagami-story - 沿革セクション
 * ===================================================
 * 共通SCSSに不足していたもの
 * ===================================================
 * グラデーション背景付き英語見出し（構造不足）
 * 写真プレースホルダースタイル（装飾パターン不足）
 * 採石業特有の電話番号カード（構造不足）
 */

/* ===================================================
   Base / Body overrides
   =================================================== */
body {
  font-family: "Kosugi Maru", system-ui, sans-serif;
  color: #0A2540;
  background: #FEFEFE;
  line-height: 1.9;
  letter-spacing: 0.02em; /* override common CSS 0.05em */
}

/* common CSS makes body font 1.2rem=12px on SP — too small */
@media (max-width: 639px) {
  body { font-size: 1.5rem; }
}

.font-en,
.en {
  font-family: "Inter", sans-serif;
}

/* ===================================================
   Header overrides
   =================================================== */
/* 参考サイト風：MVを背面にしてヘッダーを重ねる独立（フローティング）ヘッダー（依頼670339-①）
   ・border-radius なし
   ・上下左右に余白を保ちつつ MV(ヒーロー) に重ねて表示
   ・body に overflow-x:hidden があり position:sticky が無効化されるため position:fixed を採用。
     fixed なら MV(top:0〜) の上にヘッダーが重なり、top:30px も確実に効く。 */
.header.header-bar {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  width: calc(100% - clamp(24px, 5vw, 56px));
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  background: #fefefe;
  border: 1px solid #dfe6e0;
  box-shadow: 0 10px 30px rgba(10, 37, 64, .12);
  z-index: 100;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ===================================================
   Container side padding (CRITICAL — mobile content touches edges)
   =================================================== */
.container {
  max-width: 1330px;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

/* TOPページのみ左右余白を縮小（コンテンツ幅を拡張）（依頼670339-④）
   ※クラス名は framework の .page-top（トップへ戻るボタン）と衝突しないよう home-page を使用 */
.home-page .container {
  max-width: 1500px;
}

/* フローティングヘッダー内：バー幅いっぱいに配置（中央1200px制約を解除） */
.header.header-bar .header__inner {
  height: 76px;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
  gap: 24px;
}

.header__logo img {
  height: 44px;
  width: auto;
}

/* ロゴ左・nav+tel 右寄せ（--spread の space-between を上書き） */
.header__inner--spread {
  justify-content: flex-start;
}

.header__inner--spread .header__nav {
  margin-left: auto;
  margin-right: 0;
}

/* ナビを参考サイト風の1行ラベルに簡素化（依頼670339-①） */
.header__nav-item a {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  position: relative;
  color: #0A2540;
  text-decoration: none;
  white-space: nowrap;
}

.header__nav-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #025430;
  transition: width .25s ease;
}

.header__nav-item a:hover::after,
.header__nav-item--current a::after {
  width: 100%;
  left: 50%; /* 共通CSS の left: 10% を打ち消す */
}

.header__nav-item--current a {
  color: #025430;
}

.header__nav-en {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: .16em;
  color: #4A6B82;
  text-transform: uppercase;
  font-weight: 500;
}

.header__nav-ja {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .04em;
}

.header__tel {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #025430;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  text-decoration: none;
}

.header__tel:hover {
  color: #013a21;
  opacity: 1;
}

.header__tel-label {
  font-family: "Kosugi Maru", sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #5d6b6f;
  letter-spacing: .04em;
}

/* ヘッダーロゴ横テキスト */
.kawagami-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.kawagami-brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.kawagami-brand__jp {
  font-size: 18px;
  font-weight: 700;
  color: #0A2540;
  letter-spacing: .02em;
  white-space: nowrap;
}

.kawagami-brand__en {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: .18em;
  color: #4A6B82;
  text-transform: uppercase;
}

/* ヘッダー電話番号（カスタム） */
.kawagami-head-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.kawagami-head-tel__notice {
  font-size: 10px;
  letter-spacing: .08em;
  color: #c0392b;
}

.kawagami-head-tel__lab {
  font-size: 11px;
  letter-spacing: .1em;
  color: #5d6b6f;
}

.kawagami-head-tel__num {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: #025430;
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: color .2s;
}

.kawagami-head-tel__num::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f095";
  font-size: 16px;
}

.kawagami-head-tel__num:hover {
  color: #013a21;
  opacity: 1;
}

/* SP nav overrides */
.sp-nav {
  background: #fff;
  border-bottom: 1px solid #dfe6e0;
  box-shadow: 0 20px 30px rgba(0, 0, 0, .08);
}

.sp-nav__link {
  color: #0A2540;
}

.sp-nav__link::after {
  margin-left: 10px;
}

.sp-nav__en {
  font-size: 1.5rem;
}


/* ⑤ SP時 フッターナビ非表示 */
@media (max-width: 639px) {
  .kawagami-foot-col:nth-child(2) { display: none; }
}

/* ===================================================
   Section heading (kawagami-head)
   =================================================== */
.kawagami-head {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.kawagami-head--center {
  text-align: center;
}

.kawagami-head__kicker {
  font-size: 14px;
  letter-spacing: .14em;
  color: #0A2540;
  font-weight: 400;
  margin: 0 0 12px;
  display: block;
}

.kawagami-head__en {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.04;
  letter-spacing: .005em;
  color: #06231a;
  display: inline-block;
  padding: .14em .3em .2em;
  border-radius: 3px;
  background: linear-gradient(90deg, #2FA98D 0%, #7FCBA8 38%, #BFE6CF 66%, #DCEBA6 100%);
  margin: 0;
}

/* 日本語見出し用モディファイア — Kosugi Maru に切り替え（faux bold 防止で 400 に） */
.kawagami-head__en--ja {
  font-family: "Kosugi Maru", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ===================================================
   Hero section (index page)
   =================================================== */

/* #slideshow: kawagami-hero 内で背景全面を占める（CMS差し替え対応）
   CMSスライダーは height: 100% で追従するため、外枠に明示的に高さを設定 */
#slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* スライドと内部ラッパーを #slideshow いっぱいに */
#slideshow .swiper-slide,
#slideshow .main_slider__inner {
  width: 100%;
  height: 100%;
}

/* 背景画像を全面にフィット */
#slideshow .main_slider__inner img,
#slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  display: block;
}

/* テキストコンテンツは #slideshow より上のレイヤー */
.kawagami-hero__in {
  width: 100%;
  position: relative;
  z-index: 2;
}

.kawagami-hero {
  position: relative;
  min-height: clamp(560px, 90vh, 820px);
  display: flex;
  align-items: flex-end; /* キャッチコピーを左下に配置（参考: daimatsu-kk.com） */
  overflow: hidden;
  color: #fff;
}

.kawagami-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.kawagami-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1; /* #slideshow(0) の上、テキスト(2) の下 */
  background: linear-gradient(90deg, rgba(1, 40, 23, .9) 0%, rgba(1, 40, 23, .6) 45%, rgba(1, 58, 33, .3) 100%);
}

.kawagami-hero__in {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none; /* container の中央寄せ制約を解除して画面左端に寄せる */
  margin: 0;
  padding: 0 32px 50px 50px; /* 画面の下端・左端から約50px */
}

.kawagami-hero__kicker {
  font-size: 13px;
  letter-spacing: .3em;
  color: #9fd3b3;
  margin: 0 0 22px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.kawagami-hero__title {
  font-size: 50px;
  line-height: 1.42;
  letter-spacing: .03em;
  margin: 0 0 26px;
  font-weight: 600;
  /* 各行を独立したグラデーションボックスにするためのコンテナ */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3em;
}

/* セクションタイトル（.kawagami-head__en）と同じグラデーションボックスを行ごとに適用 */
.kawagami-hero__title-line {
  color: #06231a;
  padding: .14em .3em .2em;
  border-radius: 3px;
  background: linear-gradient(90deg, #2FA98D 0%, #7FCBA8 38%, #BFE6CF 66%, #DCEBA6 100%);
}

.kawagami-hero__sub {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 2;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 38px;
  max-width: 42em;
}

.kawagami-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ヒーロー内ゴーストボタン：エンベロープアイコンを非表示 */
.kawagami-hero .kawagami-btn-ghost i {
  display: none;
}

/* ゴーストボタン内 ar span のフォント */
.kawagami-hero .kawagami-btn-ghost .ar {
  font-family: "Inter", sans-serif;
  transition: transform .25s ease;
  display: inline-block;
}

.kawagami-hero .kawagami-btn-ghost:hover .ar {
  transform: translateX(4px);
}

.kawagami-hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .8);
  font-family: "Inter", sans-serif;
}

.kawagami-hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255, 255, 255, .8), transparent);
  animation: kawagami-scrolldn 2s ease infinite;
}

@keyframes kawagami-scrolldn {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  40% {
    transform: scaleY(1);
    transform-origin: top;
  }

  60% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ===================================================
   Business card
   =================================================== */
.kawagami-biz-card {
  display: block;
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  text-decoration: none;
  color: inherit;
}

.kawagami-biz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(2, 84, 48, .4);
  opacity: 1;
}

.kawagami-biz-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.kawagami-biz-card__ph {
  aspect-ratio: 16/10;
}

.kawagami-biz-card__body {
  padding: clamp(26px, 3vw, 40px);
}

.kawagami-biz-card__no {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #4A6B82;
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
}

.kawagami-biz-card__ttl {
  font-size: clamp(20px, 2.3vw, 26px);
  margin: 0 0 14px;
  color: #025430;
}

.kawagami-biz-card__txt {
  margin: 0 0 22px;
  color: #0A2540;
  font-size: 15px;
  line-height: 2;
}

.kawagami-biz-card__more {
  font-size: 14px;
  color: #025430;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: "Inter", sans-serif;
}

.kawagami-biz-card:hover .kawagami-biz-card__more .ar {
  transform: translateX(4px);
}

.kawagami-biz-card__more .ar {
  transition: transform .25s ease;
  display: inline-block;
}

/* ===================================================
   Product card
   =================================================== */
.kawagami-prod-card {
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.kawagami-prod-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -22px rgba(10, 37, 64, .35);
}

.kawagami-prod-card__ph {
  aspect-ratio: 4/3;
}

.kawagami-prod-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.kawagami-prod-card__cap {
  padding: 16px 18px;
}

.kawagami-prod-card__no {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #4A6B82;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-family: "Inter", sans-serif;
}

.kawagami-prod-card__name {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: #0A2540;
}

.kawagami-prod-card__spec {
  color: #5d6b6f;
  font-size: 13px;
}

/* 取扱商品カードを写真なし・文字のみ表示に（依頼670339-②）
   --take / --more は独自レイアウトのため除外 */
.kawagami-prod-card:not(.kawagami-prod-card--take):not(.kawagami-prod-card--more) {
  display: flex;
  flex-direction: column;
}

.kawagami-prod-card:not(.kawagami-prod-card--take):not(.kawagami-prod-card--more) .kawagami-prod-card__cap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: clamp(20px, 2.2vw, 28px);
}

.kawagami-prod-card:not(.kawagami-prod-card--take):not(.kawagami-prod-card--more) .kawagami-prod-card__name {
  font-size: 17px;
}

/* "View all" card style */
.kawagami-prod-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #025430;
  border-color: #025430;
}

.kawagami-prod-card--more a {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  font-size: 15px;
  text-decoration: none;
  transition: background .3s;
}

.kawagami-prod-card--more a .en {
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 12px;
  color: #bfe6cf;
  font-family: "Inter", sans-serif;
}

.kawagami-prod-card--more:hover {
  background: #013a21;
  border-color: #013a21;
}

/* product with text only (no photo) */
.kawagami-prod-card--take {
  display: flex;
  align-items: center;
  background: #fff;
}

.kawagami-prod-card--take .kawagami-prod-card__cap {
  padding: clamp(24px, 2.5vw, 32px);
}

.kawagami-prod-tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  color: #fff;
  background: #4A6B82;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

/* ===================================================
   Strength card (on green bg)
   =================================================== */
.kawagami-str-card {
  padding: 6px 0;
  position: relative;
}

.kawagami-str-card__no {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: rgba(255, 255, 255, .28);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.kawagami-str-card__ttl {
  font-size: 20px;
  margin: 0 0 14px;
  color: #fff;
  position: relative;
  padding-bottom: 14px;
}

.kawagami-str-card__ttl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  background: #9fd3b3;
}

.kawagami-str-card__txt {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 14.5px;
  line-height: 1.95;
}

/* ===================================================
   About strip
   =================================================== */

/* about グリッド：縦中央揃え＋余白拡張・右カラム広め（テキスト2行収め） */
.kawagami-about-grid {
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: 5fr 7fr;
}

/* 右カラム内で見出しを使うときの下余白 */
.kawagami-about-grid .kawagami-head__en {
  margin-bottom: 24px;
}

.kawagami-about-strip__lead {
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.7;
  color: #025430;
  margin: 0 0 18px;
}

.kawagami-about-strip__txt {
  margin: 0 0 26px;
  line-height: 2;
  color: #0A2540;
}

.kawagami-about-strip__facts {
  margin: 0 0 30px;
  border-top: 1px solid #dfe6e0;
}

.kawagami-about-strip__facts-row {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid #dfe6e0;
}

.kawagami-about-strip__facts-dt {
  flex: none;
  width: 84px;
  color: #4A6B82;
  font-size: 14px;
}

.kawagami-about-strip__facts-dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ===================================================
   Photo placeholder
   =================================================== */
.kawagami-ph {
  position: relative;
  overflow: hidden;
  background: #eaf0ec;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f8d83;
}

.kawagami-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(2, 84, 48, .07), rgba(74, 107, 130, .07)),
    repeating-linear-gradient(135deg, rgba(10, 37, 64, .035) 0 2px, transparent 2px 22px);
}

.kawagami-ph__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .12em;
  text-align: center;
  padding: 18px;
}

.kawagami-ph--dark {
  background: #013a21;
  color: rgba(255, 255, 255, .66);
}

/* ===================================================
   Info table (overview)
   =================================================== */
.kawagami-itable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.kawagami-itable th,
.kawagami-itable td {
  text-align: left;
  padding: 18px 4px;
  border-bottom: 1px solid #dfe6e0;
  vertical-align: top;
}

.kawagami-itable th {
  width: 200px;
  color: #025430;
  font-weight: 400;
  white-space: nowrap;
}

/* ===================================================
   Equipment card
   =================================================== */
.kawagami-equip-card {
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  padding: clamp(24px, 2.6vw, 34px);
  position: relative;
  overflow: hidden;
}

.kawagami-equip-card__num {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 54px;
  line-height: 1;
  color: #025430;
  display: block;
  margin-bottom: 12px;
}

.kawagami-equip-card__num small {
  font-size: 17px;
  margin-left: 4px;
  color: #5d6b6f;
  font-weight: 400;
  font-family: "Kosugi Maru", sans-serif;
}

.kawagami-equip-card__tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  color: #fff;
  background: #4A6B82;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.kawagami-equip-card h3 {
  font-size: 19px;
  margin: 0 0 10px;
  color: #0A2540;
}

.kawagami-equip-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: #5d6b6f;
}

.kawagami-equip-card--hl {
  background: #025430;
  border-color: #025430;
  color: #fff;
}

.kawagami-equip-card--hl h3 {
  color: #fff;
}

.kawagami-equip-card--hl p {
  color: rgba(255, 255, 255, .85);
}

.kawagami-equip-card--hl .kawagami-equip-card__tag {
  background: #fff;
  color: #025430;
}

.kawagami-equip-card--hl .kawagami-equip-card__num {
  color: #fff;
}

/* ===================================================
   Business row (business page 2-col)
   =================================================== */
.kawagami-biz-row {
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.kawagami-biz-row__ph {
  aspect-ratio: 4/3;
  border-radius: 6px;
}

.kawagami-biz-row__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.kawagami-biz-row__lead {
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.7;
  color: #025430;
  margin: 0 0 20px;
}

.kawagami-biz-row__body p {
  margin: 0 0 16px;
  line-height: 2;
}

.kawagami-permit-note {
  padding: 16px 20px;
  background: rgba(74, 107, 130, .08);
  border-left: 3px solid #4A6B82;
  border-radius: 0 6px 6px 0;
  font-size: 14.5px;
}

.kawagami-permit-note strong {
  color: #4A6B82;
  font-weight: 400;
}

.kawagami-tagline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 28px;
  padding: 0;
}

.kawagami-tagline li {
  font-size: 13px;
  color: #025430;
  background: #fff;
  border: 1px solid #dfe6e0;
  padding: 7px 14px;
  border-radius: 99px;
}

/* ===================================================
   Story section (about page)
   =================================================== */
.kawagami-story__lead {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.7;
  color: #025430;
  margin: 0 0 24px;
}

.kawagami-story__body p {
  margin: 0 0 18px;
  line-height: 2;
}

.kawagami-story__body strong {
  color: #025430;
  font-weight: 400;
  box-shadow: inset 0 -10px 0 rgba(2, 84, 48, .1);
}

.kawagami-story__list {
  list-style: none;
  margin: 26px 0 0;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
}

.kawagami-story__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.kawagami-story__list li:last-child {
  margin-bottom: 0;
}

.kawagami-story__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 11px;
  height: 11px;
  background: #4A6B82;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ===================================================
   License card
   =================================================== */
.kawagami-license-card {
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  overflow: hidden;
}

.kawagami-license-card__ph {
  aspect-ratio: 566/800;
}

.kawagami-license-card__img {
  width: 100%;
  aspect-ratio: 566/800;
  object-fit: contain;
  display: block;
  background: #f3f6f3;
}

.kawagami-license-card__cap {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kawagami-license-card__cap strong {
  font-weight: 400;
  color: #0A2540;
  font-size: 16px;
}

.kawagami-license-card__cap small {
  color: #5d6b6f;
  font-size: 13px;
}

/* ===================================================
   Tel cards
   =================================================== */
.kawagami-tel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(26px, 3vw, 38px);
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  transition: transform .25s ease, box-shadow .25s ease;
}

a.kawagami-tel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px rgba(2, 84, 48, .4);
  opacity: 1;
}

.kawagami-tel-card__lab {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  letter-spacing: .16em;
  color: #4A6B82;
  text-transform: uppercase;
}

.kawagami-tel-card__num {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  color: #025430;
  letter-spacing: .01em;
}

.kawagami-tel-card__act {
  font-size: 12.5px;
  color: #5d6b6f;
}

.kawagami-tel-card--main {
  background: #025430;
  border-color: #025430;
}

.kawagami-tel-card--main .kawagami-tel-card__lab {
  color: #bfe6cf;
}

.kawagami-tel-card--main .kawagami-tel-card__num {
  color: #fff;
}

.kawagami-tel-card--main .kawagami-tel-card__act {
  color: #cdead9;
}

.kawagami-tel-card--fax {
  background: #f3f6f3;
}

/* ===================================================
   Contact form
   =================================================== */
.kawagami-cform {
  max-width: 860px;
  margin: 0 auto;
}

.kawagami-cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}

.kawagami-cform__field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.kawagami-cform__label {
  font-size: 14px;
  color: #0A2540;
  display: flex;
  align-items: center;
  gap: 10px;
}

.kawagami-cform__label em {
  font-style: normal;
  font-size: 11px;
  color: #fff;
  background: #4A6B82;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: .04em;
}

.kawagami-cform input,
.kawagami-cform select,
.kawagami-cform textarea {
  font-family: inherit;
  font-size: 16px;
  color: #0A2540;
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}

.kawagami-cform textarea {
  resize: vertical;
  line-height: 1.8;
}

.kawagami-cform input:focus,
.kawagami-cform select:focus,
.kawagami-cform textarea:focus {
  outline: none;
  border-color: #025430;
  box-shadow: 0 0 0 3px rgba(2, 84, 48, .12);
}

.kawagami-cform input::placeholder,
.kawagami-cform textarea::placeholder {
  color: #aab4ad;
}

.kawagami-cform__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 6px 0 26px;
  cursor: pointer;
}

.kawagami-cform__check input {
  width: 18px;
  height: 18px;
  accent-color: #025430;
}

.kawagami-cform__submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.kawagami-cform__note {
  font-size: 13px;
  color: #5d6b6f;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 600px) {
  .kawagami-cform__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ===================================================
   Hours card
   =================================================== */
.kawagami-hours-card {
  background: #fff;
  border: 1px solid #dfe6e0;
  border-radius: 6px;
  padding: clamp(30px, 4vw, 48px);
  text-align: center;
}

.kawagami-hours-card__lab {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  color: #4A6B82;
  display: block;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.kawagami-hours-card__big {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  color: #025430;
  margin: 0 0 10px;
  line-height: 1.2;
}

.kawagami-hours-card__big span {
  font-family: "Kosugi Maru", sans-serif;
  font-weight: 400;
  color: #5d6b6f;
  font-size: .6em;
  margin: 0 6px;
}

.kawagami-hours-card__sub {
  font-size: 14px;
  color: #5d6b6f;
  margin: 0;
}

/* ===================================================
   Footer CTA (contact-cta.php)
   =================================================== */
.kawagami-foot-cta {
  background: #025430;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) clamp(20px, 9vw, 120px);
}

.kawagami-foot-cta__en {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  color: #fff;
  letter-spacing: .02em;
  margin: 0 0 10px;
}

.kawagami-foot-cta__jp {
  color: #cdead9;
  margin: 0 0 30px;
}

@media (max-width: 639px) {
  .kawagami-foot-cta__jp { text-align: left; }
}

.kawagami-foot-cta__row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.kawagami-foot-cta__tel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.kawagami-foot-cta__tel .n {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: #fff;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.kawagami-foot-cta__tel .h {
  font-size: 12px;
  color: #cdead9;
  letter-spacing: .08em;
}

/* ===================================================
   Footer
   =================================================== */
.kawagami-site-foot {
  background: #013a21;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.kawagami-foot-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(48px, 6vw, 72px) clamp(20px, 9vw, 120px);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

/* フッターロゴ＋社名（白オーバーレイ） */
.kawagami-foot-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.kawagami-foot-logo {
  display: block;
  height: 44px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.kawagami-foot-brand__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.kawagami-foot-brand__jp {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
}

.kawagami-foot-brand__en {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
}

.kawagami-foot-col h4 {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: .16em;
  color: #9fd3b3;
  margin: 0 0 16px;
  text-transform: uppercase;
  font-weight: 400;
}

.kawagami-foot-col p {
  margin: 0 0 10px;
  line-height: 1.8;
  font-weight: 400;
}

.kawagami-foot-col .nm {
  font-size: 17px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 400;
}

.kawagami-foot-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-weight: 400;
}

.kawagami-foot-links a {
  color: rgba(255, 255, 255, .8);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: color .2s;
  text-decoration: none;
  font-weight: 400;
  font-family: "Kosugi Maru", system-ui, sans-serif;
}

.kawagami-foot-links a:hover {
  color: #fff;
  opacity: 1;
}

.kawagami-foot-maps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 600px));
  gap: 14px;
  padding: 0 clamp(20px, 9vw, 120px) clamp(40px, 5vw, 60px);
  justify-content: center;
}

.kawagami-foot-maps iframe {
  width: 100%;
  height: 230px;
  border: 0;
  border-radius: 6px;
  filter: grayscale(.2);
}

.kawagami-foot-map-cap {
  font-size: 12px;
  color: #9fd3b3;
  letter-spacing: .06em;
  margin: 0 0 8px;
}

.kawagami-foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 22px clamp(20px, 9vw, 120px);
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

/* ===================================================
   Page hero (lower pages)
   =================================================== */
.kawagami-phero {
  position: relative;
  background: #013a21;
  color: #fff;
  overflow: hidden;
}

.kawagami-phero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.kawagami-phero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(1, 58, 33, .92) 30%, rgba(1, 58, 33, .55));
}

.kawagami-phero__in {
  position: relative;
  z-index: 2;
  padding-block: clamp(80px, 12vw, 150px);
}

.kawagami-phero__kicker {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: .28em;
  color: #9fd3b3;
  margin: 0 0 16px;
  text-transform: uppercase;
  display: block;
}

.kawagami-phero__title {
  font-size: clamp(30px, 4.6vw, 48px);
  margin: 0;
  line-height: 1.3;
  letter-spacing: .02em;
}

.kawagami-phero__title .en {
  display: block;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .14);
  line-height: 1;
  margin-bottom: 6px;
  font-family: "Inter", sans-serif;
}

.kawagami-crumb-wrap {
  padding-top: 18px;
  padding-bottom: 4px;
}

.kawagami-crumb {
  color: #5d6b6f;
  font-size: 12.5px;
  letter-spacing: .04em;
  margin: 0;
}

.kawagami-crumb a {
  color: #4A6B82;
  text-decoration: none;
}

.kawagami-crumb a:hover {
  color: #025430;
}

/* ===================================================
   Override common CSS a:hover { opacity: 0.8 } for interactive elements
   =================================================== */
.kawagami-biz-card:hover,
.kawagami-tel-card:hover,
.kawagami-btn:hover,
.kawagami-btn--outline:hover,
.kawagami-btn-white:hover,
.kawagami-btn-ghost:hover,
.kawagami-foot-links a:hover,
.kawagami-prod-card--more:hover a,
.header__nav-item a:hover {
  opacity: 1;
}

/* ===================================================
   Buttons
   =================================================== */
.btn--solid {
  background: #025430;
  border-color: #025430;
  color: #fff;
}

.btn--solid:hover {
  background: #013a21;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: #025430;
  color: #025430;
}

.btn--outline:hover {
  background: #025430;
  color: #fff;
}

.kawagami-btn-white {
  background: #fff;
  color: #025430;
  border: 1.5px solid #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: .04em;
  transition: transform .25s, background .25s, color .25s;
  text-decoration: none;
}

.kawagami-btn-white:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

.kawagami-btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  border-radius: 6px;
  font-size: 16px;
  letter-spacing: .04em;
  transition: transform .25s, background .25s;
  text-decoration: none;
}

.kawagami-btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
  transform: translateY(-2px);
  opacity: 1;
}

.kawagami-btn {
  background: #025430;
  color: #fff;
  border: 1.5px solid #025430;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 6px;
  font-size: 15px;
  letter-spacing: .04em;
  transition: transform .25s, background .25s;
  text-decoration: none;
}

.kawagami-btn:hover {
  background: #013a21;
  transform: translateY(-2px);
  opacity: 1;
}

.kawagami-btn--outline {
  background: transparent;
  color: #025430;
  border-color: #025430;
}

.kawagami-btn--outline:hover {
  background: #025430;
  color: #fff;
}

.kawagami-btn--lg {
  padding: 20px 40px;
  font-size: 16px;
}

.kawagami-btn .ar,
.kawagami-btn-white .ar,
.kawagami-btn-ghost .ar {
  transition: transform .25s ease;
  display: inline-block;
  font-family: "Inter", sans-serif;
}

.kawagami-btn:hover .ar,
.kawagami-btn-white:hover .ar,
.kawagami-btn-ghost:hover .ar {
  transform: translateX(4px);
}

/* ===================================================
   Section backgrounds
   =================================================== */
.bg-paper {
  background: #f3f6f3;
}

.bg-green {
  background: #025430;
  color: #fff;
}

/* Fix kicker text color in green section */
.bg-green .kawagami-head__kicker {
  color: rgba(255, 255, 255, .7);
}

/* 事業紹介・会社概要セクションの背景に水彩画像を配置（依頼670339 追加）
   参考サイト（だいまつ建設）同様、柔らかい水彩ウォッシュとして敷き、コンテンツは前面に置く */
.section--watercolor {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section--watercolor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28243/bg-circle.png") center center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}

/* ===================================================
   Section padding override
   =================================================== */
.section {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

@media (max-width: 896px) {
  .section {
    padding-top: clamp(48px, 8vw, 80px);
    padding-bottom: clamp(48px, 8vw, 80px);
  }
}

/* ===================================================
   About grid (replaces column2 + inline gap)
   =================================================== */
.kawagami-about-grid {
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 639px) {
  .kawagami-about-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   Fix contact form button (<button> element)
   =================================================== */
button.kawagami-btn {
  cursor: pointer;
  font-family: inherit;
  border: 1.5px solid #025430;
  font-size: 16px;
}

/* ===================================================
   Scroll reveal
   =================================================== */
html.js-ready .rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

html.js-ready .rv.in {
  opacity: 1;
  transform: none;
}

/* ===================================================
   Price note
   =================================================== */
.kawagami-price-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(74, 107, 130, .07);
  border: 1px solid rgba(74, 107, 130, .25);
  border-radius: 6px;
  padding: 20px 24px;
  margin-top: 36px;
}

.kawagami-price-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
}

.kawagami-price-note a {
  color: #4A6B82;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================================================
   Lead text / Notes
   =================================================== */
.kawagami-lead-txt {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.9;
  max-width: 48em;
  margin: 0 0 36px;
}

.kawagami-note {
  font-size: 13px;
  color: #5d6b6f;
  margin: 26px 0 0;
  line-height: 1.8;
}

/* ===================================================
   column2 flex overflow prevention
   =================================================== */
.column2 > .column2__child {
  min-width: 0;
}

/* ===================================================
   Product "view all" card minimum height
   =================================================== */
.kawagami-prod-card--more {
  min-height: 200px;
}

/* ===================================================
   4-col grid
   =================================================== */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .kawagami-foot-main {
    grid-template-columns: 1fr 1fr;
  }

  .kawagami-equip-card__num {
    font-size: 40px;
  }

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

@media (max-width: 640px) {
  .kawagami-foot-main {
    grid-template-columns: 1fr;
  }

  .kawagami-foot-maps {
    grid-template-columns: 1fr;
  }

  .kawagami-itable th {
    width: 128px;
  }

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

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

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

  .kawagami-biz-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .kawagami-hero__actions {
    flex-direction: column;
  }

  .kawagami-btn-white,
  .kawagami-btn-ghost {
    padding: 16px 28px;
    font-size: 15px;
  }

  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ===================================================
   SP component fixes
   =================================================== */
@media (max-width: 639px) {
  .kawagami-hero__title { font-size: clamp(26px, 6.5vw, 40px); }
  .kawagami-hero__sub { font-size: 15px; }
  .kawagami-head__en { font-size: clamp(28px, 8vw, 48px); }
  .kawagami-biz-card__ttl { font-size: 20px; }
  .kawagami-str-card__no { font-size: 36px; }
  .kawagami-equip-card__num { font-size: 40px; }
  .kawagami-itable th { width: 100px; font-size: 13px; }
  .kawagami-itable td { font-size: 13px; }
  .kawagami-foot-cta__tel .n { font-size: 24px; }
}

/* ===================================================
   Combined-class specificity fixes
   (grid-2 定義が後ろのため、2クラス合成で gap を上書き)
   =================================================== */
.grid-2.kawagami-about-grid {
  /* 画像列40% / テキスト列60% に固定し、リードが2行に収まるよう確保 */
  grid-template-columns: 40% 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.grid-2.kawagami-biz-row {
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* business.php section 2 の画像を右側に（2カラムで逆順） */
.kawagami-biz-row--rev > div:first-child { order: 2; }
.kawagami-biz-row--rev > div:last-child  { order: 1; }

/* ===================================================
   Misc fixes
   =================================================== */
/* subpage-wrapper のフェードイン（2s）は .rv reveal と重なって二重になるため無効化 */
.subpage-wrapper { animation: none; }

/* about-grid / biz-row SP: 1カラムに + align-items リセット */
@media (max-width: 640px) {
  .grid-2.kawagami-about-grid {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .grid-2.kawagami-biz-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

/* ===================================================
   section--pt0: design では0ではなく小さめパディング
   =================================================== */
.section--pt0 {
  padding-top: clamp(36px, 4vw, 56px);
}

/* ===================================================
   bg-paper セクション内 tagline 背景
   =================================================== */
.bg-paper .kawagami-tagline li {
  background: #FEFEFE;
}

/* ===================================================
   heading h2/h3 の reset（common CSS 由来のmarginをリセット）
   =================================================== */
h2.kawagami-head__en {
  font-size: clamp(32px, 5.4vw, 58px); /* 念のため再宣言 */
}

h3.kawagami-biz-card__ttl,
h3.kawagami-str-card__ttl,
h3.kawagami-equip-card__ttl,
h3 {
  /* common CSS に h3 強制スタイルがあれば無効化 */
  font-weight: inherit;
}

/* ===================================================
   フォームの <select> 矢印
   =================================================== */
.kawagami-cform select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A6B82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ===================================================
   page-hero common class を kawagami-phero と共存
   =================================================== */
.kawagami-phero__in {
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

/* ===================================================
   header__right: 768px 以下で電話番号非表示（design準拠）
   =================================================== */
@media (max-width: 768px) {
  .header__right { display: none; }
}

/* ===================================================
   SP / tablet: kawagami-biz-row reverse fix
   (grid では order が効くが、SP 縦積み時は不要)
   =================================================== */
@media (max-width: 640px) {
  .kawagami-biz-row--rev > div:first-child { order: 0; }
  .kawagami-biz-row--rev > div:last-child  { order: 0; }
}

/* ===================================================
   hero scroll アニメーション停止（reduced motion）
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  .kawagami-hero__scroll-line { animation: none; }
}

/* ===================================================
   contact page フォーム section の上余白
   =================================================== */
.cform-section {
  padding-top: 0;
}

/* ===================================================
   フッターナビ font-weight 強制（カスケード末尾で上書き）
   .kawagami-foot-main .kawagami-foot-links a
   で詳細度を上げて確実に 400 に固定する
   =================================================== */
.kawagami-foot-main .kawagami-foot-links a,
.kawagami-foot-main .kawagami-foot-links a:visited {
  font-weight: 400;
  font-family: "Kosugi Maru", system-ui, sans-serif;
}

/* ===================================================
   CMS フォーム（form-pattern-1）カスタマイズ
   =================================================== */
.form-pattern-1 dl dt:not(.pattern-exclusion) span.required::before {
  background: #025430 !important;
  padding: 5px 10px !important;
}

/* ===================================================
   ページトップボタン
   =================================================== */
.kawagami-page-top {
  position: fixed;
  right: 24px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  background: #025430;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .2s ease;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(2, 84, 48, .35);
}

.kawagami-page-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.kawagami-page-top:hover {
  background: #013a21;
  opacity: 1;
}

/* ===================================================
   インラインスタイル排除 — クラス化
   =================================================== */

/* 本文中の青リンク（about.php 会社概要テーブル等） */
.kawagami-link-blue {
  color: #4A6B82;
  text-decoration: none;
}
.kawagami-link-blue:hover { color: #025430; opacity: 1; }

/* FA アイコン間隔 */
.kawagami-fa-mr   { margin-right: 6px; }
.kawagami-fa-blue { color: #4A6B82; margin-right: 6px; }
.kawagami-fa-green { color: #9fd3b3; margin-right: 6px; }

/* フッターナビ chevron アイコン */
.kawagami-foot-nav-icon { font-size: 10px; color: #9fd3b3; }

/* contact.php アクセスマップ iframe */
.kawagami-map-iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 6px;
  filter: grayscale(.1);
  display: block;
}

/* contact.php アクセス地図ラベル・アイコン */
.kawagami-access-cap {
  color: #025430;
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 400;
}
.kawagami-access-icon { color: #4A6B82; margin-right: 6px; }

/* about.php 沿革写真（縦長 650×800） */
.kawagami-history-img {
  width: 100%;
  border-radius: 6px;
  display: block;
  aspect-ratio: 650/800;
  object-fit: contain;
  background: #f3f6f3;
}

/* index.php 会社概要セクション写真 */
.kawagami-company-img {
  width: 100%;
  border-radius: 6px;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* index.php 事業紹介ボタン中央揃えラッパー */
.kawagami-biz-more {
  text-align: center;
  margin-top: clamp(28px, 4vw, 48px);
}

/* about.php history グリッド — 上揃え */
.grid-2.kawagami-about-grid.kawagami-about-grid--top {
  align-items: flex-start;
}

/* contact.php CLOSED 時間テキスト（フォント小さめ） */
.kawagami-hours-card__big--sm {
  font-size: clamp(20px, 2.4vw, 28px);
}

/* contact.php FAX ラベル色 */
.kawagami-tel-card--fax .kawagami-tel-card__lab {
  color: #5d6b6f;
}

/* フッター HOURS カラム */
.kawagami-foot-hours-time {
  color: #fff;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  margin-bottom: 6px;
}
.kawagami-foot-hours-note {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 18px;
}
.kawagami-foot-hours-info {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}
.kawagami-foot-hours-info--mt {
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
  margin-top: 18px;
}

/* フッター内リンク */
.kawagami-foot-tel-link {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  opacity: 1;
}
.kawagami-foot-contact-link {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}
.kawagami-foot-contact-link:hover { color: #fff; opacity: 1; }

/* CTA セクション 電話アイコン */
.kawagami-cta-tel-icon { font-size: 18px; }

/* item.php 価格注記 SVG アイコン */
.kawagami-price-note-icon {
  width: 24px;
  height: 24px;
  color: #4A6B82;
  flex-shrink: 0;
  margin-top: 3px;
}

/* thanks.php */
.kawagami-thanks-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 80px) 0;
}
.kawagami-thanks-icon {
  font-size: 56px;
  color: #025430;
  display: block;
  margin-bottom: 28px;
}
.kawagami-thanks-title {
  font-size: clamp(22px, 2.8vw, 30px);
  color: #025430;
  margin: 0 0 20px;
  font-weight: 600;
}
.kawagami-thanks-lead {
  line-height: 2;
  color: #0A2540;
  margin: 0 0 12px;
}
.kawagami-thanks-note {
  font-size: 14px;
  color: #5d6b6f;
  line-height: 1.9;
  margin: 0 0 40px;
}
.kawagami-thanks-tel-link {
  color: #025430;
  text-decoration: none;
  font-weight: 600;
}
.kawagami-thanks-tel-link:hover { opacity: 1; }

/* SP時 MV スクロールインジケーター非表示
   ※ .kawagami-hero__scroll のベース定義（display:flex）より後に置く必要がある */
@media (max-width: 639px) {
  .kawagami-hero__scroll { display: none; }
}

/* MV キッカー — SP時に2行で改行 */
.kawagami-hero__kicker-2 { display: inline; }

@media (max-width: 639px) {
  .kawagami-hero__kicker-2 { display: block; }
}

/* MV タイトル — SP時：各行を1行に収める（改行させない） */
@media (max-width: 639px) {
  .kawagami-hero__title {
    /* 最長行（15文字）が画面幅 − 左右padding(82px) に収まるよう逆算 */
    font-size: min(28px, calc((100vw - 82px) / 16));
  }
  .kawagami-hero__title-line {
    white-space: nowrap;
  }
}

/* スマホ時：ヘッダーの背景をなくし、ロゴを左上に配置（依頼670339 追加）
   ・白いカード/枠/影をなくして透過にし、MV に重ねてロゴだけを左上に置く
   ・MV(暗め)に重なるため、視認性確保でロゴ・社名を白に */
@media (max-width: 639px) {
  .header.header-bar {
    top: 0;
    left: 0;
    right: auto;
    width: auto;
    max-width: none;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
  }
  .header.header-bar .header__inner {
    height: auto;
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .header.header-bar .header__logo img {
    filter: brightness(0) invert(1);
    height: 33px;
  }
  .kawagami-brand__jp {
    color: #fff;
  }
  .kawagami-brand__en {
    color: rgba(255, 255, 255, .8);
  }
}
