/* assets/css/style.css */

/*------------------------------------
 共通設定
------------------------------------*/
/* 全体の基本スタイル */
html,
body {
  overflow-x: hidden;
}

body {
  font-family: "hiragino-kaku-gothic-pron", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.75;
  overflow-x: hidden;
  position: relative; /* TOP以外のヘッダー画像用に必要 */
}

/* カラーテーマ（Bootstrap拡張） */
:root,
[data-bs-theme="light"] {
  --bs-danger: #810f00;
  --bs-dark: #000000;
  --bs-danger-rgb: 129, 15, 0;
  --bs-dark-rgb: 0, 0, 0;
  --bs-warning: #efe1a8;
  --bs-warning-rgb: 239, 225, 168;
}

/*------------------------------------
 スクロールアニメーション（初期状態）
------------------------------------*/
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

/* 各アニメーションの開始位置 */
[data-animate="fade-in"] {
  transform: translate(0, 0);
} /* 透明→表示 */
[data-animate="slide-up"] {
  transform: translateY(20px);
} /* 下から */
[data-animate="slide-down"] {
  transform: translateY(-20px);
} /* 上から */
[data-animate="fade-right"] {
  transform: translateX(50px);
} /* 右から */
[data-animate="fade-left"] {
  transform: translateX(-50px);
} /* 左から */
[data-animate="zoom-in"] {
  transform: scale(0.8);
} /* 小さく→等倍 */
[data-animate="zoom-out"] {
  transform: scale(1.2);
} /* 大きく→等倍 */

/* 表示状態になったとき */
[data-animate].in-view {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/*------------------------------------
 ネガティブマージンユーティリティ（Bootstrap相当）
------------------------------------*/
.mt-n1 {
  margin-top: -0.25rem !important;
}
.mt-n2 {
  margin-top: -0.5rem !important;
}
.mt-n3 {
  margin-top: -1rem !important;
}
.mt-n4 {
  margin-top: -1.5rem !important;
}
.mt-n5 {
  margin-top: -3rem !important;
}
.mb-n1 {
  margin-bottom: -0.25rem !important;
}
.mb-n2 {
  margin-bottom: -0.5rem !important;
}
.mb-n3 {
  margin-bottom: -1rem !important;
}
.mb-n4 {
  margin-bottom: -1.5rem !important;
}
.mb-n5 {
  margin-bottom: -3rem !important;
}
.ms-n1 {
  margin-left: -0.25rem !important;
}
.ms-n2 {
  margin-left: -0.5rem !important;
}
.ms-n3 {
  margin-left: -1rem !important;
}
.ms-n4 {
  margin-left: -1.5rem !important;
}
.ms-n5 {
  margin-left: -3rem !important;
}
.me-n1 {
  margin-right: -0.25rem !important;
}
.me-n2 {
  margin-right: -0.5rem !important;
}
.me-n3 {
  margin-right: -1rem !important;
}
.me-n4 {
  margin-right: -1.5rem !important;
}
.me-n5 {
  margin-right: -3rem !important;
}

/*------------------------------------
 レイアウトの基本
------------------------------------*/
img {
  max-width: 100%;
  width: auto;
}
main {
  min-height: 100vh;
}
section {
  padding: 8% 0;
}

@media (min-width: 1200px) {
  .container.w1100,
  .container-lg.w1100 {
    width: 100%;
    max-width: 1100px;
  }
}

/*------------------------------------
 タブUI（Bootstrap nav-tabs カスタム）
------------------------------------*/
#tabLocation.nav-tabs {
  gap: 0.5em;
  border-bottom: 1px solid #810f00;
}
#tabLocation.nav-tabs .nav-item .nav-link {
  background: #fff;
  color: #810f00;
  border: 1px solid #810f00;
}
#tabLocation.nav-tabs .nav-item .nav-link.active {
  background: #810f00;
  color: #fff;
}

#tabPlan.nav-tabs {
  gap: 0.5em;
  border: 0;
}
#tabPlan.nav-tabs a {
  background-size: contain;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1 / 0.8;
}
#no6-tab {
  background: url("../images/plan/no6-tab.webp");
}
#no6-tab.active {
  background: url("../images/plan/no6-tab-active.webp");
}
#no7-tab {
  background: url("../images/plan/no7-tab.webp");
}
#no7-tab.active {
  background: url("../images/plan/no7-tab-active.webp");
}
#no8-tab {
  background: url("../images/plan/no8-tab.webp");
}
#no8-tab.active {
  background: url("../images/plan/no8-tab-active.webp");
}
#no9-tab {
  background: url("../images/plan/no9-tab.webp");
}
#no9-tab.active {
  background: url("../images/plan/no9-tab-active.webp");
}
#tabPlan.nav-tabs .nav-item .nav-link,
#tabPlan.nav-tabs .nav-item .nav-link.active {
  border: 0;
  border-radius: 0;
  padding: 0;
}
.custom-list {
  list-style: none; /* デフォルトの黒点を消す */
  padding-left: 15px;
}

.custom-list li {
  position: relative;
  padding-left: 2.5em; /* □のスペース確保 */
  margin-bottom: 0.5em;
  font-size: 0.8rem;
}

.custom-list li::before {
  content: counter(item, upper-alpha); /* A, B, C... */
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  text-align: center;
  border: 2px solid #333; /* □ */
  border-radius: 4px; /* 角丸にしたければ数値変更 */
  font-weight: bold;
}

.custom-list {
  counter-reset: item; /* カウンタ初期化 */
}

