/* ================================================================
   MIYAMA LINK — front-page.css
   ================================================================ */

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* 背景写真：全画面 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88) brightness(1.0);
}

/* グラデーションオーバーレイ：左上から透過 */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(244, 239, 230, 0.97) 0%,
      rgba(244, 239, 230, 0.88) 25%,
      rgba(244, 239, 230, 0.55) 50%,
      rgba(244, 239, 230, 0.10) 72%,
      rgba(244, 239, 230, 0.00) 100%
    ),
    linear-gradient(
      to top,
      rgba(244, 239, 230, 0.72) 0%,
      rgba(244, 239, 230, 0.30) 30%,
      rgba(244, 239, 230, 0.00) 55%
    );
}

/* テキストエリア */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--header-h);
  padding-bottom: 5rem;
  padding-left: 30px;
}

.hero__text {
  max-width: 560px;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__text--animate { animation: heroFadeUp 1s ease 0.2s both; }

.hero__catch {
  font-family: var(--font-ja);
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-family: var(--font-ja);
  font-size: 0.9rem;
  line-height: 2.2;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- SP（767px以下）---- */
@media (max-width: 767px) {
  /* 縦積みレイアウト：画像→コピー */
  .hero {
    height: auto;
    min-height: unset;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding-top: var(--header-h);
  }

  /* 画像を先頭に（HTMLはcontent→bgの順のためorderで入れ替え） */
  .hero__bg {
    position: static;
    order: -1;
  }
  .hero__bg img {
    height: auto;
    object-fit: unset;
    object-position: unset;
  }
  /* 画像外にコピーが出るのでオーバーレイ不要 */
  .hero__bg::after { display: none; }

  /* コピーエリア：画像の下、クリーム背景で独立 */
  .hero__content {
    position: static;
    padding: 2.5rem 1.5rem 3rem;
    background: var(--cream, #f4efe6);
  }

  .hero__catch { font-size: clamp(1.625rem, 6vw, 2.2rem); }
}

/* ----------------------------------------------------------------
   アンカースクロール オフセット
   ---------------------------------------------------------------- */
#worry { scroll-margin-top: var(--header-h); }

/* ----------------------------------------------------------------
   お悩みゾーン
   ---------------------------------------------------------------- */
.worry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.worry-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
}
.worry-item__num {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.worry-item p {
  font-family: var(--font-ja);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  padding-top: 0.25rem;
}
.worry-answer p {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 400;
}

@media (max-width: 767px) {
  .worry-list { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   選ばれる理由
   ---------------------------------------------------------------- */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.reason-card {
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
}
.reason-card__num {
  display: block;
  margin-bottom: 1rem;
}
.reason-card__title {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--primary);
  margin-bottom: 1rem;
}

@media (max-width: 1023px) {
  .reasons-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   サービス3本柱
   ---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  display: block;
  padding: 2.5rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--primary);
  background: var(--primary-pale);
  opacity: 1;
}
.service-card__label { display: block; margin-bottom: 0.75rem; }
.service-card__title {
  font-family: var(--font-ja);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.service-card .ja-body { margin-bottom: 1.5rem; }
.service-card__link {
  font-family: var(--font-en);
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

@media (max-width: 1023px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   導入フロー
   ---------------------------------------------------------------- */
.flow-list { display: flex; flex-direction: column; gap: 0; }
.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--cream-dark);
  position: relative;
}
.flow-item:last-child { border-bottom: none; }
.flow-item__num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 300;
  color: var(--primary-pale);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}
.flow-item h3 {
  font-family: var(--font-ja);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
  .flow-item { flex-direction: column; gap: 0.5rem; }
  .flow-item__num { font-size: 2rem; width: auto; }
}

/* ----------------------------------------------------------------
   代表メッセージ（短縮）
   ---------------------------------------------------------------- */
.message-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}
.message-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.message-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

@media (max-width: 1023px) {
  .message-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .message-photo {
    order: -1;
    max-width: 320px;
    aspect-ratio: 4/3;
  }
}

/* ----------------------------------------------------------------
   FAQ（短縮）
   ---------------------------------------------------------------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 1.5rem 0;
}
.faq-item__q {
  font-family: var(--font-ja);
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 0.75rem;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.faq-item__q::before {
  content: 'Q';
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1em;
}
.faq-item__a {
  padding-left: 1.5rem;
}
.faq-item__a::before {
  content: 'A  ';
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--primary);
}

/* ----------------------------------------------------------------
   お知らせスライダー
   ---------------------------------------------------------------- */
.news-section .container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* セクションヘッド：見出し左・矢印右 */
.news-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}
.news-section__head .ja-heading { text-align: left; }
.news-section__head .deco-line--left { margin: 0.75rem 0 0; }

/* カスタム矢印ナビ */
.news-slider__nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  padding-bottom: 0.25rem;
}
.news-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary, #3a5e3a);
  border-radius: 50%;
  background: transparent;
  color: var(--primary, #3a5e3a);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.news-nav__btn svg {
  display: block;
  flex-shrink: 0;
}
.news-nav__btn:hover {
  background: var(--primary, #3a5e3a);
  color: #fff;
}

/* スライダー全体：コンテナ幅に収める */
.news-slider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* slick のデフォルトスタイルを上書き */
.news-slider .slick-track { display: flex; }
.news-slider .slick-slide { height: auto; }
.news-slider .slick-slide > div { height: 100%; }

/* dots（SP用） */
.news-slider .slick-dots { bottom: -2rem; }
.news-slider .slick-dots li button::before {
  font-size: 0.5rem;
  color: var(--primary, #3a5e3a);
}

/* カード */
.news-card {
  padding: 0 10px;
  height: 100%;
  box-sizing: border-box;
}
.news-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card__inner:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

/* サムネ */
.news-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-dark, #e8e0d0);
}
.news-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.news-card__inner:hover .news-card__thumb img {
  transform: scale(1.04);
}
.news-card__no-thumb {
  width: 100%;
  height: 100%;
  background: var(--cream-dark, #e8e0d0);
}

/* 本文エリア */
.news-card__body {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.news-card__date {
  font-family: var(--font-en, serif);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-mid, #888);
}
.news-card__title {
  font-family: var(--font-ja, sans-serif);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-dark, #1a1a1a);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- SP（767px以下）---- */
@media (max-width: 767px) {
  .news-slider {
    padding: 0;
    overflow: hidden; /* centerMode のはみ出しを許容 */
  }
  .news-slider .slick-list { overflow: visible; }
  .news-slider .slick-slide { padding: 0 6px; }
  .news-card { padding: 0; }
  .news-slider { padding-bottom: 3rem; } /* dots 分の余白 */
}

