/*
Theme Name: Nuribouzu Original Style
Author: Ena
Description: 自作テーマです
Version: 1.0
*/

/* =========================
共通パーツ
========================= */
@font-face {
  font-family: 'jsMath-cmbx10';
  src: url('fonts/jsmath-cmbx10.woff2') format('woff2');
}


body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 1.2vw, 999px);
  color: #3E3A36;
}

body.home h1, body.home h2{
  font-family: "Noto Serif JP", serif;
}

body.home h2 {
  font-size: clamp(20px, 2.5vw, 999px);
  text-align: center;
  margin-bottom: 8%;
  font-weight: 600;
}

.en-title{
  color: #A86F42;
  font-size: clamp(14px, 2vw, 999px);
  display: block;
  margin-bottom: 20px;
  text-align: center;
}

.btn-wrap {
  text-align: center;
}

.btn-wrap a {
  z-index: 1;
  display: block;
  width: 50%;
  margin: 0 auto;
  padding: 18px 36px;
  background-color: #A86F42;
  color: #fff;
  font-size: clamp(14px, 1.7vw, 999px);
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 6px 0 #7E512D;
  position: relative;
  transition: all 0.15s ease-in-out;
}

.btn-wrap a:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #7E512D;
}

.container {
  width: 80%;
  margin: 0 auto;
}

/* =========================
ヘッダー
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:#fff;
}

header .container {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

header .logo {
  width: 70%;
}

header .logo img {
  width: 13%;
  min-width: 90px;
  padding: 8px 0;
  margin-left: 100px;
}

.menu {
  align-self: center;
  margin-right: 30px;
  padding: 8px 0;
}

.menu:hover {
  opacity: 0.8;
}

.cta-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #fff;
  background-color: #D78638; /* 初期色 */
  padding: 0 30px;
  font-size: clamp(14px, 1.7vw, 999px);
  font-weight: 400;
  position: relative;
  overflow: hidden; /* 擬似要素をはみ出さないようにする */
  z-index: 0;
}

/* 擬似要素で背景アニメーション */
.cta-btn a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0; /* 右からスタート */
  width: 0;
  height: 100%;
  background-color: #B96A2B; /* hover後の色 */
  z-index: -1;
  transition: width 0.4s ease;
}

/* hoverで右から左に広がる */
.cta-btn a:hover::before {
  width: 100%;
  left: 0;
  right: auto;
}


/* ハンバーガー */
.menu-trigger {
  position: relative;
  width: 100%;
  height:  40px;
  cursor: pointer;
}

.menu-trigger span {
  display: block;
  position: absolute;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom: solid 7px #A86F42;
  transition: .35s ease-in-out;
  transform-origin: 50% 50%;
}

.menu-label {
  color: #A86F42;
  margin-top: 5px;
  font-size: clamp(12px, 1.7vw, 999px);
  font-weight: 500;
}

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

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

.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{
  position: fixed;
  left: 0; right: 0;
  /* top: var(--header-h, 0px); */
  top: calc(var(--site-header-h, 0px) - 1px);
  /* height: 80vh; */
  background: #EFE6DD;
  overflow: auto;
  /* ▼ 幕アニメ：最初は全て“上側に隠す” */
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
  transition:
  clip-path .45s cubic-bezier(.2,.7,.2,1),
  opacity .3s ease;
  padding: 5% 8%;
  z-index: 1000;
}

/* 開いたとき：幕が下に降りて全体が現れる */
.drawer-menu.open{
  clip-path: inset(0 0 0 0);
  opacity: 1;
  pointer-events: auto;
}

html.no-scroll,
body.no-scroll
{
  overflow: hidden;
  /* （任意）デスクトップのスクロールバー分の幅ズレ対策をする場合は
     padding-right: var(--sbw, 0px);
  */
}