.feature-box {
  border-right: 1px solid #ddd;
  padding: 1rem;
  position: relative;
  background: #fff;
}
.row .col-md-4:last-child .feature-box {
  border-right: 0;
}
.feature-number {
  display: inline-block;
  background: #7b0d0d; /* 赤系色 */
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
}

/*------------------------------------
 汎用クラス
------------------------------------*/
.logoSP {
  margin-bottom: 100px;
}
.text-br {
  color: #9a8d75;
}
.text-red {
  color: red;
}
.bg-light {
  background: #f7f7f7;
}
.badge {
  border-radius: 0;
}

.container-lg {
  max-width: 1280px;
}

@media (min-width: 992px) {
  .border-start-md {
    border-left: 1px solid var(--bs-border-color) !important;
  }
  .border-end-md {
    border-right: 1px solid var(--bs-border-color) !important;
  }
}

/*------------------------------------
 トップページ専用
------------------------------------*/
/* スペックボックス（上部の特徴表示など） */
.specBox {
  background: #000;
  color: #efe1a8;
  padding: 20px 0;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.specBox .border-right {
  position: relative;
}
.specBox .border-right:after {
  background: #efe1a8;
  height: 40px;
  width: 1px;
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 20%;
}
.specBox .row {
  font-family: "hiragino-kaku-gothic-pron", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 4vw, 30px);
}
.specBox .row span {
  font-size: clamp(20px, 4vw, 40px);
  font-weight: 600;
}
.stxt {
  width: 30px;
  margin-bottom: 10px;
  margin-right: 10px;
}

/* カテゴリタイトル */
.cat-title {
  font-family: "zedou", sans-serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.25rem;
}
.cat-title span {
  display: block;
  font-family: "hiragino-kaku-gothic-pron", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 20px;
}
.cat-title-special span {
  position: relative;
  display: inline-block;
  margin: 0 1rem;
}
.cat-txt {
  font-size: 1rem;
}
/* サブタイトル（左線付き） */
.sub-title {
  display: flex;
  position: relative;
  align-items: center;
  padding-left: 1em;
  color: #810f00;
  font-weight: bold;
  font-family: "hiragino-kaku-gothic-pron", sans-serif;
  line-height: 1.4;
}
.sub-title::before {
  background: #810f00;
  height: 100%;
  width: 8px;
  content: "";
  display: block;
  position: absolute;
  left: 0;
}

/* 「もっと見る」ボタン */
.btnMore {
  font-weight: bolder;
  font-size: 1.5rem;
  color: #2d2929;
  font-family: "futura-pt", sans-serif;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
}

/* 画像ボタン（白枠付き） */
a.image-button {
  position: relative;
  display: inline-block;
  width: 570px; /* 任意サイズに調整可能 */
  max-width: 95%;
  border-radius: 8px;
  overflow: hidden;
}
a.image-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
a.image-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 6px); /* 枠線の太さ分だけ内側に縮める */
  height: calc(100% - 6px);
  margin: 3px; /* 枠線の太さ */
  border: 3px solid white; /* 白い枠線 */
  border-radius: 6px;
  pointer-events: none;
  z-index: 2;
}
a.image-button:hover img {
  transform: scale(1.05);
  filter: brightness(1.3); /* 明るさUP */
}

/*------------------------------------
 ヒーローセクション（各ページのMV）
------------------------------------*/
.hero-section {
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1920 / 657;
}
.hero-section.top {
  background: url(../images/top/mv.jpg);
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  aspect-ratio: 1920 / 658;
}
.hero-section.location {
  background: url(../images/location/mv.webp);
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1920 / 657;
}
.hero-section.quality {
  background: url(../images/quality/mv.webp);
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1920 / 657;
}
.hero-section.equipment {
  background: url(../images/equipment/mv.webp);
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1920 / 657;
}
.hero-section.landscape {
  background: url(../images/landscape/mv.webp);
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1920 / 657;
}
.hero-section.plan {
  background: url(../images/plan/mv.webp);
  position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1920 / 657;
}
/*------------------------------------
 レスポンシブ調整
------------------------------------*/
@media screen and (max-width: 991px) {
  .hero-section {
    background-position: top;
    background-size: cover;
    aspect-ratio: 750 / 750;
  }

  /* SP用背景画像 */
  .hero-section.top {
    background: url(../images/top//mvSP.webp);
    background-position: top;
    background-size: cover;
    aspect-ratio: 750 / 1000;
  }
  .hero-section.location {
    background-image: url(../images/location/mvSP.webp);
    background-position: top;
    background-size: cover;
    aspect-ratio: 750 / 750;
  }
  .hero-section.quality {
    background-image: url(../images/quality/mvSP.webp);
    background-position: top;
    background-size: cover;
    aspect-ratio: 750 / 750;
  }
  .hero-section.equipment {
    background-image: url(../images/equipment/mvSP.webp);
    background-position: top;
    background-size: cover;
    aspect-ratio: 750 / 750;
  }
  .hero-section.landscape {
    background-image: url(../images/landscape/mv.webp);
    background-position: top;
    background-size: cover;
    aspect-ratio: 750 / 750;
  }
  .hero-section.plan {
    background-image: url(../images/plan/mvSP.webp);
    background-position: top;
    background-size: cover;
    aspect-ratio: 750 / 750;
  }
}

@media screen and (max-width: 768px) {
  .mainVisual img,
  figure .mainVisual {
    object-fit: cover;
    height: 70vw;
  }
  .mb-5.pb-5 {
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .my-5.py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}
