/* ===========================================
   AyuTo Theme - Unified Stylesheet
   =========================================== */

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #F8F5F1;
  --bg-secondary: #EFE9E1;
  --bg-elevated: #FFFFFF;
  --bg-deep: #1A1516;
  --text-primary: #1A1516;
  --text-secondary: #3D3536;
  --text-muted: #7A7572;
  --accent: #7A2E3A;
  --accent-sub: #C4A265;
  --border: #DED5CA;
  --shadow-xs: 0 1px 3px rgba(26,21,22,0.04);
  --shadow-sm: 0 2px 8px rgba(26,21,22,0.06);
  --shadow-md: 0 4px 16px rgba(26,21,22,0.08);
  --shadow-lg: 0 8px 32px rgba(26,21,22,0.10);
  --shadow-xl: 0 16px 48px rgba(26,21,22,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Inter", -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Utility ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 0 0 40px;
  height: 1px;
  background: var(--border);
}
.section-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}

/* ===========================================
   HEADER (Global)
   =========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(248,245,241,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-logo {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.site-nav a:hover {
  color: var(--text-primary);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.header-cta:hover {
  background: #8C3545;
  transform: translateY(-1px);
}
.header-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #06C755;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.header-line-btn:hover {
  background: #05B04C;
  transform: translateY(-1px);
}
.header-line-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===========================================
   BUTTONS (Global)
   =========================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: #8C3545;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(122,46,58,0.25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--text-primary);
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: #06C755;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-line:hover {
  background: #05B04C;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,199,85,0.25);
}
.btn-line svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}
.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

/* ===========================================
   FOOTER (Global)
   =========================================== */
