@charset "UTF-8";

/* =========================================================
  851手書き雑フォント（TTFを /assets/fonts/ に配置）
  参照パスは top.css が /assets/css/ にある前提で ../fonts/
========================================================= */
@font-face {
  font-family: "viva-851tegaki";
  src: url("../fonts/851tegaki_zatsu_normal_0883.ttf") format("truetype");
  font-display: swap;
}

/* カスタムフォント適用クラス */
.viva-hand {
  font-family: "viva-851tegaki", "851手書き雑フォント", "Hiragino Maru Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif !important;
  letter-spacing: .02em;
}

/* =========================================================
  共通
========================================================= */
.viva-top {
  background: #fff;
  color: #1b1b1b;
}

.viva-top img {
  max-width: 100%;
  height: auto;
  display: block;
}

.viva-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

@media (max-width:1200px) {
  .viva-container {
    padding: 0 3%;
  }
}

@media (max-width:750px) {
  .viva-container {
    padding: 0 5%;
  }
}

.top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  padding: 12px 22px;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  will-change: transform;
}

.top-btn:active {
  transform: translateY(1px);
}

.top-btn--navy {
  background: #173a73;
  color: #fff;
  box-shadow: 0 6px 14px rgba(23, 58, 115, .18);
}

.top-btn--navy:hover {
  opacity: .92;
}

.top-btn--accent {
  background: linear-gradient(180deg, #2F8E92 0%, #1f6f73 100%);
  color: #fff;
  padding: 14px 26px;
  box-shadow: 0 10px 20px rgba(47, 142, 146, .25);
  border: 2px solid rgba(255, 255, 255, .55);
}

.top-btn--accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(47, 142, 146, .30);
}

/* =========================================================
  メインスライダー（front-page.php の inline CSS を移植）
========================================================= */
.top-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #dfe7cf;
}

.top-hero__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 850px;
  /* ✅ PCは850px */
}

@media (max-width:1200px) {
  .top-hero__viewport {
    height: 320px;
  }
}

@media (max-width:750px) {
  .top-hero__viewport {
    height: 240px;
  }
}

.top-hero__track {
  height: 100%;
  display: flex;
  width: 100%;
  transform: translateX(var(--tx, 0%));
  transition: transform .6s ease;
}

.top-hero__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.top-hero__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.top-hero__slide.is-placeholder {
  background: #8f8f8f;
}

.top-hero__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 700;
  opacity: .6;
}

.top-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

/* ✅ 調整：非アクティブを薄いグレー */
.top-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #D9D9D9;
  /* 薄いグレー */
  opacity: 1;
  cursor: pointer;
  padding: 0;
}

.top-hero__dot.is-active {
  background: #E8BB26;
  opacity: 1;
}

/* PCのみ：下部を円形で切り抜いた見た目（白いカーブ） */
.top-hero__curve {
  display: none;
}

@media (min-width:1201px) {
  .top-hero__curve {
    display: block;
    position: absolute;
    left: 50%;
    bottom: -150px;
    width: 170%;
    height: 320px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 4;
    pointer-events: none;
  }
}

/* =========================================================
  本見出し（画像＋左右線＋重ねテキスト）
========================================================= */
.top-bookhead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding-top: 14px;
  margin: 0 auto 50px;
}

.top-bookhead__line {
  width: min(36%, 420px);
  height: auto;
}

.top-bookhead__bookwrap {
  position: relative;
  display: inline-block;
}

.top-bookhead__book {
  width: 140px;
  height: auto;
}

.top-bookhead__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  font-size: 18px;
  color: #2f2f2f;
  white-space: nowrap;
}

/* ✅ 見出しテキスト（おしらせ／サービス）：太さを少し太く */
.top-bookhead__label.viva-hand {
  font-weight: 700;
  letter-spacing: 0.02em;
  /* TTFでウェイトが効きにくい場合の保険（極小で太く見せる） */
  text-shadow: 0 0 0.01px currentColor;
}

/* ✅ 調整：おしらせ色 */
.top-bookhead--news .top-bookhead__label.viva-hand {
  color: #1B437B;
}

/* ✅ 調整：サービス内容色 */
.top-bookhead--service .top-bookhead__label.viva-hand {
  color: #333333;
}

/* ✅ PC（1201px〜）：24px */
@media (min-width:1201px) {

  .top-bookhead--news .top-bookhead__label.viva-hand,
  .top-bookhead--service .top-bookhead__label.viva-hand {
    font-size: 24px;
    line-height: 1;
  }
}

@media (max-width:750px) {
  .top-bookhead {
    gap: 3px;
    margin-bottom: 18px;
  }

  .top-bookhead__book {
    width: 120px;
  }

  .top-bookhead__label {
    font-size: 16px;
  }
}

/* =========================================================
  お知らせ
========================================================= */
.top-news {
  padding: 18px 0 26px;
  background: #fff;
}

.top-news__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 8px;
}

@media (max-width:1200px) {
  .top-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

.top-news-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.top-news-card__thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #f1f1f1;
  aspect-ratio: 4/3;
}

.top-news-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-news-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #e9e9e9;
}

.top-news-card__date {
  display: block;
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 10px;
}

.top-news-card__title {
  font-size: 14px;
  font-weight: 700;
  margin: 6px 0 8px;
  line-height: 1.45;
}

.top-news-card__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-news-card__cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  line-height: 1;
}

.top-news-card__cat.is-pink {
  background: #FFBBBB;
  color: #3a2a2a;
}

