/* =========================================================
   ZIMA（ジーマ）
   ========================================================= */
.sg-zima {
  padding: 0 0 70px;
}

/* -------------------------
   hero
------------------------- */
.sg-zima .sgdr-hero {
  padding-bottom: 30px;
}

.sg-zima .sgdr-hero-main {
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.sg-zima .sgdr-hero-main img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.sg-zima .sgdr-hero-copy {
  text-align: center;
}

.sg-zima .sgdr-hero-title {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.sg-zima .sgdr-hero-text {
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin: 0;
}

/* -------------------------
   目次
------------------------- */
.sg-zima .sgdr-toc {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  gap: 30px;
  max-width: 900px;
  box-sizing: border-box;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  border: 1px solid rgba(0, 0, 0, 0.35);
  margin: 0 auto 70px;
  padding: 20px 40px;
}

.sg-zima .sgdr-sec-lead {
  text-align: left;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #718d6c;
  margin: 0;
  padding-top: 5px;
}

.sg-zima .sgdr-toc-list {
  columns: 2;
  column-gap: 30px;
  margin: 0;
  padding: 0 25px;
}

.sg-zima .sgdr-toc-list li {
  break-inside: avoid;
  text-decoration: none;
  margin: 0;
  padding: 5px 0;
}

.sg-zima .sgdr-toc-list li::marker {
  color: #718d6c;
}

.sg-zima .sgdr-toc-list a {
  display: block;
  text-decoration: none;
  color: #000;
  line-height: 1.7;
}

.sg-zima .sgdr-toc-list a:hover,
.sg-zima .sgdr-toc-list a:focus {
  opacity: 0.5;
}

/* -------------------------
   common
------------------------- */
.sg-zima .sgdr-section {
  padding: 0 0 100px;
}

.sg-zima .sgdr-bar-title {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #fff;
  text-align: center;
  background-color: #718d6c;
  margin: 0 0 30px;
  padding: 10px 0;
}

.sg-zima .sgdr-note {
  background: #eef4ef;
  text-align: center;
  margin-top: 30px;
  padding: 24px 20px;
}

.sg-zima .sgdr-note p {
  line-height: 1.9;
  margin: 0;
}

/* -------------------------
   特長
------------------------- */
.sg-zima .sgdr-feature-list {
  display: grid;
  gap: 30px;
}

.sg-zima .sgdr-feature-card {
  display: grid;
  grid-template-columns: 450px 1fr;
  gap: 30px;
  align-items: start;
}

.sg-zima .sgdr-feature-figure {
  margin: 0;
}

.sg-zima .sgdr-feature-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sg-zima .sgdr-feature-body h3 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.6;
  color: #1b6c3f;
  margin: 20px 0 10px;
}

.sg-zima .sgdr-feature-body p {
  line-height: 1.9;
  margin: 0;
}

/* -------------------------
   カード共通
------------------------- */
.sg-zima .sgdr-md-card-title {
  text-align: center;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: #718d6c;
  margin: 0 0 8px;
}

/* -------------------------
   サイズ
------------------------- */
.sg-zima .sgdr-size-group {
  margin-bottom: 0;
}

.sg-zima .sgdr-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.sg-zima .sgdr-size-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.sg-zima .sgdr-size-card figure {
  margin: 0;
}

.sg-zima .sgdr-size-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sg-zima .sgdr-size-card p {
  text-align: center;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------
   spec grid（タイプ・設置スタイル・屋根材）
------------------------- */
.sg-zima .sgdr-spec-block {
  margin-bottom: 0;
}

.sg-zima .sgdr-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
}

.sg-zima .sgdr-spec-card {
  display: grid;
  gap: 20px;
  align-content: start;
}

.sg-zima .sgdr-spec-card figure {
  background: #fff;
  margin: 0;
}

.sg-zima .sgdr-spec-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff;
}

.sg-zima .sgdr-spec-card p {
  text-align: center;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------
   タイプを選ぶ (zima-type)
------------------------- */
#zima-type .sgdr-spec-grid {
  display: grid;
  /* 横の隙間を 40px、縦（スマホ時など）を 24px に設定 */
  gap: 24px 40px;
}

#zima-type .sgdr-spec-card p {
  text-align: justify;
  text-justify: inter-ideograph;
}

/* -------------------------
   リードテキスト共通
------------------------- */
.sg-zima .sgdr-door-lead {
  text-align: center;
  line-height: 1.9;
  margin: 0 0 30px;
}

/* -------------------------
   設置スタイルバリエーション (zima-secchi)
   GFのgf-secchiに合わせてflexレイアウト
------------------------- */
#zima-secchi .sgdr-spec-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

#zima-secchi .sgdr-spec-card {
  flex: 1;
  min-width: 0;
  gap: 6px;
}

#zima-secchi .sgdr-md-card-title {
  margin: 0 0 4px;
}

#zima-secchi .sgdr-spec-card figure {
  margin: 0;
}

#zima-secchi .sgdr-spec-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#zima-secchi .sgdr-spec-card p {
  line-height: 1.6;
  letter-spacing: -0.02em;
  text-align: justify;
  text-justify: inter-ideograph;
  margin: 0;
}

/* -------------------------
   カラーバリエーション（チップ行 ＋ 3パターン）
------------------------- */
.sg-zima .sgdr-color-lead {
  text-align: center;
  line-height: 1.9;
  margin: 0 0 24px;
}