.site-footer {
  background: var(--bg-deep);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #F0EDE8;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(240,237,232,0.5);
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  gap: 36px;
}
.footer-nav a {
  font-size: 14px;
  color: rgba(240,237,232,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: #F0EDE8;
}
.footer-divider {
  height: 1px;
  background: rgba(240,237,232,0.08);
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 12px;
  color: rgba(240,237,232,0.3);
  text-align: center;
}

/* ===========================================
   FAQ (Shared: TOP & Contact)
   =========================================== */
.faq {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.faq-header {
  text-align: center;
  margin-bottom: 56px;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover {
  box-shadow: var(--shadow-md);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.faq-question:hover {
  background: rgba(248,245,241,0.5);
}
.faq-q-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.faq-q-label {
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.faq-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  transition: transform var(--transition);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 32px 24px 60px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.faq-item.active .faq-toggle {
  background: var(--accent);
}
.faq-item.active .faq-toggle svg {
  stroke: #fff;
  transform: rotate(180deg);
}
.faq-item.active .faq-answer {
  max-height: 300px;
}

/* ===========================================
   FINAL CTA (Shared: TOP, Service, About)
   =========================================== */
.final-cta {
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}
.final-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.final-cta .section-heading {
  font-size: 30px;
  margin-bottom: 16px;
}
.final-cta-sub {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.final-cta .cta-group {
  justify-content: center;
}

/* ===========================================
   TOP PAGE (front-page.php)
   =========================================== */

/* Hero */
.page-top .hero {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.page-top .hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(122,46,58,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.page-top .hero .container {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  width: 100%;
  padding: 0 80px;
  position: relative;
  z-index: 1;
}
.hero-text {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.hero-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-sub);
}
.hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.hero-title .accent {
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.hero-visual {
  width: 50%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 500px;
}

/* UI Mockup Cards (TOP Hero) */
.ui-cards {
  position: relative;
  width: 100%;
  height: 500px;
}
.ui-card {
  position: absolute;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ui-card:hover {
  transform: translateY(-4px) rotate(0deg) !important;
  box-shadow: 0 20px 56px rgba(26,21,22,0.15);
}

/* LINE Talk Card */
.card-talk {
  width: 280px;
  height: 320px;
  top: 30%;
  left: 15%;
  transform: rotate(-2deg);
  z-index: 3;
}
.talk-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EEEAE4;
  margin-bottom: 16px;
}
.talk-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.talk-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.talk-status {
  font-size: 11px;
  color: var(--text-muted);
}
.bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 200px;
  margin-bottom: 10px;
}
.bubble-green {
  background: #E8F5E9;
  color: #2E5A3E;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.bubble-white {
  background: #F5F3EF;
  color: var(--text-secondary);
  border-bottom-left-radius: 4px;
}
.bubble-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
.bubble-right { text-align: right; }
.bubble-left { text-align: left; }

/* Dashboard Card */
.card-dash {
  width: 260px;
  height: 200px;
  top: 10%;
  left: 35%;
  transform: rotate(2deg);
  z-index: 2;
}
.dash-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.dash-chart {
  width: 100%;
  height: 60px;
  position: relative;
}
.dash-chart svg {
  width: 100%;
  height: 100%;
}

/* Flow Card (Hero) */
.card-flow {
  width: 300px;
  height: 180px;
  top: 0;
  left: 5%;
  transform: rotate(1deg);
  z-index: 1;
}
.card-flow .flow-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.card-flow .flow-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.flow-step {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.flow-step-accent { background: var(--accent); color: #fff; }
.flow-step-gold { background: rgba(196,162,101,0.15); color: #8B7340; }
.flow-step-muted { background: #F0ECE6; color: var(--text-muted); }
.flow-arrow {
  color: var(--accent-sub);
  font-size: 14px;
  font-weight: 700;
}

/* Services Section (TOP) */
.services {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(122,46,58,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-card-number {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-sub);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.service-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}
.service-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-card-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card-points li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-card-points li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sub);
  margin-top: 8px;
}

/* Flow Section (TOP) */
.flow-section {
  padding: 100px 0;
  background: var(--bg-primary);
}
.flow-header {
  text-align: center;
  margin-bottom: 64px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  width: 220px;
  display: flex;
  flex-direction: column;
}
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(122,46,58,0.2);
}
.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.step-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 56px;
}
.step-arrow svg {
  width: 32px;
  height: 32px;
  color: var(--accent-sub);
}

/* Mid CTA (TOP) */
.mid-cta {
  padding: 72px 0;
  background: var(--bg-secondary);
  text-align: center;
}
.mid-cta-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.mid-cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.mid-cta .cta-group {
  justify-content: center;
}

/* Philosophy (TOP) */
.philosophy {
  padding: 100px 0;
  background: var(--bg-primary);
}
.philosophy-header {
  text-align: center;
  margin-bottom: 48px;
}
.philosophy-message {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.philosophy-quote {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.philosophy-text {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}
.philosophy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}
.philosophy-link:hover {
  gap: 12px;
}
.philosophy-link svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

/* Promises (TOP) */
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.promise-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.promise-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(196,162,101,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.promise-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.promise-em {
  display: inline;
  color: var(--accent);
  font-weight: 700;
}
.promise-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 10px;
}

/* ===========================================
   CONTACT PAGE (page-contact.php)
   =========================================== */

/* Contact Hero */
.page-contact .hero {
  padding: 80px 0 60px;
  background: var(--bg-primary);
  text-align: center;
}
.page-contact .hero-title {
  margin-bottom: 20px;
}
.page-contact .hero-sub {
  font-size: 17px;
}
.page-contact .cta-group {
  justify-content: center;
}

/* Choose Method */
.choose-method {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.choose-header {
  text-align: center;
  margin-bottom: 48px;
}
.method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.method-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.method-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.method-icon-form {
  background: rgba(122,46,58,0.08);
}
.method-icon-line {
  background: rgba(6,199,85,0.1);
}
.method-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.method-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}
.method-card .btn-primary {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}
.method-card .btn-line {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
}

/* Contact Form */
.contact-form-section {
  padding: 80px 0;
  background: var(--bg-primary);
}
.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  box-shadow: var(--shadow-sm);
}
.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-group {
  margin-bottom: 28px;
}
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.form-label .required {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-label .optional {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(122,46,58,0.08);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.8;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A7572' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.form-submit {
  text-align: center;
  margin-top: 40px;
}
.form-submit .btn-primary {
  min-width: 280px;
  padding: 18px 48px;
  font-size: 17px;
}
.wpcf7-spinner {
  display: none;
}

/* LINE CTA (Contact) */
.line-cta {
  padding: 72px 0;
  background: var(--bg-secondary);
  text-align: center;
}
.line-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.line-cta-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.line-cta-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}
.line-qr-placeholder {
  width: 160px;
  height: 160px;
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Contact page FAQ override */
.page-contact .faq {
  padding: 80px 0;
  background: var(--bg-primary);
}

/* ===========================================
   SERVICE PAGE (page-service.php)
   =========================================== */

/* Service Hero */
.page-service .hero {
  padding: 80px 0 60px;
  background: var(--bg-primary);
  text-align: center;
}
.page-service .hero-title {
  line-height: 1.35;
  margin-bottom: 20px;
}
.page-service .hero-sub {
  font-size: 17px;
  margin-bottom: 40px;
}

/* Overview 3 Steps */
.overview {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.overview-header {
  text-align: center;
  margin-bottom: 56px;
}
.overview-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.overview-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition);
}
.overview-step:hover {
  box-shadow: var(--shadow-lg);
}
.overview-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -14px;
  width: 28px;
  border-top: 2px dashed var(--border);
  z-index: 1;
}
.overview-step .step-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  font-size: 18px;
}

/* Service Detail Blocks */
.service-detail {
  padding: 100px 0 80px;
  background: var(--bg-primary);
}
.service-detail-header {
  text-align: center;
  margin-bottom: 80px;
}
.service-block {
  margin-bottom: 100px;
}
.service-block:last-child {
  margin-bottom: 0;
}
.service-block-header {
  text-align: center;
  margin-bottom: 48px;
}
.service-block-number {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-sub);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.service-block:first-child .service-block-number {
  border-top: none;
  padding-top: 0;
}
.service-block-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
}
.service-block-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.service-block-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-block-body.reverse {
  direction: rtl;
}
.service-block-body.reverse > * {
  direction: ltr;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}
.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(122,46,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-check svg {
  width: 12px;
  height: 12px;
}
.feature-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 500;
}
.service-usecase {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.usecase-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-sub);
  margin-bottom: 16px;
}
.usecase-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.usecase-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.usecase-item::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sub);
  margin-top: 9px;
}
.service-block-cta {
  text-align: center;
  margin-top: 40px;
}

/* Pricing */
.pricing {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.pricing-header {
  text-align: center;
  margin-bottom: 56px;
}
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto 48px;
}
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow var(--transition);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}
.pricing-card-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(122,46,58,0.08);
  padding: 4px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}
