@charset "UTF-8";

/* --- 共通設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- 魔法のhtml設定 --- */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  /* 1920pxで16pxになる設定 */
  font-size: 0.833333vw; 
}

@media (min-width: 1920px) {
  html { font-size: 16px; } /* 最大値ブレーキ */
}

@media (max-width: 767px) {
  html { font-size: 16px; } /* スマホ固定 */
}

/* --- 各要素の書き換え（px ÷ 16 = rem） --- */
body {
  margin: 0;
}

h1, h2, h3, p, span {
  letter-spacing: 2px;
  line-height: 1.5;
}


li {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
}

a:hover {
  opacity: .8;
}

.red {
  color: #ff0000;
}

/* --- コンテナ設定 --- */
.w-container {
  width: 96%;
  margin-inline: 2%;
}

img {
  max-width: 100%;
  height: 100%;
  border-style: none;
}

/* 消してる要素 */
.header {
  display: none;
}

.mobile-footer {
  display: none;
}

/* フェードインさせたい要素にこのクラスを付ける */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  will-change: opacity, transform;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ヘッダー */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eee; 
}

body.home .site-header {
  background-color: transparent;
  border-bottom: none;
}

#header {
  width: 100%;
  height: auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
}

.header-box {
  display: flex;
  justify-content: space-between;
}

.header-nav {
  display: flex;
  gap: min(4.19vw, 44px);
}

.header-nav nav ul {
  display: flex;
  gap: min(4.57vw, 48px);
}

.nav-box {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
}

.header-contact a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: min(1.52vw, 16px);
}

.header-logo {
  width: min(30.67vw, 322px);
  height: auto;
}

.header-nav ul li a, .header-contact a p {
  font-size: min(1.71vw, 18px);
}

#header .header-nav nav ul li a {
    color: #333333;
}

#header .header-tel a p {
  font-size: min(2.86vw, 30px);
  color: #333333;
}

body.home #header .header-nav nav ul li a {
    color: #ffffff;
}

/* トップページの電話番号（白） */
body.home #header .header-tel p {
    color: #ffffff;
}

.header-tel a {
  display: flex;
  align-items: center;
  gap: min(0.76vw, 8px);
  text-decoration: none;
}

body.home .header-tel a::before {
  background-image: url("../image/tel.png");
}

.header-tel a::before {
  content: "";
  width: min(2.1vw, 22px);
  height: min(2.1vw, 22px);
  background-image: url("../image/tel2.png"); /* アップロードされた黒アイコン */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  display: inline-block;
  vertical-align: middle; /* テキストとの高さを合わせる */
  margin-right: 5px;      /* アイコンと数字の間の余白 */
}

.header-contact a {
  width: min(14vw, 147px);
  height: 100%;
  background-color: #fadf4c;
}

.header-img1 {
  width: min(2.95vw, 31px);
  height: auto;
}

.header-nav nav ul li a {
  position: relative;
  text-decoration: none;
  display: inline-block;
  /* 文字の基点から下線の位置まで8pxの余白を作る */
  padding-bottom: min(0.66vw, 8px); 
}

/* 下線の設定 */
.header-nav nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;           /* padding-bottomの最下部に配置 */
  left: 50%;
  width: 0;
  height: min(0.33vw, 4px);        /* 線の太さ */
  background-color: #fadf4c;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* ホバー時に中央から広がる */
.header-nav nav ul li a:hover::after {
  width: 100%;
}

/* トップ */
.top-v {
  position: relative; /* 子要素の基準になる */
  width: 100%;
  height: 100vh; /* 高さはカンプに合わせて調整してください */
  overflow: hidden;
}

.main-slider {
  position: absolute; /* 親のtop-vいっぱいに広げる */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* 最初は全員透明 */
  transition: opacity 2s ease-in-out; /* 2秒かけてふわっと */
}

.slide.active {
  opacity: 1; /* activeクラスがついた画像だけ見える */
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-v-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  /* 念のため、文字以外をクリックしてもスライダーが動くように設定 */
  pointer-events: none; 
}

/* タイトル（h1）は左上や真ん中など、元の位置を維持したい場合 */
.top-title {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 10;
  width: 100%;
}

.top-title h1 {
  position: relative;
  display: inline-block; /* 文字幅に合わせる（線との距離を一定にするため） */
  font-size: min(6.67vw, 80px);
  line-height: 1.5;
  margin: 0;
}

/* 1行目の左側に配置する線 */
.top-title h1::before {
  content: "";
  position: absolute;
  
  /* 線のサイズ */
  width: clamp(0px, calc(10vw - 40px), 134px);  /* 線の長さ（お好みで調整） */
  height: 3px;   /* 線の太さ */
  background-color: #fff;

  /* 配置：h1の左側に突き出す */
  right: calc(100% + min(1.67vw, 20px)); /* h1の左端から20px離した位置 */
  
  /* 垂直位置：1行目の中心に合わせる */
  /* line-height 1.5 の場合、1行目の中心は全体の高さの「1/3」付近になります */
  top: 28%; 
  transform: translateY(-50%);
}

.top-title p {
  font-size: min(3.75vw, 45px);
} 

/* ニュース部分だけを右下に固定 */
.top-news {
  /* --- 元々の位置・サイズ・レイアウトを完全に維持 --- */
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  width: min(93.33vw, 1120px);
  height: min(9.17vw, 110px);
  pointer-events: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 min(2.75vw, 33px) 0 min(6.5vw, 78px);

  /* --- ここでドロップシャドウをかける --- */
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
  
  /* background-color と clip-path はここからは消します（下に移します） */
}

/* 擬似要素を使って、中身（文字）に影響を与えず背景だけを作る */
.top-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  /* 切り抜きをここで行うことで、影が消えるのを防ぎます */
  clip-path: polygon(min(5.83vw, 70px) 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: -1; /* 文字（News）の後ろに配置 */
}



/* 枠の中を整列させるためのインナー */
.top-news-inner {
  display: flex;
  align-items: center; /* 垂直方向の中央 */
  height: 100%;
  padding: 0 40px; /* 左右の余白は適宜調整してください */
}

/* タイトル部分 */
.top-news-title {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  margin-right: min(6.58vw, 79px); /* 投稿との間の距離 */
}

.top-news-title::after {
  content: "";
  position: absolute;
  /* タイトルの右端から43pxの位置に固定 */
  right: calc(min(3.58vw, 43px) * -1); 
  top: 50%;
  transform: translateY(-50%);
  
  /* 線のサイズ */
  width: 1px;
  height: min(2.75vw, 33px);
  background-color: #fff;
}

.top-news-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.top-news-title h2 {
  font-size: min(3.33vw, 40px);
  color: #fff;
  margin: 0;
}

.top-news-title span {
  font-size: min(1.5vw, 18px);
  color: #fff;
}

/* 最新記事1件のリンク */
.latest-news-link {
  display: flex;
  gap: min(1.67vw, 20px);
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  transition: opacity 0.3s;
}

.latest-news-link:hover {
  opacity: 0.7;
}

.news-date {
  font-size: min(1.5vw, 18px);
  /* font-weight: bold; */
}

.news-text {
  /* 長すぎるタイトルを1行で収める設定 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: min(1.5vw, 18px);
  max-width: 600px; /* タイトルの最大幅 */
}

.news-link img {
  width: min(2.08vw, 25px);
  height: auto;
}

.news-link a p {
  font-size: min(1.5vw, 18px);
  color: #fff;
}

.news-link {
  display: flex;
  gap: min(1.67vw, 20px);
}

.p1-a {
  background-color: #000;
}

.p1-a-container {
  padding: min(3.53vw, 67px) min(7.74vw, 147px) min(6.05vw, 115px) 0;
}

.p1-a-box {
  display: flex;
  gap: min(3.62vw, 47px);
}

