@media screen and (max-width:768px) {

/* =========================
共通パーツ
========================= */
.btn-wrap a {
  width: 100%;
}

.container {
  width: 90%;
}

/* =========================
ヘッダー
========================= */
/* ドロワー本体（必要に応じてクラス名調整） */
.drawer-menu
{
  position: fixed;               /* 画面に固定 */
  inset: var(--header-h, 0) 0 0 0; /* ヘッダー分を避けたいなら上だけ変える */
  height: calc(100vh - var(--header-h, 0px));
  overflow-y: auto;              /* ← ここがポイント：メニュー内だけ縦スクロール */
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
  overscroll-behavior: contain;  /* バウンス時に裏へ連動しない */
}

/* メニューが閉じている間は隠す（例） */
.drawer-menu:not(.open)
{
  display: none;                 /* 既存のアニメ仕様に合わせて適宜変更 */
}

header .logo {
  width: 30%;
}

header .logo img {
  margin-left: 15px;
  min-width: 70px;
}

.menu-trigger {
  height: 30px;
}

.menu-trigger span {
  border-bottom: solid 5px #A86F42;
}

.menu {
  margin-right: 10px;
}

.menu-trigger span:nth-child(1) {
  top: 6px;
}

.menu-trigger span:nth-child(2) {
  top: 20px;
}

.menu-trigger.active span:nth-child(1) {
  width: 75%;
  top: 15px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-trigger.active span:nth-child(2){
  width: 75%;
  top: 15px;
  transform: translateX(-50%) rotate(-45deg);
}

.drawer-menu-list .container {
  display: block;
}

header .footer-left,
header .footer-center,
header.footer-right {
  width: 100%;
  color: #3e3a36;
}

header .footer-left {
  margin-bottom: 0;
}

header .footer-btn-wrap {
  margin-bottom: 30px;
}

.drawer-menu.open {
  padding: 10% 5%;
}

.drawer-menu-list .container .footer-left ul li a,
.drawer-menu-list .container .footer-center ul li a {
  display: block;
  padding: 12px 20px;             /* 内側余白 */
  margin-bottom: 12px;            /* 各行の間隔 */
  background-color: #f5f5f5;      /* 薄いグレー背景 */
  font-weight: 500;               /* 太字 */
  color: #000;                    /* テキスト黒 */
  position: relative;             /* 擬似要素用に relative */
  text-decoration: none;
}

/* 左のオレンジバー */
.drawer-menu-list .container .footer-left ul li a::before,
.drawer-menu-list .container .footer-center ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;                     /* バーの太さ */
  background-color: #A86F42;      /* オレンジ */
}

/* hover時の効果 */
.drawer-menu-list .container .footer-left ul li a:hover,
.drawer-menu-list .container .footer-center ul li a:hover {
  opacity: 0.85;
}

.footer-center .footer-menu-list ul li a.sub-menu-item {
  margin-left: 20px;
  font-size: 0.9em;
  background: none;
  border: none;
  padding: 8px 12px;
}

header .footer-left,
header .footer-center {
  border-right: none;
}

/* =========================
キービジュアル
========================= */
.kv {
  overflow: visible;
}

.kv-set img {
  width: 70vw;
}

.key-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(34px, 4vw, 999px);
  font-weight: 800;
  z-index: 999;
  width: 100%;
  text-align: center;
}

.key-info-box {
  position: absolute;
  left: 50%;
  top: 130%;
  transform: translate(-50%, -80%);
  background-color: rgba(255, 255, 255, 0.9);
  border: 5px solid #A86F42;
  border-radius: 8px;
  padding: 4% 2% 3% 2%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 999;
  max-width: 100%;
  min-width: 80%;
}
/* =========================
ソリューションセクション
========================= */

#solution {
  padding-top: 70%;
}

#solution h2.sp-hidden {
  display: none;
}

h2.sp-open {
  display: block;
  position: relative;
  z-index: 10;
}

.solution-flex-wrap {
  display: block;
}

.solution-list {
  width: 100%;
  margin-top: 40px;
}

.solution-list::before {
  width: 100vw;
}

.solution-item img {
  margin-bottom: 20px;
}

/* =========================
ポイントセクション
========================= */

.point-item-Bver.sp-open {
  display: block;
}

.point-item-Bver.sp-hidden {
  display: none;
}

.point-list {
  margin-top: 50px;
}

