body {
  background-color: #fceacd;
  color: #754b21;
  margin: 0 0 0 0;
  padding: 0;
}





.btn-otoiawase {
  align-items: center;
  /* ← アイコンと文字を縦中央に */
  font-size: 1.5rem;
  width: 400px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-weight: bold;
  color: #ffffff;
  border-bottom: 2px solid transparent;
  border-radius: 15px 15px 15px 15px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .3);
  transition: 0.5s;
  white-space: nowrap;
}

.btn-otoiawase img {
  display: flex;
  justify-content: center;
  padding: 20px;
  text-align: center;
  justify-content: center;
  gap: 0px;
  margin-bottom: 0px;
  width: 100%;
  height: auto;
  display: block;

}


.btn-otoiawase:hover {
  color: #ffffff;
  border-bottom-color: #fff;
  transform: translateY(3px);
}

.instagram-box {
  margin: 0 auto;
  width: 60%;
}

body .tokutyou_to_tsuyomi {
  background-color: #ffe4b3;
}

.hero {
  background-image: url("images/business-hero.jpg") center/cover no-repeat;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  height: auto;
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  justify-content: flex-start;
  position: relative;
  margin: 0;
  padding: 0;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%
}

.hero .small {
  display: none;
  max-width: 100%
}

.hero .big {
  display: block;
  max-width: 100%
}

.hero-content {
  color: #ffffff;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  margin-left: 5%;
  text-align: left;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  max-width: 100%;

}

.hero p {
  font-size: clamp(16px, 1.5vw, 32px);
}

.hero h1 {
  max-width: 100%;
  height: auto;
  position: absolute;
  top: 30px;
  font-size: clamp(22px, 6vw, 48px);
}

.business_text {
  display: flex;
  grid-template-columns: max-content minmax(0, 1fr);
  /* 左=内容の幅ぴったり / 右=残り全部 */
  column-gap: 15px;
  /* 画像と文章のあいだ */
  margin: 0 5vh 3%;
  /* 左右の余白 */
  justify-items: center;
  justify-content: center;
  align-items: center
}

.business_text_logo {
  text-align: center;
  display: inline-block;
  width: auto;
  /* ここが超重要。リセットでwidth:100%なら上書き */
  max-width: 100%;
  /* 親よりは大きくしない保険 */
  height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.business_text_logo img {
  width: 100%;
  height: auto
}


.business_text_text {
  text-align: left;
  display: inline-block;
  width: auto;
  /* ここが超重要。リセットでwidth:100%なら上書き */
  max-width: 100%;
  /* 親よりは大きくしない保険 */
  height: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: clamp(14px, 2.3vw, 18px);
  line-height: 1.8;
}


.tokutyou_to_tsuyomi {
  padding-bottom: 50px;
}

.title-wrap {
  display: flex;
  align-items: center;
  gap: 1em;
  /* タイトルと線の隙間 */
  padding-top: 2%;
  margin: 0%;
  margin: 0 10% 20px;
  word-break: break-all;
  width: auto;
  max-width: 100%;
}

.title-wrap h2 {
  font-size: 2rem;
  font-weight: bold;
  white-space: nowrap;
  font-size: clamp(21px, 1.5vw, 26px);
  line-height: 1.6;
  word-break: keep-all;
  /* 日本語は基本 keep-all でOK */
  white-space: normal;
  word-break: break-all;
}

.title-wrap .line {
  flex: 1;
  /* 横いっぱいに広がる */
  height: 1px;
  background: #333;
  /* 線の色 */
}

body .title-wrap .line {
  position: static;
  border: solid 1px;
  top: 140px;
  right: -30px;
}


.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 0;
  /* ←ここを0にするのが肝 */
  justify-content: center;
  /* 横にきれいに並ぶ */
  gap: 60px;
  /* 画像同士の隙間 */
  align-items: center;
  justify-items: center;
  align-items: start;
  max-width: 1100px;
  width: 80%;
  padding-inline: 16px;
  /* 端にベタ付きを防止 */
  box-sizing: border-box;
  object-fit: contain;
  margin: 0 auto 50px auto;
}

.features>*+* {
  margin-top: 20px;
  /* これが今までの gap 相当 */
}

.features>.business_page_button {
  margin-top: 0;
}

.feature {
  flex: 0 1 25%;
  /* 幅を少し小さめに（3つ並んで8割くらい使う感じ） */
  justify-content: center;
  position: relative;
  /* 子要素を絶対配置するため */
  align-items: center;
  text-align: center;
  overflow: visible;
  /* 拡大で切れないように */
  isolation: isolate;
  /* z-indexの干渉を減らす */
  overflow: hidden;
  /* ←拡大やポップアップをカード内にクリップ */
  box-sizing: border-box;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  margin: 0 0;
}





