/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* ボックスサイズの計算方法を統一 */
}

body {
    font-family: 'Noto Sans JP', sans-serif; /* 日本語フォントの追加 */
    line-height: 1.6;
    color: #333; /* デフォルトのテキスト色を設定 */
}

/* ヘッダーセクション */
.top-img {
    background-image: url(../img/トップ.jpg);
    background-size: cover; /* 画像が要素全体をカバー */
    background-attachment: fixed; /* スクロール時に背景が固定される */
    background-position: center; /* 画像が中央に配置される */
    position: relative;
    height: 80vh; /* 初期状態の高さを画面の80%に設定 */
    background-repeat: no-repeat; /* 画像の繰り返しを防止 */
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .top-img {
        background-size: contain; /* 画像が画面内に収まるように縮小 */
        background-attachment: scroll; /* スクロール時に背景が動かないように変更 */
        height: 50vh; /* スマホでは画像の高さを50%に設定 */
    }
}

/* 最大サイズを80%に設定（レスポンシブ対応） */
@media screen and (min-width: 1200px) {
    .top-img {
        height: 80vh; /* 画面の高さの80%に設定（最大表示） */
    }
}

.top-text {
    text-align: center;
    padding: 150px 0px;
    position: relative; /* オーバーレイより前面に */
    z-index: 1;
}

.top-text h1 {
    font-size: 18rem; /* レスポンシブ対応のためremを使用 */
    font-family: 'Dancing Script', cursive;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 0.7; /* 行間を狭める */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* テキストの読みやすさを向上 */
}

.top-text h2 {
    font-size: 3rem; /* レスポンシブ対応のためremを使用 */
    font-family: "Zen Kurenaido", sans-serif;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* テキストの読みやすさを向上 */
}


.top-text p {
    font-size: 1.2rem;
    font-family: "Zen Kurenaido", sans-serif;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 80%;
    margin: 0 auto;
}

/* ナビゲーション */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 影を追加してナビゲーションを目立たせる */
}

nav h3 {
    font-family: 'Dancing Script', cursive;
    color: #333;
    margin-bottom: 0;
}

nav i {
    color: #555;
    margin-right: 5px;
}

nav .nav-link {
    transition: color 0.3s ease; /* ホバー効果のスムーズな遷移 */
    color: #555;
    padding: 0.5rem 1rem;
}

nav .nav-link:hover {
    color: #000;
}

/* 特徴エリア */
.feature-area {
    background-image: url(../img/外観.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 120px 20px;
    text-align: center;
    position: relative;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .feature-area {
        background-attachment: scroll; /* モバイルで固定背景は非推奨 */
        padding: 60px 15px;
        background-position: center top; /* 上部を優先表示 */
    }
}

.feature-area::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
}

.feature-area h2 {
    font-size: 4rem;
    font-family: 'Dancing Script', cursive;
    margin-bottom: 2rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.feature-area p {
    color: #fff;
    font-size: 1.5rem;
    font-family: "Zen Kurenaido", sans-serif;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); /* 黒い縁取り */
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.8;
}

.carousel-inner{
    font-family: "Zen Kurenaido", sans-serif;
    padding-top: 20px;  /* 上部の余白 */
    padding-bottom: 20px;  /* 下部の余白 */
}

/* カルーセル矢印（左） */
.carousel-control-prev-icon {
    background-color: #3eb489; /* 好きな色に変更 */
    border-radius: 50%; /* 丸い形にする場合 */
    width: 50px;
    height: 50px;
}

/* カルーセル矢印（右） */
.carousel-control-next-icon {
    background-color: #3eb489; /* 好きな色に変更 */
    border-radius: 50%; /* 丸い形にする場合 */
    width: 50px;
    height: 50px;
}

/* ホバー時に色を変える */
.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #2c3e50; /* ホバー時の色 */
}


/* サービスリスト */
.service-list {
    background-color: #f8f7f2;
    font-family: "Zen Kurenaido", sans-serif;
    text-align: center;
    padding: 4rem 0;
}

.service-list h2 {
    font-size: 4rem;
    font-family: 'Dancing Script', cursive;
    color: #3eb489;
    margin-bottom: 3rem;
}

.service-discription {
    padding: 2rem 0;
}

.service-discription h3 {
    color: #3eb489;
    margin: 1rem 0;
    font-size: 1.8rem;
}