/* リストを少しだけ遅れて落とす（演出。不要なら削除OK） */
@keyframes dropIn {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.drawer-menu.open .drawer-menu-list li { animation: dropIn .35s ease both; }
.drawer-menu.open .drawer-menu-list li:nth-child(1){ animation-delay: .05s; }
.drawer-menu.open .drawer-menu-list li:nth-child(2){ animation-delay: .10s; }
.drawer-menu.open .drawer-menu-list li:nth-child(3){ animation-delay: .15s; }
.drawer-menu.open .drawer-menu-list li:nth-child(4){ animation-delay: .20s; }
.drawer-menu.open .drawer-menu-list li:nth-child(5){ animation-delay: .25s; }

/* 低速回線/持病配慮：アニメ最小化 */
@media (prefers-reduced-motion: reduce) {
  .drawer-menu,
  .drawer-menu.open,
  .drawer-menu.open .drawer-menu-list li {
    transition: none !important;
    animation: none !important;
  }
}

header .footer-left,
header .footer-center,
header.footer-right {
  width: 30%;
}

.drawer-menu-list .container .footer-left ul li a,
.drawer-menu-list .container .footer-center ul li a{
  display: block;
  padding: 2% 0;
}

.drawer-menu-list .container .footer-left ul li a:hover {
  opacity: .8;
}

header .footer-left,
header .footer-center {
  border-right: 1px solid #ffffff;
}



/* =========================
キービジュアル
========================= */

#key-visual {
  position: relative;
  z-index: 500;
}

.kv {
  overflow: hidden;
}

.kv-track {
  min-height: 75vh;
}

.kv-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.kv-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* 黒 40%の透過 */
  z-index: 1;
}

.kv-track {
  display: flex;
  /* ここはトラック全体を動かす */
  animation: kv-marquee var(--kv-duration, 60s) linear infinite;
  will-change: transform;
  z-index: 999;
}

.kv-set {
  display: flex;
  gap: 5px;
}

.kv-set img {
  width: 25vw;
  height: auto;
  flex-shrink: 0;
  display: block;
}

/* モーション弱めたい人向け（OS設定に追従） */
@media (prefers-reduced-motion: reduce) {
  .kv-track { animation-duration: 120s; }
}

@keyframes kv-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(var(--kv-distance, 1000px) * -1)); }
}

/* 1周目(.kv-set) と 2周目(.kv-set) の間にも5pxを入れる */
.kv-set + .kv-set { margin-left: 5px; }


.key-title {
  position: absolute;
  top: 40%;
  left: 10%;
  color: #fff;
  font-size: clamp(34px, 4vw, 999px);
  font-weight: 800;
  z-index: 999;
}

.key-info-box {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  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: 35%;
}

.key-info-title {
  font-size: clamp(14px, 1.7vw, 999px);
  font-weight: bold;
  background-color: #A86F42;
  color: #fff;
  margin-bottom: 10px;
  padding: 10px 30px;
  border-radius: 15px;
  text-align: center;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.key-info-subtitle {
  font-size: clamp(16px, 1.6vw, 999px);
  font-weight: 700;
  color: #A86F42;
  text-align: center;
  margin-bottom: 5%;
}

.key-info-desc {
  color: #333;
  margin-bottom: 5%;
  line-height: 1.6;
}

.key-info-action {
  display: block;
  text-align: center;
  padding: 8px 14px;
  background-color: #fff;
  color: #A86F42;
  font-weight: bold;
  border-radius: 6px;
  border: solid #A86F42 3px;
}

.key-info-flex {
  display: flex;
  justify-content: space-between;
}

.kv-flex-left {
  width: 30%;
}

.kv-flex-left img {
  width: 80%;
}

.kv-flex-right {
  width: 70%;
}

.after-support {
  text-align: center;
}

/* =========================
ソリューション
========================= */

#solution {
  background-color: #EFE6DD;
  padding: 10% 0;
  overflow: hidden;
}

h2.sp-open {
  display: none;
}

#solution h2.sp-hidden {
  z-index: 1;
  text-align: right;
  position: relative;
}

