/*
Theme Name: OKATEC
Theme URI: https://www.okatec.jp
Author: OKATEC CO., LTD.
Description: 株式会社オカテック 公式サイトテーマ。問い合わせ最大化を目的としたIndustrial Precisionデザイン。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: okatec
*/

/* ============================================================
   OKATEC Theme — Industrial Precision Design
   カラー: #0D1B2A (ダークネイビー) / #E8630A (オレンジCTA) / #F5F5F0 (オフホワイト)
   フォント: Noto Serif JP (見出し) / Noto Sans JP (本文)
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #ffffff;
  color: #0D1B2A;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.3;
  font-weight: 700;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #E8630A;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.05em;
}
.btn-primary:hover { background: #d45500; }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  letter-spacing: 0.05em;
}
.btn-outline:hover { border-color: #ffffff; background: rgba(255,255,255,0.08); }

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #E8630A;
  text-transform: uppercase;
}

/* ── Section Headings ── */
.section-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #0D1B2A;
  line-height: 1.3;
}

.section-heading.light { color: #ffffff; }

/* ── Fade-up animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #0D1B2A;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  flex-direction: column;
}
.site-logo .logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}
.site-logo .logo-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.6rem;
  color: #8B9BAA;
  letter-spacing: 0.15em;
}

.header-nav { display: none; }
@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .header-nav a {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.85rem;
    color: #CBD5E0;
    letter-spacing: 0.05em;
    transition: color 0.2s;
  }
  .header-nav a:hover { color: #ffffff; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-tel {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 768px) { .header-tel { display: flex; } }
.header-tel svg { color: #E8630A; }

.header-cta {
  background: #E8630A;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  letter-spacing: 0.05em;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-cta:hover { background: #d45500; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: #0D1B2A;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 999;
  padding: 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: #CBD5E0;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-tel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 0 0.5rem;
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663457171991/mwyNVbVoaDDz52CggXnnSb/hero_bg-QejdYqQdeAiEcjZuY4tSt2.webp');
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.92) 0%, rgba(13,27,42,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 2px;
  background: #E8630A;
}
.hero-eyebrow span {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #E8630A;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.hero-title .accent { color: #E8630A; }

.hero-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-tel-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  transition: background 0.2s;
}
.hero-tel-btn:hover { background: rgba(255,255,255,0.15); }
.hero-tel-btn .tel-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  color: #8B9BAA;
  display: block;
  letter-spacing: 0.1em;
}
.hero-tel-btn .tel-number {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat .stat-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #E8630A;
  line-height: 1;
}
.hero-stat .stat-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  color: #8B9BAA;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  font-family: 'Noto Sans JP', sans-serif;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   PAIN POINTS
   ============================================================ */
#pain-points {
  background: #F5F5F0;
  padding: 5rem 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }

.pain-card {
  background: #ffffff;
  border: 1px solid #E5E8EC;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pain-card:hover {
  border-color: #E8630A;
  box-shadow: 0 4px 16px rgba(232,99,10,0.1);
}
.pain-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(232,99,10,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #E8630A;
  font-size: 1.2rem;
}
.pain-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #0D1B2A;
  font-weight: 500;
  line-height: 1.5;
}

.pain-cta-wrap {
  margin-top: 2.5rem;
  text-align: center;
}
.pain-cta-text {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 1.5rem;
}
.pain-cta-text span { color: #E8630A; }

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: #ffffff;
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  border: 1px solid #E5E8EC;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.service-card:hover {
  border-color: #E8630A;
  box-shadow: 0 8px 32px rgba(232,99,10,0.12);
}
.service-card-accent {
  height: 4px;
  background: #E8630A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover .service-card-accent { transform: scaleX(1); }

.service-card-body { padding: 1.75rem; }
.service-card-num {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #E8630A;
  margin-bottom: 0.75rem;
}
.service-card-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 0.75rem;
}
.service-card-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  color: #5A6A7A;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.service-tag {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  background: #F5F5F0;
  color: #5A6A7A;
  padding: 0.2rem 0.6rem;
  border: 1px solid #E5E8EC;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #E8630A;
  letter-spacing: 0.05em;
  transition: gap 0.2s;
}
.service-card:hover .service-card-link { gap: 0.6rem; }

/* ============================================================
   REASONS
   ============================================================ */
#reasons {
  background: #0D1B2A;
  padding: 5rem 0;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reasons-grid { grid-template-columns: repeat(4, 1fr); } }

.reason-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}
.reason-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(232,99,10,0.4);
}
.reason-num {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #E8630A;
  margin-bottom: 1rem;
}
.reason-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.reason-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  color: #8B9BAA;
  line-height: 1.7;
}

.craftsman-section {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 3rem;
}
@media (min-width: 1024px) {
  .craftsman-section { grid-template-columns: 1fr 1fr; }
}