.p1-a-text {
  width: min(62.77vw, 816px);
}

.p1-a-img {
  width: min(48.42vw, 920px);
  height: auto;
}

.p1-a-h2 {
  width: 100%;
  display: flex;
  align-items: baseline;
  color: #fff;
  margin-top: min(0.77vw, 10px);
  margin-bottom: min(6.92vw, 90px);
}

.p1-a-h2 h2 {
  font-size: min(3.85vw, 50px);
  font-weight: 500;
  letter-spacing: 2px;
}

.p1-a-h2 p {
  font-size: min(1.85vw, 24px);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  position: relative;
  margin-left: min(1.54vw, 20px);
  margin-right: min(2.85vw, 37px);
}

.p1-a-h2::after {
  content: "";
  height: 1px;        /* 線の太さ */
  background-color: #fff;
  flex-grow: 1;       /* 残りの幅をすべて線にする */
  
  /* 垂直方向の中央に配置するための調整 */
  /* align-items: baseline のままだと線が下に沈むため、位置を微調整します */
  align-self: center; 
  margin-top: 0.2em;  /* SHOPと店舗案内の文字の高さのバランスを見て微調整 */
}

.p1-a-p {
  color: #fff;
}

.p1-a-p p:first-child {
  font-size: min(1.85vw, 24px);
  margin-bottom: min(3.85vw, 50px);
}

.p1-a-p p:last-child {
  font-size: min(1.38vw, 18px);
}

.p1-a .p1-link {
  margin-top: min(4.62vw, 60px);
}

.p1-link {
  text-align: center;
}

.p1-link a {
  display: inline-block;
  background-color: #fadf4c;
  padding: min(1.69vw, 22px) min(1.92vw, 25px);
}

.p1-link span {
  font-size: min(1.85vw, 24px);
  font-weight: 500;
  letter-spacing: 2px;
  margin-right: min(6.92vw, 90px);
}

.p1-link a img {
  width: min(5.15vw, 67px);
  height: min(1.31vw, 17px);
}

.p1-b {
  background-color: #000;
  background-image: url(../image/top-back4.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.p1-b-container {
  padding: min(5.26vw, 100px) min(5.74vw, 109px) min(10.95vw, 208px);
}

.p1-b-title {
  text-align: center;
  margin-bottom: min(2.89vw, 55px);
}

.p1-b-title h2 {
  display: flex;
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center;
  gap: min(2.11vw, 40px);         /* 文字と線の間の余白（お好みで調整） */
  font-size: min(2.63vw, 50px);
  font-weight: 500;
  color: #fff;
}

.p1-b-title h2::before,
.p1-b-title h2::after {
  content: "";
  height: 1px;    /* 線の太さ */
  background-color: #fff;
  flex-grow: 1;   /* 利用可能なスペースいっぱいに線を伸ばす */
}

.p1-b-title p {
  font-size: min(1.26vw, 24px);
  color: #fff;
}

.p1-b-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.p1-b-item {
  position: relative;
  padding-right: min(0.73vw, 14px);
  padding-bottom: min(1.68vw, 32px);
}

.p1-b-item .p1-link a {
  /* 以前設定したpadding等をここで1900px基準に上書き */
  padding: min(1.16vw, 22px) min(1.32vw, 25px);
}

.p1-b-item .p1-link span {
  /* 24/19=1.26vw, 90/19=4.74vw */
  font-size: min(1.26vw, 24px);
  margin-right: min(4.74vw, 90px);
}

.p1-b-item .p1-link img {
  /* 67/19=3.53vw */
  width: min(3.53vw, 67px);
  height: min(0.89vw, 17px);
}

.p1-b-img {
  width: min(27.11vw, 515px);
  height: auto;
}

.p1-b-item .p1-link {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
}

.p1-c {
  position: relative;
  background-color: #000;
  overflow: hidden;
}

/* 背景画像専用のレイヤー */
.p1-c::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../image/top-back5.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  
  /* ここで透明度を調整 (0.0〜1.0) */
  opacity: 0.3; 
  
  z-index: 0; /* 一番背面に配置 */
}

.p1-c-container {
  position: relative;
  z-index: 1;
  padding: min(10vw, 190px) 0 min(9.21vw, 175px) min(5.26vw, 100px);
}

.p1-c-title {
  text-align: center;
  margin-top: min(2.11vw, 40px);
  margin-bottom: min(7.37vw, 140px);
}

.p1-c-title h2 {
  font-size: min(2.63vw, 50px);
  font-weight: 500;
  color: #fff;
}

.p1-c-title p {
  font-size: min(1.26vw, 24px);
  color: #fff;
}

.p1-c-box {
  display: flex;
  justify-content: space-between;
  min-width: 0;
}

.p1-c-slider-viewport {
  width: min(71.58vw, 1360px);
  overflow: hidden;
  flex-shrink: 1;
  margin-right: max(-2.63vw, -50px);
}

.p1-c-img-box {
  width: max-content;
  display: flex;
}

.p1-c .inst #sbi_images {
  display: flex !important;
  gap: 26px !important;
  width: max-content !important;
  /* 80秒〜120秒くらいが非常にゆっくりです */
  animation: p1-c-loop 100s linear infinite;
}

.p1-c .inst .sbi_item {
  width: 450px !important;
  height: 600px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important; /* 余計なマージンを排除 */
}

@keyframes p1-c-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 全体（3セット分）の3分の1だけ動かす */
    /* これにより、pxで計算しなくても理論上100%繋がります */
    transform: translateX(calc(-100% / 3 - (26px * 2 / 3)));
  }
}

/* ホバーした時に止める（必要であれば） */
.p1-c .inst #sbi_images:hover {
  animation-play-state: paused;
}

.p1-c .sb_instagram_header {
  display: none;
}


/* インスタ */
.p1-c-img-box .inst {
  display: flex !important;
}

.p1-c-img-box #sb_instagram {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.p1-c-img-box #sb_instagram #sbi_images {
  display: flex !important;
  flex-direction: row !important; /* 強制横並び */
  gap: min(1.37vw, 26px) !important; /* スライダーの隙間設定と同期 */
  padding: 0 !important;
  margin: 0 !important;
}

/* 各画像のサイズをスライダー専用サイズに固定 */
.p1-c-img-box #sb_instagram .sbi_item {
  width: min(23.68vw, 450px) !important;
  height: min(31.58vw, 600px) !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

/* 画像を枠いっぱいに表示 */
.p1-c-img-box #sb_instagram .sbi_photo {
  height: 100% !important;
  object-fit: cover !important;
}

.p1-d {
  background-color: #000;
}

.p1-d-container {
  width: min(91.28vw, 1278px);
  padding: min(7.14vw, 100px) 0 min(14.28vw, 200px);
  margin: 0 auto;
}

.p1-d .p2-title {
  color: #fff;
}

.p1-d .p2-title h2::before, 
.p1-d .p2-title h2::after {
  background-color: #fff;
}

.p1-d .sbi_feedtheme_header_text {
  color: #fff;
}