#solution h2.sp-hidden::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -130%;
  width: 35vw;
  height: 35vw;
  background: url("img/logo-bg.webp");
  background-size: cover;
  z-index: -1;
}

.solution-flex-wrap {
  display: flex;
  justify-content: space-between;
}

.solution-item {
  margin-bottom: 10%;
}

.solution-list {
  margin-right: 10%;
  position: relative;
  z-index: 1;
  overflow: visible;
  width: 80%;
}

.solution-list::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 70vw;
  background: url("img/solution-bg.webp") no-repeat center;
  background-size: cover;
  z-index: -1;
}

#solution .solution-heading {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

#solution h2.sp-hidden .jp-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 20px 30px 0 0;
}

.solution-item img {
  width: 100%;
}

.solution-subtitle {
  margin: 20px 0;
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 999px);
}

.solution-desc {
  font-size: clamp(14px, 1vw, 999px);
}

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

#point{
  background:#F7F1EC;
  padding: 10% 0;
}

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

.point-item-Aver,
.point-item-Bver {
  background: #E9DCD2;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10%;
  width: 100%;
}

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

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

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

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

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


.point-icon-wrap {
  display: flex;
  align-items: flex-end;
  transform: translateY(-30px);
  margin-bottom: 20px;
}

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

.eyebrow {
  color: #A86F42;
  margin-right: 20px;
  font-family: "jsMath-cmbx10";
}

.big-num {
  font-family: "jsMath-cmbx10";
  font-size: clamp(70px, 6vw, 999px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px #A86F42;
  line-height: 0;
}

#point h3 {
  font-size: clamp(18px, 1.8vw, 999px);
  font-weight: 600;
  margin-bottom: 30px;
}

.point-text-wrap {
  padding: 0 30px 60px 30px;
}

.point-image {
  transform: translateY(-30px);
  width: 100%;
}

.roller-icon {
  width: 100%;
}

/* =========================
フローセクション
========================= */

#flow {
  background:#E9DCD2;
  color: #3A3634;
}

.flow-grid {
  display: flex;
}


/* 左：ヒーロー（自動フェード） */
.flow-hero {
  width: 50%;
  position:relative;
  aspect-ratio: 16/11;
  overflow:hidden;
}

.flow-hero .hero-slide{
  position: absolute;
  inset:0;
  width:100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease;
}

.flow-steps {
  width: 50%;
  padding: 5% 0;
}

.flow-hero .hero-slide.is-active{
  opacity:1;
}

/* 右：見出し */
.flow-steps .eyebrow{
  color:#A86F42;
  letter-spacing:.12em;
  font-weight:700;
  margin: .2em 0 .6em;
}


/* 右：スライダー*/
/* ===== Flow Steps (peek & center) ===== */
.steps-viewport
{
  position: relative;
  overflow: hidden;
  outline: none;
  padding: 24px 0;
}

.steps-track
{
  display: flex;
  align-items: stretch;
  gap: 20px; /* カード間の余白（JS側で幅計算に使う） */
  will-change: transform;
  transition: transform .45s ease;
}

.step-card
{
  flex: 0 0 60%; /* 中央を大きく、左右がチラ見えする幅 */
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  padding: 18px 3% 20px 3%;
  opacity: .55;
  transform: scale(.92);
  transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease;
}

.step-card p {
  padding: 70px 10px;
}

.step-card.is-active
{
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  z-index: 1;
}

.step-card a {
  display: inline-block;
  color: #D78638;
  border-bottom: 1px solid #D78638;
  margin-bottom: 5px;
}

.step-badge-flex {
  display: flex;
  align-items: center;
}

/* バッジ（STEP 1 のひし形風） */
.step-badge{
  display: block;
  width: 25%;
  margin: -40px 20px 10px 0;
  color:#7E512D;
  background: #E3D9CE;
  clip-path: polygon(0 0,100% 0,100% 70%,50% 100%,0 70%);
  font-weight:700;
  transform: translateY(20px);
  text-align: center;
  padding: 5% 0 8% 0;
}

