@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* ============================================================
   AUTOSHOP エクステンド — Pattern D ヘッダー（v2修正版）
   子テーマ style.css に追記（既存追記を全削除してこれに差し替え）
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@300;400;500&family=DM+Sans:wght@300;400;500&family=Dela+Gothic+One&display=swap');

:root {
  --ex-black:  #0D1B2A;
  --ex-accent: #E8C15A;
  --ex-gray:   #a09890;
  --ex-line:   #06C755;
  --ex-white:  #faf7f3;
}

/* admin-bar補正 */
body.admin-bar #ex-topbar { top: 32px !important; }
body.admin-bar #ex-header { top: 60px !important; }
body.admin-bar #ex-drawer { top: 118px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar #ex-topbar { top: 46px !important; }
  body.admin-bar #ex-header { top: 74px !important; }
  body.admin-bar #ex-drawer { top: 132px !important; }
}

/* ============================================================
   トップバー
============================================================ */
#ex-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  background: rgba(13,27,42,0.97) !important;
  border-bottom: 1px solid rgba(232,193,90,0.2);
  height: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}
#ex-topbar-text {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ex-accent);
  font-weight: 500;
  white-space: nowrap;
}
#ex-topbar-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.ex-topbar-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: var(--ex-gray);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.15s;
}
.ex-topbar-link:hover { color: var(--ex-accent); }
.ex-topbar-link.line  { color: var(--ex-line); }

/* ============================================================
   メインヘッダー
============================================================ */
#ex-header {
  position: fixed;
  top: 28px; left: 0; right: 0;
  z-index: 99998;
  background: var(--ex-black) !important;
  border-bottom: 2px solid var(--ex-accent);
  height: 58px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}

#ex-menu-btn {
  width: 38px; height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
}
#ex-menu-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ex-accent);
  transition: all 0.25s ease;
  transform-origin: center;
}
#ex-menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#ex-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#ex-menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#ex-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  margin-left: 10px;
  flex-shrink: 0;
}
#ex-logo-sub {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ex-gray);
  line-height: 1;
}
#ex-logo-main {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 19px;
  color: transparent;
  letter-spacing: -0.12em;
  -webkit-text-stroke: 0.3px var(--ex-accent);
  paint-order: stroke fill;
  display: inline-block;
  vertical-align: middle;
  transform: scaleY(1.25);
  transform-origin: center;
  line-height: 1;
}

/* ============================================================
   PC専用ナビ（横並び）
============================================================ */
#ex-pc-nav {
  display: none;  /* スマホでは非表示 */
  margin-left: auto;
  margin-right: 16px;
  align-items: center;
  gap: 0;
  height: 100%;
}
#ex-pc-nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ex-white);
  text-decoration: none;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
  letter-spacing: 0.05em;
}
#ex-pc-nav a:hover {
  background: rgba(232,193,90,0.08);
  color: var(--ex-accent);
}

/* PC（769px以上）でPC専用ナビを表示・ハンバーガーを非表示 */
@media (min-width: 769px) {
  #ex-pc-nav { display: flex; }
  #ex-menu-btn { display: none !important; }
}

#ex-header-line {
  margin-left: auto;
  background: var(--ex-line);
  color: #fff;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s;
  white-space: nowrap;
}
#ex-header-line:hover { opacity: 0.85; }

/* PC時のLINEボタンmargin調整 */
@media (min-width: 769px) {
  #ex-header-line { margin-left: 0; }
}

/* ============================================================
   ドロワー（スマホ専用）
============================================================ */
#ex-drawer {
  position: fixed;
  top: 86px; left: 0; right: 0; bottom: 0;
  z-index: 99997;
  background: var(--ex-black) !important;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-top: 1px solid rgba(232,193,90,0.15);
  /* ドロワーが他要素の影響を受けないよう完全分離 */
  isolation: isolate;
}
#ex-drawer.open { transform: translateX(0); }

#ex-drawer-inner {
  padding: 8px 0 120px;
  background: var(--ex-black) !important;
}

#ex-drawer-cta {
  margin: 16px 14px 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.ex-drawer-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.ex-drawer-cta-btn:hover { opacity: 0.85; }
.ex-drawer-cta-btn.line-btn { background: var(--ex-line); color: #fff; }
.ex-drawer-cta-btn.tel-btn  { background: rgba(232,193,90,0.12); color: var(--ex-accent); border: 1px solid rgba(232,193,90,0.3); }
.ex-drawer-cta-btn.mail-btn { background: rgba(232,193,90,0.12); color: var(--ex-accent); border: 1px solid rgba(232,193,90,0.3); }
.ex-drawer-cta-icon { font-size: 18px; }

/* ナビリスト：トップページのCSSに干渉されないよう全プロパティを強制 */
#ex-drawer .ex-nav-list,
#ex-drawer ul.ex-nav-list {
  list-style: none !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  display: block !important;
}
#ex-drawer .ex-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  background: transparent !important;
  list-style: none !important;
  display: block !important;
}
#ex-drawer .ex-nav-list a {
  display: flex !important;
  align-items: center !important;
  padding: 16px 20px !important;
  text-decoration: none !important;
  background: transparent !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--ex-white) !important;
  transition: background 0.15s !important;
  position: relative !important;
  letter-spacing: 0.02em !important;
  line-height: 1.4 !important;
  border: none !important;
  margin: 0 !important;
}
#ex-drawer .ex-nav-list a:hover {
  background: rgba(232,193,90,0.06) !important;
}
#ex-drawer .ex-nav-list a::after {
  content: '›' !important;
  position: absolute !important;
  right: 18px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 18px !important;
  color: var(--ex-accent) !important;
  opacity: 0.5 !important;
}

#ex-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99996;
  background: rgba(0,0,0,0.5);
}
#ex-overlay.open { display: block; }

/* ============================================================
   下部固定アクションバー（スマホ専用）
============================================================ */
#ex-bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99995;
  background-color: rgba(232,193,90,0.2);
  border-top: 2px solid var(--ex-accent);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
}
.ex-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 0 12px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
  background: var(--ex-black);
}
.ex-bottom-btn:hover { opacity: 0.85; }
.ex-bottom-btn.line-btn { background: var(--ex-line); color: #fff; }
.ex-bottom-btn.tel-btn,
.ex-bottom-btn.mail-btn { color: var(--ex-accent); }
.ex-bottom-icon { font-size: 18px; line-height: 1; }

/* ============================================================
   ページ本体をヘッダー・フッター分ずらす
============================================================ */
body {
  padding-top: 86px !important;
  padding-bottom: 64px !important;
}

/* PCではボトムバー非表示・下paddingリセット */
@media (min-width: 769px) {
  #ex-bottom-bar { display: none; }
  body { padding-bottom: 0 !important; }
}