
/* --------------------
   フォント
-------------------- */
body {
    margin: 0;
    font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN",
                 "UD Digi Kyokasho N-R", "Noto Sans JP", sans-serif;
    color: #333;

}



/* --------------------
   フッター
-------------------- */

.footer {
    background: #faf7fa;
    padding: 50px 25px;
    text-align: center;
    font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
    color: #555;
    border-top: 1px solid #f1d8e8;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    color: #CB3588;
    margin-bottom: 6px;
}

.footer-tag {
    font-size: 15px;
    margin-bottom: 22px;
    color: #777;
}

.footer-services p {
    margin: 10px 0 20px;
    line-height: 1.8;
    font-size: 15px;
}

.footer-contact p {
    margin: 6px 0;
    font-size: 16px;
}

.footer-btn {
    display: inline-block;
    background: #CB3588;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(203,53,136,0.2);
    transition: 0.2s;
}

.footer-btn:hover {
    background: #b12a73;
}

.footer-company {
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

.footer-copy {
    margin-top: 4px;
    font-size: 13px;
    color: #888;
}

/* スマホ */
@media screen and (max-width: 768px) {
  .footer {
    padding: 40px 20px;
  }
  .footer-btn {
    width: 90%;
  }
}



/* --------------------
   ヘッダー
-------------------- */


.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);  /* ← 半透明に変更 */
    backdrop-filter: blur(6px);            /* ← 背景をぼかして上質に */
    border-bottom: 1px solid #eee;
    z-index: 1000;
}
/* ヘッダー全体 */
.header-inner {
    max-width: 1200px;
    margin: auto;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding .3s ease; /* ← ふわっと縮む */
}
/* ▼ スクロール時の縮小ヘッダー */
.header.shrink .header-inner {
    padding: 8px 30px;  /* ← 高さが小さくなる */
}
.site-title {
    font-size: 24px;       /* ← 大きく見やすく */
    font-weight: 700;      /* ← 太く読みやすく */
    color: #CB3588;
    letter-spacing: 0.03em;
}



.site-title .site-sub {
    font-size: 14px;      /* 小さめ */
    color: #333;          /* グレー */
    font-weight: 400;     /* 通常の太さ */
    margin-left: 6px;     /* 少し余白 */
}

@media (max-width: 768px) {
    .site-title {
        display: flex;
        flex-direction: column; /* 縦並びにする */
        line-height: 1.2;
    }

    .site-title .site-sub {
        font-size: 12px;
        color: #333;
        margin: 2px 0 0;            /* 上に少し余白 */
        display: block;             /* 強制改行 */
    }
}




/* --------------------
   PCメニュー（文字サイズUP & 丸みを活かす）
-------------------- */
.pc-nav a {
    position: relative;
    margin-left: 40px;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

/* ホバー */
.pc-nav a:hover {
    color: #CB3588;
}

/* ▼ 初期状態（中央0%） */
.pc-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #CB3588;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ▼ hoverで中央から両側へ伸びる */
.pc-nav a:hover::after {
    width: 100%;
}
/* --------------------
   ハンバーガー
-------------------- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}



/* --------------------
   ハンバーガーメニュー
-------------------- */
.hamburger span {
    width: 28px;
    height: 3px;
    background: #CB3588;   /* ← ピンクに変更 */
    transition: 0.4s;
}

/* 開いた時のライン色も統一 */
.hamburger.active span {
    background: #CB3588;   /* ← 開いた時もピンク */
}


/* --------------------
   SPメニュー
-------------------- */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #eee;
}


.mobile-nav a {
    padding: 18px;
    font-size: 18px;
    font-weight: 500;
}


.mobile-nav a:hover {
    background: #CB3588;
    color: #fff;
}

/* --------------------
   ハンバーガー（開閉時アニメーション）
-------------------- */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* --------------------
   レスポンシブ
-------------------- */
@media screen and (max-width: 900px) {
    .pc-nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }
}


/* ============================
   スマホ専用（位置調整修正版）
============================ */
@media screen and (max-width: 768px) {

  /* ===== ヘッダー（sticky） ===== */
  header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #ffffffd0;
    backdrop-filter: blur(6px);
    padding: 14px 20px;
  }

  /* タイトルとハンバーガー */
  .site-title {
    font-size: 28px;
    font-weight: 700;
  }
  #hamburger {
    transform: scale(1.4);
  }
  }


  /* =============================
   HERO 全体（共通）
============================= */
.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* 背景画像 */
.hero-img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* 中の内容（PCは左寄せ、SPは中央） */
.hero-inner {
    position: absolute;
    top: 50%;
    left: 12%;           /* PCは左へ */
    transform: translateY(-50%);
    z-index: 10;
    text-align: left;    /* PC時は左寄せ */
}

/* タグ */
.hero-tag {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(0,0,0,0.4);
    margin-bottom: 10px;
}

/* ロゴサイズ */
.hero-logo {
    width: 500px;
    max-width: 90%;
    margin-bottom: 20px;
}

