@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* MTRC-inspired palette: deep green + orange accent */
  --color-main: #2d6b4f;
  --color-main-dark: #1a4a35;
  --color-main-light: #e8f5e9;
  --color-header-bg: #3a6e55;

  --color-accent: #f08c1e;
  --color-accent-dark: #d67a10;
  --color-accent-light: #fff3e0;

  --color-bg: #FAFAFA;
  --color-bg-warm: #FFFFFF;
  --color-bg-soft: #f0f4f1;
  --color-bg-green-light: #dde8d0;

  --color-text: #333333;
  --color-text-sub: #5a6b5e;
  --color-border: #d4ddd6;
  --color-danger: #BE123C;
  --color-danger-light: #FFF1F2;

  --white: #FFFFFF;
}

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

body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===================== HEADER (MTRC style) ===================== */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  min-height: 70px;
}
.logo a {
  display: flex; align-items: center;
  background: var(--color-header-bg);
  color: #fff !important;
  font-size: 1.15rem; font-weight: 700;
  padding: 10px 28px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.12em;
  text-decoration: none;
  position: relative;
  top: 0;
}
.logo::before { display: none; }

.header-nav {
  display: flex; gap: 28px; align-items: center;
}
.header-nav a {
  color: var(--color-main-dark) !important;
  font-size: 0.95rem; font-weight: 600;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.header-nav a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.header-nav a:hover::after { width: 100%; }
.header-nav a:hover { color: var(--color-main) !important; }

.header-cta { display: flex; gap: 16px; align-items: center; }
.header-cta a[href^="tel:"] {
  white-space: nowrap; color: var(--color-main-dark);
  font-weight: 700; font-family: 'Inter', sans-serif;
  font-size: 1.05rem; letter-spacing: 0.03em;
}

/* Orange circle CTA button (MTRC style) */
.header-cta-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--color-accent);
  border-radius: 50%;
  color: #fff; font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(240, 140, 30, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}
.header-cta-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(240, 140, 30, 0.55);
  color: #fff !important;
}

@media (max-width: 950px) { .header-nav { display: none !important; } }
@media (max-width: 768px) { .header-cta { display: none; } }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px; border-radius: 50px; font-weight: 700;
  font-size: 1rem; text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer; border: none;
  letter-spacing: 0.05em;
}
.btn-free {
  background: #fff;
  color: var(--color-main-dark) !important;
  border: 2px solid var(--color-main);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.btn-free:hover {
  background: var(--color-main);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(45,107,79,0.3);
}
.btn-paid {
  background: var(--color-accent);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(240,140,30,0.35);
  border: none;
}
.btn-paid:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(240,140,30,0.5);
}
.btn-secondary {
  background: var(--color-bg-soft);
  color: var(--color-main-dark) !important;
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--color-main);
  background: #e2e8e4;
}

@media (max-width: 768px) { .btn { padding: 18px 28px; font-size: 1.05rem; width: 100%; max-width: 360px; } }

/* ===================== HERO (MTRC full-photo style) ===================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/hero-main.webp') center/cover no-repeat;
  z-index: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,74,53,0.75) 0%, rgba(45,107,79,0.5) 100%);
  z-index: 1;
}
.hero .container {
  position: relative; z-index: 2;
  padding: 80px 40px;
}
.hero h1 {
  font-size: 3rem; font-weight: 900; line-height: 1.4;
  margin-bottom: 24px; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  letter-spacing: 0.05em;
}
.hero .desc {
  font-size: 1.15rem; line-height: 1.9;
  color: rgba(255,255,255,0.92);
  margin-bottom: 36px; max-width: 680px;
}
.hero-cta-group {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 20px;
  margin-bottom: 40px; margin-top: 40px;
}
@media (min-width: 768px) {
  .hero-cta-group { flex-direction: row; align-items: center; }
  .hero h1 { font-size: 3.2rem; }
}
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }
  .hero .container { padding: 60px 20px; }
}

.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; font-weight: 600; }
.trust-badges span {
  background: rgba(255,255,255,0.15);
  padding: 8px 18px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  letter-spacing: 0.05em;
}

/* ===================== SECTIONS ===================== */
section { padding: 100px 0; }
section:nth-child(even) { background-color: var(--color-bg-warm); }
section:nth-child(odd) { background-color: var(--color-bg); }

