/*
Theme Name: Custom Original Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Minimal, clean starter theme with enqueueing, menus, widgets, and basic templates.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: custom-original-theme
Tags: blog, one-column, two-columns, right-sidebar, custom-menu, featured-images
*/

/* Basic reset and typography */
:root{
  --font-base: "BIZ UDP Gothic", sans-serif;
  --color-fg: #222;
  --color-bg: #fff;
  --color-accent: #0073aa;
  --max-w: 1100px;
  --color-primary: #0d2f66;   /* 濃い青 */
  --color-yellow:  #b8860b;   /* 濃い黄（アクセント） */
  --color-border:  #e5e7eb;
  --color-muted:   #666;
  --chip-bg:       #0d2f6614; /* 透明青 */
  --note-bg:       #f7f3e7;   /* メモ枠の淡色 */
  --warn:          #b00020;   /* 注意テキスト */
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; color:var(--color-fg); background:var(--color-bg); font-family: var(--font-base); line-height:1.7; }
a{ color:var(--color-accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
.container{ width:100%; max-width: var(--max-w); margin:0 auto; padding: 0 16px; }
.site-header{ border-bottom:1px solid #eee; background:#fff; position: sticky; top:0; z-index: 99;}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; padding: 14px 16px;}
.site-title{ font-weight:700; font-size: 20px; margin:0; }
.site-description{ color:#666; font-size:14px; margin:0; }
.site-brand{ display:flex; gap:10px; align-items:center; color:var(--color-primary);}
.site-brand a{color:var(--color-primary);}
.site-nav ul{ display:flex; gap: 16px; list-style:none; padding:0; margin:0; }
.menu-toggle{ display:none; }
/* main{ padding: 28px 0; } */
.site-footer{ border-top:1px solid #eee; padding: 28px 0; color:#666; font-size: 14px; }
.entry-title{ margin: 0 0 8px; }
.meta{ color:#666; font-size: 14px; }
.post-card{ padding:18px; border:1px solid #eee; border-radius:8px; margin-bottom:16px; background:#fff; }
.pagination{ display:flex; gap:8px; margin-top: 24px; }
.sidebar{ border-left:1px solid #eee; padding-left:16px; }
.grid{ display:grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 960px){
  .grid{ grid-template-columns: 3fr 1fr; }
  .menu-toggle{ display:none; }
}
/* Widgets */
.widget{ margin-bottom: 24px; }
.widget-title{ font-weight:700; margin:0 0 8px; }
/* Hero for front page */
.hero{ padding: 60px 0 24px; background: linear-gradient(135deg,#f6f9fc,#eef6ff); border-bottom: 1px solid #eee; }
.hero h1{ margin:0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.hero p{ margin:0; color:#555; }
/* Buttons */
.button, .button:visited{ display:inline-block; background: var(--color-accent); color:#fff; padding:10px 14px; border-radius:8px; }
.button:hover{ opacity: .9; text-decoration: none; }
*/


/* ===== Hero (full-bleed) ===== */
.hero-full{
/*   margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); */
}

.hero-full picture,
.hero-full img{
  display: block;
  width: 100%;
  max-width: 100vw;
	    height: auto;

}

/* 必要に応じて高さを固定し、トリミングして見せたい場合は以下を有効化 */
/*
.hero-full{
  aspect-ratio: 16/9; 
  position: relative;
}
.hero-full img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
*/
/* ===== 車検の流れ ===== */
.inspection-flow{
  padding: 40px 0 8px;
  border-top: 6px solid var(--color-primary);
  background: #fff;
}
.flow-inner{ width:100%; max-width: var(--max-w); margin:0 auto; padding: 0 16px; }
.flow-title{
  text-align:center; font-weight:700; margin: 0 0 24px; padding-bottom: 8px;
  border-bottom: 4px solid var(--color-yellow);
  color: var(--color-primary);
}

.flow-step{ padding: 20px 0 28px; border-top: 1px dashed var(--color-border); }
.flow-step:first-of-type{ border-top: 0; }
.step-header{ display:flex; align-items:center; gap:12px; margin-bottom: 12px; }
.step-badge{
  display:inline-grid; place-items:center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--color-primary); color:#fff; font-weight:700;
}
.step-title{
  font-size: 1.25rem; margin:0; font-weight:700; color: var(--color-primary);
}

.step-body{ display:grid; grid-template-columns: 1fr; gap:16px; align-items:start; }
.step-text p{ margin: 0 0 10px; }
.step-list{ margin: 0 0 10px 1.2em; }
.note{ font-size: .9rem; color: var(--color-muted); }
.note-warn{ font-size: .95rem; color: var(--warn); font-weight: 600; }
.note-box{
  margin-top: 10px; background: var(--note-bg); border-left: 4px solid var(--color-yellow);
  padding: 10px 12px; border-radius: 6px;
}

.step-image{ margin:0; }
.step-image img{ display:block; width:100%; height:auto; border-radius: 8px; }

@media (min-width: 960px){
  .step-body{ grid-template-columns: 3fr 2fr; gap: 24px; }
}

/* 小さな視認性UP */
.step-header .step-badge{ box-shadow: 0 0 0 4px var(--chip-bg); }

/* ===== お問い合わせ ===== */
.contact-section{
  padding: 48px 0;
  background: #fff;
  border-top: 6px solid var(--color-primary);
}
.contact-inner{ width:100%; max-width: var(--max-w); margin:0 auto; padding: 0 16px; }
.contact-header{ text-align:center; margin-bottom: 24px; }
.contact-title{
  margin:0 0 8px;
  color: var(--color-primary);
  border-bottom: 4px solid var(--color-yellow);
  display: inline-block;
  padding-bottom: 6px;
}
.contact-lead{ color:#555; margin:0; }

/* フォームレイアウト */
.contact-form .wpcf7 form{
  margin: 20px auto 0;
}
.cf7-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cf7-grid p{ margin:0; }
.cf7-grid p.full{ grid-column: 1 / -1; }

@media (min-width: 960px){
  .cf7-grid{
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }
  .cf7-grid p.full{ grid-column: 1 / 3; }
}

/* 入力要素 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wpcf7 textarea{ min-height: 160px; resize: vertical; }

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, #fff);
}

/* ラベル */
.wpcf7 form label{
  display:block;
  font-weight:600;
  color:#222;
  margin-bottom: 8px;
}

/* 同意チェック */
.cf7-grid p.agree{
  grid-column: 1 / -1;
  display:flex; align-items:center; gap:10px;
  font-size: 14px; color:#444;
}
.cf7-grid p.agree input[type="checkbox"]{ transform: translateY(1px); }

/* 送信ボタン */
.cf7-grid p.submit{ grid-column: 1 / -1; text-align:center; margin-top: 4px; }
.wpcf7 input[type="submit"]{
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 28px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.wpcf7 input[type="submit"]:hover{
  background: color-mix(in srgb, var(--color-primary) 90%, var(--color-yellow) 10%);
}
.wpcf7 input[type="submit"]:active{ transform: translateY(1px); }

/* バリデーション */
.wpcf7-not-valid-tip{
  color: #b00020;
  font-size: 13px;
  margin-top: 6px;
}
.wpcf7 form .wpcf7-response-output{
  margin: 18px 0 0;
  padding: 10px 12px;
  border: 2px solid var(--color-yellow);
  border-radius: 8px;
  background: #fffbe6;
  color:#333;
}

/* 送信状態に応じた色（CF7 5.8+ の状態クラス） */
.wpcf7 form.sent    .wpcf7-response-output{ border-color:#46b450; background:#f0fff4; color:#205522; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed  .wpcf7-response-output{ border-color:#dc3545; background:#fff5f5; color:#7a1b21; }
.wpcf7 form.submitting .wpcf7-spinner{ margin-left: 8px; }

/* ===== Floating CTA ===== */
:root{
  /* 既存と同じ色変数を前提に使用 */
  --cta-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.float-cta{
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 999;
  display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr)); /* ←等幅固定 */
  grid-auto-flow: column;
  gap: 10px;
  background: transparent;
  width: calc(100% - 24px);
  max-width: 760px;
  pointer-events: none; /* 自身はクリック不可にし、子要素のみ可 */
}

.float-cta .cta-btn{
  pointer-events: auto; /* ボタンはクリック可能に戻す */
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--cta-shadow);
  min-width: 0; /* テキスト省略の計算用 */
  flex: 1 1 0;
}

.float-cta .cta-btn .cta-icon{
  display: grid; place-items:center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #ffffff1a; /* 薄い白 */
  color: #fff;
}

.float-cta .cta-btn .cta-text{
  display:flex; flex-direction:column; min-width: 0;
}
.float-cta .cta-title{
  font-weight: 800; line-height: 1; letter-spacing: .02em;
}
.float-cta .cta-sub{
  font-size: 12px; opacity: .9; line-height: 1.2;
  color: color-mix(in srgb, #fff 92%, var(--color-yellow) 8%);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.float-cta .cta-arrow{
  display:inline-block; font-size: 22px; line-height: 1;
  color: var(--color-yellow);
  transform: translateY(1px);
}

.float-cta .cta-btn:hover{
  filter: brightness(1.05);
}
.float-cta .cta-reserve{
  background: linear-gradient(0deg, var(--color-primary), var(--color-primary));
  border: 2px solid color-mix(in srgb, var(--color-yellow) 60%, #fff 40%);
}
.float-cta .cta-call{
  background: var(--color-primary);
  border: 2px solid transparent;
}

/* レイアウト調整（PCでも見せるが幅を抑えめ） */
@media (min-width: 960px){
  .float-cta{ bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* iOSセーフエリア対応 */
@supports (padding: max(0px)) {
  .float-cta{ bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* 画面下の固定要素と干渉しないよう余白を付与したい場合（任意） */
/*
body{ padding-bottom: 100px; }
@media (min-width: 960px){ body{ padding-bottom: 120px; } }
*/
.wpcf7-spinner{
	display:none;
}