.step-badge-flex h3 {
  color: #A86F42;
  font-size: clamp(14px, 1.5vw, 999px);
  font-weight: 500;
}

.step-badge span{
  font-size: clamp(10px, 1vw, 999px);
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.step-badge strong{
  font-family: "jsMath-cmbx10";
  font-size: clamp(16px, 3vw, 999px);
  -webkit-text-stroke: 2px #A86F42;
  color: transparent;
  font-weight: 1000;
  transform: translateY(-15px);
}

/* ==============================
   ステップナビゲーション
============================== */
.steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 14px 0 0;
  margin-top: 14px; /* ← 古い方のmarginを残すならここに統合 */
}

/* 前へ・次へボタン */
.steps-nav .nav {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1.6px solid #A86F42;
  color: #A86F42;
  background-color: #EFE6DD;
  font-size: clamp(16px, 1.7vw, 20px); /* ← clampと固定pxを両立 */
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

.steps-nav .nav:hover {
  transform: translateY(-1px);
  opacity: .8;
}

.steps-nav .nav:disabled {
  opacity: .35;
  pointer-events: none;
  transform: none;
}

/* ドットナビ */
.steps-nav .dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  min-height: 32px;
}

.steps-nav .dots .dot,
.steps-nav .dots button {
  display: inline-block;        /* インライン要素の寸法を効かせる */
  width: 8px;
  height: 8px;
  aspect-ratio: 1 / 1;          /* 念のため1:1を強制 */
  box-sizing: border-box;       /* 枠を含めて8pxにする */

  padding: 0;                   /* ← button用リセット */
  line-height: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #c9c9c9;

  border-radius: 50%;
  background: #CDBFB4;
  cursor: pointer;
  opacity: .8;
  transition: width .2s ease, height .2s ease,
              background-color .2s ease, border-color .2s ease, opacity .2s ease;
}

/* アクティブも正円のまま */
.steps-nav .dots .dot.is-active,
.steps-nav .dots button.is-active {
  width: 8px;
  height: 8px;   /* ← 高さも同じにする */
  background: #A86F42;
  border-color: #A86F42;
  opacity: 1;
}

.steps-nav .dots .dot.is-active,
.steps-nav .dots button.is-active {
  width: 8px;
  background: #A86F42;
  border-color: #A86F42;
  opacity: 1;
}

/* アクセシビリティ対応 */
.steps-nav .nav:focus-visible,
.steps-nav .dots .dot:focus-visible,
.steps-nav .dots button:focus-visible,
.steps-viewport:focus-visible {
  outline: 2px solid #A86F42;
  outline-offset: 2px;
}


/* =========================
FAQセクション
========================= */

#faq {
  background-color: #F8F4EF;
  padding: 10% 0;
}

.faq-item {
  background-color: #ffffff;
  margin-bottom: 30px;
  border-radius: 15px;
  padding: 15px 50px;
}

.faq-question {
  width: 100%;
  padding: 15px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
}

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

.faq-item.active .faq-question::after {
  content: "-";
  background-color: #A1A1A1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 15px;
  color: #3E3A36;
  font-size: clamp(14px, 1.0vw, 999px);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 15px;
  border-top: 2px dotted #B0B0B0;
}

.faq-question span {
  color: #A86F42;
  margin-right: 30px;
  font-size: clamp(18px, 1.5vw, 999px);
  flex: 0 0 auto;
}

.faq-answer p span{
  color: #A1A1A1;
  margin-right: 30px;
  font-size: clamp(14px, 1.5vw, 999px);
}

.faq-answer p {
  display: flex;
  align-items: flex-start;
}

/* =========================
コンタクトセクション
========================= */

#contact {
  background-image: url(img/contact.webp);
  background-size: cover;
  background-position: center -200px;
  padding: 10% 0;
}

#contact h2 {
  font-family: "Noto Sans JP", sans-serif;
  margin-bottom: 0;
}

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

