body{
  background-color: #fff;
  color: #000;
  font-family: 'Kaisei HarunoUmi', serif;
  font-size: 15px;
  margin: 0 ;
}

.pages{
  padding: 0;
}

a{
  color: #000;
  transition: color 0.3s;
}

.tcenter{
  text-align: center;
}

.m_t60{
  margin-top: 60px;
}

.b-m90{
  margin-bottom: 90px;
}

.b-m20{
  margin-bottom: 20px;
}

.b-m30{
  margin-bottom: 30px;
}

.t-m30{
  margin-top: 30px;
}

.t-m70{
  margin-top: 70px;
}

.t-m100{
  margin-top: 100px;
}
.text_left{
  text-align: left;
}

.b_red{
  color: #8b1c21;
}

.sp,
.sp_se{
  display: none;
}

.pc{
  display: block;
}



/**** header ****/
header{
  position: relative;
}

header .header_yokisaya{
  position: absolute;
  z-index: 2;
  width: 100%;
}

header .header_yokisaya .menu{
  right: 50px;
  position: absolute;
  display: flex;
  top: 30px;
}

#logo{
  writing-mode: vertical-rl;
}

#logo a{
  color: #8b1c21;
  letter-spacing: 4px;
  font-size: 3rem;
}

header .header_yokisaya .menu nav{
  position: relative;
 width: auto;
  min-width: 0;
  inline-size: max-content;
  contain: layout;
}

header .header_yokisaya .menu nav ul{
  writing-mode: vertical-rl !important;
  -webkit-writing-mode: vertical-rl !important;

  /* ここが肝：論理幅が勝手に広がるのを固定する */
  inline-size: 146px !important;  /* ←一旦固定してズレが止まるか確認 */
  width: 146px !important;
  height: auto !important;

  white-space: nowrap !important;
}

header .header_yokisaya .menu nav ul li{
  margin-left: 1rem;
  margin-top: 1rem;
}

header .header_yokisaya .menu nav ul li a{
  color: #fff;
  font-size: 1.5rem;
}

header .header_yokisaya .menu nav ul li a:hover{
  color: #8b1c21;
}

@supports (-webkit-touch-callout: none) {
  header .header_yokisaya .menu nav ul{
    inline-size: max-content !important;
    width: auto !important;
    height: auto !important;
  }
}

/**** footer ****/
footer{
background-color: #8b1c21;
color: #fff;
}

footer .footer_yokisaya{
  padding: 10px;
  text-align: center;
}

.container {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  padding: 80px 0;
}

.container.under-non {
  padding: 80px 0 0;
}

/* section */
.bg_white{
  margin: 4rem 100px;
}

.bg_white_2 {
  margin: 8rem 100px;
}

.bg_washi{
  background-image: url(../img/bg_img001.jpg);
  background-size: cover;
}

.bg-gray {
  position: relative;
}

.bg-gray::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fafafa;
  z-index: -1;
}


/* top-page-links */
.top-page-links{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;               /* marginよりgapが安定 */
}

.top-page-links_item{
  width: min(520px, 48%);  /* 2カラム上限つき */
  display: flex;
  flex-direction: column;  /* a + p を縦に並べる */
      gap: 15px;
}

