/* ========================================
   TriShift Main Stylesheet
   Design: Professional Navy × White
======================================== */

/* 1. CSS Variables
======================================== */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f2144;
  --navy-700: #1a2f5e;
  --navy-600: #1e3a6e;
  --navy-500: #2c5299;
  --navy-400: #3b6ec4;
  --navy-300: #5a8fd6;
  --navy-100: #dce7f5;
  --navy-50:  #eef3fb;

  --white:    #ffffff;
  --bg-light: #f5f7fb;

  --text-dark:  #1a202c;
  --text-body:  #2d3748;
  --text-light: #64748b;
  --border:     #dde3ef;

  --shadow-sm: 0 2px 8px rgba(30, 58, 110, 0.08);
  --shadow-md: 0 4px 20px rgba(30, 58, 110, 0.12);
  --shadow-lg: 0 8px 40px rgba(30, 58, 110, 0.18);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  --transition: 0.25s ease;

  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

  --container-max:   1100px;
  --section-padding: 96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

ul, ol { list-style: none; }

/* 3. Layout Utilities
======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding) 0;
}

.section--bg {
  background-color: var(--bg-light);
}

.section__head {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--navy-400);
  margin-bottom: 12px;
}

.section__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section__sub {
  font-size: 16px;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 4. Buttons
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn--lg {
  padding: 18px 48px;
  font-size: 16px;
}

.btn--primary {
  background-color: var(--navy-600);
  color: var(--white);
  border-color: var(--navy-600);
}

.btn--primary:hover {
  background-color: var(--navy-700);
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--white {
  background-color: var(--white);
  color: var(--navy-700);
  border-color: var(--white);
}

.btn--white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn--outline-navy {
  background-color: transparent;
  color: var(--navy-600);
  border-color: var(--navy-600);
}

.btn--outline-navy:hover {
  background-color: var(--navy-600);
  color: var(--white);
}

/* 5. Header
======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--navy-800);
  height: 72px;
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.site-logo span {
  color: var(--navy-300);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
  padding-bottom: 2px;
}

.header-nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--navy-300);
  transition: width var(--transition);
}

.header-nav__menu a:hover {
  color: var(--white);
  opacity: 1;
}

.header-nav__menu a:hover::after {
  width: 100%;
}

.header-cta {
  padding: 10px 22px;
  font-size: 14px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navy-900);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-nav__menu a {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

/* 6. Hero
======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-900);
  padding-top: 72px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
  opacity: 0.78;
}

/* 左側（テキスト側）を濃くして可読性確保、右側は写真を見せる */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(6, 14, 38, 0.68) 0%,
    rgba(8, 18, 48, 0.55) 40%,
    rgba(8, 20, 52, 0.22) 68%,
    rgba(8, 20, 52, 0.04) 100%
  );
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 143, 214, 0.4), transparent);
  z-index: 3;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 56px 24px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__label {
  display: inline-block;
  background: rgba(90, 143, 214, 0.18);
  color: var(--navy-300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(90, 143, 214, 0.28);
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero__title em {
  color: var(--navy-300);
  font-style: normal;
}

.hero__sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.hero__tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 36px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  letter-spacing: 0.18em;
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: 0.4; }
}

/* 7. Services
======================================== */
.services { padding: var(--section-padding) 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-600), var(--navy-300));
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--navy-100);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  background: var(--navy-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 40px;
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 14px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 24px;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--navy-50);
  color: var(--navy-600);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--navy-100);
}

/* 8. Features
======================================== */
.features { padding: var(--section-padding) 0; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-item {
  text-align: center;
  padding: 36px 20px;
}

.feature-item__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--navy-600), var(--navy-400));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  font-size: 30px;
}

.feature-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 12px;
  line-height: 1.4;
}

.feature-item__desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
}

/* 9. Pricing
======================================== */
.pricing { padding: var(--section-padding) 0; }

