@charset "UTF-8";
/*
Theme Name: 住宅塗装センター
Author: TADWORKS
Description: 住宅塗装センター（松戸・柏・船橋の一戸建て・アパート外壁塗装）用オリジナルテーマ。トップページ（front-page.php）を中心に、固定ページ・投稿・アーカイブ・検索・404の基本テンプレートを同梱。お問い合わせフォームは Contact Form 7、パンくずリストは Breadcrumb NavXT（または Yoast SEO）の利用を想定。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jutaku-tosou-center
*/

/* Google Fonts は functions.php で読み込み */

/* ==========================================================================
   Base & Reset Variables
   ========================================================================== */
:root {
  --color-sky: #009fe8;
  --color-sky-light: #e1f5fe;
  --color-sky-muted: #f0f9ff;
  --color-sky-hover: #0284c7;
  --color-navy: #0b3954;
  --color-navy-dark: #08283d;
  --color-navy-deep: #051824;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-bg-light: #f8fafc;
  --font-main: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-en: "Montserrat", sans-serif;
  --font-mincho: "Shippori Mincho", serif;
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: #ffffff;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.font-en {
  font-family: var(--font-en);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
}

/* ==========================================================================
   Section Title Common
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.section-tag {
  color: var(--color-sky);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-en);
}
.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-top: 8px;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   1. Top Announcement Bar
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, var(--color-navy), #0369a1);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-badge {
  background: rgba(0, 159, 232, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  color: #bae6fd;
}
.top-bar-tel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: #7dd3fc;
}
.top-bar-tel:hover {
  color: #ffffff;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 80px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}
.nav-menu a {
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--color-sky);
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}
.header-tel-box {
  text-align: right;
}
.header-tel-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 700;
}
.header-tel-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-btn {
  background: var(--color-sky);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 10px rgba(0, 159, 232, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-btn:hover {
  background: var(--color-sky-hover);
  transform: translateY(-1px);
}
.mobile-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.mobile-menu-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 20px;
}
.mobile-menu-drawer.open {
  display: block;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-weight: 700;
}

/* ==========================================================================
   3. Hero Section (PC・スマホともに見切れゼロで全体表示)
   ========================================================================== */
.hero-image-wrap {
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border-bottom: 1px solid var(--color-border);
}

.hero-image-wrap picture {
  display: block;
  width: 100%;
}

.hero-main-img {
  width: 100%;
  max-width: none;
  height: auto;       /* 画像の本来の縦横比を100%保つ */
  display: block;
}

/* --------------------------------------------------------------------------
   レスポンシブ (スマホ表示時)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* 固定高さ指定を解除（これが原因で見切れていました） */
  .hero-image-wrap {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
  }

  .hero-main-img {
    height: auto !important;
  }
}

/* ==========================================================================
   佐々木様のメッセージ帯 (明朝体)
   ========================================================================== */