.service-discription p {
    color: #3eb489;
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-discription .btn {
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.service-discription .btn:hover {
    background-color: #fff;
    color: #111;
}

/* 情報エリア */
.info {
    border: solid 2px white;
    margin: 20px 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.info i {
    color: #fff;
    margin-bottom: 1rem;
}

.info p {
    padding-top: 1rem;
    color: #fff;
}

/* フッター */
footer {
    font-family:'Dancing Script','Zen Kurenaido', sans-serif;
    background-color: #f8f7f1;
    padding: 3rem 0 1rem;
}

footer ul {
    padding: 0;
    margin-bottom: 2rem;
}

footer ul li {
    list-style: none;
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #2c3f50;
}

footer p {
    text-align: center;
    color: #777;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

.footermenu {
    font-size: 1.5rem;
}


/* カルーセル */
.carousel-item img {
    height: 600px;
    width: 100%;
    object-fit: contain; /* 画像が親要素に収まるように調整（切れないが、余白が出る） */
  }
  

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
}

.carousel-caption h5, .carousel-caption p {
    color: #fff;
}


/* レスポンシブ調整 */
@media (max-width: 768px) {
    .top-text h1 {
        font-size: 3rem;
    }
    
    .feature-area h2, .service-list h2, .contact-area h2 {
        font-size: 2.5rem;
    }
    
    .feature-area, .top-text {
        padding: 100px 0px;
    }
    
    .carousel-item img {
        height: 400px;
    }

    .service-discription {
        padding: 1rem 0;
    }
    
    .service-discription img {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .top-text h1 {
        font-size: 2.5rem;
    }
    
    .feature-area h2, .service-list h2, .contact-area h2 {
        font-size: 2rem;
    }
}

/* Instagramリンクのスタイル */
.social-link {
    display: inline-flex;  /* アイコンとテキストを横並びに */
    align-items: center;   /* アイコンとテキストを垂直方向でセンタリング */
    color: #a5a5a5;           /* テキストカラー */
    font-size: 1.5rem;     /* フォントサイズ */
    font-family:'Dancing Script','Zen Kurenaido', sans-serif;
    text-decoration: none; /* アンダーラインを除去 */
}

.social-link i {
    margin-right: 8px;     /* アイコンとテキストの間に余白を追加 */
    font-size: 1.5rem;     /* アイコンのサイズ調整 */
}

.social-link:hover {
    color: #3b5998;        /* ホバー時の色を調整 */
}


.speech-bubble {
    position: relative;
    display: inline-block;
    background-color: #ff9f80; /* 吹き出しの背景色 */
    color: #fff; /* 文字色 */
    padding: 10px 20px; /* 吹き出し内の余白 */
    font-size: 1.2rem;
    border-radius: 15px; /* 角を丸くする */
    font-family: 'Zen Kurenaido', sans-serif;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -20px; /* 吹き出しの上に三角形を表示 */
    left: calc(20% - 10px); /* 親要素の幅の3分の1の位置に三角形を配置 */    
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #ff9f80 transparent; /* 三角形の色 */
}

.info-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  .info-link p {
    text-decoration: none;  /* ← これを追加 */
  }
  
/* ───────────────────
   お問い合わせボタン：共通スタイル
   ─────────────────── */
#contact-btn {
  position: fixed;
  display: inline-block;
  transform-origin: top right;
  cursor: pointer;
  z-index: 10001;
  transition: 
    transform 0.3s ease,   /* 縮小・拡大用 */
    opacity   0.5s ease;   /* フェード用 */
}

/* 画像 */
#contact-btn img {
  display: block;
  width: 220px;    /* デスクトップ時の基本サイズ */
  height: auto;
}

/* 電話番号テキスト */
#contact-btn .phone {
  position: absolute;
  bottom: 45px;            /* 花形内側下端からのオフセット */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1rem;         /* 「お問い合わせ」と同じくらいの大きさ */
  color: #7d6e64;
  pointer-events: none;
  white-space: nowrap;     /* 改行させない */
}

/* ───────────────────────────────────────────
   デスクトップ (幅 ≥ 769px)：スクロール時に縮小のみ
   ─────────────────────────────────────────── */
@media screen and (min-width: 769px) {
  /* 通常時 */
  #contact-btn {
    top: 30px;
    right: 40px;
    transform: scale(1);
    opacity: 1;
  }

  /* スクロールで 1/4 縮小 */
  body.scrolled #contact-btn {
    transform: scale(0.25);
    opacity: 1;  /* フェードはさせない */
    /* 位置を変えたい場合はここで top を書き換え */
    /* ex. top: 100px; */
  }

  /* ホバーで必ず元サイズ・フェードイン */
  #contact-btn:hover,
  body.scrolled #contact-btn:hover {
    transform: scale(1);
    opacity: 1;
  }
}

/* ───────────────────────────────────────────
   タブレット＆スマホ (幅 ≤ 768px)：スクロール時にフェードアウトのみ
   ─────────────────────────────────────────── */
@media screen and (max-width: 768px) {
  /* 通常時 */
  #contact-btn {
    top: 20px;
    right: 20px;
    transform: scale(1);
    opacity: 1;
  }

  /* スクロールでフェードアウト */
  body.scrolled #contact-btn {
    transform: scale(1);  /* 縮小させない */
    opacity: 0;
  }

  /* ホバーでフェードイン（モバイルでは不要ですが念のため） */
  #contact-btn:hover,
  body.scrolled #contact-btn:hover {
    transform: scale(1);
    opacity: 1;
  }

  /* 画像サイズをやや縮小 */
  #contact-btn img {
    width: 160px;
  }

  /* 電話番号も微調整 */
  #contact-btn .phone {
    bottom: 30px;
    font-size: 0.9rem;
  }
}

/* ───────────────────────────────────────────
   スマホ縦持ち (幅 ≤ 576px)：さらなる微調整
   ─────────────────────────────────────────── */
@media screen and (max-width: 576px) {
  /* ボタン位置 */
  #contact-btn {
    top: 15px;
    right: 15px;
  }

  /* 画像サイズ */
  #contact-btn img {
    width: 120px;
  }

  /* 電話番号位置・サイズ */
  #contact-btn .phone {
    bottom: 25px;
    font-size: 0.8rem;
  }
}

/* ────────────────────────────
   事業所所在地＆電話番号セクション
   ──────────────────────────── */
#branch-info {
  background-color: #d4945c;
  color: #ffffff;
  padding: 30px 0;                /* 上下の余白 */
  text-align: center;
  font-family: "Zen Kurenaido", sans-serif;

}

#branch-info .branch-info__inner {
  max-width: 1200px;              /* コンテンツ幅の上限 */
  margin: 0 auto;
}

#branch-info p {
  margin: 8px 0;
  font-size: 1.5rem;
  line-height: 1.5;
}

#branch-info a {
  color: #ffffff;                 /* 電話リンクも白 */
  text-decoration: underline;     /* お好みで */
}