.pricing__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.pricing__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.pricing__table th,
.pricing__table td {
  padding: 18px 28px;
  text-align: center;
  border: 1px solid rgba(221, 227, 239, 0.6);
  font-size: 15px;
}

.pricing__table thead th {
  background: var(--navy-700);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.pricing__table thead th:first-child {
  background: var(--navy-800);
  text-align: left;
}

.pricing__table tbody tr:nth-child(odd)  { background: var(--white); }
.pricing__table tbody tr:nth-child(even) { background: var(--bg-light); }

.pricing__table tbody td:first-child {
  font-weight: 700;
  color: var(--navy-700);
  text-align: left;
  background: var(--navy-50);
}

.pricing__table .featured-col {
  color: var(--navy-700);
  font-weight: 700;
  background: rgba(220, 231, 245, 0.4);
}

.pricing__note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-light);
}

/* 10. Flow
======================================== */
.flow { padding: var(--section-padding) 0; }

.flow__steps {
  display: flex;
  gap: 0;
  position: relative;
  align-items: flex-start;
}

.flow__steps::before {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(10% + 35px);
  right: calc(10% + 35px);
  height: 2px;
  background: linear-gradient(90deg, var(--navy-600), var(--navy-300));
  z-index: 0;
}

.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.flow-step__number {
  width: 70px;
  height: 70px;
  background: var(--navy-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 4px solid var(--white);
  box-shadow: 0 4px 20px rgba(30, 58, 110, 0.3);
}

.flow-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 8px;
}

.flow-step__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
}

/* 11. FAQ
======================================== */
.faq { padding: var(--section-padding) 0; }

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
  /* button要素のリセット */
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-align: left;
}

.faq-item__question:hover { background: var(--bg-light); }

.faq-item__question:focus-visible {
  outline: 2px solid var(--navy-400);
  outline-offset: -2px;
}

.faq-item__q-mark {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--navy-700);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.faq-item__q-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-700);
  flex: 1;
  line-height: 1.5;
}

.faq-item__toggle {
  width: 24px;
  height: 24px;
  min-width: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  background: var(--navy-500);
  border-radius: 2px;
  transition: all 0.28s ease;
}

.faq-item__toggle::before {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}

.faq-item__toggle::after {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
}

.faq-item.is-open .faq-item__toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}

.faq-item.is-open .faq-item__answer { max-height: 600px; }

.faq-item__a-inner {
  display: flex;
  gap: 16px;
  padding: 4px 24px 24px;
}

.faq-item__a-mark {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--navy-100);
  color: var(--navy-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.faq-item__a-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
}

/* 12. CTA
======================================== */
.cta {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(90, 143, 214, 0.1) 0%, transparent 65%);
}

.cta__inner { position: relative; z-index: 1; }

.cta__label {
  display: none;
}

.cta__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.cta__sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 48px;
  line-height: 1.85;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cta__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* 13. Footer
======================================== */
.site-footer {
  background-color: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 72px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand__logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.75;
  margin-bottom: 24px;
}

.footer-brand__sns { display: flex; gap: 12px; }

.sns-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: all var(--transition);
}

.sns-link:hover {
  background: var(--navy-500);
  color: var(--white);
  opacity: 1;
}

.footer-col__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 20px;
}

.footer-col__menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col__menu a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.footer-col__menu a:hover {
  color: var(--white);
  opacity: 1;
}

.footer-col__info p {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.52);
}

.footer-col__mail {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s;
}

.footer-col__info a:hover,
.footer-col__mail:hover {
  color: var(--white);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

/* 14. Page Banner
======================================== */
.page-banner {
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
  padding: 128px 0 72px;
  text-align: center;
}

.page-banner__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--navy-300);
  margin-bottom: 16px;
}

.page-banner__title {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

/* 15. About Page
======================================== */
.about-section { padding: var(--section-padding) 0; }

.about-grid {
  display: block;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 24px;
  line-height: 1.45;
}

.about-text p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.95;
  margin-bottom: 18px;
}