.point-item-Aver, .point-item-Bver {
  display: block;
}

.point-item-Aver .point-left,
.point-item-Bver .point-right,
.point-item-Aver .point-right,
.point-item-Bver .point-left {
  width: 100%;
}

.point-item-Aver {
  transform: translateX(5vw);
}

.point-item-Bver {
  transform: translateX(-5vw);
}

#point h3 {
  margin-bottom: 20px;
}

.point-icon-wrap {
  transform: translateY(-10px);
}

.icon-roller {
  width: 13%;
  margin-left: 20px;
}

.eyebrow {
  margin-right: 10px;
}

/* =========================
フローセクション
========================= */
.flow-grid {
  display: block;
}

.flow-hero,
.flow-steps {
  width: 100%;
}

.step-card p {
  padding: 30px 8px 15px 8px;
}

.steps-viewport {
  padding: 0;
}


/* =========================
FAQセクション
========================= */
.faq-item {
  padding: 10px 20px;
}

.faq-question span {
  margin-right: 10px;
}

.faq-question
{
  padding: 15px 60px 15px 15px;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 10px;
  transition: transform 0.3s;
  background-color: #A86F42;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
}

/* =========================
コンタクトセクション
========================= */
#contact {
  background-image: url(img/contact.webp);
  background-size: cover;
  background-position: center 0px;
  padding: 10% 0;
}

.contact-inner {
  display: block;
  background-color: rgba(185, 106, 43, 0.9);
  color: #ffffff;
  width: 80%;
  margin: 0 auto;
  border-radius: 15px;
  padding: 5% 5%;
}

.contact-left {
  border-right: none;
  border-bottom: 2px dotted #ffffff;
  width: 100%;
  padding-right: 0;
  padding-bottom: 30px;
}

.contact-right {
  width: 100%;
  padding-left: 0;
  text-align: center;
  margin-top: 20px;
}

.contact-info {
  grid-template-columns: 80px 1fr;
}

#contact h2 a {
    display: inline-block;
    padding: 3% 0 5% 0;
}

/* =========================
フッターセクション
========================= */

footer .container {
  display: block;
}

.footer-left {
  width: 100%;
  margin-bottom: 20px;
}

.footer-center,
.footer-right {
  width: 100%;
}

.footer-logo {
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 30%;
  display: inline-block;
}

.footer-info dl {
  grid-template-columns: 60px 1fr;
  width: 100%;
}

.footer-center {
  margin-bottom: 30px;
  color: #A86F42;
}

/* =========================
ブログ記事ページ
========================= */

.entry-footer .post-nav
{
  grid-template-columns: 1fr;
}

body.single .entry-header {
    margin-bottom: 15%;
}

body.single .entry-content {
    width: 90%;
    margin: 0 auto;
    padding-bottom: 15%;
}

body.single .entry-header {
  padding: 0 5%;
}

.wp-block-table
{
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.wp-block-table table
{
  border-collapse: collapse;
  table-layout: fixed;
  width: max-content;
  min-width: 640px;
}

.wp-block-image {
  margin-bottom: 5%;
}

body.single .entry-content p {
  margin-bottom: 5%;
}

.wp-block-list {
  list-style: inside;
  margin-bottom: 5%;
}

.wp-block-table {
  margin-bottom: 5%;
}

.wp-block-buttons {
   margin-bottom: 5%;
}

.wp-block-quote {
  margin-bottom: 5%;
}

.pagination ul.page-numbers {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.single h2:first-of-type, body.single h2 {
  margin-bottom: 5%;
}

body.single h3 {
  margin-bottom: 5%;
}

body.single h4 {
  margin-bottom: 5%;
}

/* =========================
ブログ一覧ページ
========================= */

.cat-filter__list{
  display: block;
}

.cat-filter__item {
  margin-bottom: 20px;
}

/* =========================
料金表ページ
========================= */

  .table-wrap
  {
    overflow-x: auto; /* スマホだけ横スクロール有効 */
  }

  .price-table
  {
    min-width: 700px; /* 表が小さすぎないように幅を固定 */
  }


/* =========================
コンタクトフォームページ
========================= */

#contact-form .h1-wrap img {
min-height: 120px;
margin-bottom: 3px;
}

#contact-form .container {
  width: 90%;
  padding-top: 10%;
  padding-bottom: 10%;
}



}