/* コンタクトボックス */
.contact-box {
    background: rgba(255,255,255,0.92);
    padding: 24px 26px;
    border-radius: 20px;
    width: 350px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* タイトル */
.contact-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 16px;
}

/* 電話ボタン */
.contact-big-tel {
    display: block;
    background: #ffe6f2;
    border: 2px solid #ffb4d4;
    color: #CB3588;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 0;
    font-size: 22px;
    border-radius: 12px;
    margin-bottom: 18px;
    text-align: center;
}

/* メールボタン */
.contact-big-mail {
    display: block;
    background: #CB3588;
    color: #fff;
    text-decoration: none;
    padding: 16px 0;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}


/* ====================================
   ★スマホ版（中央寄せ、位置調整）
==================================== */
@media screen and (max-width: 768px) {

    .hero {
        padding-top: 80px; /* ヘッダーと重ならない */
    }

    .hero-img {
        height: 75vh;     /* 上に詰めつつ、はみ出さない */
        margin-top: 0;
    }

    .hero-inner {
        top: 45%;
        left: 50%;                 /* 中央へ */
        transform: translate(-50%, -50%);
        text-align: center;        /* 中央寄せ */
        width: 100%;
        max-width: 420px;
        margin-top: 10%;
    }

    .hero-tag {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .hero-logo {
        width: 95%;
        max-width: 400px;
        margin: 0 auto 14px auto;
    }

    .contact-box {
        width: 90%;
        margin: 18px auto 0;
        padding: 24px 20px;
    }

    .contact-big-tel,
    .contact-big-mail {
        font-size: 20px;
        padding: 16px 0;
    }
}




/* ====================================
   ★top セクション
==================================== */

.service-section {
  text-align: center;
  padding: 80px 20px;
  background: #faf6f8; /* 優しいピンク背景 */
}
/* ▼ 上部のロゴ画像 */
.service-logo img {
  width: 260px;
  max-width: 80%;
  margin: 0 auto 40px auto;
  display: block;
}

/* ▼ テキストは中央コンテナ内で左揃え */
.service-text {
  max-width: 880px;
  margin: 0 auto 50px auto;
  text-align: left;
  font-size: 20px;
  line-height: 2.2;
  color: #054b4a; /* 深緑 */
}
/* ▼ アクセントカラー（あるこ） */
.service-text .accent {
  color: #CB3588;
  font-weight: bold;
}
/* ▼ ボタンブロック */
.service-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
/* ▼ ボタン共通スタイル */
.service-btn {
  width: 300px;
  padding: 40px 0;
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  border-radius: 20px;
  text-decoration: none;
  transition: 0.3s;
  display: block;
}

/* ▼ グラデボタン１（訪問介護） */
.grad1 {
  background: linear-gradient(135deg, #3fa9f5, #cb3588);
}
.grad1:hover {
  filter: brightness(1.15);
}

/* ▼ グラデボタン２（障害福祉） */
.grad2 {
  background: linear-gradient(135deg, #cb3588, #f59ac2);
}
.grad2:hover {
  filter: brightness(1.15);
}
/* hover時の変化（ふわっと色変化） */
.grad1:hover {
  background: linear-gradient(135deg, #4cc9f0, #ff9bd4);
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.18);
}

.grad2:hover {
  background: linear-gradient(135deg, #e39ff6, #ff9a8b);
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.18);
}

/* ▼ SP 調整 */
@media screen and (max-width: 768px) {
  .service-text {
    font-size: 18px;
    line-height: 2;
  }
  .service-btn {
    width: 90%;
    padding: 30px 0;
    font-size: 28px;
  }
}

/* ==========================
   イラスト配置（PC）
========================== */
.illust-left, .illust-right {
  position: absolute;
  z-index: 1;
  pointer-events: none; /* クリックを邪魔しない */
}

/* 左：ニワトリ＋ひよこ */
.illust-left img {
  width: 260px;
}

.illust-left {
  left: 40px;
  bottom: 40px;
}

/* 右：ひよこ（葉っぱ） */
.illust-right img {
  width: 200px;
}

.illust-right {
  right: 40px;
  bottom: 40px;
}

/* ==========================
   セクション全体を relative にする
========================== */
.service-section {
  position: relative;   /* ← イラストをセクション内に固定するため必須 */
  overflow: visible;
}


@media screen and (max-width: 768px) {

  .illust-left img,
  .illust-right img {
    width: 140px;   /* 小さくする */
  }

  .illust-left {
    left: -10px;
    bottom: -10px;
  }

  .illust-right {
    right: -10px;
    bottom: -10px;
  }
}

/* PC版（900px以上）でイラスト位置を中央寄りに調整 */
@media screen and (min-width: 900px) {
    .service-illust-left {
        position: absolute;
        left: 5%;             /* ← 中央に寄せる（0% → 5%） */
        bottom: 20px;
        width: 260px;
        opacity: 0.95;
    }

    .service-illust-right {
        position: absolute;
        right: 5%;            /* ← 中央に寄せる（0% → 5%） */
        bottom: 0;
        width: 220px;
        opacity: 0.95;
    }
}