.about-info {
  margin-top: 64px;
}

.company-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.company-table th,
.company-table td {
  padding: 22px 28px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 32%;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-700) 100%);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.company-table td {
  color: var(--text-body);
  line-height: 1.8;
  background: var(--white);
}


.company-table a {
  color: var(--navy-600);
  text-decoration: underline;
  font-weight: 500;
}

.company-table a:hover {
  color: var(--navy-700);
}

.about-sub-services {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-left: 3px solid var(--navy-300);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-sub-services__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy-400);
  margin-bottom: 8px;
}

.about-sub-services p:last-child {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 0;
}

/* 16. Contact Page
======================================== */
.contact-section {
  padding: var(--section-padding) 0;
  background-color: var(--bg-light);
}

.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 56px;
  box-shadow: var(--shadow-md);
}

/* =========================================
   Contact Form 7 統合スタイル
   - .p-contact-form 構造（CF7に登録されたショートコード用）
   - 旧テーマ由来のクラス（c-button--yellow / c-text--green 等）の上書き
   ========================================= */

.wpcf7-form { width: 100%; }

/* 既存のシンプルなform-group用（フォールバック） */
.wpcf7-form .form-group { margin-bottom: 22px; }

.wpcf7-form .form-group > label:not(.p-contact-form) {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 8px;
}

/* テキスト系入力欄の共通リセット */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(44, 82, 153, 0.12);
}

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

/* CF7 のレスポンス出力（バリデーションメッセージ等） */
.wpcf7-response-output {
  margin: 24px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-md) !important;
  font-size: 14px;
  line-height: 1.7;
}

.wpcf7-not-valid-tip {
  color: #c53030;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

/* ---- .p-contact-form: 1項目分のラッパー（labelタグ） ---- */
.p-contact-form {
  display: block;
  margin-bottom: 24px;
  /* labelタグのデフォルト挙動を打ち消す */
  font-weight: 400;
  color: inherit;
}

.p-contact-form__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* 必須バッジ：サイトデザインに統合した上品なネイビー基調 */
.p-contact-form__head-must {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  color: var(--navy-600);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.p-contact-form__head-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-700);
  letter-spacing: 0.01em;
}

/* 入力欄 */
.p-contact-form__input,
.wpcf7-form .p-contact-form__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.p-contact-form__input:focus,
.wpcf7-form .p-contact-form__input:focus {
  outline: none;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(44, 82, 153, 0.12);
}

.p-contact-form__input--textarea,
.wpcf7-form textarea.p-contact-form__input {
  min-height: 180px;
  resize: vertical;
  line-height: 1.7;
}

/* ---- 同意チェックボックス ---- */
.wpcf7-acceptance {
  margin: 28px 0 0;
  display: block;
}

/* 外側のリストアイテム（カード風背景） */
.p-contact-form__acceptance,
.wpcf7-list-item.p-contact-form__acceptance,
.wpcf7-acceptance .wpcf7-list-item {
  display: block !important;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-body);
  list-style: none;
}

/* リストアイテム内の <label> を flex 化してチェックボックスとテキストを横並びに */
.wpcf7-acceptance .wpcf7-list-item label,
.p-contact-form__acceptance label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 400;
  color: inherit;
  line-height: 1.6;
}

/* テキストラベル部分 */
.wpcf7-acceptance .wpcf7-list-item-label {
  display: inline;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

/* チェックボックス本体 */
.p-contact-form__acceptance input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--navy-600);
  cursor: pointer;
  vertical-align: middle;
}

/* ---- プライバシーポリシーリンクの上書き（旧c-text系を打ち消し） ---- */
.p-contact-form__acceptance a,
.wpcf7-acceptance a,
a.c-text--underline,
a.c-text--green {
  color: var(--navy-600) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition);
}

