/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial , "游ゴシック体", "Yu Gothic", "游ゴシック Medium", "Yu Gothic Medium", sans-serif;
    line-height: 1.6;
    color: #333;
}

a {text-decoration: underline; color: #666;}
p.justify {text-align: justify;}
table {table-layout: fixed;}
ul{padding-left:0;}
li{list-style:none;}

.mt0 {margin-top: 0px;}
.mt05 {margin-top: 5px;}
.mt10 {margin-top: 10px;}
.mt20 {margin-top: 20px;}
.mt30 {margin-top: 30px;}
.mt40 {margin-top: 40px;}
.mb0 {margin-bottom: 0px;}
.mb10 {margin-bottom: 10px;}
.mb20 {margin-bottom: 20px;}
.mb30 {margin-bottom: 30px;}
.mb40 {margin-bottom: 40px;}

.p10 {padding: 10px;}
.p20 {padding: 20px;}
.p30 {padding: 30px;}
.p40 {padding: 40px;}
.wp10 {padding: 0 10px;}
.wp30 {padding: 0 30px;}
.wp40 {padding: 0 40px;}

.txtS {font-size: 0.8rem;}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}



/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh; /* 互換性維持 (フォールバック) */
    min-height: 100svh; /* iOS16+ / Safe Viewport Height */
    min-height: 100dvh; /* 新しめ端末 / Dynamic Viewport Height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 画像のscaleによるはみ出しを隠す */
    flex-direction: column;
    padding: 3rem 1rem;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover;
    object-position: center 55%; 
    z-index: -2;
    /* 💡 通常ブラウザ用：blur/transformの効果を維持 */
    filter: brightness(0.7) blur(3px);
    transform: scale(1.05);
    /* 描画安定化の強制 (全環境に効く) */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0); /* 古いiOS向け保険 */
}

/* ===================================
    Instagramアプリ内ブラウザ向け安全モード
=================================== */
.inapp-instagram .hero-image {
    /* 描画バグの原因となる負荷の高いCSSを無効化 */
    filter: none !important; /* blurとbrightnessをオフ */
    transform: none !important; /* 拡大/移動をオフ */
    object-position: center; /* 位置もシンプルに */
}