.quote-banner {
  background: linear-gradient(135deg, #0b3954 0%, #0369a1 100%);
  color: #ffffff;
  padding: 32px 20px;
  text-align: center;
  border-bottom: 3px solid #38bdf8;
}
.quote-banner-inner {
  max-width: 860px;
  margin: 0 auto;
}
.quote-main {
  font-family: var(--font-mincho);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 0.05em;
}
.quote-sub {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #bae6fd;
  font-weight: 500;
}

/* ==========================================================================
   4. Cases Gallery (Before小さめ・After主役のメリハリレイアウト)
   ========================================================================== */
.cases-section {
  background-color: #ffffff;
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.case-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.case-badge {
  background-color: var(--color-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.case-price-tag {
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

/* Before小さめ(1) : After大きめ(2) の対比グリッド */
.case-compare {
  display: grid;
  grid-template-columns: 1fr 1.85fr;
  align-items: end;
  gap: 12px;
}
.case-img-box {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}
.case-img-box.before {
  border: 1px solid #cbd5e1;
  background-color: #e2e8f0;
  aspect-ratio: 4 / 3;
  opacity: 0.85; /* Beforeは少し落ち着かせる */
}
.case-img-box.after {
  border: 3px solid var(--color-sky);
  background-color: #f0f9ff;
  aspect-ratio: 16 / 10;
  box-shadow: 0 4px 12px rgba(0, 159, 232, 0.2); /* Afterを際立たせる */
}
.case-img-box svg, .case-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-img-label {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}
.case-img-label.before { background: rgba(71, 85, 105, 0.9); color: #ffffff; }
.case-img-label.after { background: var(--color-sky); color: #ffffff; }
.case-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* アコーディオン隠し要素 */
.case-card.hidden-case {
  display: none;
}
.case-card.hidden-case.show {
  display: flex;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cases-more-wrap {
  text-align: center;
  margin-top: 40px;
}
.btn-more-cases {
  background-color: #ffffff;
  color: var(--color-navy);
  border: 2px solid var(--color-sky);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 40px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 159, 232, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-more-cases:hover {
  background-color: var(--color-sky);
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-more-cases svg {
  transition: transform 0.3s;
}
.btn-more-cases.active svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   5. News Section
   ========================================================================== */
.news-section {
  background-color: var(--color-bg-light);
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}
.news-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.news-badge {
  background-color: var(--color-sky);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--font-en);
}
.news-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
}
.news-list {
  display: flex;
  flex-direction: column;
}
.news-item {
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 0.875rem;
}
.news-item:last-child {
  border-bottom: none;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.news-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
}
.news-cat {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.news-cat.campaign { background: #e0f2fe; color: #0284c7; }
.news-cat.quality { background: #dcfce7; color: #15803d; }
.news-cat.case { background: #e2e8f0; color: #334155; }
.news-content {
  flex-grow: 1;
}
.news-link {
  color: #334155;
  font-weight: 500;
}
.news-link:hover {
  color: var(--color-sky);
}
.news-bottom-link {
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}
.news-bottom-link a {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-sky);
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-bottom-link a:hover {
  color: var(--color-navy);
}

/* ==========================================================================
   6. Features (5つの強み)
   ========================================================================== */
.features-section {
  background-color: #ffffff;
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--color-sky-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky);
  margin-bottom: 14px;
}
.feature-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0284c7;
  font-family: var(--font-en);
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 4px;
}
.feature-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* ==========================================================================
   7. Pricing (坪数別コミコミ価格)
   ========================================================================== */
.pricing-section {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 60%, #ffffff 100%);
  padding: 80px 0;
  border-bottom: 1px solid #bae6fd;
}
.pricing-scope {
  display: inline-block;
  background-color: var(--color-navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 9999px;
  margin-top: 14px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.pricing-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.featured {
  border: 2px solid var(--color-sky);
  box-shadow: 0 8px 24px rgba(0, 159, 232, 0.15);
  transform: translateY(-4px);
}
.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f43f5e;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
}
.pricing-tsubo {
  display: inline-block;
  background-color: var(--color-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
}
.pricing-card.featured .pricing-tsubo {
  background-color: var(--color-sky);
}
.pricing-price {
  margin: 16px 0;
}
.pricing-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-navy);
}
.pricing-card.featured .pricing-num {
  color: var(--color-sky);
}
.pricing-unit {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.pricing-sub {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.4;
}
.pricing-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 720px;
  margin: 30px auto 0;
}

/* ==========================================================================
   8. Company (会社概要)
   ========================================================================== */
.company-section {
  background-color: #ffffff;
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}
.company-table-box {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-light);
}
.company-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
}
.company-row:last-child {
  border-bottom: none;
}
.company-th {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: 0.05em;
}
.company-td {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}
.company-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.company-area-tag {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* ==========================================================================
   9. Contact (お問い合わせフォーム)
   ========================================================================== */
.contact-section {
  background-color: #f0f9ff;
  padding: 80px 0;
  border-bottom: 1px solid #bae6fd;
}
.contact-box {
  max-width: 760px;
  margin: 0 auto;
}
.contact-tel-banner {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.contact-tel-num {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-navy);
}
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.form-group {
  margin-bottom: 20px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.req-tag {
  color: #f43f5e;
  font-weight: 800;
  margin-left: 4px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 0.875rem;
  background-color: #ffffff;
}
.form-control:focus {
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(0, 159, 232, 0.2);
}
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin: 24px 0;
}
.form-submit-btn {
  width: 100%;
  background: var(--color-sky);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 159, 232, 0.35);
  transition: all 0.2s;
}
.form-submit-btn:hover {
  background: var(--color-sky-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   10. Footer & Modal
   ========================================================================== */
.footer {
  background-color: var(--color-navy-deep);
  color: #94a3b8;
  padding: 70px 0 30px;
  font-size: 0.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #1e293b;
}
.footer-logo-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
}
.footer-desc {
  margin-top: 10px;
  line-height: 1.7;
  max-width: 380px;
}
.footer-links-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: #64748b;
}

/* Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(5, 24, 36, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open {
  display: flex;
}
.modal-card {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-navy);
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #94a3b8;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.modal-footer {
  padding: 16px 24px;
  background: var(--color-bg-light);
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   11. Floating Mobile Bottom Bar
   ========================================================================== */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e2e8f0;
  padding: 10px;
  gap: 10px;
}
.mobile-bar-tel {
  flex: 1;
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.mobile-bar-cta {
  flex: 1;
  background: var(--color-sky);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-menu, .header-cta {
    display: none;
  }
  .mobile-btn {
    display: block;
  }
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 38px;
  }
  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .hero-image-wrap {
    height: 320px; /* スマホ時の適切な高さ */
    min-height: auto;
  }
  .quote-main {
    font-size: 1.1rem;
  }

  /* 施工事例Before/After：スマホ時は縦積み */
  .cases-grid {
    grid-template-columns: 1fr;
  }
  .case-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .case-compare {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .case-img-box.before {
    aspect-ratio: 16 / 9;
    width: 60%; /* スマホでもBeforeを少し小さく控えめに */
  }
  .case-img-box.after {
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  /* お知らせ欄：スマホ時2段展開 */
  .news-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 0;
  }
  .news-meta {
    width: 100%;
  }
  .news-content {
    width: 100%;
    line-height: 1.5;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contact-tel-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-bar {
    display: flex;
  }
}
/* ==========================================================================
   12. WordPress 調整
   ========================================================================== */
/* 管理バー表示時の追従ヘッダー位置 */
.admin-bar .header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .header {
    top: 0;
  }
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ロゴ（トップページでは h1） */
.logo-wrap {
  flex-shrink: 0;
  font-size: inherit;
  line-height: 1;
}

/* フッター内プライバシーポリシーボタン */
.footer-privacy-btn {
  background: none;
  border: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}
.footer-privacy-btn:hover {
  color: #ffffff;
}

/* ==========================================================================
   13. Contact Form 7
   ========================================================================== */
.wpcf7-form-control-wrap {
  display: block;
}
.wpcf7 .form-control.wpcf7-not-valid {
  border-color: #f43f5e;
}
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f43f5e;
}
.form-agree .wpcf7-list-item {
  margin: 0;
}
.form-agree .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.form-agree input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}
.privacy-link {
  background: none;
  border: none;
  color: var(--color-sky);
  text-decoration: underline;
  font-weight: 700;
  cursor: pointer;
}
.form-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}
.contact-form-notice {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ==========================================================================
   14. 下層ページ（固定ページ・投稿・アーカイブ・検索・404）
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #0b3954 0%, #0369a1 100%);
  color: #ffffff;
  padding: 48px 0;
  text-align: center;
  border-bottom: 3px solid #38bdf8;
}
.page-hero-tag {
  color: #7dd3fc;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-hero-title {
  font-size: 1.75rem;
  font-weight: 900;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

/* パンくずリスト（Breadcrumb NavXT / Yoast SEO） */
.breadcrumb {
  background-color: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-sky);
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.page-main {
  padding: 60px 0 80px;
}
.page-main .container {
  max-width: 860px;
}

/* 本文 */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.entry-thumbnail {
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
}
.entry-thumbnail img {
  width: 100%;
  height: auto;
}
.entry-content {
  font-size: 0.95rem;
  line-height: 1.9;
}
.entry-content > * + * {
  margin-top: 1.2em;
}
.entry-content h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-navy);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-sky);
  margin-top: 2em;
}
.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  padding-left: 12px;
  border-left: 4px solid var(--color-sky);
  margin-top: 1.8em;
}
.entry-content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-top: 1.6em;
}
.entry-content a {
  color: var(--color-sky);
  text-decoration: underline;
}
.entry-content ul {
  list-style: disc;
  padding-left: 1.5em;
}
.entry-content ol {
  list-style: decimal;
  padding-left: 1.5em;
}
.entry-content img {
  height: auto;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content th,
.entry-content td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
}
.entry-content th {
  background-color: var(--color-bg-light);
  color: var(--color-navy);
  font-weight: 800;
}
.entry-content blockquote {
  border-left: 4px solid var(--color-border);
  padding: 8px 16px;
  color: var(--color-text-muted);
}
.aligncenter {
  margin-left: auto;
  margin-right: auto;
}
.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}
.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}
.wp-caption-text,
.wp-element-caption {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* 前後の記事 */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 700;
}
.post-nav a {
  color: var(--color-navy);
}
.post-nav a:hover {
  color: var(--color-sky);
}

/* 記事一覧 */
.archive-list {
  border-top: 1px solid var(--color-border);
}
.archive-item {
  border-bottom: 1px solid var(--color-border);
}
.archive-item a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
}
.archive-item a:hover .archive-item-title {
  color: var(--color-sky);
}
.archive-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  transition: color 0.2s;
}
.archive-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
}

/* ページネーション */
.pagination {
  margin-top: 40px;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  background: #ffffff;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  background: var(--color-sky);
  border-color: var(--color-sky);
  color: #ffffff;
}

/* 検索フォーム */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.search-form .form-control {
  flex: 1;
}
.search-submit {
  background: var(--color-sky);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
}
.search-submit:hover {
  background: var(--color-sky-hover);
}

/* 404 */
.error-404 {
  text-align: center;
}
.error-404-num {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 900;
  color: var(--color-sky);
  line-height: 1;
}
.error-404-text {
  margin: 16px 0 32px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.error-404-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 36px 0;
  }
  .page-hero-title {
    font-size: 1.4rem;
  }
  .page-main {
    padding: 40px 0 60px;
  }
  .archive-item a {
    flex-direction: column;
    gap: 6px;
  }
}