.contact-right .arrow-icon {
  display: block;
  padding-bottom: 9%;
}

.contact-right span {
  display: inline-block;
  width: clamp(30px, 3vw, 999px);   /* 最小30px, 推奨5vw, 最大60px */
  height: clamp(30px, 3vw, 999px);
  border: 1px solid #ffffff;
  border-radius: 50%;
  text-align: center;
  line-height: clamp(30px, 3vw, 999px); /* 高さに合わせる */
  font-size: clamp(12px, 1.2vw, 999px); /* 中の文字もレスポンシブ */
}

.contact-right span{
  transition: transform .3s ease;
  transform-origin: center;
}

.contact-right h2:hover ~ .arrow-icon span,
.contact-right .arrow-icon:hover span{
  transform: scale(1.2);
  opacity: .8;
}

#contact h2 a:hover {
  opacity: .8;
}

.contact-right:has(.arrow-icon:hover) h2 {
  opacity: .8;
}

.contact-inner {
  display: flex;
  background-color: #B96A2B;
  color: #ffffff;
  width: 80%;
  margin: 0 auto;
  border-radius: 15px;
  padding: 3% 5%;
}

.contact-left {
  border-right: 2px dotted #ffffff;
  width: 40%;
  padding-right: 5%;
}

.contact-right {
  width: 60%;
  padding-left: 5%;
  text-align: center;
}

#contact .logo img {
  width: 35%;
  margin: 0 auto;
  margin-bottom: 8%;
}

.contact-info {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: 100px 1fr;
  font-size: clamp(14px, 1.0vw, 999px);
}

.contact-right p {
  font-size: clamp(14px, 1.0vw, 999px);
  opacity: .8;

}

.contact-right p a {
  border-bottom: 1px solid #ffffff;
}

.contact-right p a:hover {
  opacity: .8;
}

/* =========================
ブログセクション
========================= */
#blog
{
  padding: 10% 0;
  background-color: #f7f5f3;
}

.blog-list
{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 8%;
}