.top-news-card__cat.is-yellow {
  background: #E8BB26;
  color: #2b240d;
}

.top-news__empty {
  color: #666;
  font-size: 14px;
  padding: 18px 0;
}

/* =========================================================
  vivaらぼの想い（画像はそのまま）
========================================================= */
.top-omoi {
  padding: 32px 0 10px;
  background: #fff;
}

.top-omoi__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 34px;
}

@media (max-width:1200px) {
  .top-omoi__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.top-omoi__title {
  position: relative;
  font-size: 32px;
  margin: 0 0 12px;
}

.top-omoi__star {
  position: absolute;
  left: 450px;
  top: -70px;
  width: 90px;
  height: auto;
}

@media (max-width:750px) {
  .top-omoi__title {
    font-size: 22px;
    font-weight: bold;
  }

  .top-omoi__star {
    left: 180px;
    top: -40px;
    width: 50px;
  }
}

.top-omoi__desc {
  margin: 0 0 16px;
  font-size: 18px;
  color: #404040;
  line-height: 1.9;
}

.top-omoi__image {
  display: flex;
  justify-content: flex-end;
}

@media (max-width:1200px) {
  .top-omoi__image {
    justify-content: center;
  }
}

.top-omoi__img {
  width: min(380px, 52vw);
  height: auto;
}

@media (max-width:750px) {
  .top-omoi__img {
    width: min(360px, 65vw);
    margin-bottom: 50px;

  }
}

.top-omoi__kusa {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.top-omoi__kusa img {
  width: 180px;
  height: auto;
  opacity: .95;
  margin-top: -200px
}

/* =========================================================
  子どもから大人まで（画像はそのまま / 太陽を大きく）
========================================================= */
.top-about {
  padding: 50px 0 22px;
  background: #fff;
}

.top-about__inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 34px;
}

@media (max-width:1200px) {
  .top-about__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.top-about__image {
  display: flex;
  justify-content: flex-start;
}

@media (max-width:1200px) {
  .top-about__image {
    justify-content: center;
  }
}

.top-about__img {
  width: min(380px, 52vw);
  height: auto;
}

@media (max-width:750px) {
  .top-about__img {
    width: min(360px, 86vw);
  }
}

.top-about__title {
  position: relative;
  font-size: 32px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.top-about__sun {
  position: absolute;
  right: -10px;
  top: -80px;
  width: 280px;
  /* ✅大きく */
  height: auto;
  opacity: .95;
  z-index: 0;
}

@media (max-width:750px) {
  .top-about__title {
    font-size: 18px;
    font-weight: bold;
  }

  .top-about__sun {
    right: -8px;
    top: -30px;
    width: 120px;
    /* ✅SPも大きめ */
  }
}

.top-about__desc {
  margin: 0 0 16px;
  font-size: 18px;
  color: #404040;
  line-height: 1.9;
  position: relative;
  z-index: 1;
}

/* =========================================================
  サービス
========================================================= */
.top-service {
  padding: 30px 0 44px;
  background: #fff;
}

.top-service__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 6px;
}

@media (max-width:750px) {
  .top-service__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.top-service-card {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .04);
}

@media (max-width:750px) {
  .top-service-card {
    grid-template-columns: 120px 1fr;
    padding: 5px;
  }
}

@media (max-width:750px) {
  .top-omoi__kusa img {
    margin-top: 0px;
    width: 120px;
  }

  .top-service-card__desc {
    font-size: 14px;
  }

  .top-service-card__title {
    font-size: 16px;
  }

  .top-omoi__inner {
    display: flex;
    flex-direction: column-reverse;
  }
}


/* ※ front-page.php 側で num を削除済みのため、以下は残っていても影響しません */
.top-service-card__num {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  color: #4b4b4b;
  background: #e9eef7;
}

.top-service-card[data-num="2"] .top-service-card__num {
  background: #fde8ee;
}

.top-service-card[data-num="3"] .top-service-card__num {
  background: #e7f7f1;
}

.top-service-card[data-num="4"] .top-service-card__num {
  background: #fff2da;
}

.top-service-card__img {
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
  align-self: center;
}

.top-service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-service-card__title {
  font-size: 18px;
  font-weight: 800;
  margin: 14px 0 8px;
  line-height: 1.4;
}

.top-service-card__desc {
  font-size: 18px;
  color: #404040;
  line-height: 1.8;
  margin: 0;
}

@media (max-width:750px) {
  .top-service-card__desc {
    font-size: 14px;
  }

  .top-service-card__title {
    font-size: 16px;
  }
}

/* =========================
   追記：スマホ/タブレットでも下部カーブ（円形切り抜き）を表示
   ※既存の「PCだけdisplay:block」を上書きします
========================= */
.top-hero__curve {
  display: block;
  /* ← ここが重要（PC以外でも表示） */
  position: absolute;
  left: 50%;
  bottom: -150px;
  /* タブレット想定：見えるカーブ量 */
  width: 200%;
  height: 220px;
  background: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

/* SP（〜750px）：少しバランス調整 */
@media (max-width:750px) {
  .top-hero__curve {
    width: 220%;
    height: 200px;
    /* SPは少し低め */
    bottom: -150px;
    /* 見えるカーブ量を抑える */
  }
}

/* PC（1201px〜）：今まで通りの見た目を維持 */
@media (min-width:1201px) {
  .top-hero__curve {
    width: 170%;
    height: 320px;
    bottom: -150px;
  }
}

@media (max-width:750px) {

  .top-omoi__desc,
  .top-about__desc {
    font-size: 16px;
  }
}