/* トップのヒーローに、月ごとの写真を敷く（写真のある月だけ。index.html の HERO_PHOTOS で指定）
   写真を出す月は、マス目の模様を消して写真を見せる */
.hero-bg.has-photo {
  background:
    radial-gradient(ellipse at top right, rgba(200, 16, 46, 0.05), transparent 52%),
    /* 白のベール：見出しのある左側（〜5割弱）を濃く、写真の多い右側を薄く */
    linear-gradient(90deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.90) 46%, rgba(255, 255, 255, 0.66) 60%, rgba(255, 255, 255, 0.56) 100%),
    /* 下端は地の色に溶かして、次のセクションと段差を作らない */
    linear-gradient(180deg, transparent 72%, #F4F6F8 100%),
    var(--hero-photo) center 38% / cover no-repeat,
    #F4F6F8;
}
.hero-bg.has-photo::before { display: none; }

/* 写真の上の文字：白いにじみを薄く敷いて、木の枝の模様から文字を浮かせる */
.hero:has(.hero-bg.has-photo) :is(.hero-heading, .hero-catch, .hero-subcatch, .hero-eyebrow) {
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.95), 0 0 6px rgba(255, 255, 255, 0.9);
}

/* スマホは文字が写真の全幅に重なるので、ベールを均一にする */
@media (max-width: 768px) {
  .hero-bg.has-photo {
    background:
      radial-gradient(ellipse at top right, rgba(200, 16, 46, 0.05), transparent 52%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.80) 60%, #F4F6F8 100%),
      var(--hero-photo) center 30% / cover no-repeat,
      #F4F6F8;
  }
}

/* 季節のあいさつ：代表写真の上に置く白い小さなカード
   （本文の列に置くと説明文に見えるため、写真の側に添える） */
.hero-season {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid #E2E6EB;
  box-shadow: 0 14px 32px rgba(20, 24, 29, 0.10);
  border-radius: 2px;
  padding: 1.5rem 2rem 1.6rem;
  max-width: 25rem;
}
.hero-season[hidden] { display: none; }
.hero-season-month {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-family: var(--ff-en-serif);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: #5E6873;
  white-space: nowrap;
}
.hero-season-ja { font-family: var(--ff-serif); letter-spacing: 0.1em; }
/* 月名の下に、シルバーの細い線 */
.hero-season-month::after {
  content: "";
  flex: 1;
  min-width: 2rem;
  height: 1px;
  align-self: center;
  background: linear-gradient(90deg, #96A0AC, rgba(150, 160, 172, 0));
}
.hero-season-greet {
  margin: 0.9rem 0 0;
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #4A535E;
  word-break: auto-phrase; /* 「した。」だけが次の行に落ちないよう、文節で折り返す */
  text-wrap: pretty;
}
html[lang="en"] .hero-season-ja { display: none; }

/* PC：代表写真の上に、重ねずに少し離して置く（写真の左端に揃える） */
.hero-season--pc { position: relative; display: inline-block; max-width: none; margin-bottom: 1.6rem; padding: 1.3rem 2rem 1.4rem; }
.hero-season--pc .hero-season-greet { white-space: nowrap; font-size: 1.25rem; margin-top: 0.7rem; }
.hero-season--sp { display: none; }

/* スマホ：写真の上に、重ねずに少し離して置く */
@media (max-width: 760px) {
  .hero-season--pc { display: none !important; }
  .hero-season--sp { position: relative; display: block; margin: 2.8rem 0 1.2rem; max-width: 22rem; padding: 1.2rem 1.6rem 1.3rem; }
  .hero-season--sp[hidden] { display: none; }
  .hero-season--sp + .hero-photo-sp { margin-top: 0; }
  .hero-season-greet { font-size: 1.2rem; }
}

/* 写真のクレジット：ヒーローの左下、本文の左端に揃える */
.hero-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  z-index: 1;
  max-width: calc(var(--container-w) + var(--container-pad-pc) * 2);
  margin: 0 auto;
  padding: 0 var(--container-pad-pc);
  font-family: var(--ff-en-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #7B8693;
  pointer-events: none;
}
.hero-credit[hidden] { display: none; }
.hero-credit a {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(123, 134, 147, 0.4);
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-credit a:hover { color: #1C4E8A; border-color: #1C4E8A; }
@media (max-width: 768px) {
  .hero-credit { bottom: 1.4rem; padding: 0 var(--container-pad-sp); font-size: 1.05rem; }
}
/* 左下のドットの飾り（幅78px）と重ならないよう、余白が狭い幅では飾りの右に逃がす */
@media (min-width: 769px) and (max-width: 1399px) {
  .hero-credit { padding-left: 11rem; }
}

/* スマホ：クレジットはヒーローの最下部だと遠すぎるので、「ご相談・お見積りは無料です」の下に置く */
.hero-credit--sp { display: none; }
@media (max-width: 768px) {
  .hero-credit--pc { display: none !important; }
  .hero-credit--sp {
    display: block;
    position: static;
    margin: 1.2rem 0 0;
    padding: 0;
    max-width: none;
  }
  .hero-credit--sp[hidden] { display: none; }
}

/* ページ下部（フッター）にも、ヒーローと同じ月の写真を薄く敷く。マス目の模様は消す */
.home .site-footer.has-photo {
  background-color: #F4F6F8;
  background-image:
    /* 上端は地の色に溶かして、上のセクションと段差を作らない */
    linear-gradient(180deg, #F4F6F8 0%, rgba(244, 246, 248, 0) 18%),
    /* 白のベール：フッターは文字が多いので均一に */
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    var(--hero-photo);
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0, center 60%;
}
