/*
 * LP共通の追加スタイル（各LPの style.css の後に読み込む）
 * - トップ3メーカー
 * - 素材待ちのプレースホルダー
 * - LP間の相互リンク
 */

/* 素材待ちプレースホルダー（レイアウトを崩さないよう比率固定） */
.ph-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 12px;
  border: 2px dashed #b7cfbf;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #f4f8f5, #f4f8f5 10px, #edf4ef 10px, #edf4ef 20px);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

.ph-img--wide {
  aspect-ratio: 16 / 9;
}

.ph-note {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 4px;
  background: #fff4d6;
  color: #7a5a00;
  font-size: 0.78rem;
  font-weight: 700;
}

.img-caption {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 施工事例カードの写真 */
.case-card__media {
  margin: 0 0 12px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: #edf4ef;
  aspect-ratio: 4 / 3;
}

.case-card__media img,
.case-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-photo {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 60, 30, 0.18);
  aspect-ratio: 4 / 5;
  background: #edf4ef;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo__cap {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.image-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  background: #edf4ef;
}

.news-card > img,
.news-card .media-fill {
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
}

.img-credit {
  margin: 24px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
}

/* LP間の相互リンク */
.crosslink {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.crosslink a {
  font-weight: 700;
  color: var(--green-dark);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.link-row .btn {
  flex: 1 1 240px;
}

.link-card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}

.link-card {
  display: block;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--green);
  text-decoration: none;
}

.link-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.link-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* 最新情報（2ブロック） */
.news-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.news-card {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.news-card h3 {
  margin: 14px 0 8px;
  font-size: 1.15rem;
}

.news-card p {
  margin: 0 0 8px;
}

/* トップ3メーカー */
.top3-block + .top3-block {
  margin-top: 32px;
}

.top3-block__title {
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--green);
  font-size: 1.1rem;
}

.top3-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .top3-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.top3-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.top3-card__media {
  position: relative;
  margin-bottom: 12px;
}

.top3-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: var(--radius);
}

.top3-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.top3-card__maker {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.top3-card__product {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.top3-card__feature {
  margin: 0 0 10px;
  font-weight: 500;
}

.top3-card__who {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.top3-card__who span {
  display: inline-block;
  margin-right: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--bg-deep);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 0.78rem;
}

.top3-card__subsidy {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}

.top3-more {
  margin: 24px 0 0;
  text-align: center;
  font-weight: 700;
}

/* 窓・玄関：お悩みカードの一文、取扱メーカー */
.worry-card__title {
  display: block;
}

.worry-card__text {
  display: block;
  margin-top: 8px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

.image-row {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 20px;
}

.image-row figure {
  margin: 0;
}

.maker-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 16px;
}

.maker-card {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.maker-card__name {
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 1.05rem;
}

.maker-card__logo {
  aspect-ratio: 3 / 1;
  margin-bottom: 10px;
}

.maker-card__dealer {
  margin: 10px 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-dark);
}

img.top3-card__img {
  display: block;
}

.maker-grid {
  align-items: start;
}

/* 改行位置の調整（語の途中で折り返さない） */
.nobr {
  display: inline-block;
}
