/* =========================================================================
   株式会社信和 - メインスタイルシート
   Design System: Forest Green × Action Orange Fintech
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Greens */
  --c-brand-dark: #1F3728;
  --c-brand-mid: #148C44;
  --c-brand-accent: #0F6933;
  --c-brand-black-green: #020D06;

  /* Accents */
  --c-action-orange: #FE6E00;
  --c-action-orange-hover: #D95F00;
  --c-action-orange-active: #BF5400;
  --c-muted-teal: #526057;

  /* Text */
  --c-text-primary: #333333;
  --c-text-secondary: #666666;
  --c-text-tertiary: #9CA3AF;
  --c-text-disabled: #B3B3B3;

  /* Surface */
  --c-white: #FFFFFF;
  --c-gray: #F4F5F5;
  --c-mint: #E7F3EC;
  --c-black: #000000;
  --c-border: #D5D8D6;

  /* Status */
  --c-warning: #FFBA4B;
  --c-success: #09B54E;

  /* Spacing (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 28px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-15: 60px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 9999px;

  /* Shadows */
  --sh-1: 0 2px 8px rgba(0,0,0,0.06);
  --sh-2: 0 4px 16px rgba(0,0,0,0.10);
  --sh-3: 0 8px 24px rgba(0,0,0,0.12);
  --sh-4: 0 12px 40px rgba(0,0,0,0.16);

  /* Fonts */
  --f-ja: "Hiragino Kaku Gothic Pro", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Inter", sans-serif;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-ja);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--c-text-primary);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-brand-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--c-brand-accent); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; color: var(--c-brand-dark); line-height: 1.4; }

p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 60px 0; }

.section-white { background: var(--c-white); }
.section-gray  { background: var(--c-gray); }
.section-mint  { background: var(--c-mint); }
.section-dark  { background: var(--c-brand-dark); color: var(--c-white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--c-white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  background: var(--c-mint);
  color: var(--c-brand-dark);
  border: 1px solid var(--c-brand-mid);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: var(--s-4);
}
.section-title {
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin-bottom: var(--s-4);
  color: var(--c-brand-dark);
  font-family: var(--f-ja);
}
.section-title .accent { color: var(--c-brand-mid); }
.section-sub {
  color: var(--c-text-secondary);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto var(--s-12);
}
.text-center { text-align: center; }
.num { font-family: var(--f-en); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-ja);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  padding: 16px 32px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .1s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--c-action-orange);
  color: var(--c-white);
}
.btn-primary:hover { background: var(--c-action-orange-hover); color: var(--c-white); }
.btn-primary:active { background: var(--c-action-orange-active); transform: translateY(1px); }

.btn-dark {
  background: var(--c-brand-black-green);
  color: var(--c-white);
}
.btn-dark:hover { background: var(--c-brand-dark); color: var(--c-white); }

.btn-lg {
  font-size: 18px;
  padding: 20px 40px;
  min-width: 320px;
}

.btn-arrow::after {
  content: "→";
  font-family: var(--f-en);
  font-weight: 700;
  margin-left: 4px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-brand-dark);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--f-ja);
  text-decoration: none;
}
.nav-brand:hover { text-decoration: none; color: var(--c-brand-dark); }
.nav-brand .nav-logo-img,
.nav-brand .custom-logo {
  height: 44px;
  width: auto;
  max-width: 100%;
  display: block;
}
.nav-brand .mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c-brand-mid);
  transform: rotate(45deg);
}
.nav-brand .en {
  font-family: var(--f-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-brand-mid);
  letter-spacing: .1em;
  display: block;
}
@media (max-width: 768px) {
  .nav-brand .nav-logo-img,
  .nav-brand .custom-logo { height: 36px; }
}
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--s-2);
}
.nav-links a {
  display: inline-block;
  color: var(--c-text-primary);
  font-size: 15px;
  font-weight: 400;
  padding: 24px 16px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover { color: var(--c-brand-mid); border-color: var(--c-brand-mid); }

.nav-cta { display: flex; align-items: center; gap: var(--s-3); }
.nav-cta .btn { padding: 12px 20px; font-size: 14px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 24px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--c-brand-dark);
  color: var(--c-white);
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,140,68,0.35), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-12);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--c-white);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: var(--s-5);
}
.hero h1 {
  color: var(--c-white);
  font-size: 48px;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 0 0 var(--s-6);
  font-family: var(--f-ja);
}
.hero h1 .highlight {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-brand-dark);
  padding: 2px 16px;
  border-radius: 8px;
  font-family: var(--f-en);
  font-weight: 700;
  margin: 0 4px;
}
.hero h1 .accent { color: var(--c-warning); }
.hero p.lead {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: var(--s-10);
}
.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c-brand-accent), var(--c-brand-mid));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255,186,75,0.3), transparent 50%);
}

