/* =========================================================
   ガーデンルーム ココマ
   ========================================================= */
.sg-cocoma {
  padding: 0 0 70px;
}

/* -------------------------
   hero
------------------------- */
.sg-cocoma .sgco-hero {
  padding-bottom: 30px;
}

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

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

.sg-cocoma .sgco-hero-copy {
  text-align: center;
}

.sg-cocoma .sgco-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-cocoma .sgco-hero-text {
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin: 0;
  text-align: center;
  text-justify: inter-ideograph;
}

/* -------------------------
   目次
------------------------- */
.sg-cocoma .sgco-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-cocoma .sgco-sec-lead {
  text-align: left;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #718d6c;
  margin: 0;
  padding-top: 5px;
}

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

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

.sg-cocoma .sgco-toc-list li::marker {
  color: #718d6c;
}

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

.sg-cocoma .sgco-toc-list a:hover,
.sg-cocoma .sgco-toc-list a:focus {
  opacity: 0.5;
}

/* -------------------------
   common
------------------------- */
.sg-cocoma .sgco-section {
  padding: 0 0 100px;
}

.sg-cocoma .sgco-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-cocoma .sgco-feature-list {
  display: grid;
  gap: 30px;
}

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

.sg-cocoma .sgco-feature-figure {
  margin: 0;
}

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

.sg-cocoma .sgco-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-cocoma .sgco-feature-body p {
  line-height: 1.9;
  margin: 0;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* -------------------------
   カード共通タイトル
------------------------- */
.sg-cocoma .sgco-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;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}

/* -------------------------
   spec grid（タイプ・開口バリエーション共通）
------------------------- */
.sg-cocoma .sgco-spec-block {
  margin-bottom: 0;
}

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

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

.sg-cocoma .sgco-spec-card figure {
  background: #fff;
  margin: 0;
}

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

/* ★修正：スペックカード内の p タグ（解説文）を両端ぞろえに */
.sg-cocoma .sgco-spec-card p {
  text-align: justify;
  text-justify: inter-ideograph;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------
   サイズ（横2分割・ジーマ準拠）
------------------------- */
.sg-cocoma .sgco-size-group {
  margin-bottom: 0;
}

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

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

.sg-cocoma .sgco-size-card figure {
  margin: 0;
}

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

/* -------------------------
   カラーバリエーション（ジーマ準拠）
------------------------- */
/* ★修正：カラー紹介リード文を両端ぞろえに */
.sg-cocoma .sgco-color-lead {
  text-align: justify;
  text-justify: inter-ideograph;
  line-height: 1.9;
  margin: 0 0 24px;
}

.sg-cocoma .sgco-color-chips-row {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.sg-cocoma .sgco-color-group {
  display: grid;
  gap: 12px;
}

.sg-cocoma .sgco-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-cocoma .sgco-color-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: flex-start;
}

.sg-cocoma .sgco-color-chips--wrap {
  flex-wrap: wrap;
}

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

.sg-cocoma .sgco-chip-card figure {
  margin: 0;
}

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

/* ※カラーの単色名部分は中央寄りのほうが見栄えが良いため、centerのままにしてあります */
.sg-cocoma .sgco-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;
  text-align: center;
  margin: 0;
}

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

.sg-cocoma .sgco-color-pattern-card {
  display: grid;
  gap: 10px;
}

.sg-cocoma .sgco-color-pattern-card figure {
  margin: 0;
}

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

/* ★修正：カラーパターンの解説文を両端ぞろえに */
.sg-cocoma .sgco-color-pattern-card p {
  text-align: justify;
  text-justify: inter-ideograph;
  line-height: 1.7;
  margin: 0;
}

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

.sg-cocoma .sgco-option-card {
  display: grid;
  gap: 10px;
}

.sg-cocoma .sgco-option-card figure {
  margin: 0;
}

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

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

/* -------------------------
   scene
------------------------- */
.sg-cocoma .sgco-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.sg-cocoma .sgco-scene-card {
  display: grid;
  gap: 10px;
}

.sg-cocoma .sgco-scene-card figure {
  margin: 0;
}

.sg-cocoma .sgco-scene-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

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

.sg-cocoma .sgco-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-cocoma .sgco-btn:hover,
.sg-cocoma .sgco-btn:focus {
  opacity: 0.5;
}

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

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

.sg-cocoma .sgco-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-cocoma .sgco-other-figure {
  max-width: 100%;
  margin: 0 auto 10px;
}

.sg-cocoma .sgco-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;
}

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

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

  .sg-cocoma .sgco-color-pattern-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .sg-cocoma .sgco-size-grid {
    grid-template-columns: 1fr;
  }
}

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

  .sg-cocoma .sgco-section {
    padding-bottom: 44px;
  }

  .sg-cocoma .sgco-toc {
    padding: 20px 16px;
  }

  .sg-cocoma .sgco-toc-list,
  .sg-cocoma .sgco-option-list,
  .sg-cocoma .sgco-scene-grid,
  .sg-cocoma .sgco-spec-grid,
  .sg-cocoma .sgco-size-grid,
  .sg-cocoma .sgco-other-grid {
    grid-template-columns: 1fr;
  }

  .sg-cocoma .sgco-hero-title {
    font-size: 24px;
  }

  .sg-cocoma .sgco-card-title {
    white-space: normal;
  }
}