/* フィルターオフで色が薄くなるのを防ぐため、オーバーレイを濃くする */
.inapp-instagram .hero-overlay {
    background: rgba(0,0,0,0.45) !important; /* 0.15 → 0.45に濃くする */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* ←透明度15%くらいで自然 */
    backdrop-filter: blur(3px);
    pointer-events: none; /* ←クリック操作は透過 */
    z-index: -1; /* ← 画像より上、テキストより下に置く */
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-logo {
    width: 150px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2.5rem;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 2.5;
    text-align: center;
}

.hero-tel-content {
  text-align: center;
  margin-top: 1.5rem; /* ボタンとの間に余白 */
  color: #e6e6e6; /* 柔らかいグレー文字 */
  line-height: 1.5;
}

.hero-tel-text {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.hero-tel {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.hero-tel:hover {
  opacity: 0.8; /* ホバーで少しトーンダウン */
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* ===================================
   Hero下ナビ：BOXデザイン＋矢印あり
=================================== */
/* Navigation Buttons */
.nav-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #e1e1d9;
  border-left: 1px solid #e1e1d9;
    border-right: 1px solid #e1e1d9;
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1.2rem 1rem;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-right: 1px solid #e1e1d9;
  border-bottom: 1px solid #e1e1d9;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* 最後だけ右線なし */
.nav-button:last-child {
  border-right: none;
}

.nav-button:hover {
  background-color: #f5f5f2;
}

.nav-button:hover .fa-chevron-down {
  transform: translateY(2px);
  transition: transform 0.3s ease;
}

.nav-button-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.nav-button-title,
.nav-button-subtitle {
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.nav-button-subtitle {
    font-size: 0.875rem;
    color: #666;
}

.nav-button i {
  font-size: 0.8rem;
  color: #999;
  transition: transform 0.3s ease;
}

/* 矢印の初期状態 */
.nav-button .fa-chevron-down {
  transition: transform 0.3s ease;
}

/* ホバーで矢印が軽く動く */
.nav-button:hover i {
  transform: translateY(2px);
}

/* PCではアイコン＋下矢印を表示 */
.icon-pc {
  display: inline-block;
  font-size: 0.8rem;
  color: #b4936c;
}

/* SPのアイコン表示 */
.icon-sp {
  display: none;
}


/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-gray {
    /* background-color: #f8f8f4; */
}

.section-dark {
    background-color: #4d4d4d;
    color: white;
    padding: 3rem 0 0rem;
}

.section-header {
    position: relative;
    margin-bottom: 2rem;
}

.section-hero-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.section-title-box {
    position: absolute;
    top: 2rem;
    left: 0;
    background-color: white;
    padding: 2rem 4rem;
    max-width: 400px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 100;
    color: #9d9c9c;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
}

/* Content Box */
.content-box_odd {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
}

.content-box_even {
    background-color: #f8f8f4;
    padding: 3rem;
    margin-bottom: 2rem;
}

.content-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 200;
    display: inline-block;
    border-bottom: 1px solid;
    padding-bottom: 0.3rem;
}

.content-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.content-text {
    font-size: 0.875rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 0rem;
}

/* Service Menu */
.service-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#maintenance.section {
    padding: 4rem 0 2rem;
}

.service-category {
    margin-bottom: 1rem;
}

.service-category-title {
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 1rem;
}
.service-category-title i {
    padding-right: 0.4em;
}

.service-items-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0;
    margin: 1rem 0;
    list-style: none;
}

.service-box {
    background-color: #f8f8f4;
    padding: 1.5rem 0rem;
    border-radius: 9999px;
    text-align: center;
    width: 360px; /* 💡 PCで揃える */
    box-sizing: border-box;
}

.service-box-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.service-box-description {
    font-size: 0.75rem;
    color: #666;
}

/* Covering Model Section */
.covering-section {
    max-width: 1000px;
    margin: auto;
    padding: 2.5rem;
    background-color: #f8f8f5;
}

.covering-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.covering-content {
    background-color: #f8f8f4;
    padding: 2rem 2rem 0rem 2rem;
}

.covering-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.covering-text {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.8;
}

.covering-button {
    display: inline-block;
    background-color: #393737;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.3s;
    border: 1px solid #333;
}

.covering-button:hover {
    background-color: #ffffff;
    border: 1px solid #333;
    color: #333;
}

/* Facility Images */
.facility-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.facility-image {
    width: 100%;
    border-radius: 8px;
}

/* Price Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.price-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #f8f8f4;
    padding: 1rem;
}

.price-card-header {
    /* background-color: #f3f4f6; */
    padding: 0.5rem 0rem 0.5rem 0rem;
    font-weight: 600;
    font-size: 22px;
}

.price-card-image {
    width: 100%;
    margin-bottom: 1.5rem;
}
.price-card-image img {
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
    display: block;
}

.price-card-content {
    flex-grow: 1;
    margin-bottom: 1.1rem;
}

/* 修理合計の位置を底に固定 */
.price-card-total {
    margin-top: auto; /* ←これで最下部に固定 */
    /* text-align: center; */
    border-top: 1.5px solid #000;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.price-card-title {
    display: flex;
    align-items: baseline;
    gap: 0.5em;
    font-size: 1.8rem;
    font-weight: 300;
    color: #737373;
}

.price-card_item{
    font-size: 0.95rem;
    font-weight: normal;
    color: #333;
}

.price-card-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price-card-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.price-card-list li p::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c"; /* ← fa-check のUnicode */
    margin-right: 0.4rem;
    color: #ffffff;
    font-size: 0.8rem;
}
.price-card-list li p {
    padding: 0.2rem 0.5rem;
    font-size: 0.82rem;
    border-radius: 4px;
    background-color: #686868;
    display: inline-block;
    color: #fff;
}

.price-total {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.price-reference {
    font-size: 0.75rem;
    color: #666;
}

/* Case Study */
.case-study-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #f8f8f4;
    padding: 1rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.case-study-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: space-evenly;
}

.case-study-image-wrapper {
    position: relative;
}

.case-study-image {
    width: 100%;
}

.case-study-label {
    position: absolute;
    /* top: 1rem; */
    right: 1rem;
    background-color: white;
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.case-study-content {
    text-align: center;
}

.case-study-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.case-study-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.case-study-detail-item {
    background-color: #686868;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #fff;
    display: inline-block;
    margin: 0.25rem; /* ← 間隔を整える */
    font-family: inherit;
}
.case-study-detail-item::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00c"; /* fa-check */
    margin-right: 0.4rem;
    color: #fff; /* 白文字でなじませる */
    font-size: 0.75rem;
    vertical-align: middle;
}