@media (min-width: 960px)
{
  .blog-list
  {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.blog-card
{
  background-color: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

.blog-link
{
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-thumb img
{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.blog-body
{
  padding: 20px 22px 24px;
}

.blog-meta
{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}

.blog-badge
{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: clamp(12px, .8vw, 20px);
  letter-spacing: .06em;
  color: #ffffff;
  background-color: #A86F42;
}

.blog-date
{
  color: #777777;
  font-size: clamp(12px, .8vw, 20px);
}

.blog-title
{
  margin: 6px 0 8px;
  font-size: clamp(14px, 1.3vw, 20px);
  line-height: 1.5;
  font-weight: 400;
    /* 2行で切って「…」にする */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Safari/Chromium */
  line-clamp: 2;         /* 仕様版（対応ブラウザは自動で使用） */
  overflow: hidden;

  /* 長い英単語やURLのはみ出し対策（任意） */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-excerpt
{
  margin: 0;
  color: #333333;
  line-height: 1.9;
}

.blog-card:hover
{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}

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

footer {
  background: #EFE6DD;
  padding: 10% 0;
}

footer .container {
  display: flex;
}

.footer-left {
  width: 40%;
}

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

.footer-logo img{
  width: 40%;
}

.footer-logo {
  margin-bottom: 50px;
}

.copy-right {
  background-color: #D78638;
  color: #fff;
  font-size: clamp(14px, 1vw, 999px);
  padding: 10px 0;
  text-align: center;
}

.footer-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  width: 33%;
  font-size: clamp(14px, 1vw, 999px);
}

.footer-info dt {
  font-weight: 500;
}

.footer-info dd {
  margin: 0; /* デフォルトの余白をリセット */
}

.footer-btn-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.footer-btn-wrap a {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 18px 36px;
  background-color: #D78638;
  color: #fff;
  font-size: clamp(14px, 1.7vw, 999px);
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 6px 0 #B87433;
  position: relative;
  transition: all 0.15s ease-in-out;
}

.footer-btn-wrap a:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #7E512D;
}

.privacy-link {
  font-size: clamp(12px, 1vw, 999px);
  opacity: .8;
  border-bottom: 1px solid #3E3A36;
}

.privacy-link:hover {
  opacity: .5;
}

.footer-menu-list ul li a{
  display: block;
  padding: 2% 0;
}

.sub-menu-item {
  padding-left: 30px !important;
}

.footer-menu-list ul li a:hover {
  opacity: .8;
}

/* =========================
ブログ記事
========================= */
body.single h1{
  font-size: clamp(24px, 2.3vw, 999px);
  font-weight: 600;
  padding: 50px 0;
}

body.single h2{
  font-size: clamp(20px, 1.8vw, 999px);
  font-weight: 600;
  padding: 10px;
  border-bottom: solid 3px #D78638;
  border-top: solid 3px #D78638;
  margin-bottom: 3%;
  margin-top: 6%;
  background-color: #F8F4EF;
}

body.single h2:first-of-type
{
  margin-top: 3%;
}

body.single h3{
  font-size: clamp(16px, 1.3vw, 999px);
  font-weight: 600;
  padding: 5px 10px;
  border-left: solid 3px #D78638;
  border-bottom: solid 1px #D78638;
  margin-bottom: 3%;
}

body.single h4{
  font-size: clamp(14px, 1vw, 999px);
  font-weight: 600;
  padding: 10px;
  border-bottom: solid 1px #D78638;
  margin-bottom: 3%;
}

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

body.single .entry-header {
  position: relative;
  padding: 0 10%;
  border-top: 2px solid #EBEBEB;
  margin-bottom: 5%;
  z-index: -1;
}

.entry-cats {
  padding: 8px 20px;
  background-color: #A86F42;
  color: #ffffff;
  border-radius: 15px;
  margin-right: 20px;
}

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

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

body.single .entry-content p strong{
  font-weight: 700;
}

body.single .entry-content p em{
  font-style: italic;
}

body.single .entry-content p a{
  color: #D78638;
  border-bottom: solid 1px #D78638;
}

.wp-block-list {
  margin-bottom: 3%;
}

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

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

.wp-block-buttons a {
  z-index: 1;
  display: block;
  width: 50%;
  margin: 0 auto;
  padding: 18px 36px;
  background-color: #A86F42;
  color: #fff;
  font-size: clamp(14px, 1.7vw, 999px);
  font-weight: 500;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: 0 6px 0 #7E512D;
  position: relative;
  transition: all 0.15s ease-in-out;
}

.wp-block-buttons a:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #7E512D;
}

.entry-footer
{
  background-color: #ffffff;
  padding: 5% 10%;
  border-top: 2px solid #EBEBEB;
}

.entry-footer .post-nav
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

/* ★ Gridの子は min-width:auto なので、縮めて省略を効かせる */
.entry-footer .post-nav > div
{
  min-width: 0;
}

.entry-footer .post-nav a
{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  /* ここでは overflow は掛けない（テキスト側で制御） */
}

/* テキストだけに省略を適用 */
.entry-footer .post-nav .text
{
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 左右の寄せ方向（中央だけはそのまま） */
.entry-footer .post-nav .prev a
{
  justify-content: flex-start;
}

.entry-footer .post-nav .next a
{
  justify-content: flex-end;
}

/* 矢印は常に表示 */
.entry-footer .post-nav .chev
{
  flex: 0 0 auto;
}

/* ホバー任意 */
.entry-footer .post-nav a:hover
{
  border-color: #A86F42;
}

.entry-footer .post-nav .center a
{
  justify-content: center;   /* ボタン自体を中央寄せ */
}

.entry-footer .post-nav .center .text
{
  text-align: center;        /* 文字も中央に */
}

.wp-block-quote {
  background-color: #F8F4EF;
  border-left: 10px solid #A86F42;
  padding: 15px;
  margin-bottom: 3%;
}

.wp-block-quote p{
  margin-bottom: 0 !important;
}

/* ベース：懸垂インデント（マーカーは外側） */
.entry-content .wp-block-list
{
  list-style-position: outside;
  padding-inline-start: 1.4em;  /* マーカーぶんの余白 */
  margin-block: 1em;
}

.entry-content .wp-block-list li
{
  line-height: 1.9;
  margin-block: .4em;
  overflow-wrap: anywhere;
}

/* UL の階層別デザイン */
.entry-content ul.wp-block-list
{
  list-style-type: disc;
}

.entry-content ul.wp-block-list ul
{
  list-style-type: circle;
  padding-inline-start: 1.2em;
}

.entry-content ul.wp-block-list ul ul
{
  list-style-type: square;
  padding-inline-start: 1.2em;
}

/* OL の階層別デザイン */
.entry-content ol.wp-block-list
{
  list-style-type: decimal;
}

.entry-content ol.wp-block-list ol
{
  list-style-type: lower-alpha;
  padding-inline-start: 1.6em; /* 番号の桁増に備えて少し広め */
}

.entry-content ol.wp-block-list ol ol
{
  list-style-type: lower-roman;
  padding-inline-start: 1.6em;
}

/* マーカーの装飾（色など） */
.entry-content .wp-block-list li::marker
{
  color: #A86F42;
  font-weight: 700;
}

.entry-content .wp-block-list .wp-block-list li::marker
{
  color: #B96A2B;
}

.entry-content .wp-block-list .wp-block-list .wp-block-list li::marker
{
  color: #696969;
}

.entry-content ol.wp-block-list li::marker
{
  font-variant-numeric: tabular-nums; /* 桁揃えで読みやすく */
}


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

#blog-list .container {
  margin: 10% auto;
}

.h1-wrap {
  position: relative;
}

.h1-wrap img {
  width: 100%;
  min-height: 150px;
}

.h1-wrap h1 {
  z-index: 999;
  position: absolute;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 999px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.cat-filter {
  margin-bottom: 8%;
}

.cat-filter__list{
  display: flex;
}

.cat-filter__btn {
  margin-right: 10px;
  padding: 5px 10px;
  background-color: #ffffff;
  color: #A86F42;
  border-radius: 8px;
  border: solid 1px #A86F42;
}

.cat-filter__btn:hover {
  border-color: #A86F42;
}

.cat-filter__btn.is-active {
  background: #A86F42;
  color: #fff;
}

.cat-filter__btn:focus-visible {
  outline: 2px solid #A86F42;
  outline-offset: 2px;
}

/* ページネーション */
.pagination {
  margin-top: 32px;
}

/* paginate_links の <ul class="page-numbers"> を横並び */
.pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各ボタン（<a> または <span>）共通 */
.pagination ul.page-numbers a,
.pagination ul.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;          /* タッチしやすい推奨サイズ */
  min-height: 44px;
  padding: 8px 12px;
  color: #3E3A36;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
}

/* ホバー */
.pagination ul.page-numbers a:hover {
  border-color: #A86F42;
  color: #A86F42;
}

/* 現在ページ */
.pagination ul.page-numbers .current {
  color:  #A86F42;
  border-color: #A86F42;
  cursor: default;
}

/* 省略の "…"（.dots は <span> に付く） */
.pagination ul.page-numbers .dots {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0 6px;
  color: #999;
}

/* 前後ボタン（必要なら少しワイドに） */
.pagination ul.page-numbers .prev,
.pagination ul.page-numbers .next {
  padding-inline: 14px;
}

/* キーボードフォーカス */
.pagination ul.page-numbers a:focus-visible {
  outline: 2px solid #A86F42;
  outline-offset: 2px;
}

/* テーブル外枠（横スクロール対策） */
.table-wrap
{
  width: 100%;
  overflow-x: auto;
}


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

#price {
  background-color: #F8F4EF;
}

#price .container {
  padding-top: 10%;
  padding-bottom: 5%;
}

#price h2 {
  font-size: clamp(20px, 1.8vw, 999px);
  margin-bottom: 3%;
  font-weight: 600;
  padding: 10px;
  border-bottom: solid 3px #D78638;
  border-top: solid 3px #D78638;
  background-color: #F8F4EF;
}