/*カーポートジーマ チップ行：アルミ｜ラッピングを横並び */
.sg-zima .sgdr-color-chips-row {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.sg-zima .sgdr-color-group {
  display: grid;
  gap: 12px;
}

/* 見出し：フォント・色・サイズ・左線をGFに統一 */
.sg-zima .sgdr-color-group-label {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #718d6c;
  border-left: 3px solid #718d6c;
  padding-left: 8px;
  margin: 0;
}

.sg-zima .sgdr-color-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: flex-start;
}

/* ラッピング色は5色で折り返しあり */
.sg-zima .sgdr-color-chips--wrap {
  flex-wrap: wrap;
}

.sg-zima .sgdr-chip-card {
  display: grid;
  gap: 6px;
  text-align: center;
  width: 90px;
  align-content: start;
}

.sg-zima .sgdr-chip-card figure {
  margin: 0;
}

.sg-zima .sgdr-chip-card figure img {
  display: block;
  width: 80px;
  height: 36px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* キャプション（色名）：フォントとフォントサイズをGFに統一 */
.sg-zima .sgdr-chip-card p {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 0;
}

/* 3パターン画像グリッド */
.sg-zima .sgdr-color-pattern-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.sg-zima .sgdr-color-pattern-card {
  display: grid;
  gap: 10px;
}

.sg-zima .sgdr-color-pattern-card figure {
  margin: 0;
}

.sg-zima .sgdr-color-pattern-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* -------------------------
   折戸パネルタイトル：文字詰め
------------------------- */
#zima-panel .sgdr-spec-grid {
  display: grid !important; /* 強制的にgridを適用 */
  grid-template-columns: repeat(3, 1fr); /* 3等分を維持 */
  gap: 0 40px; /* 横の隙間だけ40pxに固定 */
  width: 100%;
}

#zima-panel .sgdr-md-card-title {
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
  white-space: nowrap; /* 絶対に改行させない */
}

/* 折戸パネルの説明文：両端揃え */
#zima-panel .sgdr-spec-card p {
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 折戸パネル内の画像高さを自動にし、見切れを防ぐ */
#zima-panel .sgdr-spec-card img {
  height: auto;
  aspect-ratio: auto;
}

/* 折戸パネルセクション（#zima-panel）のh4だけ2px小さくする */
#zima-panel h4 {
  font-size: clamp(16px, 1.6vw, 26px) !important;
  letter-spacing: 0;
}

/* -------------------------
   内天井注記（背景なし・左揃え）
------------------------- */
.sg-zima .sgdr-roof-note {
  margin-top: 24px;
}

.sg-zima .sgdr-roof-note-text {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
  margin: 0;
  padding-left: 0;
}

/* 2行目インデント：「＊内天井について：」の幅に合わせる */
.sg-zima .sgdr-roof-note-indent {
  display: block;
  padding-left: 2em;
}

/* -------------------------
   option（4アイテム：4列×1行）
------------------------- */
.sg-zima .sgdr-option-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.sg-zima .sgdr-option-card {
  display: grid;
  gap: 10px;
}

.sg-zima .sgdr-option-card figure {
  margin: 0;
}

.sg-zima .sgdr-option-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sg-zima .sgdr-option-card h3 {
  text-align: center;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* -------------------------
   other
------------------------- */
.sg-zima .sgdr-other-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 100%;
  margin: 0 auto 50px;
}

.sg-zima .sgdr-other-card {
  display: block;
  text-align: center;
  text-decoration: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.sg-zima .sgdr-other-name {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: 18px;
  color: #000;
  line-height: 1.5;
  margin-bottom: 15px;
}

.sg-zima .sgdr-other-figure {
  max-width: 100%;
  margin: 0 auto 10px;
}

.sg-zima .sgdr-other-link {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  color: #45654d;
  border-bottom: 1px solid rgba(69, 101, 77, 0.35);
  padding-bottom: 1px;
  margin: 0;
}

/* -------------------------
   btn
------------------------- */
.sg-zima .sgdr-btn-wrapper {
  display: block;
  text-align: center;
  margin-top: 30px;
}

.sg-zima .sgdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: fit-content;
  text-align: center;
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: #45654d;
  color: #fff;
  margin: 0;
  padding: 10px 20px;
}

.sg-zima .sgdr-btn:hover,
.sg-zima .sgdr-btn:focus {
  opacity: 0.5;
}

/* -------------------------
   responsive
------------------------- */
@media (max-width: 1024px) {
  .sg-zima .sgdr-toc-list,
  .sg-zima .sgdr-option-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sg-zima .sgdr-feature-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sg-zima .sgdr-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sg-zima .sgdr-size-grid {
    grid-template-columns: 1fr;
  }

  .sg-zima .sgdr-color-chips-row {
    flex-direction: column;
    gap: 24px;
  }

  .sg-zima .sgdr-color-pattern-grid {
    grid-template-columns: 1fr;
  }

  #zima-secchi .sgdr-spec-grid {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .sg-zima {
    padding-bottom: 40px;
  }

  .sg-zima .sgdr-section {
    padding-bottom: 44px;
  }

  .sg-zima .sgdr-toc {
    padding: 20px 16px;
  }

  .sg-zima .sgdr-toc-list,
  .sg-zima .sgdr-option-list,
  .sg-zima .sgdr-spec-grid,
  .sg-zima .sgdr-size-grid,
  .sg-zima .sgdr-other-grid {
    grid-template-columns: 1fr;
  }

  .sg-zima .sgdr-hero-title {
    font-size: 24px;
  }
}