.pricing-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: "Inter", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pricing-features {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-feature::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(122,46,58,0.1);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='%237A2E3A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}
.pricing-bottom {
  text-align: center;
}
.pricing-bottom-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Flow Detail (Service Page) */
.flow-detail {
  padding: 100px 0;
  background: var(--bg-primary);
}
.flow-detail-header {
  text-align: center;
  margin-bottom: 56px;
}
.flow-detail .flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.flow-step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: box-shadow var(--transition);
}
.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.flow-step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.flow-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.flow-step-duration {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-sub);
  background: rgba(196,162,101,0.12);
  padding: 4px 12px;
  border-radius: 4px;
  margin-top: 16px;
}

/* Service page final CTA override */
.page-service .final-cta {
  background: var(--bg-secondary);
}

/* ===========================================
   ABOUT PAGE (page-about.php)
   =========================================== */

/* About Hero */
.page-about .hero {
  padding: 80px 0 60px;
  background: var(--bg-primary);
  text-align: center;
}
.hero-company {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}
.page-about .hero-title {
  line-height: 1.3;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.page-about .hero-sub {
  font-size: 17px;
}

/* Representative Message */
.representative {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.rep-header {
  text-align: center;
  margin-bottom: 56px;
}
.rep-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}
.rep-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, rgba(248,245,241,0.8) 0%, rgba(222,213,202,0.6) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
}
.rep-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rep-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rep-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.rep-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}
.rep-name-en {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.rep-philosophy {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
  letter-spacing: 0.04em;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rep-message {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}

/* Company Info */
.company-info {
  padding: 100px 0;
  background: var(--bg-primary);
}
.company-info-header {
  text-align: center;
  margin-bottom: 48px;
}
.info-table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.info-row:last-child {
  border-bottom: none;
}
.info-row:hover {
  background: rgba(248,245,241,0.5);
}
.info-label {
  padding: 20px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(239,233,225,0.3);
  display: flex;
  align-items: center;
}
.info-value {
  padding: 20px 28px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: flex;
  align-items: center;
}

/* ===========================================
   BLOG ARCHIVE (archive.php)
   =========================================== */

/* Blog Hero */
.page-blog .hero {
  padding: 80px 0 60px;
  background: var(--bg-primary);
  text-align: center;
}
.page-blog .hero-title {
  margin-bottom: 20px;
}
.page-blog .hero-sub {
  font-size: 17px;
}

/* Blog Layout (2 Column) */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}
.blog-layout-main {
  min-width: 0;
}

/* Blog Grid */
.blog-archive {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-link {
  display: block;
  color: inherit;
}
.blog-card-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-thumb-empty span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.blog-card-body {
  padding: 24px;
}
.blog-card-date {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Blog Empty */
.blog-empty {
  text-align: center;
  padding: 80px 0;
  font-size: 16px;
  color: var(--text-muted);
}

/* Blog Pagination */
.blog-pagination {
  margin-top: 56px;
  text-align: center;
}
.blog-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.blog-pagination .page-numbers:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}
.blog-pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.blog-pagination .prev,
.blog-pagination .next {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

/* Blog page final CTA override */
.page-blog .final-cta {
  background: var(--bg-primary);
}

/* ===========================================
   BLOG SINGLE (single.php)
   =========================================== */

/* Breadcrumb */
.breadcrumb {
  padding: 24px 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-nav a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.breadcrumb-nav a:hover {
  color: var(--accent);
}
.breadcrumb-sep {
  color: var(--border);
  font-size: 12px;
}
.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Article */
.single-article {
  padding: 60px 0 80px;
  background: var(--bg-primary);
}
.single-article .container {
  max-width: 1120px;
}

/* Article Header */
.article-header {
  margin-bottom: 40px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.article-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}
.article-date-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 4px;
}
.article-date-updated .article-date-label {
  background: rgba(122,46,58,0.08);
  color: var(--accent);
}
.article-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* Article Eyecatch */
.article-eyecatch {
  margin-bottom: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content (Typography) */
.article-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-top: 56px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.article-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid var(--accent-sub);
}
.article-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-content p {
  margin-bottom: 24px;
}
.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.article-content ul {
  list-style: none;
  padding-left: 0;
}
.article-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sub);
}
.article-content ol li {
  margin-bottom: 8px;
}
.article-content blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: var(--text-secondary);
}
.article-content blockquote p:last-child {
  margin-bottom: 0;
}
.article-content img {
  border-radius: var(--radius-sm);
  margin: 32px 0;
  border: 1px solid var(--border);
}
.article-content a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.article-content a:hover {
  border-bottom-color: var(--accent);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}