/* ベース */
.price-table
{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  font-feature-settings: "palt";
}

/* 見出し行 */
.price-table thead th
{
  background-color: #8E6237;   /* 見出しの茶色 */
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
}

/* 左端の列見出し（行ヘッダ） */
.price-table tbody th[scope="row"]
{
  background-color: #F1E5DA;   /* 左列の淡いベージュ */
  font-weight: 700;
  text-align: left;
  padding: 16px 18px;
  vertical-align: top;
  border-right: 1px solid #E7D7C7;
  white-space: nowrap;
}

/* データセル */
.price-table td
{
  padding: 16px 20px;
  vertical-align: top;
  line-height: 1.7;
  border-right: 1px solid #EDE3D9;
}

/* 行区切り線 */
.price-table tbody tr:not(:last-child) th,
.price-table tbody tr:not(:last-child) td
{
  border-bottom: 1px solid #E7D7C7;
}

/* 角丸と外枠風 */
.price-table
{
  border: 1px solid #E3D6C8;
  border-radius: 6px;
  overflow: hidden; /* 角丸を効かせる */
}

/* 列幅調整（画像の比率に寄せる） */
.price-table .th-kind
{
  width: 18%;
}
.price-table thead th:nth-child(2)
{
  width: 22%;
}
.price-table thead th:nth-child(3)
{
  width: 14%;
}
.price-table .th-feature
{
  width: 46%;
}