.case-study-price {
    margin: auto;
    text-align: center;
    border-top: 1.5px solid #000;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    max-width: 800px;
    font-size: 1.2rem;
    line-height: 120%;
}

/* flow arrow */
.flow-symbol {
    position: relative;
    text-align: center;
    margin: 3rem 0 3.5rem;
}
.flow-text {
    position: absolute;
    top: -1.6rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.3rem;
    font-weight: 100;
    color: #999;
    letter-spacing: 0.05em;
    padding: 0 1rem;
}
/* ▼ 下向きの太い「∨」をCSSで再現 */
.flow-arrow.down {
    width: 70px;
    height: 20px;
    margin: 0 auto;
    position: relative;
    background: transparent;
    top: 8px;
}
.flow-arrow.down::before,
.flow-arrow.down::after {
    content: "";
    position: absolute;
    bottom: -20px; /* ← 上からではなく下を基点にする */
    width: 50%;
    height: 40%;
    background: #f8f8f4; /* 矢印の色 */
    transform-origin: top;
}
.flow-arrow.down::before {
  left: 0;
  transform: skewY(25deg);
}
.flow-arrow.down::after {
  right: 0;
  transform: skewY(-25deg);
}
/* flow arrow end */

/* Repair Process */
.repair-process {
    background-color: #f8f8f4;
    padding: 2rem 2rem 3rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}
.repair-process-title {
    padding: 0rem 0rem 1.4rem 0rem;
    text-align: center;
}
.repair-process-title h3.content-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: normal;
    display: block;
    border-bottom: none;
    padding-bottom: 0;
}
.repair-process-title h2 {
    font-weight: 200;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    color: #9d9d9d;
}

.repair-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* STEP番号ブロック */
.repair-step-number {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    min-width: 80px;
}

/* STEPラベル */
.repair-step-label {
}

/* 斜線 */
.repair-step-slash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; /* 斜線の幅 */
  height: 2px; /* 斜線の高さ */
  background-color: #000; /* 斜線の色 */
  transform-origin: 0% 0%;
  transform: rotate(-45deg);
}

/* STEP数字 */
.repair-step-num {font-size: 40px;}

/*  */
.repair-flow {
    background-color: #f8f8f4;
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* 各ステップ */
.flow-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}
/* 折り畳み影響で消えた余白を補正（STEP3のみ） */
/* .flow-step:nth-of-type(3) {
  margin-top: 3rem;
} */

/* 左側（STEP番号＋縦線） */
.flow-step-left {
    width: 100px;
    text-align: center;
    flex-shrink: 0;
}

/* STEPラベルと数字 */
.flow-step-number {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.1;
    color: #686868;
}
.flow-step-label {
display: block;
font-size: 0.75rem;
color: #999;
}
.flow-step-num {
    font-size: 2.5rem;
    font-weight: 200;
    color: #333;
    letter-spacing: -1px;
}

/* 縦線 */
.flow-line {
  width: 1px;
  height: 100%;
  background-color: #686868;
  margin-top: 0.5rem;
}

/* 右側（テキスト＋画像） */
.flow-step-right {
  flex: 1;
}

.flow-step-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.flow-step-description {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* 画像 */
.repair-step-images {
  display: flex;
  gap: 1rem;
}
.repair-step-image {
    width: 90%;
}

/* 続きを見る（グラデーション演出付き） */
.readmore {
  position: relative;
  margin-top: -2rem;
}

.readmore-check {
  display: none;
}

.readmore-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 1s ease;
}

.readmore-check:checked ~ .readmore-content {
  max-height: 4000px;
  opacity: 1;
  transform: translateY(0);
}

