/* ==========================================================================
   サンガーデン曙 LP - style.css
   清潔感・白ベース・淡いグリーン／ベージュのアクセント／スマホ表示最優先
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f3f8f2;
  --color-text: #333333;
  --color-text-light: #6f7a6f;
  --color-border: #e3ebe0;

  --color-accent: #5c9a6f;
  --color-accent-dark: #3f7a52;
  --color-accent-light: #e2f0e4;

  --color-beige: #f0e7d6;
  --color-beige-dark: #a98c5f;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;

  --shadow-card: 0 4px 16px rgba(60, 110, 75, 0.09);

  --max-width: 640px;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0 0 20px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.sp-only {
  display: inline;
}

/* --------------------------------------------------------------------------
   共通セクション
   -------------------------------------------------------------------------- */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 14px;
}

.section__title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.5;
  color: var(--color-text);
}

.section__title::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
  border-radius: 4px;
}

.section__lead {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   1. ファーストビュー
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 14px 6px;
  text-align: center;
}

.hero__location {
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}

.hero__copy {
  font-size: 1.5rem;
  line-height: 1.55;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--color-text);
}

.hero__copy span {
  color: var(--color-accent-dark);
}

.hero__sub {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0 0 16px;
}

/* 賃料ブロック */
.hero__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.hero__price-main {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-accent-dark);
  line-height: 1;
}

.hero__price-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}

.hero__price-sub {
  font-size: 0.82rem;
  color: var(--color-text-light);
  width: 100%;
  line-height: 1.7;
  word-break: break-word;
}

/* 目立たせバッジ */
.hero__highlight {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
}

.hero__highlight li {
  list-style: none;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.hero__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.hero__badges li {
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
}

/* --------------------------------------------------------------------------
   2. おすすめポイント
   -------------------------------------------------------------------------- */

.point-section {
  background: var(--color-bg-soft);
  max-width: 100%;
}

.point-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.point-card {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 12px 6px;
  text-align: center;
}

.point-card__icon {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.point-card__text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   3. 室内・外観写真
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #f2f2f2;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 14px 8px 6px;
}

/* --------------------------------------------------------------------------
   4. 間取り・基本情報
   -------------------------------------------------------------------------- */

.layout-image {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 8px;
  margin-bottom: 16px;
  background: #fff;
}

.layout-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.layout-image figcaption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.price-card {
  background: var(--color-accent-light);
  border-radius: var(--radius-m);
  padding: 12px 8px;
  text-align: center;
}

.price-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 4px;
}

.price-card strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.info-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.info-table tr {
  border-bottom: 1px solid var(--color-border);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th,
.info-table td {
  padding: 10px 10px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.info-table th {
  width: 6.5em;
  background: var(--color-bg-soft);
  color: var(--color-accent-dark);
  font-weight: 700;
}

.info-table td {
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   5. 設備
   -------------------------------------------------------------------------- */

.facility-section {
  background: var(--color-bg-soft);
  max-width: 100%;
}

.facility-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.facility-card {
  background: #fff;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-card);
  padding: 10px 5px;
  text-align: center;
}

.facility-card span {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.facility-card p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   6. 初期費用・その他費用
   -------------------------------------------------------------------------- */

.cost-highlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cost-highlight__item {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  border-radius: var(--radius-m);
  padding: 12px 6px;
  text-align: center;
}

.cost-highlight__item span {
  display: block;
  font-size: 0.82rem;
  opacity: 0.92;
  margin-bottom: 4px;
}

.cost-highlight__item strong {
  font-size: 1.2rem;
  font-weight: 800;
}

.cost-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin: 12px 2px 0;
}

/* --------------------------------------------------------------------------
   7. 周辺環境
   -------------------------------------------------------------------------- */

.env-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 14px 14px;
  margin-bottom: 12px;
}

.env-card__row {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.env-card__row:last-child {
  margin-bottom: 0;
}

.env-card__label {
  display: inline-block;
  min-width: 4.5em;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-right: 8px;
}

.env-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.env-list li {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: 12px 14px 12px 36px;
  font-size: 0.92rem;
}

.env-list li::before {
  content: "🌿";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. 地図
   -------------------------------------------------------------------------- */

.map-frame {
  width: 100%;
  height: 320px;
  max-width: 100%;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 8px 0 0;
}

/* --------------------------------------------------------------------------
   9. お問い合わせ導線
   -------------------------------------------------------------------------- */

.contact-section {
  background: var(--color-bg-soft);
  max-width: 100%;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border: 2px solid var(--color-accent-light);
  border-radius: var(--radius-l);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.contact-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-accent-dark);
  margin: 0 0 10px;
}

.contact-card__text {
  font-size: 0.95rem;
  color: var(--color-text);
  margin: 0 0 16px;
}

.contact-card__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.contact-card__points li {
  position: relative;
  background: var(--color-bg-soft);
  border-radius: var(--radius-m);
  padding: 10px 12px 10px 34px;
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-card__points li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-light);
  padding: 24px 14px 0;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   タブレット・PC幅
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
  body {
    background: var(--color-bg-soft);
  }

  .hero,
  .point-section,
  .facility-section,
  .contact-section {
    background: var(--color-bg-soft);
  }

  .section,
  .hero__content {
    background: var(--color-bg);
  }

  .section {
    border-radius: var(--radius-l);
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
  }

  .hero__media {
    max-width: var(--max-width);
    margin: 0 auto;
    border-radius: 0 0 var(--radius-l) var(--radius-l);
  }
}

/* --------------------------------------------------------------------------
   小さめ画面での文字サイズ保護
   -------------------------------------------------------------------------- */

@media (max-width: 340px) {
  .hero__copy {
    font-size: 1.3rem;
  }

  .point-card__text,
  .facility-card p {
    font-size: 0.72rem;
  }

  .hero__price-main {
    font-size: 1.8rem;
  }
}