.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 900;
  color: var(--color-main-dark);
  margin-bottom: 60px; line-height: 1.5;
  letter-spacing: 0.08em;
}
.section-title::after {
  content: ''; display: block;
  width: 60px; height: 3px;
  background: var(--color-accent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Green background section (MTRC style) */
.section-green {
  background: linear-gradient(160deg, var(--color-bg-green-light) 0%, #c8d8b9 100%) !important;
}

/* Dark overlay section for CTA (MTRC contact style) */
.section-cta-dark {
  position: relative;
  background: url('../img/hero-main.webp') center/cover no-repeat;
  color: #fff;
}
.section-cta-dark::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,74,53,0.85);
}
.section-cta-dark .container { position: relative; z-index: 2; }
.section-cta-dark .section-title { color: #fff; }
.section-cta-dark .section-title::after { background: var(--color-accent); }

/* ===================== GRIDS ===================== */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===================== CARDS ===================== */
.card {
  background: #fff; padding: 36px 24px; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column; align-items: center;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: rgba(240,140,30,0.3);
}
.card h3 { font-size: 1.15rem; color: var(--color-main-dark); margin-bottom: 12px; font-weight: 700; }
.card p { font-size: 0.92rem; color: var(--color-text-sub); line-height: 1.7; text-align: center; }

.card-danger { border-top: 3px solid var(--color-danger); }
.card-danger h3 { color: var(--color-danger); }

/* ===================== NOTICE / HIGHLIGHT ===================== */
.notice-box, .highlight-box {
  background: var(--color-bg-soft); padding: 32px; border-radius: 12px;
  margin-bottom: 40px; border: 1px solid var(--color-border);
}
.notice-box.important { background: var(--color-danger-light); border: 1px solid rgba(190,18,60,0.1); }
.notice-box h4 { font-size: 1.1rem; margin-bottom: 16px; color: var(--color-main-dark); font-weight: 600; }
.notice-box.important h4 { color: var(--color-danger); }

/* ===================== TAGS ===================== */
.simple-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.simple-tag {
  background: #fff; padding: 10px 20px; border-radius: 50px;
  font-size: 0.9rem; color: var(--color-text-sub);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease; font-weight: 500;
}
.simple-tag:hover { background: var(--color-main-light); color: var(--color-main-dark); border-color: var(--color-main); }

/* ===================== CHECKLISTS ===================== */
.checklist ul { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 800px; margin: 0 auto 40px; }
@media (min-width: 768px) { .checklist ul { grid-template-columns: repeat(2, 1fr); } }
.checklist li { position: relative; padding-left: 36px; font-weight: 600; font-size: 1rem; color: var(--color-main-dark); }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--color-accent); font-weight: 900; font-size: 1.2rem;
}
.checklist-footer { max-width: 800px; margin: 0 auto; font-size: 1.05rem; color: var(--color-text-sub); line-height: 1.8; }

/* ===================== FAQ ===================== */
.faq-item { border-bottom: 1px solid var(--color-border); padding: 20px 0; }
.faq-q { 
  font-weight: 700; 
  font-size: 1.1rem; 
  margin-bottom: 0; 
  color: var(--color-main-dark); 
  padding-left: 36px; 
  padding-right: 30px;
  position: relative; 
  cursor: pointer; 
  user-select: none;
  transition: color 0.3s ease;
}
.faq-q:hover {
  color: var(--color-main);
}
.faq-q::before { content: 'Q.'; position: absolute; left: 0; color: var(--color-accent); font-weight: 900; font-size: 1.2rem; }
.faq-q::after {
  content: '▼';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item.active .faq-q {
  margin-bottom: 12px;
}
.faq-item.active .faq-q::after {
  transform: translateY(-50%) rotate(180deg) scale(0.8);
  color: var(--color-accent);
}
.faq-a { 
  font-size: 0.95rem; 
  color: var(--color-text-sub); 
  line-height: 1.8; 
  padding-left: 36px; 
  position: relative; 
  display: none; 
}
.faq-item.active .faq-a {
  display: block;
  animation: faqFadeIn 0.3s ease;
}
.faq-a::before { content: 'A.'; position: absolute; left: 0; color: var(--color-main); font-weight: 700; }

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================== PRICING ===================== */
.pricing-table th, .pricing-table td { padding: 24px; border: 1px solid var(--color-border); }
.pricing-table th { background: var(--color-header-bg); color: #fff; font-weight: 600; text-align: left; }
.pricing-table td { background: #fff; }

/* ===================== TWO COLUMN LAYOUT (MTRC style) ===================== */
.two-col {
  display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.two-col-img img { border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

/* ===================== CTA CONTACT AREA (MTRC style) ===================== */
.cta-contact-box {
  background: #fff; border-radius: 16px;
  padding: 48px 40px; text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  max-width: 800px; margin: 0 auto;
}
.cta-phone {
  font-size: 2.2rem; font-weight: 900; color: var(--color-main-dark);
  font-family: 'Inter', sans-serif; letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.cta-phone-sub {
  font-size: 0.9rem; color: var(--color-text-sub); margin-bottom: 24px;
}

/* ===================== CF7 OVERRIDES ===================== */
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select {
  width: 100%; padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px; background: var(--color-bg-soft);
  font-family: inherit; font-size: 1rem;
  transition: all 0.3s ease;
}
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
  outline: none; border-color: var(--color-accent);
  background: #fff; box-shadow: 0 0 0 3px rgba(240,140,30,0.15);
}
.wpcf7-submit {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 16px 40px !important;
  border: none !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  width: 100% !important; max-width: 300px !important;
}
.wpcf7-submit:hover {
  background: var(--color-accent-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(240,140,30,0.4) !important;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--color-main-dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 24px 24px;
}
footer a { color: rgba(255,255,255,0.8) !important; }
footer a:hover { color: var(--color-accent) !important; }

/* ===================== MOBILE FIXED CTA ===================== */
@media (max-width: 768px) { body { padding-bottom: 80px; } }
@media (max-width: 1150px) { .header-cta a[href^="tel:"] { display: none !important; } }

.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }
.mb-4 { margin-bottom: 40px; }

/* ===================== FLOW STEPS ===================== */
.flow-step {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  position: relative;
  transition: all 0.3s ease;
}
.flow-step:hover {
  transform: translateY(-2px);
  border-color: var(--color-main);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
/* Line connecting steps */
.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 40px;
  width: 2px;
  height: 16px;
  background: var(--color-accent);
  opacity: 0.5;
}
.flow-num {
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 20px;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}
.flow-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-main-dark);
}