/* グラデーション */
.readmore-gradient {
  position: absolute;
  bottom: 3rem;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(
    to bottom,
    rgba(248, 248, 244, 0) 0%,
    rgba(248, 248, 244, 0.95) 70%,
    rgba(248, 248, 244, 1) 80%
  );
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.readmore-check:checked + .readmore-gradient {
  opacity: 0;
  pointer-events: none;
}

/* 続きを見るボタン */
.readmore-trigger {
    position: relative;
    display: flex;
    top: -10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    margin: 0rem auto;
    font-weight: 500;
    transition: opacity 0.3s;
    z-index: 999;
}

.readmore-trigger:hover {
  opacity: 0.7;
}

/* テキスト切り替え */
/* 上にある「続きを読む」 */
.readmore-open::before {
  content: "続きを読む";
}
.readmore-close::before {
  /* content: "閉じる"; */
}

/* チェックOFF時＝「閉じる」を非表示 */
.readmore-close {
  display: none;
}

/* チェックON時＝「続きを読む」を非表示、「閉じる」を表示 */
.readmore-check:checked + .readmore-gradient + .readmore-open {
  display: none;
}
.readmore-check:checked ~ .readmore-close {
  display: flex;
}

/* 矢印（CSSで作成・統一） */
.arrow {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-left: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(-45deg);
  margin-top: 0.3rem;
  transition: transform 0.4s ease;
}

/* 閉じるの矢印を上向きに（⌃の形） */
.readmore-close .arrow {
  transform: rotate(135deg);
}

/*  */
.repair-step-content {
    flex: 1;
}

.repair-step-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.repair-step-description {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.repair-step-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.show-more-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.show-more-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.show-more-icon {
    width: 24px;
    height: 24px;
}

.more-steps {
    margin-top: 2rem;
}


/* メンテナンスの4つの流れ */
.step-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 0;
}

.step-flow-title {
    max-width: 1000px;
    margin: auto;
}

.step-flow-title .content-subtitle {
    font-size: 1.2rem;
}

.step-flow {
    flex: 1;
    background-color: #9d9d92;
    color: #fff;
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    /* clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%); */
    transition: all 0.3s ease;
}

.step-flow:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* STEPヘッダー部分 */
.step-head {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 2rem;
  margin-bottom: 1rem;
}

.step-num {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.step-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

/* Contact Us Section */
.contact-intro {
    text-align: center;
    max-width: 740px;
    margin: 0rem auto 3rem;
}

h2.contact-title {
    font-weight: 200;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-intro-text {
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.contact-box {
    padding: 0 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-company {
    font-size: 1rem;
    font-weight: normal;
}

.contact-phone-section {
    margin-bottom: 2.5rem;
}

.contact-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact-phone {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-hours {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-button {
    display: inline-block;
    /* background-color: #f9e47d; */
    color: #333;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
    font-weight: 600;
}

.contact-button:hover {
        background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Hero用（FV部分） */
.contact-button--hero {
    text-align: center;
    margin-bottom: 3rem;
      background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    font-weight: 600;
    backdrop-filter: blur(4px); /* ガラス風ぼかし */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-button--hero:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Footer用（下部のボタン） */
.contact-button--footer {
    text-align: center;
    margin-bottom: 2rem;
    background-color: #eedbb0;
    color: #333;
    font-weight: 600;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s 
ease;
    font-size: 1.1rem;
}
.contact-button--footer:hover {
    background-color: #a3825b;
    transform: translateY(-2px);
}

.contact-flow {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #b6b6b6;
    padding: 2rem;
}

.contact-flow-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.contact-flow-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-flow-number {
    font-size: 2.5rem;
    font-weight: bold;
    min-width: 60px;
}

.contact-flow-content {
    flex: 1;
}

.contact-flow-step-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.contact-flow-step-description {
    font-size: 0.875rem;
    /* color: rgba(255, 255, 255, 0.9); */
    /* margin-bottom: 0.5rem; */
}

.contact-flow-step-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===============================
PAGE TOPボタン
=============================== */
.page-top-button {
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  bottom: calc(20px + 56px); /* ← ボトムナビ高さぶん上げる */
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  color: #d6d6d6;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 999;
  transition: bottom 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* ナビが固定中のときに少し上げて被らないようにする */
.nav-buttons.fixed + .page-top-button {
  bottom: 90px; /* ← 位置を上げて被り防止 */
}

/* hover時の軽い浮き */
.page-top-button:hover {
  transform: translateY(-3px);
}

/* 表示制御 */
.page-top-button.visible {
  opacity: 1;
  pointer-events: auto;
}

.page-top-icon {
  width: 1rem;
  height: 1rem;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.page-top-button:hover {
    transform: translateY(-3px);
}

/* 表示状態 */
.page-top-button.visible {
    opacity: 1;
    pointer-events: auto;
}

.page-top-text {
    font-size: 0.6rem;
    color: #d6d6d6;
}

/* ===============================
追従ボタン
=============================== */
.floating-contact-button {
  position: fixed;
  bottom: 130px; /* PAGE TOPとのバランス */
  right: 0;
  background-color: #ead3a0;
  color: #333;
  border-radius: 10px 0 0 10px;
  width: auto;
  height: 65px;
  padding: 2.5rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, bottom 0.3s ease;
  z-index: 10000;
  pointer-events: none;
  flex-direction: column;
  justify-content: center;
}

.floating-contact-button.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.floating-contact-button:hover {
  transform: translateY(-2px);
}

.floating-contact-button i {
  font-size: 1rem;
  color: #333;
}

.floating-contact-label {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.8rem;
}

.copyright{
    text-align: center;
    font-size: 0.8rem;
    font-weight: 200;
    padding-bottom: 2rem;
}

/* --------------------
   レスポンシブ対応
-------------------- */
@media (max-width: 768px) {

    .container {padding: 0;}
    .section {padding: 2rem 0;}

    .inner{padding: 0 1rem;}

    /* Hero Section */
    .hero-section {
        padding-top: 5rem;  /* 上にロゴが被るなら6rem〜でもOK */
        padding-bottom: 3rem; /* Hero内のボタンや電話との距離確保 */
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* height: 120vh; */
        object-fit: cover;
        /* object-position: 80% 35%; */
        object-position: center;
        z-index: -2;
        display: block;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 2.2;
        text-align: center;
    }

    .hero-tel-content {
        margin-top: 1.3rem; /* ボタンと少し離す */
    }
    .hero-tel-text {
        font-size: 0.85rem;
    }

    .contact-button--hero {
        text-align: center;
        margin-bottom: 2rem;
    }

    .scroll-indicator {
        margin-bottom: 0rem;
    }

    .section-hero-image {
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: left 0px;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .section-title-box {
        padding: 1.5rem;
    }

    /* Content Box */
    .content-box_odd {
        background-color: white;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    .content-box_even {
        background-color: #f8f8f4;
        padding: 1rem;
        margin-bottom: 2rem;
    }

    /* Service Menu */
    .service-items-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* padding: 0 1rem; */
        box-sizing: border-box;
    }
    .service-box {
        width: 100%;
        max-width: 380px;
    }

    /* case study */
    .case-study-images {
    /* display: flex; */
    gap: 1rem;
    margin-bottom: 2rem;
    /* justify-content: space-evenly; */
    flex-direction: column;
    }

    /* Covering Model Section */
    .covering-section {
        padding: 1rem;
    }
    .covering-content {
        background-color: #f8f8f4;
        padding: 1rem 0.3rem;
    }
    .covering-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

    /* flow arrow */
    .flow-text {
        font-size: 1.8rem;
        white-space: nowrap; /* ← 強制的に1行に */
        /* transform: scale(0.95); */
    }
    .flow-arrow.down {
        width: 60px;
        height: 20px;
    }
    .flow-symbol {
        width: 100%;
        padding: 0 1rem;
        /* position: relative; */
        text-align: center;
        margin: 2rem 0 3rem;
    }
    /* flow arrow end */

    /* メンテナンスの工程 */
    .flow-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .flow-step-left {
        display: none;
    }
    .flow-step-right {
        position: relative;
        padding-left: 0;
    }
    /* .flow-step-right::before {
    content: attr(data-step);
    font-weight: 300;
    font-size: 2rem;
    color: #333;
    margin-right: 0.5rem;
} */

    .flow-step-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0 0 0.5rem;
  }
    /* 数字をタイトルの左に追加 */
  .flow-step-title::before {
    content: attr(data-step);
    display: inline-block;
    font-weight: 200;
    font-size: 2rem;
    color: #333;
    line-height: 1;
  }

    .flow-step-num {
        font-size: 1.5rem;
    }

    .repair-step-images {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .repair-step-image {
        width: 100%;
    }

    .readmore-gradient {
        height: 100px;
    }

    .repair-step {
        flex-direction: column;
        gap: 1rem;
    }

    .repair-step-number {
        font-size: 2rem;
        min-width: auto;
    }

      /* テキスト説明と画像 */
    .flow-step-description {
        font-size: 0.9rem;
    margin: 0 0 0.8rem;
    }


    .contact-flow-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-flow-number {
        font-size: 2rem;
    }

    .contact-box .section {
        padding: 2rem 0 0 0;
    }

    .page-top-button {
        bottom: calc(20px + 50px);
        right: 0rem;
        padding: 0.5rem 0.75rem;
    }

    /* Price Grid */
    .price-grid {
        display: block; /* grid解除 */
    }
    .price-card {
        margin-bottom: 1rem; /* 縦積み間の余白 */
    }

    .row {
        flex-direction: column;
        gap: 1.4rem;
    }


  /* メンテナンスの4つの流れ */
    .step-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .step-flow-title .content-subtitle {
        font-size: 1.2rem;
    }

    .step-flow {
        /* clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%); */
        /* padding: 1.5rem 1.5rem 2.5rem; */
        padding: 1.5rem 2rem 2.3rem;;
        text-align: left;
    }
    .step-flow:last-child {
        /* clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); */
        padding: 1.5rem;
    }

    .step-head {
        justify-content: flex-start;
    }

    .step-num {
        font-size: 2rem;
    }

    .step-title {
        font-size: 1.2rem;
    }

    .step-desc {
        line-height: 1.6;
        margin: 0; /* ✅ 指定通りnoマージン */
    }

    /* Contact Us Section */
    .contact-intro {
        text-align: center;
        padding: 0 1.2rem;
    }


    .copyright{
    padding-bottom: 0.5rem;
}

    /* ===============================
SP用ボトムナビゲーション
=============================== */
    .nav-buttons {
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid #e1e1d9;
    }

    /* JSで .fixed が付いたら画面下に固定 */
    .nav-buttons.fixed {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        background-color: #fff;
    }
    /* SPボトムナビ時は下矢印非表示 */
        .nav-buttons.fixed .fa-chevron-down {
        display: none !important;
    }
        nav.nav-buttons.fixed i.fa-chevron-down {
        display: none !important;
    }

    .nav-buttons[style*="position: absolute"] {
        margin-top: 70px;
    }

    /* アイコン＋日本語 */
    .nav-button {
    flex-direction: column;
        padding: 0.8rem 0;
        border-right: 1px solid #ccc;
    }

    .nav-button i.fa-chevron-down {
        display: none !important;
    }

        .nav-button:last-child {
        border-right: none;
    }

    .nav-button-title {
        font-size: 1rem;
    }

    .nav-button-subtitle {
        font-size: 0.75rem;
    }

    .nav-button-subtitle i {
        font-size: 1rem;
        margin-bottom: 2px;
        color: #b4936c; /* アイコンカラー（追従ボタンと統一） */
    }

    /* フッターに差しかかるとふんわり上がる */
    .nav-buttons.hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    /* SPでは下矢印も表示 */
    .icon-sp {
        display: inline-block;
        font-size: 1rem;
        color: #b4936c;
        margin-bottom: 0.3rem;
    }

    /* 下矢印を縦方向に配置 */
    .icon-pc {
        display: inline-block;
        font-size: 0.8rem;
        color: #b4936c;
        margin-top: 0.3rem;
    }

    .nav-button-title,
    .icon-pc {
        display: none !important;
    }

    /* SPボトムナビ時（固定状態）では下矢印を非表示 */
    nav.nav-buttons.fixed i.fa-chevron-down {
        display: none !important;
    }


    /* 追従 相談フォーム */
    .floating-contact-label {
        font-size: 0.6rem;
    }
    .floating-contact-button {
        padding: 0.3rem;
    }

}


/* --------------------
   PCのみ対応
-------------------- */
@media (min-width: 769px) {
    body br.none { display: none; }
    br.pc_none {display: block !important;}
    .case-study-images {
        flex-direction: row;
    }

    .case-study-details {
        flex-direction: row;
        justify-content: center;
    }


/* ===============================
ボトムナビ：PC・SPでの出し分け
=============================== */
    .nav-button {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* SP用レンチはPCでは非表示 */
    .icon-sp {display: none !important;}

    .nav-button-title {
        display: inline;
        font-size: 1.2rem;
        line-height: 1;
    }

    .nav-button-subtitle {
        display: inline;
        font-size: 0.85rem;
        color: #333;
        line-height: 1;
    }

    .icon-pc {
        display: inline-block;
        font-size: 0.85rem;
        color: #b4936c;
        margin-left: 2px;
    }

}

/* ===============================
SPボトムナビの安定化 (JSで.fixedが付いたときに適用)
=============================== */
.nav-buttons.fixed {
    /* 描画安定化の強制 (GPUアクセラレーションを起動し、スクロール時のガタつきを防ぐ) */
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}