@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; }