.craftsman-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: grayscale(20%);
}
.craftsman-quote {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.craftsman-quote span { color: #E8630A; }
.craftsman-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  color: #8B9BAA;
}

/* ============================================================
   BLOG / CASES ARCHIVE
   ============================================================ */
#blog-section, #cases-section {
  background: #F5F5F0;
  padding: 5rem 0;
}
#blog-section { background: #ffffff; }

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: #ffffff;
  border: 1px solid #E5E8EC;
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: #E8630A;
}
.post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.post-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: #E5E8EC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8B9BAA;
  font-size: 2rem;
}
.post-body { padding: 1.25rem; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.post-date {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  color: #8B9BAA;
}
.post-cat {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(232,99,10,0.1);
  color: #E8630A;
  padding: 0.15rem 0.5rem;
}
.post-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0D1B2A;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-excerpt {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  color: #5A6A7A;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-more {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: #ffffff;
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.about-table { width: 100%; border-collapse: collapse; }
.about-table tr { border-bottom: 1px solid #E5E8EC; }
.about-table tr:last-child { border-bottom: none; }
.about-table th {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5A6A7A;
  text-align: left;
  padding: 1rem 1rem 1rem 0;
  width: 35%;
  vertical-align: top;
}
.about-table td {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  color: #0D1B2A;
  padding: 1rem 0;
  line-height: 1.7;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: #0D1B2A;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://d2xsxph8kpxj0f.cloudfront.net/310519663457171991/mwyNVbVoaDDz52CggXnnSb/contact_bg-iYoSQzRAPQtjT82sviKS2T.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.contact-inner { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-tel-block {
  background: rgba(232,99,10,0.1);
  border: 1px solid rgba(232,99,10,0.3);
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact-tel-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #8B9BAA;
  margin-bottom: 0.5rem;
}
.contact-tel-num {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.contact-tel-num svg { color: #E8630A; }
.contact-tel-hours {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  color: #8B9BAA;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.reassurance-list { margin-top: 1.5rem; }
.reassurance-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  color: #8B9BAA;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.reassurance-item:last-child { border-bottom: none; }
.reassurance-item::before {
  content: '✓';
  color: #E8630A;
  font-weight: 700;
  flex-shrink: 0;
}

/* Contact Form 7 スタイル上書き */
.contact-form-wrap { background: #ffffff; padding: 2rem; }
.contact-form-wrap h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0D1B2A;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E5E8EC;
  margin-bottom: 1.5rem;
}

.wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.wpcf7-form .form-row.single { grid-template-columns: 1fr; }

.wpcf7-form label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.wpcf7-form label .required { color: #E8630A; margin-left: 0.25rem; }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  border: 1px solid #E5E8EC;
  padding: 0.75rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  color: #0D1B2A;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color: #E8630A; }

.wpcf7-form textarea { min-height: 120px; resize: vertical; }

.wpcf7-form input[type="submit"] {
  width: 100%;
  background: #E8630A;
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.wpcf7-form input[type="submit"]:hover { background: #d45500; }
.wpcf7-form input[type="submit"]:active { transform: scale(0.98); }

.wpcf7-not-valid-tip {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  color: #e53e3e;
  margin-top: 0.25rem;
  display: block;
}
.wpcf7-response-output {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  border: none !important;
}
.wpcf7-mail-sent-ok { background: rgba(72,187,120,0.1); color: #276749; }
.wpcf7-mail-sent-ng, .wpcf7-aborted { background: rgba(229,62,62,0.1); color: #c53030; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: #060E17;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand .logo-main {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand .logo-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.6rem;
  color: #8B9BAA;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.8rem;
  color: #8B9BAA;
  line-height: 1.7;
}

.footer-nav-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #E8630A;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-nav-list li {
  margin-bottom: 0.5rem;
}
.footer-nav-list a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  color: #8B9BAA;
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: #ffffff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.footer-copy {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  color: #8B9BAA;
}

/* ============================================================
   STICKY CTA BAR (mobile)
   ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #0D1B2A;
  border-top: 2px solid #E8630A;
  padding: 0.75rem 1rem;
  gap: 0.75rem;
}
@media (max-width: 767px) { .sticky-cta { display: flex; } }

.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.sticky-cta .cta-tel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
}
.sticky-cta .cta-form {
  background: #E8630A;
  color: #ffffff;
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.page-hero {
  background: #0D1B2A;
  padding: 6rem 0 3rem;
  margin-top: 68px;
}
.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
}
.page-hero-breadcrumb {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem;
  color: #8B9BAA;
  margin-top: 0.75rem;
}
.page-hero-breadcrumb a { color: #8B9BAA; }
.page-hero-breadcrumb a:hover { color: #ffffff; }
.page-hero-breadcrumb span { margin: 0 0.5rem; }

.single-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.single-content h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem;
  color: #0D1B2A;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E8630A;
}
.single-content h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.1rem;
  color: #0D1B2A;
  margin: 1.5rem 0 0.75rem;
}
.single-content p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #3A4A5A;
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.single-content img {
  width: 100%;
  margin: 1.5rem 0;
}
.single-content ul, .single-content ol {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #3A4A5A;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
}
.single-content ol { list-style: decimal; }
.single-content li { margin-bottom: 0.4rem; line-height: 1.7; }

.post-thumbnail-single {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 2rem;
}

/* Archive */
.archive-wrap {
  padding: 3rem 0 5rem;
}
.archive-header {
  margin-bottom: 2.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem;
  border: 1px solid #E5E8EC;
  color: #5A6A7A;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pagination a:hover { background: #F5F5F0; border-color: #E8630A; color: #E8630A; }
.pagination .current {
  background: #E8630A;
  border-color: #E8630A;
  color: #ffffff;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .wpcf7-form .form-row { grid-template-columns: 1fr; }

  /* ==== ヒーロー：スマホ用ファーストビュー最適化 ==== */
  #hero {
    min-height: 100svh;
    align-items: center;
  }
  .hero-content {
    text-align: center;
    padding: 2.5rem 0 3rem;
  }
  .hero-eyebrow {
    justify-content: center;
  }
  .hero-eyebrow::before {
    display: none;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.45;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .hero-desc {
    font-size: 0.85rem;
    margin: 1.25rem auto 2rem;
    max-width: 100%;
    text-align: center;
    line-height: 1.9;
    overflow-wrap: break-word;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .hero-actions .btn-primary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  .hero-tel-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }
  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }
  .hero-stat {
    text-align: center;
  }
  .hero-stat .stat-num {
    font-size: 1.6rem;
  }
}