.article-content table th,
.article-content table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}
.article-content table td {
  color: var(--text-secondary);
}
.article-content pre {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-deep);
  color: #F0EDE8;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.article-content code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.9em;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.article-content pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
}

/* Article Pagination (wp_link_pages) */
.article-pages {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.article-pages-label {
  font-weight: 600;
  margin-right: 4px;
}
.article-pages a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.article-pages a:hover {
  background: var(--accent);
  color: #fff;
}

/* Post Navigation */
.post-navigation {
  padding: 40px 0 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.post-nav-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-nav-prev {
  text-align: left;
}
.post-nav-next {
  text-align: right;
}
.post-nav-link {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
  max-width: 100%;
}
.post-nav-link:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.post-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog CTA */
.blog-cta {
  padding: 72px 0;
  background: var(--bg-primary);
  text-align: center;
}
.blog-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.blog-cta-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.blog-cta .cta-group {
  justify-content: center;
}

/* ===========================================
   SIDEBAR
   =========================================== */
.sidebar-widget {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 24px;
}
.sidebar-widget:last-child {
  margin-bottom: 0;
}
.sidebar-widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Sidebar: Banner */
.sidebar-banner {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.sidebar-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* Sidebar: Category List */
.sidebar-category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-category-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.sidebar-category-list li:last-child {
  border-bottom: none;
}
.sidebar-category-list li a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

/* Sidebar: Recent Posts */
.sidebar-recent-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-recent-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: opacity var(--transition);
}
.sidebar-recent-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-recent-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-recent-thumb-empty span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.sidebar-recent-body {
  flex: 1;
  min-width: 0;
}
.sidebar-recent-date {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.sidebar-recent-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Sidebar: Archive List */
.sidebar-archive-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-archive-list li {
  border-bottom: 1px solid var(--border);
}
.sidebar-archive-list li:last-child {
  border-bottom: none;
}
.sidebar-archive-list li a {
  display: block;
  padding: 12px 4px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

/* Sidebar: Related Posts */
.sidebar-related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sidebar-related-item {
  border-bottom: 1px solid var(--border);
}
.sidebar-related-item:last-child {
  border-bottom: none;
}
.sidebar-related-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  transition: opacity var(--transition);
  text-decoration: none;
}
.sidebar-related-link:hover {
  opacity: 0.7;
}
.sidebar-related-thumb {
  width: 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}
.sidebar-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sidebar-related-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-related-thumb-empty span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.sidebar-related-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar-related-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}
.sidebar-related-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Header */
  .site-header { padding: 0 20px; }
  .site-nav a:not(.header-cta):not(.header-line-btn) { display: none; }
  .header-buttons { gap: 8px; }
  .header-cta { padding: 8px 16px; font-size: 13px; }
  .header-line-btn { padding: 8px 16px; font-size: 13px; }

  /* Global */
  .section-heading { font-size: 26px; }
  .cta-group { flex-direction: column; }
  .btn-primary, .btn-outline, .btn-line { width: 100%; max-width: 320px; }

  /* --- TOP PAGE --- */
  .page-top .hero { padding: 60px 0; min-height: auto; }
  .page-top .hero .container { flex-direction: column; gap: 40px; max-width: none; }
  .hero-text { flex: 1; width: 100%; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-visual { flex: 1; min-height: 380px; width: 100%; }
  .card-talk { width: 240px; height: 280px; left: 0; }
  .card-dash { width: 220px; height: 180px; right: 0; }
  .card-flow { width: 260px; height: 160px; left: 5%; }

  .services { padding: 72px 0; }
  .service-cards { grid-template-columns: 1fr; gap: 20px; }

  .flow-section { padding: 72px 0; }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step-card { width: 100%; }
  .step-arrow {
    padding: 8px 0;
  }
  .step-arrow svg {
    transform: rotate(90deg);
    width: 28px;
    height: 28px;
  }

  .mid-cta { padding: 56px 0; }
  .mid-cta-text { font-size: 18px; }
  .mid-cta .cta-group { flex-direction: column; align-items: center; }

  .philosophy { padding: 72px 0; }
  .philosophy-quote { font-size: 20px; }
  .promises { grid-template-columns: 1fr; gap: 20px; }

  .faq { padding: 72px 0; }
  .faq-question { padding: 20px 24px; }
  .faq-answer-inner { padding: 0 24px 20px 48px; }

  .final-cta { padding: 72px 0; }
  .final-cta .section-heading { font-size: 24px; }
  .final-cta .cta-group { flex-direction: column; align-items: center; }

  /* --- CONTACT PAGE --- */
  .page-contact .hero { padding: 60px 0 40px; }
  .page-contact .hero-title { font-size: 28px; }
  .page-contact .hero-sub { font-size: 15px; }
  .choose-method { padding: 56px 0; }
  .method-cards { grid-template-columns: 1fr; gap: 20px; }
  .contact-form-section { padding: 56px 0; }
  .form-wrapper { padding: 36px 24px; }
  .line-cta { padding: 56px 0; }
  .page-contact .faq { padding: 56px 0; }
  .form-submit .btn-primary { min-width: auto; width: 100%; }

  /* --- SERVICE PAGE --- */
  .page-service .hero { padding: 60px 0 40px; }
  .page-service .hero-title { font-size: 28px; }
  .page-service .hero-sub { font-size: 15px; }

  .overview { padding: 56px 0; }
  .overview-steps { grid-template-columns: 1fr; gap: 16px; }
  .overview-step:not(:last-child)::after { display: none; }

  .service-detail { padding: 64px 0; }
  .service-detail-header { margin-bottom: 48px; }
  .service-block { margin-bottom: 64px; }
  .service-block-title { font-size: 24px; }
  .service-block-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-block-body.reverse {
    direction: ltr;
  }

  .pricing { padding: 64px 0; }
  .pricing-cards { grid-template-columns: 1fr; gap: 20px; }

  .flow-detail { padding: 64px 0; }
  .flow-detail .flow-steps { grid-template-columns: 1fr; gap: 16px; }
  .flow-step-card:not(:last-child)::after { display: none; }

  /* --- ABOUT PAGE --- */
  .page-about .hero { padding: 60px 0 40px; }
  .page-about .hero-title { font-size: 28px; }
  .page-about .hero-sub { font-size: 15px; }

  .representative { padding: 72px 0; }
  .rep-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rep-photo {
    max-width: 240px;
    margin: 0 auto;
  }
  .rep-name { font-size: 24px; }
  .rep-philosophy { font-size: 18px; }

  .company-info { padding: 72px 0; }
  .info-row {
    grid-template-columns: 1fr;
  }
  .info-label {
    padding: 16px 20px 8px;
    background: transparent;
  }
  .info-value {
    padding: 8px 20px 16px;
  }

  /* --- BLOG ARCHIVE --- */
  .page-blog .hero { padding: 60px 0 40px; }
  .page-blog .hero-title { font-size: 28px; }
  .page-blog .hero-sub { font-size: 15px; }

  .blog-archive { padding: 56px 0; }
  .blog-layout { grid-template-columns: 1fr; gap: 32px; }
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-card-body { padding: 20px; }
  .blog-card-title { font-size: 16px; }
  .blog-pagination { margin-top: 40px; }

  /* --- BLOG SINGLE --- */
  .breadcrumb { padding: 16px 0; }
  .breadcrumb-nav { font-size: 12px; }

  .single-article { padding: 40px 0 56px; }
  .article-title { font-size: 24px; }
  .article-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
  .article-eyecatch { margin-bottom: 32px; }

  .article-content h2 { font-size: 20px; margin-top: 40px; }
  .article-content h3 { font-size: 18px; margin-top: 32px; }
  .article-content blockquote { padding: 20px; }

  .post-navigation { padding: 32px 0; }
  .post-nav-inner { grid-template-columns: 1fr; gap: 16px; }
  .post-nav-next { text-align: left; }

  .blog-cta { padding: 56px 0; }
  .blog-cta-text { font-size: 18px; }
  .blog-cta .cta-group { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-nav { flex-direction: column; gap: 16px; }

  /* SP Fixed CTA - padding for body */
  body { padding-bottom: 56px; }

  /* SP Fixed CTA */
  .sp-fixed-cta.is-visible { display: flex; }
}

/* ===========================================
   THANKS PAGE (page-thanks.php)
   =========================================== */
.thanks-section {
  padding: 120px 0;
  background: var(--bg-primary);
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.thanks-inner {
  max-width: 560px;
  margin: 0 auto;
}
.thanks-icon {
  margin-bottom: 32px;
}
.thanks-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.thanks-message {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.thanks-message strong {
  color: var(--accent);
  font-weight: 700;
}
.thanks-actions {
  display: flex;
  justify-content: center;
}

/* ===========================================
   404 PAGE (404.php)
   =========================================== */
.error404-section {
  padding: 120px 0;
  background: var(--bg-primary);
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error404-inner {
  max-width: 560px;
  margin: 0 auto;
}
.error404-code {
  font-family: "Inter", sans-serif;
  font-size: 96px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 16px;
}
.error404-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.error404-message {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.error404-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================================
   PP同意チェックボックス (CF7向けスタイル)
   =========================================== */
.pp-consent {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pp-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  cursor: pointer;
}
.pp-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.pp-consent a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.pp-consent a:hover {
  border-bottom-color: var(--accent);
}

/* ===========================================
   SP FIXED CTA (追従ボタン)
   =========================================== */
.sp-fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 56px;
  box-shadow: 0 -2px 12px rgba(26,21,22,0.1);
}
.sp-fixed-cta-line,
.sp-fixed-cta-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.sp-fixed-cta-line {
  background: #06C755;
}
.sp-fixed-cta-contact {
  background: var(--accent);
}

/* ===========================================
   COOKIE CONSENT BANNER
   =========================================== */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--bg-deep);
  padding: 16px 0;
  box-shadow: 0 -4px 20px rgba(26,21,22,0.15);
}
.cookie-consent.is-visible {
  display: block;
}
.cookie-consent-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-consent-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(240,237,232,0.7);
}
.cookie-consent-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent-text a:hover {
  color: var(--accent-sub);
}
.cookie-consent-btn {
  flex-shrink: 0;
  padding: 10px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-consent-btn:hover {
  background: #8C3545;
}

/* ===========================================
   RESPONSIVE (追加分)
   =========================================== */
@media (max-width: 768px) {
  /* Thanks */
  .thanks-section { padding: 80px 0; }
  .thanks-title { font-size: 24px; }

  /* 404 */
  .error404-section { padding: 80px 0; }
  .error404-code { font-size: 64px; }
  .error404-title { font-size: 22px; }
  .error404-nav { flex-direction: column; align-items: center; }
  .error404-nav .btn-primary,
  .error404-nav .btn-outline { width: 100%; max-width: 280px; }

  /* Cookie Consent */
  .cookie-consent { padding: 14px 0; }
  .cookie-consent-inner { flex-direction: column; gap: 12px; padding: 0 20px; }
  .cookie-consent-text { font-size: 12px; text-align: center; }
  .cookie-consent-btn { width: 100%; }

  /* Cookie表示中はSP CTAをずらす */
  .cookie-consent.is-visible ~ .sp-fixed-cta.is-visible {
    bottom: 56px;
  }
}
