/* ==========================================================
   KJ Blocks — フロントエンド style.css
   ========================================================== */
.kj-wrap { font-family: 'Noto Sans JP', sans-serif; color: #222; line-height: 1.7; }
.kj-wrap *, .kj-wrap *::before, .kj-wrap *::after { box-sizing: border-box; }
.kj-wrap img { max-width: 100%; display: block; }
.kj-wrap a { color: inherit; }
.kj-container { max-width: 1100px; margin: 0 auto; padding: 0 40px; width: 100%; }

.kj-en-label { font-family: 'Lato', sans-serif; font-size: 52px; font-weight: 700; letter-spacing: .04em; color: #1a1a1a; line-height: 1; margin: 0 0 4px; }
.kj-ja-label { font-size: 12px; color: #888; letter-spacing: .08em; margin: 0 0 32px; }
.kj-section-title { font-size: clamp(22px,2.5vw,34px); font-weight: 700; line-height: 1.4; color: #1a1a1a; margin: 0 0 20px; }
.kj-section-desc { font-size: 15px; line-height: 1.9; color: #555; margin: 0; }
.kj-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #1a3a5c; font-weight: 500; text-decoration: none; }
.kj-link:hover { text-decoration: underline; }
.kj-btn-dark { display: inline-flex; align-items: center; gap: 8px; background: #1a1a1a; color: #fff; padding: 14px 40px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-decoration: none; border-radius: 2px; transition: opacity .2s; }
.kj-btn-dark:hover { opacity: .75; }

/* ① PAGE HEADER
   ★ overflow:hidden でグリッドが下にはみ出すのを防ぐ
   ★ position:relative でスタッキングコンテキストを確立
   ========================================================== */
.kj-page-header {
  padding: 60px 0 0;
  background: #fff;
  overflow: hidden;   /* ← 追加：グリッドが下ブロックに被るのを防ぐ */
  position: relative; /* ← 追加 */
}
.kj-page-header__top { padding-bottom: 48px; }
.kj-page-header__catch { font-size: clamp(26px,3vw,40px); font-weight: 700; line-height: 1.45; color: #1a1a1a; margin: 0 0 20px; }
.kj-page-header__desc { font-size: 15px; line-height: 1.9; color: #555; margin: 0; }
.kj-page-header__desc p { margin: 0 0 .8em; }

/* グリッド：高さを固定し、画像が外にはみ出さないよう各セルをクリップ */
.kj-page-header__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 4px;
  height: 380px;      /* 固定高さ */
  overflow: hidden;   /* ← 追加：念のため */
}
.kj-page-header__grid-item {
  overflow: hidden;   /* 画像をセル内にクリップ */
  background: #ddd;
  /* ★ height を明示して img の height:100% が効くようにする */
  height: 100%;
}
.kj-page-header__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* 中央クロップ */
  display: block;
  transition: transform .4s;
}
.kj-page-header__grid-item:hover img { transform: scale(1.04); }
.kj-page-header__grid-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100%;       /* ← 追加：親の高さを継承 */
  overflow: hidden;
}

/* ② ABOUT */
.kj-about { padding: 72px 0; background: #fff; }
.kj-about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.kj-about__image { overflow: hidden; border-radius: 2px; }
.kj-about__image img { width: 100%; height: 300px; object-fit: cover; object-position: center center; display: block; }
.kj-about__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; padding-top: 16px; border-top: 1px solid #e8e8e8; }
.kj-about-card__en { font-family: 'Lato', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #888; text-transform: uppercase; margin: 0 0 8px; }
.kj-about-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center center; /* ★ 中央クロップ */
  margin-bottom: 16px;
  border-radius: 2px;
  background: #eee;
  display: block;
  overflow: hidden;
}
.kj-about-card__title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 8px; }
.kj-about-card__desc { font-size: 13px; line-height: 1.8; color: #666; margin: 0 0 10px; }

/* ③ FULLPHOTO
   ★ img に width/height:100% + object-fit:cover + object-position を指定
   ★ 親に display:block と height を持たせる
   ========================================================== */
.kj-fullphoto {
  width: 100%;
  overflow: hidden;
  display: block;
  /* height はインラインスタイルで指定（デフォルト340px） */
}
.kj-fullphoto img {
  width: 100%;
  height: 100%;       /* ★ 親の高さに合わせる */
  object-fit: cover;
  object-position: center center; /* ★ 常に中央クロップ */
  display: block;
}

/* ④ FEATURE */
.kj-feature { padding: 72px 0; background: #fff; }
.kj-feature__top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 48px; }
.kj-feature__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center center; border-radius: 2px; margin-top: 24px; display: block; }
/* kj-section-desc と同じフォント・サイズ・色で統一 */
.kj-feature__right-text { font-family: 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 1.9; color: #555; margin: 0; }
.kj-feature__right-text br { display: block; content: ''; margin-bottom: 0.6em; }

/* ⑤ PRODUCT SLIDER */
.kj-slider-section { padding: 0 0 72px; }
.kj-slider { position: relative; padding: 0 28px; }
.kj-slider__track { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.kj-slide-card__en { font-family: 'Lato', sans-serif; font-size: 11px; letter-spacing: .08em; color: #888; text-transform: uppercase; margin: 0 0 6px; }
.kj-slide-card__title { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; }
.kj-slide-card__specs { list-style: none; padding: 0; margin: 0 0 12px; }
.kj-slide-card__specs li { display: flex; gap: 8px; font-size: 13px; color: #555; padding: 3px 0; }
.kj-slide-card__specs .spec-key { color: #999; min-width: 64px; flex-shrink: 0; }
.kj-slide-card__link { font-size: 13px; color: #1a3a5c; font-weight: 500; text-decoration: none; }
.kj-slide-card__link:hover { text-decoration: underline; }
.kj-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #ddd; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #555; transition: background .2s; z-index: 2; }
.kj-slider__btn:hover { background: #f0f0f0; }
.kj-slider__btn--prev { left: 0; }
.kj-slider__btn--next { right: 0; }
.kj-slider__more { text-align: center; margin-top: 36px; }

/* ⑥ FLOW — 1カラムレイアウト（PC・SP共通） */
.kj-flow { padding: 72px 0; }

.kj-flow-step {
  border-top: 1px solid #ddd;
  padding: 24px 0;
}
.kj-flow-step--last { border-bottom: 1px solid #ddd; }

/* 番号バッジ＋タイトル 横並び */
.kj-flow-step__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.kj-flow-step__num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #1a3a5c;
  border-radius: 50%;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #1a3a5c;
  flex-shrink: 0;
}
.kj-flow-step__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}

/* 説明文はタイトルの下・バッジ幅分インデント */
.kj-flow-step__desc {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
  margin: 0;
  padding-left: 44px; /* 28px(badge) + 16px(gap) */
}
.kj-flow-step__desc p { margin: 0; }
.kj-flow-step__desc strong { color: #c0392b; }

/* 注釈 */
.kj-flow-note {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: #888;
}

/* ⑦ FAQ */
.kj-faq { padding: 72px 0; }
.kj-faq-item { border-top: 1px solid #ddd; }
.kj-faq-item:last-child { border-bottom: 1px solid #ddd; }
.kj-faq-item__q { width: 100%; background: none; border: none; padding: 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; font-size: 15px; font-weight: 500; color: #1a1a1a; text-align: left; line-height: 1.6; font-family: 'Noto Sans JP', sans-serif; }
.kj-faq-item__q-inner { display: flex; align-items: center; gap: 16px; }
.kj-faq-item__q-mark { width: 32px; height: 32px; border-radius: 50%; background: #e8eef4; color: #1a3a5c; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kj-faq-item__icon { width: 32px; height: 32px; border-radius: 50%; background: #1a3a5c; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; line-height: 1; transition: transform .25s; }
.kj-faq-item--open .kj-faq-item__icon { transform: rotate(45deg); }
.kj-faq-item__a { display: none; padding: 0 0 22px 48px; font-size: 14px; line-height: 1.9; color: #555; }
.kj-faq-item--open .kj-faq-item__a { display: block; }
.kj-faq-item__a p { margin: 0; }

/* ⑧ CONTACT */
.kj-contact { padding: 72px 0; }
.kj-contact .kj-en-label { color: #fff; }
.kj-contact .kj-ja-label { color: #888; }
.kj-contact__desc { font-size: 14px; color: #bbb; line-height: 1.9; margin: 0 0 36px; }
.kj-contact__desc p { margin: 0; }
.kj-contact__box { background: #2a2a2a; border-radius: 4px; padding: 36px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.kj-contact__tel-label { font-size: 13px; color: #aaa; margin: 0 0 6px; }
.kj-contact__tel { font-family: 'Lato', sans-serif; font-size: 36px; font-weight: 700; color: #fff; letter-spacing: .02em; text-decoration: none; display: block; }
.kj-contact__tel-hours { font-size: 12px; color: #888; margin: 6px 0 0; }
.kj-btn-contact { display: inline-flex; align-items: center; gap: 10px; background: #1a3a5c; color: #fff; padding: 18px 40px; font-size: 15px; font-weight: 700; text-decoration: none; border-radius: 2px; transition: opacity .2s; }
.kj-btn-contact:hover { opacity: .8; }

/* Responsive */
@media (max-width: 900px) {
  .kj-container { padding: 0 24px; }
  .kj-page-header__grid { grid-template-columns: 1fr; height: auto; }
  .kj-page-header__grid-item { height: 240px; } /* モバイルでは固定高さ */
  .kj-page-header__grid-right { grid-template-rows: auto; }
  .kj-about__inner { grid-template-columns: 1fr; gap: 32px; }
  .kj-about__cards { grid-template-columns: 1fr; }
  .kj-feature__top { grid-template-columns: 1fr; }
  .kj-slider__track { grid-template-columns: 1fr; }
  .kj-flow-step { grid-template-columns: 1fr; gap: 8px; }
  .kj-contact__box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .kj-container { padding: 0 16px; }
  .kj-en-label { font-size: 36px; }
  .kj-contact__tel { font-size: 28px; }
}