/* ヒーロー画像が設定された場合（写真表示） */
.hero-visual.hero-visual-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--c-brand-dark);
}
.hero-visual.hero-visual-photo::before {
  background: linear-gradient(135deg, rgba(31,55,40,0.15), rgba(15,105,51,0.05));
}

/* CTA セクションに背景画像が設定された場合 */
.section-cta-photo {
  padding: 60px 0;
  color: #FFFFFF;
}
.section-cta-photo .section-title,
.section-cta-photo .section-title .accent {
  color: #FFFFFF;
}
.section-cta-photo .section-sub {
  color: rgba(255, 255, 255, 0.9);
}
.section-cta-photo .eyebrow {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}
.section-cta-photo .contact-card {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(4px);
}

/* Floating circular stat badges over visual */
.stat-badges {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  z-index: 2;
}
.stat-badge {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: var(--sh-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
}
.stat-badge .label { color: var(--c-text-primary); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.stat-badge .value { color: var(--c-brand-dark); font-size: 28px; font-weight: 700; font-family: var(--f-en); letter-spacing: -0.5px; line-height: 1.1; }
.stat-badge .unit { font-size: 14px; color: var(--c-brand-dark); font-family: var(--f-ja); }

/* ---------- Problem Section ---------- */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-12);
  margin-top: var(--s-12);
}
.problem-card {
  text-align: center;
  padding: var(--s-6);
}
.problem-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-brand-mid);
  color: var(--c-brand-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 700;
}
.problem-card h3 {
  font-size: 18px;
  margin-bottom: var(--s-2);
  color: var(--c-brand-dark);
}
.problem-card p {
  color: var(--c-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Features Section ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-10);
}
.feature-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-6);
  box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.feature-num {
  font-family: var(--f-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand-mid);
  letter-spacing: .1em;
  margin-bottom: var(--s-3);
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: var(--s-3);
  color: var(--c-brand-dark);
}
.feature-card p {
  color: var(--c-text-secondary);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

/* ---------- Steps Section ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-10);
  position: relative;
}
.step-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  position: relative;
  border: 1px solid var(--c-border);
}
.step-num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-action-orange);
  color: var(--c-white);
  font-family: var(--f-en);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { font-size: 17px; margin: var(--s-5) 0 var(--s-2); color: var(--c-brand-dark); }
.step-card p { font-size: 13px; color: var(--c-text-secondary); margin: 0; }

/* ---------- Stats / Numbers section ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  margin-top: var(--s-10);
  text-align: center;
}
.stat-item .num-big {
  font-family: var(--f-en);
  font-size: 48px;
  font-weight: 700;
  color: var(--c-brand-mid);
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.stat-item .num-big small { font-size: 20px; margin-left: 2px; }
.stat-item .stat-label { color: var(--c-text-primary); font-size: 14px; font-weight: 700; margin-top: var(--s-2); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: var(--s-10) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  background: transparent;
  border: none;
  font-family: var(--f-ja);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-brand-dark);
  cursor: pointer;
  text-align: left;
}
.faq-q::before {
  content: "Q.";
  font-family: var(--f-en);
  color: var(--c-brand-mid);
  font-weight: 700;
  margin-right: var(--s-3);
}
.faq-q .toggle {
  font-size: 22px;
  color: var(--c-brand-mid);
  transition: transform .2s ease;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 var(--s-6) var(--s-5);
  color: var(--c-text-secondary);
  font-size: 14px;
  line-height: 1.8;
}
.faq-a::before {
  content: "A.";
  font-family: var(--f-en);
  color: var(--c-action-orange);
  font-weight: 700;
  margin-right: var(--s-3);
}
.faq-item.open .faq-a { display: block; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--c-brand-dark);
  color: var(--c-white);
  text-align: center;
  padding: 80px 20px;
  border-radius: 0;
}
.cta-banner h2 { color: var(--c-white); font-size: 32px; margin-bottom: var(--s-4); }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: var(--s-8); }
.cta-banner .btn-group { display: inline-flex; gap: var(--s-4); flex-wrap: wrap; justify-content: center; }

/* ---------- Contact / Company info ---------- */
.info-table {
  width: 100%;
  max-width: 760px;
  margin: var(--s-10) auto 0;
  border-collapse: collapse;
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.info-table th, .info-table td {
  padding: var(--s-5) var(--s-6);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  font-size: 15px;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th {
  background: var(--c-mint);
  color: var(--c-brand-dark);
  font-weight: 700;
  width: 220px;
}
.info-table td { color: var(--c-text-primary); }
.info-table .placeholder { color: var(--c-text-tertiary); font-style: normal; }

/* Contact summary cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: var(--s-10);
}
.contact-card {
  background: var(--c-white);
  padding: var(--s-8);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  text-align: center;
}
.contact-card .icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
  background: var(--c-mint);
  color: var(--c-brand-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.contact-card h4 { font-size: 15px; margin-bottom: var(--s-2); color: var(--c-brand-dark); }
.contact-card p.big {
  font-family: var(--f-en);
  font-size: 26px;
  font-weight: 700;
  color: var(--c-brand-dark);
  margin: 0;
  letter-spacing: -0.3px;
}
.contact-card p.small { color: var(--c-text-secondary); font-size: 13px; margin-top: var(--s-2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-brand-black-green);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-10);
}
.footer-brand { color: var(--c-white); font-size: 20px; font-weight: 700; margin-bottom: var(--s-4); display: inline-block; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.8; }
.footer-col h5 {
  color: var(--c-white);
  font-size: 14px;
  margin-bottom: var(--s-4);
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--s-3); }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-col a:hover { color: var(--c-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .hero h1 { font-size: 40px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .container { padding: 0 20px; }

  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--c-white); flex-direction: column; border-bottom: 1px solid var(--c-border); padding: var(--s-3) 0; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--c-border); }
  .nav-cta .btn-dark { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero { padding: 48px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .hero-ctas .btn { width: 100%; }
  .btn-lg { min-width: 0; width: 100%; }
  .stat-badges { gap: 12px; bottom: -50px; }
  .stat-badge { width: 108px; height: 108px; padding: 8px; }
  .stat-badge .value { font-size: 20px; }

  .problems-grid,
  .features-grid,
  .steps-grid,
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }

  .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .info-table th { width: 120px; font-size: 13px; }
  .info-table td { font-size: 13px; }
}

/* ---------- WordPress generic post styles ---------- */
.entry-content { line-height: 1.8; }
.entry-content h2 { font-size: 24px; margin: 40px 0 16px; }
.entry-content h3 { font-size: 20px; margin: 32px 0 12px; }
.entry-content img { border-radius: var(--r-md); margin: var(--s-4) 0; }
.entry-content blockquote {
  border-left: 4px solid var(--c-brand-mid);
  padding: var(--s-3) var(--s-5);
  background: var(--c-mint);
  color: var(--c-text-primary);
  margin: var(--s-5) 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.wp-caption-text, .gallery-caption { color: var(--c-text-tertiary); font-size: 12px; text-align: center; }

.page-hero {
  background: var(--c-brand-dark);
  color: var(--c-white);
  padding: 80px 0;
  text-align: center;
}
.page-hero h1 { color: var(--c-white); font-size: 40px; }
.page-hero p { color: rgba(255,255,255,0.8); }

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
.post-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.post-card .post-body { padding: var(--s-6); }
.post-card h3 { font-size: 17px; margin-bottom: var(--s-2); }
.post-card time { color: var(--c-text-tertiary); font-size: 12px; font-family: var(--f-en); }

@media (max-width: 768px) {
  .post-list { grid-template-columns: 1fr; }
}