.p-contact-form__acceptance a:hover,
.wpcf7-acceptance a:hover,
a.c-text--underline:hover,
a.c-text--green:hover {
  color: var(--navy-700) !important;
}

/* ---- 送信ボタン：旧c-button系クラスを完全に上書き ---- */
.p-contact-form__submit,
div.c-button.p-contact-form__submit,
.c-button--arrow.c-button--yellow.c-button.p-contact-form__submit {
  /* 旧クラスの装飾を全部リセット */
  display: block;
  width: 100%;
  margin: 32px 0 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  position: relative;
  overflow: visible;
}

/* 旧c-button系の擬似要素・矢印を非表示にする */
.p-contact-form__submit::before,
.p-contact-form__submit::after,
.c-button--arrow::before,
.c-button--arrow::after {
  display: none !important;
  content: none !important;
}

/* 送信ボタン本体 */
.p-contact-form__submit .wpcf7-submit,
.p-contact-form__submit input[type="submit"],
.wpcf7-form .p-contact-form__submit input[type="submit"] {
  width: 100%;
  padding: 18px 32px;
  background: var(--navy-600) !important;
  color: var(--white) !important;
  border: 2px solid var(--navy-600) !important;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
}

.p-contact-form__submit .wpcf7-submit:hover,
.p-contact-form__submit input[type="submit"]:hover {
  background: var(--navy-700) !important;
  border-color: var(--navy-700) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.p-contact-form__submit .wpcf7-submit:active,
.p-contact-form__submit input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* 送信中のスピナー */
.wpcf7-spinner {
  background-color: var(--navy-400);
}

/* ---- フォールバックの required-badge は削除予定だが互換性のため残す ---- */
.required-badge {
  display: inline-block;
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  color: var(--navy-600);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 8px;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.06em;
}

/* ---- モバイル ---- */
@media (max-width: 540px) {
  .p-contact-form { margin-bottom: 20px; }
  .p-contact-form__head { gap: 8px; }
  .p-contact-form__head-text { font-size: 13px; }
  .p-contact-form__head-must { font-size: 10px; padding: 2px 8px; }
  .p-contact-form__submit .wpcf7-submit,
  .p-contact-form__submit input[type="submit"] {
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* Page Content (generic page.php)
======================================== */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-body);
}

.page-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-700);
  margin: 48px 0 16px;
}

.page-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-700);
  margin: 36px 0 12px;
}

.page-content p { margin-bottom: 20px; }

.page-content a {
  color: var(--navy-500);
  text-decoration: underline;
}

/* Fade-in animation (triggered by JS IntersectionObserver)
======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 17. Responsive
======================================== */
@media (max-width: 1024px) {
  :root { --section-padding: 72px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 56px; }

  .section__title    { font-size: 28px; }
  .hero__title       { font-size: 36px; }
  .hero__sub         { font-size: 16px; }
  .cta__title        { font-size: 28px; }
  .page-banner__title { font-size: 30px; }
  .about-text h2     { font-size: 22px; }

  .header-nav { display: none; }
  .hamburger  { display: flex; }

  .hero__btns { flex-direction: column; align-items: flex-start; }
  .hero__btns .btn { width: 100%; max-width: 320px; }

  .services__grid { grid-template-columns: 1fr; }

  .features__grid { grid-template-columns: repeat(2, 1fr); }

  .flow__steps {
    flex-direction: column;
    gap: 28px;
  }

  .flow__steps::before { display: none; }

  .flow-step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 20px;
  }

  .flow-step__number {
    margin-bottom: 0;
    min-width: 56px;
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }

  .contact-wrap { padding: 40px 28px; }
}

@media (max-width: 480px) {
  :root { --section-padding: 48px; }

  .features__grid { grid-template-columns: 1fr; }

  .cta__btns { flex-direction: column; align-items: center; }
  .cta__btns .btn { width: 100%; max-width: 320px; }

  .service-card { padding: 28px 24px; }
}