/* カード本体 */
.top-page-links_item > a{
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 画像枠（高さを作るのが重要） */
.top-page-links_item figure{
  position: relative;
  margin: 0;
  width: 100%;
  height: 230px;
  aspect-ratio: 16 / 10;   /* 好みで変更OK */
  background: #000;
  overflow: hidden;
}

/* 画像はabsoluteをやめて通常配置に */
.top-page-links_item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

/* タイポ修正：_item にする */
.top-page-links_item a:hover figure img{
  transform: scale(1.08);
  opacity: 0.7;
}

/* タイトルは figure 上に重ねる（top:-75px を卒業） */
.top-page-links_item h3{
  position: absolute;
  left: 0;
  bottom: 18px;
  margin: 0;
  padding: 12px 10px;
  background: rgba(255,255,255,0.85);
  width: 100%;
    text-align: center;
}

/* 説明文 */
.top-page-links_item p{
  margin: 12px 0 0;
}

/* SP */
@media (max-width: 768px){
  .top-page-links_item{
    width: 100%;
  }
}

/*  flex_02 */
.flex_02{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.flex_02 .table{
  width: 500px;
  margin-left: 20px;
}

table{
  width: 100%;
}

.table table td{
  border-bottom: #000 solid 1px;
  padding: 5px;
}

/******* product *******/

.product_list{
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.product_list .product_box{
  width: 23%;
  padding: 10px;
  margin: 10px 10px;
  text-align: center;
  box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product_list .product_box img{
  width: 100%;
}

.product_list::after{
  content:"";
  display: block;
  width:47%;
}

/*bxSlider*/
.bx-wrapper {
  box-shadow: none !important;
  border: none !important;
  left: 0;
  background-color: transparent;
  margin: 0 auto;
 }

 .bx-wrapper img{
  height: 100vh;
  width: 100%;
  object-fit: cover;
 }

 .product_slide .bx-wrapper{
  width: 40%;
 }

 .product_slide .bx-wrapper {
  box-shadow: 0 0 5px #ccc;
  border: 5px solid #fff;
  margin: 0 30px 10%;
 }

 .product_slide .bx-wrapper img{
  height: auto;
  width: 100%;
  object-fit: cover;
 }
 
 .bx-wrapper .bxslider_2 img{
  width: 100%;
  height: auto;
 }

 .basyouhu_fl {
  padding: 10px;
  background-color: #f5f5f5;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
 }

 .basyouhu_fl .box_p{
  width: 45%;
 }

.basyouhu_fl .red_p{
  color: #681414;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 30px;
}

.tittle_box{
  position: relative;
}

.main_tittle{
  background-color: #8b1c21;
  color: #fff;
  width: fit-content;
  padding: 5px 10px;
  text-align: center;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.main_tittle p{
  font-size: 1.3rem;
  margin: 0;
}



.taiken_box{
  background-color: #f5f5f5;
  margin-left: auto;
  margin-right: auto;
  padding: 30px;
  width: 70%;
  margin-bottom: 90px;
}

.box_center{
  margin-left: auto;
    margin-right: auto;
    width: 60%;
}

.box_center p .sub_tittle_span{
  color: #fff;
    background-color: #8b1c21;
    padding: 7px 10px;
    margin-right: 8px;
}

.tittle_box2 .tittle_b{
  position: relative;
    padding: 0.5rem 0 0.4rem;
    font-size: 1.5em;
    background-image: linear-gradient(90deg, white 0% 40%, black 40% 60%, white 60%);
    background-repeat: no-repeat;
    background-size: 35% 0.1rem;
    background-position: bottom;
}

.step .width_img,
.step_box {
  margin: 20px 15px;
}

.step_box{
  width: 45%;
}

.width_img{
  width: 30%;
}

.width_img img{
  width: 100%;
}

.sub_tittle{
  border-bottom: 1px solid;
  padding-bottom: 10px;
}

.map{
  width: 40%;
}

.top_img img{
  width: 100%;
}


.bg_img{
  position: relative;
  
}

.bg_img::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: url(../img/back_img_01.jpeg) no-repeat center top / cover;
}

.r_box {
  background-color: #ffffffe3;
    width: 100%;
    max-width: 700px;
    margin-left: auto;
    padding: 30px;
}

.big-title{
  font-size: 1rem;
  margin-bottom: 40px;
  font-weight: 700;
}
.big-title.bm-none {
  margin-bottom: unset;
}

.top_pro_box{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.top_pro_box figure{  
  width: 45%;
  margin: 10px;
}

.top_pro_box figure img{
  width: 100%;
}

.top_pro_box .right{
  width: 45%;
    margin: 10px;
}

.btn_01{
  text-align: center;
}

.btn_01 a{
  background-color: #8b1b21;
  color: #fff;
  padding: 10px 20px;
}

.product_slide p{
  width: 48%;
}

.tittle_001{
  text-align: left;
  color: #282828;
  margin-bottom: 2rem;
    border-bottom: 1px solid #282828;
}

.img_b{
  width: 45%;
}

.img_b img{
  width: 100%;
}

.basyouhu_fl div{
  margin: 15px;
}

.fadein{
  opacity: 0;
  transform: translate(0,0);
  transition: all 1.5s;
}

.fadein-left{
  transform: translate(-30px,0);
}
.fadein-right{
  transform: translate(30px,0);
}
.fadein-up{
  transform: translate(0,-30px);
}
.fadein-bottom{
  transform: translate(0,30px);
}
.scrollin{
opacity: 1 !important;
transform: translate(0, 0) !important;
}

.btn_s{
  text-align: center;
  margin-bottom: 30px;
}

.btn_s a{
  background: #8b1b21;
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: -1px 1px 10px 0px rgba(0, 0, 0, 0.25);
}

.btn_s a:hover{
  background: #fff;
  color: #8b1b21;
}

.btn_s.left {
  text-align: left;
}

.b-mp{
  margin-bottom: 85px;
}

.shop_btn{
    position: fixed;
    bottom: 3%;
    right: 1%;
}

.shop_btn a{
  background: #8b1b21;
    padding: 18px;
    border-radius: 30px;
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
  }

.shop_btn a svg{
  color: #fff;
}

/* スライダー */
.hero-slider {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-slider .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero-slider img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.title01{
  color: #8b1c21;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.3rem;
}

.title-line {
  position: relative;
  text-align: center;
  padding-bottom: 8px;
  margin-bottom: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #6b0f0f; /* 赤茶系。不要なら削除 */
}

.title-line::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;      /* ラインの長さ */
  height: 1px;      /* ラインの太さ */
  background: #6b0f0f;
}


.title01.t-left {
  text-align: left;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 60px;
  align-items: center;
}

/* 画像エリア */
.feature__media {
  display: grid;
  grid-template-columns: 225px 225px; /* ← ここだけ触る */
  column-gap: 24px;
}

/* 右：小画像2枚 */
.feature__thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr; /* 高さは均等 */
  row-gap: 16px;
}

/* 小画像 */
.feature__thumb {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形 */
  overflow: hidden;
  background: #f2f2f2;
}

.feature__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左：大画像（右2枚分の高さに自動で揃う） */
.feature__main {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f2f2f2;
}

.feature__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキスト */
.feature__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.feature__text {
  line-height: 1.9;
}

/* =========================
   Layout
   ========================= */

.process-block__title{
  margin-bottom: 30px;
  font-size: 1.3rem;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid #777;
}

.process-block__rule{
  height: 1px;
  background: #777;
  margin-top: 10px;
}

/* 2カラム（左文章 / 右スライダー） */
.process-block__body{
  display: grid;
  grid-template-columns: 1fr 520px; /* 右を固定寄りに */
  column-gap: 60px;
  align-items: start;
  margin-top: 18px;
}

.process-block__text p{
  margin: 0;
  line-height: 2;
}

/* =========================
   Swiper
   ========================= */

.process-block__slider .swiper{
  width: 100%;
}

.process-block__slider .swiper-slide{
  /* 画像を中央に、崩れにくく */
  display: flex;
  justify-content: center;
  align-items: center;
}

.process-block__slider img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ドット位置を下に余白つけて配置 */
.process-block__slider .swiper-pagination{
  position: static;    /* 下に流す */
  margin-top: 12px;
  text-align: center;
}

/* Swiperのデフォルト色が合わない場合だけ調整 */
.process-block__slider .swiper-pagination-bullet{
  opacity: 1;
  background: #999;
}

.process-block__slider .swiper-pagination-bullet-active{
  background: #333;
}

/* Swiper本体の高さを決める */
.process-swiper {
  width: 100%;
}

/* 各スライド */
.process-swiper .swiper-slide {
  aspect-ratio: 4 / 3;   /* ← 好きな比率に変更 */
  overflow: hidden;
  display: flex;
}

/* 画像を枠いっぱいに */
.process-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* はみ出す分はトリミング */
  display: block;
}

.sub-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.content-box + .content-box {
  margin-top: 50px;
}

/* iPhone × Safari 限定 */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-width: 1024px) {
    header .header_yokisaya .menu nav ul{
      position: absolute;
      top: 0;
      right: 0;
    }
  }
}