.feature .thumb {
  position: relative;
  overflow: visible;
}

.feature .thumb img {
  display: inline-block;
  width: 80%;
  height: auto;
  transform-origin: center;
  transition: transform .3s;
  object-fit: contain;
}





.feature img {
  width: 100%;
  /* 枠いっぱいに広がる */
  height: auto;
  /* アスペクト比を保持 */
  transition: transform 220ms cubic-bezier(.2, .7, .2, 1), box-shadow 220ms ease;
  /* ふわん係 */
  will-change: transform;
  /* 微妙に滑らかに */
  justify-content: center;
  max-width: 100%;
  object-fit: contain;
}

.feature .popup-text {
  position: static;
  /* 絶対配置をやめる */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 10px;
  background: rgba(117, 73, 33, 0.7);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  overflow-wrap: anywhere;
  /* はみ出し防止 */
  /* hover で見せたい場合は下2行で */
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease;
}

.popup-text {
  position: static;
  width: 100%;
  margin-top: 8px;
  box-sizing: border-box;
  padding: 12px 10px;
  background: rgba(117, 73, 33, .75);
  color: #fff;
  border-radius: 10px;
  text-align: center;
}

.popup-text p {
  margin: 0;
}

.business_page_button {
  text-align: center;
  height: auto;
  /* アスペクト比を保持 */
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  /* 余白はお好みで */
  margin-top: -20px;
}

.business_page_button img {
  justify-content: center;

}

.business_page_button a {
  border: none;
  outline: none;
  display: inline-block;
  margin-bottom: 0;
  /* リンク自体の下余白を消す */
  inline-size: clamp(240px, 90vw, 560px);
  /* 最小, 理想(画面比), 最大 */
}

.business_page_button+p {
  margin-top: 0;
  /* ボタン直後のpタグの余白を消す */
}

.business_page_button .btn-otoiawase {
  display: block;
  /* 余計な隙間を消す */
  width: clamp(240px, 88vw, 560px);
  /* ←お好みで */
  inline-size: 100%;
  block-size: auto;
  /* 縦横比キープ */
  border: none;
  /* 枠線を消す */
  box-shadow: none;
  /* 影を消す */
  outline: none;
  /* フォーカス時の青い枠も消したいなら */
  height: auto;
}

.business_page_button img.btn-otoiawase {
  display: block;
  /* ベースライン隙間を消す */
  width: 80%;
  /* 可変幅 */
  height: auto;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
  outline: none;
}

.saiyouni {
  text-align: center;
  margin: 0 60px 50px;
}





/* ========================================
   モバイル対応（800px以下）
======================================== */

@media (max-width: 800px) {

  .hero .big {
    display: none;
  }

  .hero .small {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    color: #ffffff;
    inset: 0;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    text-align: center;
    /* テキストは左寄せ */
    top: 50%;
    /* 上から50%の位置に */
    left: 0;
    /* 左端寄せ */
    transform: translateY(-50%);
    /* 縦中央にぴったり */
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
    max-width: 100%;
    align-items: center;
  }
}


/* ーーーーーーーーーーーーーーーーーーーーーー */

@media (min-width: 1001px) and (hover: hover) and (pointer: fine) {
  .feature {
    overflow: hidden;
    /* はみ出し防止 */
  }

}

/* ーーーーーーーーーーーーーーーーーーーーーー */

@media (max-width:1000px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    /* 横2列 */
  }

  .feature .popup-text {
    position: static;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
}

/* ーーーーーーーーーーーーーーーーーーーーーー */

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
    /* 横1列 */
  }
}

/* ーーーーーーーーーーーーーーーーーーーーーー */

@media (min-width: 1001px) and (hover: hover) and (pointer: fine) {
  .feature {
    position: relative;
    overflow: visible;
  }

  .feature .popup-text {
    position: static;
    margin-top: 8px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    /* ←非表示の肝 */
    transform: translateY(10px) scale(.98);
    pointer-events: none;
    transition:
      opacity .28s ease,
      transform .32s cubic-bezier(.22, .61, .36, 1),
      visibility 0s linear .32s;
    /* フェード後に隠す */
  }

  .feature:hover .popup-text,
  .feature:focus-within .popup-text {
    opacity: 1;
    visibility: visible;
    /* ←表示に戻す */
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition:
      opacity .28s ease,
      transform .32s cubic-bezier(.22, .61, .36, 1),
      visibility 0s;
    /* 表示は遅延なし */
  }

  /* 画像のベース状態 */
  .feature .thumb img {
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
    transform-origin: center center;
    /* 拡大の基準を中央に */
  }

  /* ホバー時の“ぽわん”演出 */
  .feature:hover .thumb img {
    transform: scale(1.05) translate(-4px, -4px);
    /* 拡大して少し左上に寄る */
  }
}