/* キャプション（任意） */
.price-table caption
{
  text-align: left;
  font-weight: 700;
  margin-bottom: 10px;
}

.table-wrap {
  margin-bottom: 50px;
}


/* =========================
個人情報の取り扱いについてページ
========================= */

#privacy {
  background-color: #F8F4EF;
}

#privacy h1{
  font-family: "Noto Serif JP", serif;
}

#privacy h1 {
  font-size: clamp(20px, 2.5vw, 999px);
  text-align: center;
  margin-bottom: 8%;
  font-weight: 600;
}

#privacy .container {
  padding-top: 8%;
  padding-bottom: 8%;
}

#privacy .caption {
  margin-bottom: 5%;
}

#privacy h2 {
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 999px);
  margin-bottom: 2%;
}

.privacy-section {
  margin-bottom: 5%;
}

/* =========================
コンタクトページ
========================= */
#contact-form {
  background-color: #F8F4EF;
}

#contact-form .container {
  width: 50%;
  padding-top: 6%;
  padding-bottom: 6%;
}

/* ラベルをブロック化＆全幅 */
.wpcf7-form p label {
  display: block;
  width: 100%;
}

/* ラップ要素も全幅に */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 入力要素自体も全幅に */
.wpcf7-form .wpcf7-form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* テーマ側が横並びにしている場合の保険（不要なら削除可） */
.wpcf7-form p {
  display: block;
}

.required {
  color: #ffffff;
  background-color: #A86F42;
  padding: 3px 10px;
  margin-left: 15px;
  border-radius: 8px;
  font-size: 12px;
}

.wpcf7-form-control-wrap {
  margin: 15px 0;
}

.wpcf7-form .wpcf7-form-control {
  min-height: 50px;
  border-radius: 8px;
  border: 1px solid #B0B0B0;
  padding: 5px 8px;
}


.wpcf7-form-control.wpcf7-submit.has-spinner {
  background-color: #D78638;
  color: #ffffff;
  border: none;
}

.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
  background-color: #ffffff;
  color: #D78638;
  border: 2px solid #D78638;
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #dc3232;
  color: #dc3232;
}

/* 送信完了メッセージ（緑） */
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450; /* WordPress標準の緑 */
  color: #46b450;
}
