@charset "UTF-8";

/* =========================================================
   共通：ハンバーガーボタン・メニュー本体・オーバーレイ
========================================================= */
.ad-hamburger {
  width: 30px; height: 22px; cursor: pointer;
  background: transparent; border: none; outline: none; padding: 0;
  display: block !important;
}
.ad-hamburger span {
  display: block; position: absolute; width: 100%; height: 2px;
  background-color: #333 !important; /* 黒色 */
  transition: all 0.3s ease-in-out; border-radius: 2px; left: 0;
}
.ad-hamburger span:nth-child(1) { top: 0; }
.ad-hamburger span:nth-child(2) { top: 10px; }
.ad-hamburger span:nth-child(3) { bottom: 0; }

.ad-hamburger.is-active span:nth-child(1) { transform: translateY(10px) rotate(45deg); background-color: #333 !important;}
.ad-hamburger.is-active span:nth-child(2) { opacity: 0; }
.ad-hamburger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); background-color: #333 !important;}

.drawer-menu {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
  background-color: #fff; box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  z-index: 9999; transition: right 0.3s ease; padding-top: 100px; overflow-y: auto;
}
.drawer-menu.is-active { right: 0; }
.drawer-menu-list { list-style: none; padding: 0 40px; margin: 0; text-align: left; }
.drawer-menu-list > li { margin-bottom: 25px; }
.drawer-menu-list a { color: #333; font-size: 1.2rem; font-weight: bold; text-decoration: none; display: block; transition: opacity 0.3s ease; }
.drawer-menu-list a:hover { opacity: 0.7; }

.drawer-sublist { list-style: none; padding: 15px 0 0 15px; margin: 0; border-left: 2px solid #eee; }
.drawer-sublist li { margin-bottom: 15px; }
.drawer-sublist a { font-size: 0.95rem; color: #666; font-weight: normal; }

.menu-overlay, .menu-overlay-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s;
}
.menu-overlay.is-active, .menu-overlay-bg.is-active { opacity: 1; visibility: visible; }

/* =========================================================
   トップページ (index.html) 専用スタイル
========================================================= */
body:not(.page-ad) { padding-top: 72px !important; margin: 0; }

body:not(.page-ad) .custom-header, 
body:not(.page-ad) .g-navi-sp {
  position: absolute !important; 
  top: 0; left: 0; width: 100%; z-index: 9000 !important;
}

body:not(.page-ad) .logo-space img, 
body:not(.page-ad) .sp-logo img {
  display: inline-block !important;
  transform: scale(0.8) !important;
  transform-origin: left center !important;
}

@media screen and (max-width: 768px) {
  body:not(.page-ad) .g-navi-sp .sp-logo img {
    transform-origin: center center !important;
  }
}

body:not(.page-ad) .g-navi, 
body:not(.page-ad) .hamburger-menu, 
body:not(.page-ad) .menu-overlay-bg,
body:not(.page-ad) .custom-header .hamburger-btn, 
body:not(.page-ad) .g-navi-sp .menu-trigger {
  display: none !important;
}

body:not(.page-ad) .ad-hamburger {
  position: fixed; top: 20px; right: 20px; z-index: 10000;
}

/* =========================================================
   広告ページ (ad.html) 専用スタイル
========================================================= */
body.page-ad { padding-top: 0 !important; margin: 0; }

.page-ad .header {
  position: fixed; top: 0; left: 0; width: 100%; height: 80px;
  background: transparent; z-index: 9998; box-shadow: none; pointer-events: none;
}
.page-ad .header-inner {
  display: flex; justify-content: flex-end; align-items: center; height: 100%; padding: 0 20px; pointer-events: auto;
}
.page-ad .ad-hamburger { position: relative; z-index: 9999; }

.page-ad .sub-mv {
  margin-top: 0 !important;
  background-image: url("../img/ad_FV_PC.png"); 
  background-size: cover; background-position: center center; background-repeat: no-repeat;
  padding: 140px 0 100px; margin-bottom: 60px;
}
.page-ad .sub-mv-inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; text-align: left; }
.page-ad .sub-mv h1 {
  display: inline-block; width: fit-content; background-color: #333; color: #fff;
  font-size: 1.6rem; font-weight: 700; letter-spacing: 0.1em; padding: 10px 15px; margin: 0; border-radius: 2px;
}

.page-ad .sub-section { max-width: 1000px; margin: 0 auto 80px; padding: 0 20px; }
.page-ad .sub-section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 50px; color: #606060; position: relative; }
.page-ad .sub-section-title::after { content: ''; display: block; width: 40px; height: 2px; background-color: #333; margin: 15px auto 0; }

.page-ad .concept-box { text-align: center; line-height: 2; font-size: 1rem; color: #444; margin-bottom: 80px; }
.page-ad .concept-box strong { font-weight: 700; color: #000; font-size: 1.3rem; display: block; margin-bottom: 20px; }

.page-ad .strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.page-ad .strength-card { background: #fff; padding: 40px 25px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); text-align: center; border-top: 4px solid #3DB9BD; }
.page-ad .strength-icon { font-size: 2.5rem; color: #3DB9BD; margin-bottom: 20px; }
.page-ad .strength-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; line-height: 1.4; color: #333; }
.page-ad .strength-text { font-size: 0.95rem; line-height: 1.8; color: #555; text-align: left; }

.page-ad .service-list { display: flex; flex-direction: column; gap: 40px; }
.page-ad .service-item { display: flex; align-items: center; background: #fafafa; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }
.page-ad .service-item:nth-child(even) { flex-direction: row-reverse; }
.page-ad .service-item-img { width: 40%; min-height: 250px; }
.page-ad .service-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-ad .service-item-content { width: 60%; padding: 40px; }
.page-ad .service-item-title { font-size: 1.3rem; font-weight: bold; margin-bottom: 15px; color: #333; }
.page-ad .service-item-text { font-size: 0.95rem; line-height: 1.8; color: #555; }

.page-ad .cta-area { text-align: center; background: #eef2f5; padding: 60px 20px; margin-bottom: 0; }
.page-ad .cta-text { font-size: 1.2rem; margin-bottom: 25px; font-weight: bold; color: #333; }
.page-ad .cta-btn { display: inline-block; padding: 15px 50px; background: #3DB9BD; color: #fff; font-size: 1.1rem; text-decoration: none; border-radius: 50px; transition: opacity 0.3s ease; }
.page-ad .cta-btn:hover { opacity: 0.8; color: #fff; }

@media screen and (max-width: 768px) {
  .page-ad .sub-mv { background-image: url("../img/ad_FV_SP.png"); padding: 120px 0 80px; }
  .page-ad .concept-box strong { font-size: 1.15rem; }
  .page-ad .strength-grid { grid-template-columns: 1fr; }
  .page-ad .service-item, .page-ad .service-item:nth-child(even) { flex-direction: column; }
  .page-ad .service-item-img, .page-ad .service-item-content { width: 100%; }
  .page-ad .service-item-img { min-height: 200px; }
  .page-ad .service-item-content { padding: 25px; }
}

/* =========================================================
   フォームページ (input.html) 専用スタイル
========================================================= */
.form-wrapper { max-width: 800px; margin: 40px auto 60px; padding: 0 20px; }
.form-table { margin-bottom: 30px; }
.form-group { display: flex; flex-wrap: wrap; margin-bottom: 15px; }
.form-label { flex: 0 0 200px; padding: 12px 15px 12px 0; box-sizing: border-box; color: #333; font-size: 0.8rem; letter-spacing: 0.05em; display: flex; align-items: flex-start; }
.form-input-area { flex: 1; padding: 0; box-sizing: border-box; min-width: 0; }

@media (max-width: 600px) {
  .form-group { flex-direction: column; margin-bottom: 20px; }
  .form-label { flex: auto; width: 100%; padding: 5px 0; }
}

.req { background: transparent; color: #cc0000; font-size: 1rem; padding: 0; margin-left: 5px; vertical-align: middle; font-weight: normal; line-height: 1; }
.form-input { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; box-sizing: border-box; line-height: 1.5; }

::placeholder { font-size: 12px !important; color: #999 !important; opacity: 1; }
::-webkit-input-placeholder { font-size: 12px !important; color: #999 !important; }
::-moz-placeholder { font-size: 12px !important; color: #999 !important; opacity: 1; }
:-ms-input-placeholder { font-size: 12px !important; color: #999 !important; }

/* ▼▼ プルダウン（select）関連の正しい記述 ▼▼ */
select.form-input {
  background-color: #fff; appearance: none; -webkit-appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: 30px; cursor: pointer;
}

/* 1. is-emptyクラスが付いている時（未選択状態）は小さくグレーに */
select.form-input.is-empty { 
  font-size: 12px !important; 
  color: #999 !important; 
}

/* 2. リストの中の「選択してください」などの初期値も小さくグレーに */
select.form-input option[value=""] { 
  font-size: 12px !important; 
  color: #999 !important; 
}

/* 3. 実際の選択肢（北海道など）は元のサイズ（15px）と黒文字に */
select.form-input option:not([value=""]) { 
  font-size: 15px !important; 
  color: #333 !important; 
}

/* 4. is-emptyクラスが外れた時（選択完了時）は元のサイズと黒文字に */
select.form-input:not(.is-empty) {
  font-size: 15px !important; 
  color: #333 !important;
}
/* ▲▲ プルダウン（select）関連の記述ここまで ▲▲ */


textarea.form-input { height: 150px; resize: vertical; }
.req-note { font-size: 12px; color: #666; margin-top: 5px; }

.privacy-section { padding-top: 0; }
.privacy-box { background: #fff; border: 1px solid #ccc; height: 160px; overflow-y: scroll; padding: 20px; font-size: 12px; line-height: 1.8; margin-bottom: 20px; text-align: left; }
.privacy-box strong { display: block; color: #333; font-weight: bold; margin-top: 15px; margin-bottom: 5px; }
.privacy-box strong:first-child { margin-top: 0; }
.privacy-box ul { padding-left: 20px; margin-bottom: 15px; list-style-type: disc; }
.privacy-agree { text-align: center; margin-bottom: 40px; }
.privacy-agree label { cursor: pointer; font-weight: normal; font-size: 13px; color: #333; }
.privacy-agree input[type="checkbox"] { transform: scale(1.1); margin-right: 8px; vertical-align: middle; }

.submit-btn { display: block; width: 100%; max-width: 300px; margin: 0 auto; padding: 15px; background: #333; color: #fff; font-size: 16px; border: none; border-radius: 50px; cursor: pointer; transition: opacity 0.3s ease; }
.submit-btn:hover { opacity: 0.8; }
/* =========================================
   自動車ラッピング事業 (wrapping.html) 用スタイル
   ========================================= */

/* ▼ メインビジュアル背景の切り替え ▼ */
body.page-ad section.wrap-mv-bg {
  background-image: url('../img/wrap_FV_PC.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
@media screen and (max-width: 750px) {
  body.page-ad section.wrap-mv-bg {
    background-image: url('../img/wrap_FV_SP.jpg') !important;
    background-size: 100% auto !important; 
    background-position: top center !important; 
    height: 130vw !important; 
  }
}

/* ▼ PC版のみ改行させるクラス ▼ */
@media screen and (max-width: 750px) {
  .pc-br { display: none; }
}
.wrap-concept-text1 { margin-top: 20px; }
.wrap-concept-text2 { margin-top: 15px; }

/* ▼ ふわっと表示アニメーション ▼ */
.wrap-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.wrap-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ▼ 施工フローの順番アニメーション ▼ */
.wrap-flow-item, .wrap-flow-arrow {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.wrap-flow-item.active, .wrap-flow-arrow.active {
  opacity: 1;
  transform: translateY(0);
}
@media screen and (max-width: 900px) {
  .wrap-flow-arrow { transform: translateY(20px) rotate(90deg); }
  .wrap-flow-arrow.active { transform: translateY(0) rotate(90deg); }
}

/* ▼ サービス内容のレイアウト調整 ▼ */
.wrap-service-item { align-items: stretch; }
.wrap-service-box { display: flex; flex-direction: column; justify-content: center; }
.wrap-service-img { height: 100%; object-fit: cover; border-radius: 8px; width: 100%; display: block; }
@media screen and (min-width: 751px) {
  .wrap-sp-title { display: none !important; }
}
@media screen and (max-width: 750px) {
  .wrap-pc-title { display: none !important; }
  .wrap-sp-title { 
    display: block !important; 
    text-align: center; margin-bottom: 15px; 
    font-size: 1.3rem; font-weight: bold; color: #333;
  }
  .wrap-service-img-area { margin-bottom: 15px; }
}

/* ▼ 価格表エリア ▼ */
.wrap-price-wrapper {
  background: #fafafa; border-radius: 8px; border: 1px solid #eee; 
  padding: 40px; max-width: 1000px; margin: 0 auto;
}
.wrap-price-note {
  text-align: center; margin-bottom: 25px; color: #555; font-size: 0.95rem; line-height: 1.6;
}
.wrap-price-table-container { overflow-x: auto; }
.wrap-price-table { width: 100%; border-collapse: collapse; min-width: 600px; text-align: center; }
.wrap-price-table th {
  padding: 15px; border-bottom: 2px solid #3DB9BD; background-color: #fff; width: 25%; font-weight: bold; color: #333;
}
.wrap-price-table td { padding: 15px; border-bottom: 1px solid #ddd; color: #444; font-size: 0.95rem; }
.wrap-price-table td.price-label { font-weight: bold; text-align: left; }

/* ▼ メリット部分をPCで2列(2x2)にするためのグリッド ▼ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
@media screen and (max-width: 750px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ▼ 施工事例カルーセル ▼ */
.carousel-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 50px; /* PC用の左右ボタンの余白 */
}
.works-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* スクロール時にピタッと止まる設定 */
  scrollbar-width: none; /* Firefox用スクロールバー非表示 */
  -ms-overflow-style: none; /* IE, Edge用 */
  padding-bottom: 20px; /* 影(box-shadow)が切れないための余白 */
}
.works-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari用スクロールバー非表示 */
}

/* カードを少し大きく設定 */
.work-card {
  flex: 0 0 400px; /* PCでのカード幅を400pxに固定 */
  scroll-snap-align: start;
  background: #fff; 
  border-radius: 8px; 
  overflow: hidden; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
  border: 1px solid #eee; 
}
.work-img { 
  width: 100%; 
  height: 250px; /* 画像も少し大きく(旧200px) */
  object-fit: cover; 
  display: block; 
}
.work-content { padding: 25px 20px; }
.work-title { font-size: 1.15rem; font-weight: bold; margin-bottom: 15px; color: #333; border-bottom: 1px solid #3DB9BD; padding-bottom: 5px; display: inline-block; }
.work-details { list-style: none; padding: 0; margin-bottom: 15px; font-size: 0.95rem; color: #555; line-height: 1.6; }
.work-price { font-size: 1.1rem; font-weight: bold; color: #333; text-align: right; margin: 0; }

/* 左右の操作ボタン */
.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #3DB9BD;
  font-size: 1.2rem;
  z-index: 2;
  transition: all 0.3s ease;
}
.carousel-btn:hover {
  background: #3DB9BD;
  color: #fff;
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

@media screen and (max-width: 750px) {
  .carousel-wrapper { padding: 0; } /* スマホは画面端まで使う */
  .carousel-btn { display: none; } /* スマホはスワイプ操作のみにするためボタン非表示 */
  .works-carousel { gap: 15px; padding: 0 15px 20px 15px; }
  .work-card {
    flex: 0 0 85%; /* スマホでは画面の85%幅にして、次のカードをチラ見せしスワイプを促す */
  }
}