.top .access {
  position: relative;
  background-image: url(../image/top-back6.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.top .access-container {
  padding-top: min(17.33vw, 312px);
}

.access-link-box {
  position: absolute;
  top: max(-1.33vw, -24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.access-link-box a {
  display: block;
  background-color: #fadf4c;
  padding-top: min(0.94vw, 17px);
  padding-bottom: min(0.94vw, 17px);
}

.access-link {
  width: min(42.22vw, 760px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: min(2.77vw, 50px) min(2.05vw, 37px) min(2.77vw, 50px) min(10vw, 180px);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  box-sizing: border-box;
}

.access-link h2 {
  font-size: min(2.77vw, 50px);
  margin-right: min(2.22vw, 40px);
}

.access-link p {
  font-size: min(1.33vw, 24px);
}

.access-link img {
  width: min(3.72vw, 67px);
  height: min(0.94vw, 17px);
  margin-left: auto;
}

/* 会社案内 */
.company .sub-v {
  background-image: url(../image/p2-back1.png);
}

.sub-v {
  width: 100%;
  height: min(37.24vw, 476px);
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
}

.sub-v-title h1 {
  position: absolute;
  top: 49.37%;
  left: 25.52%;
  z-index: 10;
  font-size: min(5.47vw, 70px);
  font-weight: bold;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.sub-v-title h1::before {
  content: "";
  position: absolute;
  
  /* 文字の左端から「線の長さ(134px) + 隙間(34px)」分だけ左に配置 */
  left: calc(min(13.14vw, 168px) * -1);
  
  /* 垂直中央に配置 */
  top: 50%;
  transform: translateY(-50%);
  
  /* 線のサイズ */
  width: min(10.48vw, 134px);
  height: min(0.31vw, 4px);
  background-color: #fff;
}

.sub-v-title p {
  position: absolute;
  top: 53.57%;
  left: 26.88%;
  z-index: 9;
  font-size: min(9.38vw, 120px);
  font-weight: bold;
  color: #fff;
  line-height: 1;
  opacity: .3;
}

.p2-a {
  max-width: min(91.28vw, 1278px);
  margin-left: auto;
  margin-right: auto;
}

.p2-a-container {
  padding-top: min(6.42vw, 90px);
  padding-bottom: min(12.14vw, 170px);
}

.p2-title {
  text-align: center;
}

.p2-title h2 {
  display: flex;
  align-items: center;  /* 垂直中央 */
  justify-content: center;
  text-align: center;
  font-size: min(3.57vw, 50px);
  margin-bottom: min(0.71vw, 10px);
  /* 画面端まで線を伸ばすために、h2自体が横いっぱいに広がるようにする */
  width: 100%;
}

/* 左右の線の共通設定 */
.p2-title h2::before,
.p2-title h2::after {
  content: "";
  height: 1px;        /* 線の太さ */
  background-color: #000; /* 線の色 */
  flex-grow: 1;       /* 左右の余ったスペースをすべて埋める（端まで伸ばす） */
}

/* テキストと線の間の隙間を26pxに設定 */
.p2-title h2::before {
  margin-right: min(1.85vw, 26px);
}

.p2-title h2::after {
  margin-left: min(1.85vw, 26px);
}

.p2-title p {
  font-size: min(1.71vw, 24px)
}

.p2-a-box {
  display: flex;
  margin-top: min(3.21vw, 45px);
}

.p2-a-text {
  width: 50%;
  padding-left: min(2.57vw, 36px);
  padding-right: min(2.57vw, 36px);
  box-sizing: border-box;
}

.p2-a-text p {
  font-size: clamp(10px, 1.14vw, 16px);
  line-height: 2em;
}

.p2-a-img {
  width: 50%;
}

.p2-b {
  max-width: min(91.28vw, 1278px);
  margin-left: auto;
  margin-right: auto;
}

.p2-b-p {
  text-align: center;
  margin-top: min(4.28vw, 60px);
  margin-bottom: min(4.28vw, 60px);
}

.p2-b-p p {
  font-size: clamp(10px, 1.14vw, 16px);
}

.p2-b-img-box {
  display: grid;
  /* 4列で均等に分割 */
  grid-template-columns: repeat(4, 1fr); 
  gap: min(2.85vw, 40px) min(1.42vw, 20px);
  padding-left: min(2.5vw, 35px);
  padding-right: min(2.5vw, 35px);
  box-sizing: border-box;
  margin-top: min(3.21vw, 45px);
}

/* 基本のアイテム設定（25番目までもこれに含まれます） */
.p2-b-item {
  height: min(8.57vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  box-sizing: border-box;
  padding: min(1.78vw, 25px);
}

.p2-b-img-box .p2-b-item:nth-child(19),
.p2-b-img-box .p2-b-item:nth-child(26) {
  /* 10 / 14 = 0.71vw */
  padding: min(0.71vw, 10px);
}

/* 26番目：2つ分の幅を占有し、新しい行の最初から配置 */
.p2-b-item:nth-child(25) {
  grid-column: 1 / 3; /* 1列目から3列目の手前まで（=2マス分） */
}

/* 27番目：3番目の列に配置 */
.p2-b-item:nth-child(26) {
  grid-column: 3 / 4; /* 3列目に固定 */
}

.p2-b-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p2-c {
  max-width: min(91.28vw, 1278px);
  margin-left: auto;
  margin-right: auto;
}

.p2-c-container {
  padding-top: min(13.57vw, 190px);
  padding-bottom: min(22.85vw, 320px);
}

.p2-c-table {
  max-width: min(56.66vw, 680px);
  margin: min(6.66vw, 80px) auto min(10.58vw, 127px);
}

.p2-c-table table {
  width: 100%;
  border-collapse: collapse;
}

.p2-c-table tr th, 
.p2-c-table tr td {
  font-size: min(1.5vw, 18px);
  font-weight: 500;
  padding-top: min(2.08vw, 25px);
  padding-bottom: min(2.08vw, 25px);
  border-bottom: 1px solid #000;
}

.p2-c-table tr th {
  text-align: left;
  width: 38%;
}

.p2-c-table tr td {
  width: 62%;
}

.p2-c-map {
  text-align: center;
}

.p2-c-map p {
  font-size: min(1.5vw, 18px);
  display: flex; 
  justify-content: center;
  align-items: center;
}

.p2-c-map p::before {
  content: "";
  display: inline-block;
  width: min(1.58vw, 19px);
  height: min(2.25vw, 27px);
  background-image: url("../image/p2-img28.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: min(1.08vw, 13px);
  flex-shrink: 0;
}

.p2-c-map iframe {
  width: min(70.28vw, 984px);
  height: min(35.28vw, 494px);
  border: 0;
  max-width: 100%;
}

/* 製品紹介 */
.custom .sub-v, .price .sub-v, .contact .sub-v, .single .sub-v, .gallaery .sub-v, .news .sub-v {
  background-image: url(../image/p3-back1.png);
}

.p3-a {
  background-color: #000;
  background-image: url(../image/top-back4.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.p3-a-container {
  max-width: min(91.28vw, 1278px);
  padding-top: min(6.07vw, 85px);
  padding-bottom: min(13.57vw, 190px);
  margin-left: auto;
  margin-right: auto;
}

.p3-a .p2-title {
  color: #fff;
}

.p3-a .p3-title {
  padding-top: min(11.42vw, 160px);
}

.p3-a .p2-title h2::before,
.p3-a .p2-title h2::after {
  background-color: #fff; /* 線の色 */
}

.p3-a-link-box {
  display: flex;
  justify-content: space-between;
  margin-top: min(5.71vw, 80px);
}

.p3-a-link a {
  position: relative;
  width: min(26.57vw, 372px);
  height: min(4.85vw, 68px);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fadf4c;
  text-decoration: none;
  color: #000;
}

.p3-a-span {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 文字を絶対に改行させない */
  white-space: nowrap; 
}

.p3-a-span span:first-child {
  font-size: min(1.42vw, 20px);
  line-height: 1.2;
}

.p3-a-span span:last-child {
  font-size: min(1.71vw, 24px);
  line-height: 1.2;
}

.p3-a-link a::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: calc(50% + min(9.28vw, 130px));
  width: min(1.42vw, 20px);
  height: min(0.78vw, 11px);
  background-image: url("../image/sita.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p3-title {
  text-align: center;
}

.p3-title h2 {
  font-size: min(2.14vw, 30px);
  color: #fff;
}

.p3-title h3 {
  font-size: min(2.14vw, 30px);
  color: #fff;
}

.p3-title p {
  font-size: min(2.85vw, 40px);
  color: #fff;
  padding-bottom: min(1.85vw, 26px);
  border-bottom: 1px solid #fff;
}

.p3-a-box {
  display: flex;
  justify-content: space-between;
  margin-top: min(11.42vw, 160px);
}

.p3-a-text {
  width: 50%;
}

.p3-a-text h3 {
  font-size: min(2.14vw, 30px);
  font-weight: 500;
  color: #fff;
  padding-left: min(0.57vw, 8px);
  border-left: min(0.92vw, 13px) solid #fadf4c;
}

.p3-a-text p {
  font-size: clamp(12px, 1.14vw, 16px);
  color: #fff;
  line-height: 2em;
  padding-left: min(2.14vw, 30px);
  padding-right: min(2.14vw, 30px);
}

.p3-a-text p:first-of-type {
  margin-top: min(3.85vw, 54px);
  margin-bottom: min(2.14vw, 30px);
}

.p3-a-img {
  width: 50%;
  text-align: right;
}

.p3-a-img img {
  width: min(40vw, 560px);
  height: auto;
}

.p3-b {
  background-color: #262a39;
  background-image: url(../image/top-back4.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.p3-b-container {
  max-width: min(91.29vw, 1278px);
  padding-top: min(7.14vw, 100px);
  padding-bottom: min(15.71vw, 220px);
  margin-left: auto;
  margin-right: auto;
}

.p3-b-title {
  margin-top: min(5vw, 70px);
  margin-bottom: min(2.64vw, 37px);
}

.p3-b-title h3 {
  font-size: min(2.14vw, 30px);
  font-weight: 500;
  color: #fff;
  padding-left: min(0.57vw, 8px);
  border-left: min(0.93vw, 13px) solid #fadf4c;
}

.p3-b-item {
  display: flex;
  justify-content: space-between;
}

.p3-b-img1 {
  width: 50%;
  padding-right: min(5.71vw, 80px);
}

.p3-b-img1 img, .p3-b-img4 img {
  max-width: min(43.82vw, 560px);
  width: 100%;
  height: auto;
}

.p3-b-text-title {
  margin-left: min(1.43vw, 20px);
  margin-bottom: min(2.14vw, 30px);
}

.p3-b-text-box {
  width: 50%;
}

.p3-b-text-title p {
  font-size: min(1.71vw, 24px);
  font-weight: bold;
  color: #fadf4c;
  padding-top: min(1.07vw, 15px);
  padding-bottom: min(1.07vw, 15px);
  border-bottom: 1px solid #fadf4c;
}

.p3-b-text-p {
  margin-left: min(1.43vw, 20px);
  margin-bottom: min(8.57vw, 120px);
}

.p3-b-text-p p {
  font-size: clamp(12px, 1.25vw, 16px);
  color: #fff;
  line-height: 2em;
}

.p3-b-img2 {
  display: flex;
}

.p3-b-img2 img {
  width: 50%;
  height: auto;
}

.p3-b .p3-b-item2 {
  margin-top: min(7.14vw, 100px);
}

.p3-b-item2 .p3-b-text-p {
  margin-bottom: min(2.86vw, 40px);
}

.p3-b-img3 {
  width: 100%;
  height: auto;
}

.p3-b-img4 {
  width: 50%;
  margin-left: min(5.71vw, 80px);
  margin-top: min(7.14vw, 100px);
}

.p3-c {
  background-color: #000;
  background-image: url(../image/top-back4.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.p3-c-container {
  max-width: min(91.29vw, 1278px);
  padding-top: min(15.71vw, 220px);
  padding-bottom: min(38.93vw, 545px);
  margin-left: auto;
  margin-right: auto;
}

.p3-c-text-title {
  margin-top: min(4.79vw, 67px);
}

.p3-c-text-title h3 {
  font-size: min(2.14vw, 30px);
  font-weight: 500;
  color: #fff;
  padding-left: min(0.57vw, 8px);
  border-left: min(0.93vw, 13px) solid #fadf4c;
}

.p3-c-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.p3-c-p {
  margin-left: min(7.14vw, 100px);
  margin-bottom: min(4.29vw, 60px);
}

.p3-c-p p {
  font-size: min(2.14vw, 30px);
  color: #fff;
}

.p3-c-img img {
  width: min(37.36vw, 523px);
  height: auto;
}

.p3-c-img2 img {
  width: min(47.14vw, 660px);
  height: auto;
}

.p3-c .p1-link {
  margin-top: min(4.86vw, 68px);
}

/* 料金表 */
.p4-a-container {
  max-width: min(91.29vw, 1278px);
  padding-top: min(6.79vw, 95px);
  padding-bottom: min(17.14vw, 240px);
  margin-left: auto;
  margin-right: auto;
}

.price-table-container {
  width: min(71.43vw, 1000px);
  margin-top: min(4.64vw, 65px);
  margin-left: auto;
  margin-right: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table-container tr td {
  font-size: clamp(12px, 1.14vw, 16px);
  line-height: 1.5em;
  padding-top: min(1.43vw, 20px);
  padding-bottom: min(1.43vw, 20px);
  border-bottom: 1px solid #000;
}

.price-table tr td:first-child {
  text-align: left;
  vertical-align: top;
  padding-left: min(0.71vw, 10px);
}

.price-table tr td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-right: min(0.71vw, 10px);
}

.p4-a-p {
  margin-top: min(3.21vw, 45px);
}

.p4-a-p p {
  font-size: clamp(12px, 1.14vw, 16px);
  margin-bottom: 0.5em;
}

.p4-b-container {
  max-width: min(91.29vw, 1278px);
  padding-bottom: min(35.71vw, 500px);
  margin-left: auto;
  margin-right: auto;
}

.p4-b .p2-title {
  margin-bottom: min(6.29vw, 88px);
}

.p4-b .p2-title h2::before {
  margin-right: min(7.14vw, 100px);
}

.p4-b .p2-title h2::after {
  margin-left: min(7.14vw, 100px);
}

.p4-b-text {
  display: flex;
  align-items: center;
  position: relative;
}

.p4-b-span {
  width: min(6.43vw, 90px);
  height: min(6.43vw, 90px);
  background-color: #fadf4c;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: min(2.43vw, 34px);
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.p4-b-span span:first-child {
  font-size: min(1.43vw, 20px);
  line-height: 1;
}

.p4-b-span span:last-child {
  font-size: min(2.14vw, 30px);
  line-height: 1;
}

.p4-b-p {
  background-color: #262a39;
  color: #fff;
  padding: min(1.07vw, 15px) min(4.29vw, 60px) min(1.07vw, 15px) min(1.07vw, 15px);
  margin-left: calc(min(3.21vw, 45px) * -1);
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.p4-b-p p {
  margin: 0;
  font-size: clamp(12px, 1.29vw, 18px);
}

.p4-b-img {
  text-align: center;
  margin-top: min(1.07vw, 15px);
  margin-bottom: min(1.07vw, 15px);
}

.p4-b-img img {
  width: min(4.21vw, 59px);
  height: min(2.36vw, 33px);
}

/* お問い合わせ */
.p5-a-container {
  max-width: min(91.29vw, 1278px);
  padding-top: min(7.14vw, 100px);
  padding-bottom: min(7.14vw, 100px);
  margin-left: auto;
  margin-right: auto;
}

.p5-a .p2-title h2::before {
  margin-right: min(7.14vw, 100px);
}

.p5-a .p2-title h2::after {
  margin-left: min(7.14vw, 100px);
}

.p5-a-item {
padding-left: min(5vw, 100px);
  padding-right: min(3.57vw, 50px);
  margin-top: min(7.14vw, 100px);
}

.p5-a-item p {
  font-size: clamp(12px, 1.14vw, 16px);
}

.p5-a-p2 {
  margin-top: min(2.5vw, 35px);
  margin-bottom: min(2.5vw, 35px);
}

.p5-a-p4 {
  margin-top: min(2.5vw, 35px);
}

.p5-a-p2 h3 span,
.p5-a-p2 p span,
.p5-a-p3 p span {
  display: inline;
  border-bottom: 1px solid #262a39;
  line-height: 1;
}

.p5-a-p2 p,
.p5-a-p3 p {
  margin-bottom: min(0.36vw, 5px);
}

.p5-a-p2 h3 {
  font-size: clamp(15px, 1.43vw, 20px);
  font-weight: bold;
  margin-bottom: min(0.36vw, 5px);
}

.p5-a-p4 .p5-a-tel {
  font-size: clamp(15px, 1.71vw, 24px);
  font-weight: bold;
}

.p5-a-p4 .p5-a-tel span {
  font-size: clamp(12px, 1.14vw, 16px);
}

.p5-b {
  background-color: #262a39;
}

.p5-c-container {
  max-width: min(64.17vw, 770px);
  margin: 0 auto;
  padding: min(11.67vw, 140px) 0 min(27.5vw, 330px);
}

.p5-form-row p {
  font-size: clamp(14px, 1.5vw, 18px);
  color: #fff;
  font-weight: 500;
}

.p5-form-row {
  display: flex;
  border-bottom: 1px solid #fff;
  margin: 0;
  padding: 0;
}

.p5-form-container .p5-form-row:last-of-type {
  border-bottom: none;
}

.p5-form-row.align-top {
  align-items: stretch;
}

.p5-form-row dt {
  width: min(26.08vw, 313px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: min(1.67vw, 20px) min(0.83vw, 10px) min(2.92vw, 35px);
  font-weight: bold;
  font-size: clamp(12px, 1.33vw, 16px);
  box-sizing: border-box;
  border-right: 1px solid #ffffff;
}

.p5-b .align-top dt {
  padding-top: min(2.83vw, 34px);
}

.p5-form-row dt .required {
  color: #ff4d4d;
  font-size: clamp(12px, 1.33vw, 16px);
  margin-left: min(1.25vw, 15px);
  font-weight: 500;
}

.p5-form-row dd {
  width: min(38.08vw, 457px);
  margin: 0;
  padding: min(1.67vw, 20px) min(2.33vw, 28px);
  box-sizing: border-box;
  flex: none;
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.p5-c-container input[type="text"],
.p5-c-container input[type="tel"],
.p5-c-container input[type="email"],
.p5-c-container textarea {
  width: 100%;
  padding: min(0.83vw, 10px);
  border: 1px solid #ccc;
  border-radius: 0;
  font-size: 16px;
  background-color: #fff;
  box-sizing: border-box;
}

.p5-form-btn {
  text-align: center;
  margin-top: min(13.33vw, 160px);
}

.wpcf7-submit {
  width: min(24.5vw, 294px);
  padding: min(2.08vw, 25px) 0;
  background-color: #fadf4c;
  color: #000;
  border: none;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
}

.wpcf7-spinner {
  display: none;
}

/* 施工実績 */
.gallaery .sub-v-title p {
  font-size: min(8.57vw, 120px);
}

.p6-a-container {
  width: min(91.28vw, 1278px);
  padding-top: min(7.14vw, 100px);
  padding-bottom: min(46.42vw, 650px);
  margin-left: auto;
  margin-right: auto;
}

.p6-a .p2-title {
  margin-bottom: min(1.42vw, 20px);
}

.p6-a .inst {
  max-width: 980px;
  width: min(81.66vw, 980px);
  margin-left: auto;
  margin-right: auto;
}

.p6-a #sb_instagram #sbi_images {
  padding-bottom: 0;
}

/* お知らせ */
.p7-a-container {
  max-width: 1278px;
  padding-top: 100px;
  padding-bottom: 100px;
  margin-left: auto;
  margin-right: auto;
}

.p7-a-container .entry-title {
  width: 92%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: min(5vw, 50px);
  text-align: center;
  margin-bottom: min(5vw, 50px);
}

.p7-a-container .entry-content {
  width: 92%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-top: min(5vw, 50px);
  font-size: max(15px, min(1.8vw, 18px));
  line-height: 1.8;
}

.p7-a-container .entry-content img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: min(5vw, 30px);
  margin-bottom: min(5vw, 30px);
}

.post-footer-nav {
  margin-top: min(10vw, 80px);
  text-align: center;
  width: 100%;
}

/* お知らせ一覧 */
.p8-a-container {
  width: 92%;
  max-width: 1400px;
  padding-top: min(7vw, 100px);
  padding-bottom: min(7vw, 100px);
  margin-left: auto;
  margin-right: auto;
}

.p8-a .p2-title {
  margin-bottom: min(7vw, 100px);
}

.post-list {
  margin-top: min(4vw, 50px);
}

.post-item {
  border-bottom: 1px solid #ddd;
  padding-top: min(2.5vw, 30px);
  padding-bottom: min(1vw, 10px);
}

.post-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

.post-header-wrap {
  display: flex;
  align-items: baseline;
  gap: min(1.5vw, 20px);
  margin-bottom: min(1vw, 10px);
}

.post-title {
  font-size: max(18px, min(2.2vw, 30px));
  margin: 0;
}

.post-date {
  font-size: max(10px, min(1.2vw, 16px));
  color: #888;
  white-space: nowrap;
}

.post-excerpt {
  font-size: max(14px, min(1.3vw, 18px));
  color: #555;
}

/* ページネーション */
.pagination {
  margin-top: 50px;
  text-align: center;
  font-size: 18px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.pagination ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 10px;
}

.pagination li a, .pagination li span {
  display: block;
  padding: 8px 16px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
}

.pagination .current {
  background: #333;
  color: #fff;
}



/* レイアウトパーツ */
.access {
  padding-left: min(6.05vw, 109px);
  padding-right: min(8.33vw, 150px);
  padding-bottom: min(4.16vw, 75px);
}

.access-box {
  display: flex;
  justify-content: space-between;
}

.access-item {
  text-align: center;
}

.access-logo {
  width: min(17.88vw, 322px);
  height: auto;
  margin: min(7.22vw, 130px) auto 0;
}

.access-text {
  margin: min(4.38vw, 79px) 0;
}

.access-text p {
  font-size: clamp(12px, 1.5vw, 18px);
}

.access-text p:first-child {
  margin-bottom: min(1.94vw, 35px);
}

.accesee-item2 {
  display: flex;
  gap: min(4.11vw, 74px);
}

.access-tel, .access-mail {
  width: min(18.05vw, 325px);
  height: min(4.22vw, 76px);
  display: flex;
  background-color: #fadf4c;
}

.access-tel a, .access-mail a {
  display: flex;         /* aタグの中で flex を使う */
  align-items: center;    /* 垂直中央 */
  justify-content: flex-end; /* 右寄せ */
  width: 100%;           /* 横幅いっぱい */
  height: 100%;          /* 縦幅いっぱい */
  text-decoration: none; /* リンクの下線を消す */
  color: inherit;        /* 文字色を継承 */
}

.access-tel p, .access-mail p {
  position: relative; /* beforeの起点 */
  margin: 0;
  display: inline-block; /* 画像からの距離を正確に測るため */
  font-weight: bold;
  letter-spacing: normal;
  line-height: 1;
  width: max-content;
}

.access-tel p {
  font-size: min(1.66vw, 30px);
  padding-right: min(1.66vw, 30px);
}

.access-mail p {
  font-size: min(1.27vw, 23px);
  padding-right: min(2.77vw, 50px);
}

.access-tel p::before, .access-mail p::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-size: contain;
  background-repeat: no-repeat;
}

.access-tel p::before {
  /* 文字の左端から40px + 画像幅22px = 62px左に配置 */
  left: calc(min(3.44vw, 62px) * -1);
  width: min(1.22vw, 22px);
  height: min(1.22vw, 22px);
  background-image: url(../image/tel2.png); /* パスは適宜調整してください */
}

.access-mail p::before {
  /* 文字の左端から67px + 画像幅31px = 98px左に配置 */
  left: calc(min(5.22vw, 94px) * -1);
  width: min(1.72vw, 31px);
  height: min(1.27vw, 23px);
  background-image: url(../image/mail.png); /* パスは適宜調整してください */
}

.access-map iframe {
  width: min(42.0vw, 756px);
  height: min(38.72vw, 697px);
}

.sub .access {
  position: relative;
  background-image: url(../image/sub-back.png);
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: min(7.77vw, 140px);
}

/* フッター */
footer {
  background-color: #000;
}

.footer-container {
  padding-top: min(10.9vw, 120px);
  padding-bottom: min(3.36vw, 37px);
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-nav ul a, .copy-right p {
  color: #fff;
  font-size: min(1.63vw, 18px);
}

.footer-nav ul li {
  padding-left: min(3.36vw, 37px);
  padding-right: min(3.36vw, 37px);
  border-right: 1px solid #fff;
}

.footer-nav ul li:first-child {
  padding-left: 0;
}

.footer-nav ul li:last-child {
  padding-right: 0;
  border-right: none;
}

.footer-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: min(2.9vw, 32px);
  margin-top: min(3.63vw, 40px);
  margin-bottom: min(3.63vw, 40px);
}

.footer-inst {
  width: 26px;
  height: 26px;
}

.footer-fece {
  width: 15px;
  height: 29px;
}

.copy-right {
  text-align: center;
}

.top-botan {
  width: min(5.08vw, 61px);
  height: min(12.16vw, 146px);
  position: fixed;
  bottom: min(8.33vw, 100px);
  right: min(7.5vw, 90px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s; /* ふわっと出すためのアニメーション */
}

.top-botan.is-show {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 768px) {
  /* 全体 */
  h1, h2, h3, p, span {
      letter-spacing: normal;
  }

  .j-container {
    padding-left: 4%;
    padding-right: 4%;
  }

  /* ヘッダー */
  #header {
    display: none;
  }

  .header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  .header__inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 62px;
    padding: 0;
    position: relative;
  }

  .header__logo {
    margin-left: 10px;
  }

  .header__logo img {
    width: 193px;
    height: auto;
    display: block;
  }

  .hamburger {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 50px;
    height: 50px;
    background-color: #fadf4c;
    border: none;
    z-index: 1100;
    cursor: pointer;
    padding: 0;
  }

  .hamburger__line,
  .hamburger__line::before,
  .hamburger__line::after {
    position: absolute;
    width: 26px;
    height: 2px;
    background-color: #000;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
  }

  .hamburger__line {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .hamburger__line::before {
    content: "";
    top: -8px;
  }

  .hamburger__line::after {
    content: "";
    top: 8px;
  }

  .hamburger[aria-expanded="true"] .hamburger__line {
    background-color: transparent;
  }

  .hamburger[aria-expanded="true"] .hamburger__line::before {
    top: 0;
    transform: rotate(45deg);
  }

  .hamburger[aria-expanded="true"] .hamburger__line::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .header__nav-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fadf4c;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__nav-area.is-active {
    opacity: 1;
    visibility: visible;
  }

  .global-navigation__list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .global-navigation__link {
    display: block;
    padding: 15px 0;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
  }

  body:not(.home) .header__inner {
    background-color: #fff;
  }

  /* トップ */
  .top-v {
    width: 100%;
    height: auto;
    aspect-ratio: 430 / 590;
    position: relative;
    overflow: hidden;
  }

  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .slide:nth-child(1) img {
    object-position: 70% bottom;
  }

  .slide:nth-child(2) img {
    object-position: 30% bottom;
  }

  .slide:nth-child(3) img {
    object-position: 20% bottom;
  }

  .top-title {
    top: 45.7%;
    left: 16.3%;
    transform: none;
    width: auto;
  }

  .top-title h1 {
    font-size: min(8.37vw, 36px);
    white-space: nowrap;
  }

  .top-title h1::before {
    right: calc(100% + 2.3%);
    width: 14vw;
    top: 28%;
    transform: translateY(-50%);
  }

  .top-title p {
    font-size: min(4.65vw, 20px);
    white-space: nowrap;
  }

  .news-link {
    display: none;
  }

  .top-news {
    max-width: 410px;
    height: 88px;
    padding: 0 20px 0 50px; /* 左側の余白を調整 */
  }

  .top-news::before {
    clip-path: polygon(30px 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .top-news-title {
    margin-right: 50px;
  }

  .top-news-title h2 {
    font-size: 24px;
  }

  .top-news-title span {
    font-size: 18px;
  }

  .top-news-title::after {
    right: -25px;
    height: 24px;
    top: 8px;
    transform: none;
  }

  /* 投稿部分を2列（上下）に変更 */
  .latest-news-link {
    flex-direction: column;
    gap: 0;
    font-size: 16px;
  }

  .news-date,
  .news-title,
  .news-text {
    font-size: 16px;
  }

  .p1-a-container {
    padding: 77px 0 107px;
  }

  .p1-a-box {
    flex-direction: column;
    align-items: center;
  }

  .p1-a-img {
    width: 100%;
  }

  .p1-a-text {
    width: 100%;
  }

  .p1-a-h2 {
    margin-top: 60px;
    margin-bottom: 70px;
  }

  .p1-a-h2 h2 {
    font-size: 40px;
    padding-left: 4%;
  }

  .p1-a-h2 p {
    font-size: 24px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .p1-a-p p:first-child {
    font-size: 22px;
    margin-bottom: 50px;
  }

  .p1-a-p p:last-child {
    font-size: 18px;
  }

  .p1-a .p1-link {
    margin-top: 40px;
  }

  .p1-link a {
    display: inline-block;
    background-color: #fadf4c;
    padding: 16px 0 16px 24px ;
  }

  .p1-link span {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-right: 60;
  }

  .p1-link a img {
    width: 67px;
    height: 17px;
  }

  .p1-b-container {
    padding: 63px 0 125px;
  }

  .p1-b-title {
    margin-bottom: 55px;
  }

  .p1-b-title h2 {
    gap: 17px;
    font-size: 40px;
  }

  .p1-b-title p {
    font-size: 24px;
  }

  .p1-b-box {
    flex-direction: column;
    gap: 45px;
  }

  .p1-b-item {
    padding-right: 14px;
    padding-bottom: 23px;
  }

  .p1-b-item .p1-link a {
    width: 270px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 15px;
  }

  .p1-b-item .p1-link span {
    font-size: 18px;
    margin-right: 0;
  }

  .p1-b-item .p1-link img {
    width: 49px;
    height: 13px;
  }

  .p1-b-img {
    width: 100%;
  }

  .p1-c-container {
    padding: 90px 0 140px;
  }

  .p1-c-title {
    margin-top: 0;
    margin-bottom: 35px;
  }

  .p1-c-title h2 {
    font-size: 40px;
  }

  .p1-c-title p {
    font-size: 24px;
  }

  .p1-c-box {
    flex-direction: column;
  }

  .p1-c-slider-viewport {
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 64px;
  }

  /* プラグインのコンテナに対してアニメーションを適用 */
  .p1-c .inst #sbi_images {
    display: flex !important;
    gap: 10px !important;
    width: max-content !important;
    /* 速度はお好みで（数値が大きいほどゆっくり） */
    animation: p1-c-loop 100s linear infinite !important;
  }

  /* 各画像のサイズをご指定の数値に固定 */
  .p1-c-img-box #sb_instagram .sbi_item {
    width: 355px !important;
    height: 474px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  @keyframes p1-c-loop {
    0% {
      transform: translateX(0);
    }
    100% {
      /* JSで3倍にしている場合、全体の1/3（1セット分）を左へ流す */
      transform: translateX(calc(-100% / 3 - (10px * 2 / 3)));
    }
  }

  .p1-d-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 100px;
  }

  .p1-d .inst {
    max-width: 100%;
    width: 92%;
    margin-left: 4%;
    margin-right: 4%;
  }

.top .access-container {
    padding-top: 235px;
  }

  .access-link-box {
    top: -13px;
  }

  .access-link-box a {
    padding-top: 9px;
    padding-bottom: 9px;
    display: block;
    text-decoration: none;
  }

  .access-link {
    /* 390pxを基準に、画面幅に合わせて自動縮小（最大390px） */
    width: min(90vw, 390px); 
    /* 余白も比率で計算 (90px / 390px = 約23%) */
    padding: 18px 20px 18px 23%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .access-link h2 {
    /* 文字サイズも画面幅に追従 */
    font-size: min(7.5vw, 30px);
    margin-right: 10px;
    white-space: nowrap;
  }

  .access-link p {
    /* 文字サイズも画面幅に追従 */
    font-size: min(4vw, 16px);
    margin: 0;
    white-space: nowrap;
  }

  .access-link img {
    /* 矢印のサイズも比率で微調整 */
    width: min(9vw, 35px);
    height: auto;
  }



  /* 会社案内 */
  .sub-v {
    width: 100%;
    height: 300px;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .sub-v-title h1 {
    font-size: 36px;
  }

  .sub-v-title h1::before {
    left: -60%;
    width: min(18.6vw, 80px);
    height: 4px;
  }

  .sub-v-title p {
    font-size: min(13.95vw, 60px);
    line-height: 1;
    margin: 0;
  }

  .p2-a {
    max-width: 100%;
  }

  .p2-a-container {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .p2-title h2 {
    font-size: 40px;
    margin-bottom: 10px;
  }

  .p2-title p {
    font-size: 24px;
  }

  .p2-a-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 45px;
  }

  .p2-a-text {
    width: 100%;
    padding-left: 4%;
    padding-right: 4%;
    box-sizing: border-box;
  }

  .p2-a-text p {
    font-size: 16px;
    line-height: 2em;
  }

  .p2-a-img {
    width: 100%;
  }

  .p2-b {
    max-width: 100%;
  }

  .p2-b-p {
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .p2-b-p p {
    font-size: 16px;
  }

  .p2-b-img-box {
    grid-template-columns: repeat(3, 1fr);
    gap: min(5.48vw, 40px) min(2.74vw, 20px);
    padding-left: 4%;
    padding-right: 4%;
    margin-top: min(6.16vw, 45px);
  }

  .p2-b-item {
    height: min(16.44vw, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-sizing: border-box;
    padding: min(3.42vw, 25px);
  }

  .p2-b-img-box .p2-b-item:nth-child(19),
  .p2-b-img-box .p2-b-item:nth-child(26) {
    padding: 10px;
  }

  .p2-c {
    max-width: 100%;
  }

  .p2-c-container {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .p2-c-table {
    max-width: 92%;
    margin: 40px 4%;
  }

  .p2-c-table tr th, 
  .p2-c-table tr td {
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .p2-c-map p {
    font-size: 16px;
  }

  .p2-c-map p::before {
    width: 19px;
    height: 27px;
    margin-right: 13px;
  }

  .p2-c-map iframe {
    width: 92%;
    height: 367px;
    margin-left: auto;
    margin-right: auto;
  }


  /* 製品紹介 */
  .p3-a-container {
    max-width: 100%;
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .p3-a .p3-title {
    padding-top: 70px;
  }

  .p3-a-link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: min(4.65vw, 20px);
    margin-top: min(9.3vw, 40px);
  }

  .p3-a-link a {
    width: min(86.5vw, 372px);
    height: min(15.8vw, 68px);
  }

  .p3-a-span span:first-child {
    font-size: min(3.72vw, 16px);
    line-height: normal;
  }

  .p3-a-span span:last-child {
    font-size: min(4.18vw, 18px);
    line-height: normal;
  }

  .p3-a-link a::after {
    left: calc(50% + min(30.2vw, 130px));
    width: min(4.65vw, 20px);
    height: min(2.55vw, 11px);
  }

  .p3-title h2 {
    font-size: 24px;
  }

  .p3-title h3 {
    font-size: 30px;
  }

  .p3-title p {
    font-size: 30px;
    line-height: normal;
    padding-bottom: 10px;
  }

  .p3-a-box {
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
  }

  .p3-a-text {
    width: 100%;
  }

  .p3-a-text h3 {
    font-size: 24px;
    padding-left: 8px;
    border-left: 7px solid #fadf4c;
  }

  .p3-a-text p {
    font-size: 16px;
    line-height: 1.5em;
    padding-left: 4%;
    padding-right: 4%;
  }

  .p3-a-text p:first-of-type {
    margin-top: 27px;
    margin-bottom: 15px;
  }

  .p3-a-img {
    width: 100%;
    text-align: center;
    padding-left: 8%;
    padding-right: 8%;
    margin-top: 30px;
  }

  .p3-a-img img {
    width: 100%;
  }

  .p3-b-container {
    max-width: 100%;
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .p3-b-title {
    margin-top: 35px;
    margin-bottom: 18px;
  }

  .p3-b-title h3 {
    font-size: 24px;
    padding-left: 8px;
    border-left: 7px solid #fadf4c;
  }

  .p3-b-item {
    flex-direction: column-reverse;
    align-items: center;
  }

  .p3-b-img1 {
    width: 100%;
    text-align: center;
    padding-left: 4%;
    padding-right: 4%;
    margin-top: 30px;
  }

  .p3-b-img1 img, .p3-b-img4 img {
    max-width: 100%;
  }

  .p3-b-text-title {
    margin-left: 0;
    margin-bottom: 15px;
  }

  .p3-b-text-box {
    width: 100%;
  }

  .p3-b-text-title p {
    font-size: 24px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .p3-b-text-p {
    margin-left: 0;
    margin-bottom: 60px;
  }

  .p3-b-text-p p {
    font-size: 16px;
    color: #fff;
    line-height: 2em;
  }

  .p3-b .p3-b-item2 {
    flex-direction: column;
    margin-top: 50px;
  }

  .p3-b-item2 .p3-b-text-p {
    margin-bottom: 20px;
  }

  .p3-b-img3 {
    width: 100%;
    height: auto;
  }

  .p3-b-img4 {
    width: 100%;
    margin-left: 0;
    margin-top: 50px;
  }

  .p3-c-container {
    max-width: 100%;
    padding-top: 110px;
    padding-bottom: 250px;
  }

  .p3-c-text-title {
    margin-top: 33px;
  }

  .p3-c-text-title h3 {
    font-size: 24px;
    padding-left: 8px;
    border-left: 7px solid #fadf4c;
  }

  .p3-c-item {
    flex-direction: column;
  }

  .p3-c-img {
    width: 100%;
    margin-bottom: 30px;
  }

  .p3-c-p {
    margin-left: 20%;
    margin-bottom: 30px;
  }

  .p3-c-p p {
    font-size: 24px;
  }

  .p3-c-img img {
    width: 100%;
  }

  .p3-c-img2 img {
    width: 100%;
  }

  .p3-c .p1-link {
    margin-top: 34px;
  }

  /* 料金表 */
  .p4-a-container {
    max-width: 100%;
    padding-top: 45px;
    padding-bottom: 120px;
  }

  .price .sub-v-title h1::before {
    left: -80%;
    width: min(18.6vw, 80px);
    height: 4px;
  }

  .price-table-container {
    width: 100%;
    margin-top: 30px;
  }

  .price-table-container tr td {
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .price-table tr td:first-child {
    padding-left: 5px;
  }

  .price-table tr td:last-child {
    padding-right: 5px;
  }

  .p4-a-p {
    margin-top: 20px;
  }

  .p4-a-p p {
    font-size: 16px;
  }

  .p4-b-container {
    max-width: 100%;
    padding-bottom: 250px;
  }

  .p4-b .p2-title {
    margin-bottom: 44px;
  }

  .p4-b .p2-title h2::before {
    margin-right: 50px;
  }

  .p4-b .p2-title h2::after {
    margin-left: 50px;
  }

  .p4-b-item {
    padding-left: 2%;
    padding-right: 2%;
    margin-bottom: 15px;
  }

  .p4-b-text {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .p4-b-span {
    width: 70px;
    height: 70px;
    padding-bottom: 27px;
    flex-shrink: 0;
  }

  .p4-b-span span:first-child {
    font-size: 16px;
  }

  .p4-b-span span:last-child {
    font-size: 24px;
  }

  .p4-b-p {
    padding: 12px 30px 12px 0px;
    margin-left: -35px;
    flex-grow: 1;
  }

  .p4-b-item:nth-child(3) .p4-b-p,
  .p4-b-item:nth-child(7) .p4-b-p {
    padding: 12px 15px 12px 40px;
  }

  .p4-b-p p {
    font-size: min(3.26vw, 14px);
    line-height: 1.4;
    text-align: left;
  }

  .p4-b-img {
    margin-top: 0;
    margin-bottom: 0;
  }

  .p4-b-img img {
    width: 45px;
    height: auto;
  }

  /* お問い合わせ */
  .p5-a-container {
    max-width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact .sub-v-title h1::before {
    left: -40%;
    width: min(18.6vw, 80px);
    height: 4px;
  }

  .p5-a .p2-title h2::before {
    margin-right: 50px;
  }

  .p5-a .p2-title h2::after {
    margin-left: 50px;
  }

  .p5-a-item {
    padding-left: 4%;
    padding-right: 4%;
    margin-top: 50px;
  }

  .p5-a-item p {
    font-size: 16px;
  }

  .p5-a-p2 {
    margin-top: 17px;
    margin-bottom: 17px;
  }

  .p5-a-p4 {
    margin-top: 17px;
  }

  .p5-a-p2 p,
  .p5-a-p3 p {
    margin-bottom: 5px;
  }

  .p5-a-p2 h3 {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .p5-a-p4 .p5-a-tel {
    font-size: 24px;
  }

  .p5-a-p4 .p5-a-tel span {
    font-size: 16px;
  }

  .p5-c-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 70px 4%;
  }

  .p5-form-row p {
    font-size: 18px;
  }

  .p5-form-row {
    flex-direction: column;
  }

  .p5-form-row dt {
    width: 100%;
    padding: 10px 5px 5px;
    border-right: none;
    font-size: 16px;
  }

  .p5-b .align-top dt {
    padding-top: 17px;
  }

  .p5-form-row dt .required {
    font-size: 16px;
    margin-left: 7px;
  }

  .p5-form-row dd {
    width: 100%;
    padding: 0px 14px 10px;
  }

  .p5-c-container input[type="text"],
  .p5-c-container input[type="tel"],
  .p5-c-container input[type="email"],
  .p5-c-container textarea {
    width: 100%;
    padding: 5px;
    font-size: 16px;
  }

  .p5-form-btn {
    text-align: center;
    margin-top: 80px;
  }

  .wpcf7-submit {
    width: 200px;
    padding: 15px 0;
    font-size: 24px;
  }
  
  .contact .sub-v-title p {
    font-size: min(13.95vw, 60px);
  }

  /* 施工実績 */
  .gallaery .sub-v-title p {
    font-size: min(8.57vw, 120px);
  }

  .p6-a-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 300px;
  }

  .p6-a .p2-title {
    margin-bottom: 10px;
  }

  .p6-a .inst {
    max-width: 100%;
    width: 92%;
    margin-left: 4%;
    margin-right: 4%;
  }

  .p6-a #sb_instagram #sbi_images {
    padding-bottom: 0;
  }


  /* お知らせ */
  .p7-a-container {
    max-width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
  }

  .p7-a-container .entry-title {
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    margin-bottom: 30px;
  }

  .p7-a-container .entry-content {
    width: 92%;
    padding-top: 30px;
    font-size: 15px;
  }

  .p7-a-container .entry-content img {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .post-footer-nav {
    margin-top: 40px;
  }

  /* お知らせ一覧 */
  .p8-a-container {
    width: 100%;
    max-width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .news .sub-v-title h1::before {
    left: -40%;
    width: min(18.6vw, 80px);
    height: 4px;
  }

  .p8-a .p2-title {
    margin-bottom: 50px;
  }

  .p8-a .post-list {
    width: 92%;
    margin-top: 25px;
    margin-left: 4%;
    margin-right: 4%;
  }

  .post-item {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .post-header-wrap {
    gap: 20px;
    margin-bottom: 10px;
  }

  .post-title {
    font-size: 24px;
    margin: 0;
  }

  .post-date {
    font-size: 16px;
  }

  .post-excerpt {
    font-size: 18px;
  }





  /* レイアウトパーツ */
  .access {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .access-box {
    flex-direction: column;
  }

  .access-item {
    padding-bottom: 80px;
  } 

  .access-logo {
    width: 322px;
    height: auto;
    margin: 0 auto;
  }

  .access-text {
    margin: 70px 0;
  }

  .access-text p {
    font-size: 18px;
  }

  .access-text p:first-child {
    margin-bottom: 17px;
  }

  .accesee-item2 {
    flex-direction: column;
    align-items: center;
    gap: 33px;
  }

  .access-tel, .access-mail {
    width: 325px;
    height: 76px;
  }

  .access-tel p {
    font-size: 30px;
    padding-right: 30px;
  }

  .access-mail p {
    font-size: 23px;
    padding-right: 46px;
  }

  .access-tel p::before {
    /* 文字の左端から40px + 画像幅22px = 62px左に配置 */
    left: calc(57px * -1);
    width: 22px;
    height: 22px;
  }

  .access-mail p::before {
    /* 文字の左端から67px + 画像幅31px = 98px左に配置 */
    left: calc(94px * -1);
    width: 31px;
    height: 23px;
  }

  .access-map iframe {
    width: 100%;
    height: 367px;
  }

  .sub .access {
    padding-top: 140px;
  }

  /* フッター */
  .footer-container {
    padding-top: 63px;
    padding-bottom: 37px;
    margin-bottom: 62px;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    row-gap: 60px;
  }

  .footer-nav ul a, .copy-right p {
    font-size: 18px;
  }

  .footer-nav ul li {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-sns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
    margin-top: 110px;
    margin-bottom: 60px;
  }

  .top-botan {
    display: none;
  }

  .mobile-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 62px; /* 画像の高さに合わせて調整してください */
    background-color: #fdd835;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid #fff;
  }

  .footer-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
  }

  /* アイコン画像の調整 */
  .footer-item img {
    max-width: 100%;
    height: auto;
    max-height: 60px; /* 枠からはみ出さない上限 */
    object-fit: contain;
  }

  .tel, .mail {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tel {
    width: 50%;
  }

  .mail {
    width: 35%;
  }

  .back-to-top {
    width: 15%;
  }

  .tel img {
    width: 22px;
    height: 22px;
  } 

  .tel p {
    font-size: 24px;
    line-height: normal;
  }

  .mail img {
    width: 27px;
    height: 21px;
  }

  .mail p {
    font-size: 18px;
    line-height: normal;
  }

  .back-to-top img {
    width: 47px;
    height: 58px;
  }

  /* 境界線：線の太さや色は画像に合わせて調整 */
  .border-right {
    border-right: 1px solid #fff;
  }

  /* 768px付近で広がりすぎないように中身の幅を制限する場合 */
  .footer-item a {
    width: 100%;
    text-align: center;
  }


}