/*
Theme Name: Business English
Theme URI: https://example.com/business-english
Author: Business English Studio
Description: ビジネス英会話スクールのWordPressテーマ。HR STUDIOデザインをベースにしたモダンなランディングページ型テーマです。
Version: 1.4.7
License: GNU General Public License v2 or later
Text Domain: business-english
*/

/* === DESIGN TOKENS (至誠テクノロジーズ ブランドカラー) === */
:root {
  --color-text:        #222222;
  --color-navy:        #1A5EA8;
  --color-navy-light:  #2272be;
  --color-red:         #1A5EA8;
  --color-orange:      #1A5EA8;
  --color-white:       #ffffff;
  --color-border:      #DCDDDD;
  --color-border-soft: #EDEEEE;
  --color-bg-light:    #F5F5F5;
  --color-bg-warm:     #faf8f4;
  --color-text-muted:  #666666;
  --gradient-primary:  linear-gradient(90deg, #1A5EA8 0%, #2272be 100%);
  --gradient-hover:    linear-gradient(75deg, #1A5EA8 0%, #2272be 100%);
  --gradient-navy:     linear-gradient(95.41deg, #1A5EA8 0%, #2272be 100%);
  --font-body:         'Open Sans', 'Noto Sans JP', sans-serif;
  --font-display:      'Poppins', sans-serif;
  --container-width:   1280px;
  --container-pad:     32px;
  --radius-card:       10px;
  --radius-btn:        4px;
  --transition:        all 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-white);
  background-image: radial-gradient(circle, #DCDDDD 1px, transparent 1px);
  background-size: 25px 25px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--color-text); }

/* === UTILITY === */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--container-pad); }

/* Section label: gradient Poppins (symbol-3__sd-1 / symbol-4__sd-1) */
.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-red);
  margin-bottom: 4px;
}
.section-title {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}
.section-head { margin-bottom: 64px; }
.section-head.centered { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }

/* === BUTTONS === */

/* Primary gradient btn (sd-17 / symbol-2__sd-6) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 42px 11px 42px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-width: 216px;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hover);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary .btn-label { position: relative; z-index: 1; }
.btn-primary .btn-arrow-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  z-index: 1;
  transition: transform 0.3s ease;
}
.btn-primary:hover .btn-arrow-icon { transform: translateY(-50%) translateX(4px); }

/* Outline btn (sd-14 / symbol-2__sd-4) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 42px 11px 42px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-red);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  min-width: 216px;
}
.btn-outline:hover { background: var(--color-red); color: var(--color-white); }

/* Navy gradient btn (symbol-9) */
.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  width: 100%;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  background: var(--gradient-navy);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.3s;
}
.btn-navy:hover { opacity: 0.8; }

/* Circle arrow btn (symbol-8) */
.btn-circle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
}
.btn-circle .circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--color-red);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-circle .circle-fill {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}
.btn-circle .circle-arrow {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-text);
  border-right: 2px solid var(--color-text);
  transform: rotate(45deg) translate(-1px, 1px);
  transition: border-color 0.2s;
}
.btn-circle:hover .circle-fill { opacity: 1; transform: scale(1); }
.btn-circle:hover .circle-arrow { border-color: var(--color-white); }

/* Scroll animation — hero section only */
.appear { opacity: 1; transform: none; }
.hero .appear { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hero .appear.is-visible { opacity: 1; transform: translateY(0); }
.hero .appear-delay-1 { transition-delay: .1s; }
.hero .appear-delay-2 { transition-delay: .2s; }
.hero .appear-delay-3 { transition-delay: .3s; }
.hero .appear-delay-4 { transition-delay: .4s; }
.hero .appear-delay-5 { transition-delay: .5s; }

/* === HEADER (symbol-2: white 85%, fixed, 80px) === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 var(--container-pad);
}
.header-logo { display: flex; align-items: center; }
.header-logo-img { height: 52px; width: auto; display: block; }
/* Nav links: red gradient clip + underline on hover */
.header-nav ul { display: flex; align-items: center; gap: 32px; }
.header-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}
.header-nav a:hover {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav .nav-underline {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.header-nav a:hover .nav-underline { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; }
.header-actions .btn-outline { padding: 10px 16px; min-width: auto; margin: 0 20px 0 32px; }
.header-actions .btn-primary { padding: 10px 16px; min-width: auto; }
.header-actions .btn-primary .btn-arrow-icon { display: none; }

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  width: 30px;
  height: 28px;
  justify-content: center;
}
.hamburger-btn span { display: block; background: #474A53; border-radius: 100px; height: 2px; transition: var(--transition); }
.hamburger-btn span:nth-child(1) { width: 30px; }
.hamburger-btn span:nth-child(2) { width: 20px; }
.hamburger-btn span:nth-child(3) { width: 10px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 2000;
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4,0.4,0,1), visibility 0.4s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.16); }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(500px, 100vw);
  background: var(--color-white);
  padding: 80px 48px 96px;
  transform: translateX(100px);
  transition: transform 0.8s cubic-bezier(0, 0.7, 0.22, 1);
  overflow-y: auto;
  display: flex; flex-direction: column; align-items: flex-end;
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
  position: fixed; top: 0; right: 0; left: 0; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(6px); z-index: 10;
}
.mobile-menu-logo { display: flex; align-items: center; gap: 8px; }
.mobile-menu-close {
  display: flex; flex-direction: column;
  background: none; border: none; cursor: pointer;
  padding: 4px; width: 30px; height: 28px; justify-content: center; position: relative;
  align-self: flex-end;
}
.mobile-menu-close span {
  display: block; width: 28px; height: 2px;
  background: var(--color-text); border-radius: 100px; position: absolute;
}
.mobile-menu-close span:first-child { transform: rotate(-45deg); top: 14px; }
.mobile-menu-close span:last-child  { transform: rotate(45deg);  top: 14px; }
.mobile-menu-body { margin-top: 40px; width: 400px; max-width: 100%; }
.mobile-nav { width: 400px; max-width: 100%; margin-top: 40px; }
.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
  font-size: 16px; font-weight: 500; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  transition: opacity 0.2s;
}
.mobile-nav li a:hover { opacity: 0.5; }
.mobile-nav li a::after {
  content: '›';
  font-size: 28px;
  color: var(--color-text);
  flex-shrink: 0;
  line-height: 1;
}
.mobile-menu-actions {
  display: flex; flex-direction: column; gap: 20px;
  margin-top: 32px; padding: 0; width: 400px; max-width: 100%;
}
.mobile-menu-actions .btn-primary,
.mobile-menu-actions .btn-outline { width: 100%; padding: 16px 10px 16px 42px; min-width: auto; }

/* === HERO (white bg, split: 40% text / 60% image) === */
.hero {
  padding-top: 80px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.hero-split {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 95%;
  max-width: 1920px;
  margin: 32px auto 0;
  gap: 0;
}
.hero-text-col {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1;
}
.hero h1 {
  font-family: var(--font-body);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}
/* Keyword: red gradient clip (sd-10 strong) */
.hero h1 .hero-keyword {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.hero-subtitle { font-size: 18px; font-weight: 500; color: var(--color-text); line-height: 1.75; }
.hero-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
}
.hero-image-col { flex: 1; margin-left: 40px; position: relative; }
.hero-image-col .hero-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
}
.hero-image-col .hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-placeholder { display: none; }

/* ── Image placeholders (外部画像の代替) ── */
.img-ph {
  width: 100%; height: 100%; min-height: 200px;
  position: relative; overflow: hidden;
  background:
    linear-gradient(#1A5EA8, #2272be) bottom / 100% 4px no-repeat,
    radial-gradient(ellipse at 75% 20%, rgba(255,255,255,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(255,255,255,0.07) 0%, transparent 45%),
    linear-gradient(135deg, #154f8c 0%, #2272be 100%);
}
/* 建物シルエット風 — hero */
.img-ph--hero::before {
  content: '';
  position: absolute; bottom: 4px; left: 0; right: 0; height: 55%;
  background:
    linear-gradient(#154f8c,#154f8c) 5% 0 / 11% 80% no-repeat,
    linear-gradient(#1A5EA8,#1A5EA8) 18% 0 / 14% 100% no-repeat,
    linear-gradient(#154f8c,#154f8c) 34% 0 / 10% 70% no-repeat,
    linear-gradient(#155498,#155498) 46% 0 / 17% 90% no-repeat,
    linear-gradient(#154f8c,#154f8c) 65% 0 / 13% 65% no-repeat,
    linear-gradient(#1A5EA8,#1A5EA8) 80% 0 / 10% 75% no-repeat,
    linear-gradient(#154f8c,#154f8c) 92% 0 / 8% 55% no-repeat;
}
/* 窓の光 */
.img-ph--hero::after {
  content: '';
  position: absolute; bottom: 30px; left: 0; right: 0; height: 45%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 2px) 0 0 / 22px 22px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}
/* 人物シルエット風 — about */
.img-ph--about::before {
  content: '';
  position: absolute; bottom: 4px; left: 0; right: 0; height: 65%;
  background:
    radial-gradient(ellipse 40px 60px at 30% 0%, #154f8c 98%, transparent 100%),
    radial-gradient(ellipse 50px 70px at 50% 0%, #1A5EA8 98%, transparent 100%),
    radial-gradient(ellipse 40px 60px at 70% 0%, #154f8c 98%, transparent 100%),
    radial-gradient(circle 18px at 30% -8%, #155498 98%, transparent 100%),
    radial-gradient(circle 22px at 50% -10%, #2272be 98%, transparent 100%),
    radial-gradient(circle 18px at 70% -8%, #155498 98%, transparent 100%);
}
.img-ph--about::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 200px 200px at 80% 30%, rgba(24,127,196,0.12), transparent);
}
/* テック/データ — feature ai */
.img-ph--feat-ai::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06), rgba(255,255,255,0.06)) 0 0 / 1px 100% repeat-x,
    linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06)) 0 0 / 100% 1px repeat-y;
  background-size: 40px 40px;
}
.img-ph--feat-ai::after {
  content: '';
  position: absolute;
  top: 25%; left: 20%; right: 20%; bottom: 25%;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(24,127,196,0.2);
}
/* ビデオ通話 — feature tutor */
.img-ph--feat-tutor::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 60%; height: 65%;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.img-ph--feat-tutor::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(24,127,196,0.7);
}
/* プレゼン — feature biz */
.img-ph--feat-biz::before {
  content: '';
  position: absolute;
  top: 15%; left: 10%; right: 10%; height: 55%;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
}
.img-ph--feat-biz::after {
  content: '';
  position: absolute;
  bottom: 18%; left: 50%; transform: translateX(-50%);
  width: 50%; height: 2px;
  background: rgba(255,255,255,0.2);
  box-shadow: 0 8px 0 rgba(255,255,255,0.12), 0 16px 0 rgba(255,255,255,0.08);
}

/* Stats bar (sd-25 / sd-28) */
.hero-stats-bar {
  background: var(--color-white);
  margin: 48px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-stats-num {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  line-height: 1.5;
}
.hero-stats-num strong { color: var(--color-orange); font-size: 44px; font-weight: 700; line-height: 1; }

/* Partner logos */
.partners { background: var(--color-white); padding: 24px 0 0; }
.partners-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap; padding: 0 10px;
}
.partner-logo {
  height: 28px; opacity: 0.5; filter: grayscale(1);
  transition: var(--transition);
  display: flex; align-items: center;
  font-size: 16px; font-weight: 700;
  color: var(--color-text-muted); letter-spacing: 0.05em;
}
.partner-logo:hover { opacity: 0.8; filter: grayscale(0.3); }

/* === ABOUT (sd-33/34/41) === */
.section-about { padding: 80px 0 0; background: transparent; position: relative; }
/* Grey bg strip extends from page left edge to 75% width (sd-43) */
.section-about::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 75%;
  background: var(--color-bg-light);
  border-radius: 0 12px 12px 0;
  z-index: 0;
}
.about-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 80px 0;
  position: relative; z-index: 1;
  width: calc(100% - 64px); max-width: 1280px; margin: 0 auto;
}
.about-text-col { width: 45%; position: relative; z-index: 1; }
.about-text-col .section-head { margin-bottom: 20px; }
.about-text-col p { font-size: 18px; font-weight: 500; line-height: 1.75; color: var(--color-text); }
.about-features { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.about-feature-item { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.6; color: var(--color-text); }
/* Red circle border + red check (list-4__item__sd-1) */
.about-feature-item .check-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--color-red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--color-red); font-size: 11px;
}
.about-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-top: 40px; }
.about-image-col { width: 50%; position: relative; display: flex; justify-content: center; }
.about-image-col .img-wrap { border-radius: 12px; overflow: hidden; aspect-ratio: 1224/800; width: 100%; position: relative; }
.about-image-col .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
/* Grey strip now handled by .section-about::before */
.about-image-col .img-bg-strip { display: none; }
.about-img-placeholder { display: none; }
.about-image-col .img-wrap .img-ph { min-height: 0; }

/* === PROBLEM (navy gradient bg, white cards) === */
.section-problem { padding: 120px 0 0; background: transparent; }
.problem-banner {
  background: linear-gradient(95.41deg, #0c2a52 0%, #1A5EA8 100%);
  border-radius: 12px;
  padding: 44px 0 56px;
  margin: 0 32px;
}
.problem-banner-inner {
  width: 1024px; max-width: 100%; margin: 0 auto; padding: 0 32px;
  display: flex; flex-direction: column; align-items: center; gap: 44px;
}
.problem-banner h2 {
  font-size: 24px; font-weight: 700;
  color: var(--color-white); text-align: center; line-height: 1.75;
}
.problem-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; width: 100%; }
/* White cards on navy bg (list-5__item) */
.problem-card {
  background: var(--color-white);
  width: calc(25% - 24px);
  padding: 32px 10px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center;
}
.problem-card p { font-size: 16px; font-weight: 700; line-height: 1.75; color: var(--color-text); }
/* Solution text section – white card on navy bg */
.problem-solution-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px; width: 90%;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px 48px;
}
.problem-solution-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.problem-solution-title span { font-size: 32px; font-weight: 700; line-height: 1.75; text-align: center; color: var(--color-text); }
.problem-solution-title .accent { color: var(--color-red); }
.problem-solution-body { font-size: 16px; font-weight: 500; color: var(--color-text); text-align: center; line-height: 1.75; }

/* === FEATURE (symbol-5/6: white card, text+image, red corner) === */
.section-feature { padding: 120px 0 0; background: transparent; }
.feature-wrap {
  background: var(--color-bg-light);
  border-radius: 20px;
  padding: 80px 0;
  margin: 0 32px;
  display: flex; flex-direction: column; align-items: center;
}
.feature-wrap-inner { display: flex; flex-direction: column; gap: 80px; width: 90%; max-width: 1280px; }
.feature-item { background: transparent; border-radius: var(--radius-card); overflow: hidden; position: relative; width: 100%; }
.feature-item-inner {
  display: flex; flex-direction: row; align-items: stretch; gap: 32px;
  padding: 32px 80px 32px 40px;
  margin: 8px; position: relative; z-index: 0; width: calc(100% - 16px);
}
.feature-item.reverse .feature-item-inner { flex-direction: row-reverse; padding: 32px 40px 32px 80px; }
/* White bg rectangle (symbol-5__sd-2) */
.feature-item-inner::before {
  content: ''; position: absolute; inset: 0;
  background: var(--color-white); border-radius: var(--radius-card);
  width: 65%; z-index: -2; left: 0;
}
.feature-item.reverse .feature-item-inner::before { left: auto; right: 0; }
/* Red gradient corner square (symbol-5__sd-8) – positioned at card corner, no rotation */
.feature-item-inner::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 72px; height: 72px;
  background: var(--gradient-primary); z-index: -1;
}
.feature-item.reverse .feature-item-inner::after { left: auto; right: 0; }
.feature-text-col { width: 50%; display: flex; flex-direction: column; justify-content: flex-start; padding-top: 48px; }
/* Feature number: centered in red corner square */
.feature-num {
  position: absolute;
  top: 0; left: 0;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--color-white);
  z-index: 1;
}
.feature-item.reverse .feature-num { left: auto; right: 0; }
.feature-title { font-size: 28px; font-weight: 700; color: var(--color-text); line-height: 1.6; margin-top: 14px; }
.feature-body { font-size: 16px; line-height: 1.75; color: var(--color-text); margin-top: 20px; }
.feature-image-col { width: 50%; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 920/608; position: relative; }
.feature-image-col img { width: 100%; height: 100%; object-fit: cover; }
.feature-img-placeholder { display: none; }

/* === FUNCTIONS (3-col grid, list-6 style) === */
.section-functions { padding: 120px 0 0; background: transparent; }
.functions-section-inner { width: calc(100% - 64px); max-width: 1280px; margin: 0 auto; }
.functions-grid { display: flex; flex-wrap: wrap; gap: 32px; width: 100%; }
.function-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  box-shadow: 4px 4px 8px 0 rgba(84, 73, 0, 0.08);
  padding: 28px 24px;
  width: calc(33.33% - 22px);
  display: flex; flex-direction: column; gap: 16px;
}
.function-card-icon {
  width: 52px; height: 52px;
  background: rgba(36,60,122,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-navy);
  flex-shrink: 0;
}
.function-card h3 { font-size: 20px; font-weight: 700; color: var(--color-navy); line-height: 1.6; text-align: center; }
.function-card p { font-size: 16px; line-height: 1.75; color: var(--color-text); text-align: left; }

/* === CTA BANNER (symbol-7: bg image + dark overlay) === */
.section-cta-banner { padding: 120px 0 0; background: transparent; }
.cta-banner-wrap {
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1600&q=80');
  background-size: cover; background-position: center;
  border-radius: 20px; overflow: hidden; position: relative;
  width: 85%; max-width: 85%; margin: 0 auto;
}
.cta-banner-overlay { position: absolute; inset: 0; background: rgba(41, 34, 34, 0.8); z-index: 0; }
.cta-banner-inner {
  position: relative; z-index: 1;
  padding: 64px 40px 40px;
  display: flex; flex-direction: column; align-items: center;
}
.cta-banner-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; text-align: center; }
.cta-banner-title span { font-size: 34px; font-weight: 700; color: var(--color-white); letter-spacing: 0.03em; line-height: 1.5; }
.cta-banner-subtitle { font-size: 16px; font-weight: 500; color: var(--color-white); text-align: center; margin-top: 4px; line-height: 1.75; }
/* Two action buttons row (symbol-7__sd-7) */
.cta-banner-actions { display: flex; align-items: stretch; gap: 32px; margin-top: 28px; width: 776px; max-width: 100%; }
/* Outline CTA btn (symbol-7__sd-8) */
.cta-btn-outline {
  flex: 1; display: flex; align-items: center;
  background: var(--color-white); border: 1px solid var(--color-red);
  border-radius: var(--radius-btn); text-decoration: none;
  transition: background 0.3s; overflow: hidden; cursor: pointer;
}
.cta-btn-outline:hover { background: var(--gradient-hover); }
.cta-btn-outline .inner { display: flex; align-items: center; gap: 10px; padding: 24px 10px 24px 44px; width: 100%; }
.cta-btn-outline .btn-text { font-size: 18px; font-weight: 500; color: var(--color-text); flex: 1; text-align: left; }
.cta-btn-outline:hover .btn-text { color: var(--color-white); }
/* Primary CTA btn (symbol-7__sd-12) */
.cta-btn-primary {
  flex: 1; display: flex; align-items: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-btn); text-decoration: none;
  overflow: hidden; position: relative; transition: opacity 0.4s; cursor: pointer; border: none;
}
.cta-btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--gradient-hover); opacity: 0; transition: opacity 0.4s; }
.cta-btn-primary:hover::before { opacity: 1; }
.cta-btn-primary .inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 25px 10px 25px 48px; width: 100%; }
.cta-btn-primary .btn-text { font-size: 18px; font-weight: 600; color: var(--color-white); flex: 1; text-align: left; line-height: 1.75; }
.cta-btn-primary .btn-arrow { font-size: 28px; color: var(--color-white); position: absolute; right: 18px; top: 50%; transform: translateY(-50%); transition: transform 0.4s ease; z-index: 2; }
.cta-btn-primary:hover .btn-arrow { transform: translateY(-50%) translateX(8px); }
/* Phone info */
.cta-phone-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 20px; }
.cta-phone-row { display: flex; align-items: center; gap: 10px; cursor: default; }
.cta-phone-icon { font-size: 28px; color: var(--color-white); }
.cta-phone-num { font-size: 36px; font-weight: 700; color: var(--color-white); line-height: 1.5; }
.cta-phone-hours { font-size: 16px; font-weight: 500; color: var(--color-white); line-height: 1.75; }

/* === WORKS / CASES (shared layout) === */
.section-works, .section-cases { padding: 120px 0 0; background: transparent; }
.case-card-desc { font-size: 13px; color: var(--color-text-muted); line-height: 1.7; margin-top: 8px; }
.section-head-row {
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 64px;
  width: calc(100% - 64px); max-width: 1280px; margin: 0 auto;
  position: relative;
}
.section-head-row .section-head { margin-bottom: 0; text-align: center; flex: 1; }
.section-head-row .btn-circle { position: absolute; right: 0; }
.cases-grid-outer {
  position: relative;
  width: calc(100% - 64px); max-width: 1280px; margin: 0 auto;
  padding-bottom: 56px;
}
.cases-bg-strip {
  position: absolute; bottom: 0; left: -24px; right: -24px;
  height: 320px; background: var(--color-bg-light);
  border-radius: 20px; z-index: -1;
}
.cases-grid { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 32px; padding-bottom: 0; }
.case-card {
  flex: 1; background: var(--color-white);
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--color-border-soft);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); border-color: transparent; }
.case-card-image { aspect-ratio: 16/10; background: var(--color-bg-light); overflow: hidden; }
.case-card-image img { width: 100%; height: 100%; object-fit: cover; }
.case-card-logo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--color-bg-light); }
.case-card-logo-placeholder img { width: 60%; max-width: 200px; height: auto; opacity: 0.5; }
.case-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.case-card-action { margin-top: auto; padding-top: 16px; }
/* 実績一覧ページ用グリッド */
.works-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 40px 0 80px; }
.case-company {
  display: inline-block;
  font-size: 11px; font-weight: 600; color: var(--color-navy);
  background: rgba(36,60,122,0.08); padding: 2px 10px; border-radius: 100px;
  margin-bottom: 12px;
}
.case-card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.65; color: var(--color-text); }

/* === PLAN (sd-76 grey / sd-84 red-border) === */
.section-plan { padding: 120px 0 0; background: transparent; }
.plan-section-inner { width: calc(100% - 64px); max-width: 1280px; margin: 0 auto; }
.plan-grid { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 32px; align-items: stretch; }
.plan-card {
  flex: 1; background: var(--color-white);
  border: 2px solid var(--color-border-soft);
  border-radius: var(--radius-card); overflow: hidden;
  padding: 24px 24px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
}
/* Recommended: red border (sd-84) */
.plan-card.recommended { border-color: var(--color-red); }
.plan-top { display: flex; flex-direction: column; gap: 0; align-items: center; }
.plan-name { font-size: 26px; font-weight: 700; color: var(--color-text); text-align: center; line-height: 1.6; }
/* Recommended plan name: gradient clip (sd-88) */
.plan-card.recommended .plan-name {
  background: var(--gradient-primary);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.plan-subtitle { font-size: 12px; font-weight: 500; color: var(--color-text); text-align: center; line-height: 1.75; }
.plan-price-row { font-size: 16px; font-weight: 500; color: var(--color-text); text-align: center; line-height: 1.75; height: 51px; margin-top: 4px; display: flex; align-items: center; justify-content: center; }
.plan-price-row strong { font-size: 32px; font-weight: 700; line-height: 1.6; }
/* Feature list (list-8/9/10: navy check) */
.plan-features { display: flex; flex-direction: column; gap: 4px; margin: 10px 10px 0; }
.plan-feature-item { display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 500; color: var(--color-text); line-height: 1.75; }
.plan-feature-item .check-icon { font-size: 18px; color: var(--color-navy); flex-shrink: 0; width: 18px; display: flex; align-items: center; justify-content: center; }
.plan-cta { margin-top: 20px; display: flex; justify-content: center; }
.plan-cta .btn-primary,
.plan-cta .btn-navy { width: 100%; }
.btn-navy { position: relative; }
.btn-navy .btn-arrow-icon {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; z-index: 1;
  transition: transform 0.3s ease;
}
.btn-navy:hover .btn-arrow-icon { transform: translateY(-50%) translateX(4px); }

/* === FAQ (sd-105 bg strip left, sd-106 layout) === */
.section-faq { padding: 0; margin-top: 120px; background: transparent; position: relative; }
.faq-bg-strip {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(50% + min(50% - 32px, 640px));
  background: var(--color-bg-light); border-radius: 0 20px 20px 0; z-index: 0;
}
.faq-layout {
  position: relative; z-index: 1;
  display: flex; flex-direction: row; gap: 80px; align-items: flex-start;
  width: calc(100% - 64px); max-width: 1280px; margin: 0 auto;
  padding: 80px 0;
}
.faq-side { width: 280px; flex-shrink: 0; }
.faq-side .section-head { margin-bottom: 32px; }
.faq-list { flex: 1; display: flex; flex-direction: column; padding-right: 48px; }
.faq-item { background: transparent; }
.faq-item + .faq-item { border-top: 1px solid var(--color-border-soft); }
.faq-question {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 0;
  cursor: pointer;
  background: none; border: none;
  width: 100%; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--color-text); line-height: 1.6;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--color-navy); }
.faq-item.is-open .faq-question { color: var(--color-navy); }
.faq-q-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-primary);
  color: var(--color-white); font-size: 14px; font-weight: 700;
  font-family: var(--font-display);
}
.faq-question-text { flex: 1; }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-navy); transition: transform 0.3s ease; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-answer-body {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 4px 0 28px;
  font-size: 16px; line-height: 1.9; color: var(--color-text-muted);
}
.faq-a-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient-navy);
  color: var(--color-white); font-size: 14px; font-weight: 700;
  font-family: var(--font-display); align-self: flex-start;
}

/* === NEWS === */
.section-news { padding: 120px 0; background: transparent; }
.news-section-inner { width: calc(100% - 64px); max-width: 1280px; margin: 0 auto; }
.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--color-border-soft); }
.news-item {
  display: grid;
  grid-template-columns: 180px 1fr 32px;
  align-items: center; gap: 32px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--color-border-soft);
  text-decoration: none; color: var(--color-text);
  border-radius: 8px;
  transition: background 0.2s ease;
}
.news-item:hover { background: var(--color-bg-light); }
.news-item:hover .news-arrow { color: var(--color-red); transform: translateX(4px); }
.news-item:hover .news-thumb img { transform: scale(1.06); }
.news-thumb {
  width: 180px; height: 124px;
  border-radius: 8px; overflow: hidden; flex-shrink: 0;
  background: var(--color-bg-light); position: relative;
}
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.news-thumb .case-card-logo-placeholder img { width: 60%; max-width: 200px; height: auto; object-fit: unset; opacity: 0.5; }
.news-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--gradient-navy);
  position: relative;
}
.news-thumb-placeholder::after {
  content: 'NEWS';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
}
.news-body { display: flex; flex-direction: column; gap: 8px; }
.news-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-date {
  font-size: 16px; font-weight: 500; color: var(--color-text-muted);
  white-space: nowrap;
}
.news-category {
  font-size: 16px; font-weight: 600; color: var(--color-navy);
  background: rgba(36,60,122,0.08); padding: 2px 14px;
  border-radius: 100px; white-space: nowrap;
}
.news-title { font-size: 16px; font-weight: 500; line-height: 1.65; }
.news-arrow {
  font-size: 22px; color: var(--color-border);
  justify-self: end;
  transition: color 0.2s ease, transform 0.2s ease;
}

/* === FOOTER (symbol-10: bg #f6f6f6) === */
.site-footer { background: var(--color-bg-light); padding: 80px 0 0; }
.footer-inner { width: calc(100% - 64px); max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: flex; flex-direction: row; gap: 40px;
  align-items: flex-start; justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; flex-shrink: 0; }
.footer-brand .logo-wrap { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
.footer-logo-img { height: 60px; width: auto; display: block; }
.footer-logo-ja { font-size: 14px; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.05em; }
.footer-tagline { font-size: 16px; font-weight: 500; color: var(--color-text); line-height: 1.75; }
.footer-social { display: flex; gap: 24px; }
.footer-social a { font-size: 22px; color: var(--color-text); transition: opacity 0.3s; }
.footer-social a:hover { opacity: 0.7; }
.footer-nav-flat { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.footer-nav-flat ul { display: flex; flex-wrap: wrap; gap: 6px 28px; list-style: none; padding: 0; margin: 0; justify-content: flex-end; }
.footer-nav-flat a { font-size: 14px; font-weight: 500; color: var(--color-text); transition: color 0.2s; }
.footer-nav-flat a:hover { color: var(--color-navy); }
/* Copyright bar (symbol-10__sd-20) */
.footer-bottom { border-top: 1px solid var(--color-border-soft); text-align: center; padding: 16px 0; margin-top: 40px; }
.footer-copyright { font-size: 12px; font-weight: 500; color: var(--color-text); letter-spacing: 0.03em; line-height: 2; }

/* === INNER PAGES === */
.page-hero { padding: 100px 0 20px; position: relative; z-index: 1; text-align: center; }
.page-hero .section-label { margin-bottom: 8px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; line-height: 1.3; color: var(--color-text); margin-top: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-navy); }
.page-content { padding: 20px 0 120px; background: var(--color-white); position: relative; z-index: 1; }
.content-inner { max-width: 800px; margin: 0 auto; padding: 0 var(--container-pad); }
.content-inner h2 { font-size: 24px; font-weight: 700; margin: 48px 0 20px; }
.content-inner h3 { font-size: 20px; font-weight: 700; margin: 36px 0 16px; }
.content-inner p  { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
.content-inner ul { margin: 0 0 24px 24px; }
.content-inner ul li { list-style: disc; font-size: 15px; line-height: 1.9; margin-bottom: 8px; }
.content-inner a  { color: var(--color-navy); text-decoration: underline; }
.content-inner img { border-radius: var(--radius-card); margin: 32px 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 80px 32px 120px; max-width: var(--container-width); margin: 0 auto; }
.post-card { background: var(--color-white); border: 1px solid var(--color-border-soft); border-radius: var(--radius-card); overflow: hidden; transition: var(--transition); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0,0,0,0.1); border-color: transparent; }
.post-card-thumb { aspect-ratio: 16/9; background: var(--color-bg-light); overflow: hidden; position: relative; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-thumb .case-card-logo-placeholder img { width: 60%; max-width: 200px; height: auto; object-fit: unset; opacity: 0.5; }
.post-card-body { padding: 20px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; color: var(--color-text-muted); }
.post-card-body h2 { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0; }
.pagination { padding: 40px 0 80px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-btn); font-size: 16px; font-weight: 500; border: 1px solid var(--color-border-soft); transition: var(--transition); }
.pagination a:hover, .pagination .current { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.not-found-page { padding: 200px 0; text-align: center; background: var(--color-white); min-height: 100vh; }

/* === RESPONSIVE === */
@media (max-width: 1140px) {
  :root { --container-pad: 24px; }
  /* h1: 4vh at this breakpoint (original), floored at 36px for short viewports */
  .hero h1 { font-size: max(36px, 4vh); }
  /* section-title stays 36px down to 840px */
  .problem-banner h2 { font-size: 18px; }
  .problem-solution-title span { font-size: 28px; }
  .about-text-col, .about-image-col { width: 100%; }
  .hero-text-col { width: 45%; }
  .about-inner { flex-direction: column; }
  /* Grey strip: extend full width when layout collapses to column */
  .section-about::before { width: 100%; border-radius: 0; }
  .problem-card { width: calc(50% - 16px); }
  .feature-item-inner, .feature-item.reverse .feature-item-inner { padding: 32px 40px; }
  /* Cases: keep 3-column nowrap, just allow narrower cards at tablet */
  .case-card { min-width: 0; }
  .plan-grid { flex-direction: column; max-width: 480px; margin-left: auto; margin-right: auto; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav-flat ul { gap: 6px 20px; }
}
@media (max-width: 840px) {
  :root { --container-pad: 20px; }
  .header-nav, .header-actions { display: none; }
  .hamburger-btn { display: flex; }
  /* ── Hero: テキストを画像に重ねるオーバーレイレイアウト ── */
  .hero { position: relative; overflow: hidden; }
  .hero-split {
    position: relative;
    flex-direction: column;
    width: 100%; max-width: 100%;
    margin: 0; gap: 0;
    min-height: 100svh;
    align-items: stretch; justify-content: flex-end;
  }
  /* 画像をセクション全体に絶対配置 */
  .hero-image-col {
    position: absolute; inset: 0;
    width: 100% !important; margin: 0 !important;
    z-index: 0;
  }
  .hero-image-col .hero-img-wrap {
    border-radius: 0; aspect-ratio: unset;
    width: 100%; height: 100%;
  }
  /* ダークオーバーレイ: 下部(テキスト側)を濃く */
  .hero-image-col::after {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
      to bottom,
      rgba(8, 14, 38, 0.45) 0%,
      rgba(8, 14, 38, 0.30) 35%,
      rgba(8, 14, 38, 0.75) 70%,
      rgba(8, 14, 38, 0.88) 100%
    );
  }
  /* テキストカラムを前面に */
  .hero-text-col {
    position: relative; z-index: 1;
    width: 88%; max-width: 540px;
    margin: 0 auto;
    padding: 100px 0 72px;
  }
  /* 白テキスト（キーワードのグラデーションも白に） */
  .hero h1 { color: #fff; }
  .hero h1 .hero-keyword {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #fff;
    color: #fff;
  }
  .hero-subtitle { color: rgba(255,255,255,0.88); }
  /* 画像は最初から表示（フェードイン無効） */
  .hero-image-col { opacity: 1 !important; transform: none !important; transition: none !important; }
  /* ボタンを暗背景向けにアレンジ */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
  }
  .hero .btn-outline:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.85);
    color: #fff;
  }
  /* h1 stays 4vh from 1140px rule, effectively ~16-24px on phones */
  /* section-title: 32px at 840px (original) */
  .section-title { font-size: 32px; }
  /* feature sizes: 22px at 840px (original) */
  .feature-title { font-size: 22px; }
  .feature-num { font-size: 22px; }
  /* problem solution: 22px at 840px (sd-50) */
  .problem-solution-title span { font-size: 22px; }
  /* functions card: 18px at 840px */
  .function-card h3 { font-size: 18px; }
  /* CTA banner: 28px at 840px */
  .cta-banner-title span { font-size: 28px; }
  /* plan feature items stay 18px */
  .section-about, .section-problem, .section-feature, .section-functions,
  .section-cta-banner, .section-works, .section-cases, .section-plan { padding: 100px 0 0; }
  .section-news { padding: 100px 0; }
  .section-faq { margin-top: 100px; padding: 0; }
  .faq-bg-strip { display: none; }
  .faq-layout { flex-direction: column; gap: 40px; padding: 56px 20px; max-width: 100%; }
  .faq-side { position: static; width: 100%; }
  .feature-item-inner { flex-direction: column !important; padding: 32px 20px !important; }
  .feature-text-col, .feature-image-col { width: 100%; }
  /* White card: extend full width when feature item collapses to column */
  .feature-item-inner::before, .feature-item.reverse .feature-item-inner::before { width: 100%; left: 0; right: auto; }
  .cta-banner-wrap { width: 100%; max-width: 100%; border-radius: 0; margin: 0; }
  .cta-banner-actions { flex-direction: column; width: 90%; max-width: 90%; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-brand { width: 100%; }
  .footer-nav-flat { justify-content: flex-start; }
  .footer-nav-flat ul { justify-content: flex-start; }
  .post-grid { grid-template-columns: 1fr; }
  .function-card { width: calc(50% - 16px); }
  .section-head-row { flex-direction: column; align-items: flex-start; padding: 0 0 32px; }
  .section-head-row .btn-circle { position: static; margin-top: 24px; }
  .news-item {
    grid-template-columns: 120px 1fr 26px;
    gap: 20px;
    padding: 20px 0;
    border-radius: 0;
  }
  .news-thumb { width: 120px; height: 84px; }
  .cases-grid { flex-direction: column; flex-wrap: nowrap; padding-bottom: 0; }
  /* Mobile: let cards size to their content, not constrained by flex:1 in column */
  .case-card { flex: none; width: 100%; min-width: 0; }
  .works-list-grid { grid-template-columns: 1fr; }
  /* Hide decorative grey strip (designed for desktop row layout only) */
  .cases-bg-strip { display: none; }
  .problem-banner { margin: 0; border-radius: 0; }
  .feature-wrap { margin: 0; border-radius: 0; }
  .about-inner { max-width: calc(100% - 40px); }
  .about-image-col .img-bg-strip { display: none; }
}
@media (max-width: 540px) {
  :root { --container-pad: 20px; }
  /* h1: 32px at 540px / 白テキストを維持 */
  .hero h1 { font-size: 32px; color: #fff; }
  .section-title { font-size: 28px; }
  .hero-stats-num strong { font-size: 38px; }
  .problem-solution-title span { font-size: 18px; }
  .problem-card { width: 100%; }
  .function-card { width: 100%; }
  .footer-nav-flat ul { gap: 6px 16px; }
  .footer-bottom { margin-top: 32px; }
  .hero-actions .btn-primary, .hero-actions .btn-outline { width: 100%; min-width: auto; padding-left: 20px; }
  .site-footer { margin-top: 0; }
  .section-about, .section-problem, .section-feature, .section-functions,
  .section-cta-banner, .section-works, .section-cases, .section-plan { padding: 100px 0 0; }
  .section-news { padding: 80px 0; }
  .section-company, .section-contact { padding: 80px 0; }
  .section-faq { margin-top: 80px; padding: 0; }
}

/* === COMPANY 会社概要 === */
.section-company { padding: 120px 0; background: linear-gradient(95.41deg, #0c2a52 0%, #1A5EA8 100%); }
.section-company .section-label { color: rgba(255,255,255,0.7); }
.section-company .section-title { color: #fff; }
.company-inner { width: calc(100% - 64px); max-width: 840px; margin: 0 auto; }
.company-inner .section-head { margin-bottom: 48px; }
.company-table-wrap { background: #fff; border-radius: var(--radius-card); box-shadow: 0 2px 20px rgba(0,0,0,0.06); overflow: hidden; }
.company-table { display: grid; }
.company-row { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--color-border); }
.company-row:last-child { border-bottom: none; }
.company-row dt { background: var(--color-bg-light); padding: 20px 24px; font-weight: 600; font-size: 14px; color: var(--color-text); display: flex; align-items: center; }
.company-row dd { padding: 20px 24px; font-size: 15px; color: var(--color-text); margin: 0; display: flex; align-items: center; line-height: 1.7; }

@media (max-width: 600px) {
  .company-row { grid-template-columns: 1fr; }
  .company-row dt { background: var(--color-bg-light); padding: 12px 16px; border-bottom: 1px solid var(--color-border-soft); }
  .company-row dd { padding: 12px 16px; }
}

/* === CONTACT お問い合わせ === */
.section-contact { padding: 120px 0; background-color: #fff; background-image: radial-gradient(circle, #d8d8d8 1px, transparent 1px); background-size: 24px 24px; }
.contact-inner { width: calc(100% - 64px); max-width: 760px; margin: 0 auto; }
.contact-inner .section-head { margin-bottom: 48px; }
.section-desc { font-size: 16px; color: var(--color-text-muted); margin-top: 16px; }
.contact-form-wrap { background: #fff; border-radius: var(--radius-card); padding: 48px; box-shadow: 0 8px 48px rgba(0,0,0,0.14); }

/* CF7 form: reset & structure */
.contact-form-wrap .wpcf7 { width: 100%; }
.contact-form-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 0; }
.contact-form-wrap .wpcf7-form p { margin: 0 0 20px; }
.contact-form-wrap .wpcf7-form p:last-child { margin-bottom: 0; }
.contact-form-wrap .wpcf7-form label { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--color-text); line-height: 1.5; }
.contact-form-wrap .required { display: inline-block; background-color: #d9534f; color: #fff; font-size: 12px; font-weight: bold; padding: 2px 6px; border-radius: 10px; margin-left: 8px; vertical-align: middle; }
/* CF7 wraps inputs in <span class="wpcf7-form-control-wrap"> — make it block */
.contact-form-wrap .wpcf7-form-control-wrap { display: block; width: 100%; }
/* Input fields */
.contact-form-wrap .wpcf7-form input[type="text"],
.contact-form-wrap .wpcf7-form input[type="email"],
.contact-form-wrap .wpcf7-form input[type="tel"],
.contact-form-wrap .wpcf7-form input[type="url"],
.contact-form-wrap .wpcf7-form select,
.contact-form-wrap .wpcf7-form textarea {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
  appearance: none;
}
.contact-form-wrap .wpcf7-form input[type="text"]:focus,
.contact-form-wrap .wpcf7-form input[type="email"]:focus,
.contact-form-wrap .wpcf7-form input[type="tel"]:focus,
.contact-form-wrap .wpcf7-form textarea:focus { outline: none; border-color: var(--color-navy); box-shadow: 0 0 0 3px rgba(24,127,196,0.12); }
.contact-form-wrap .wpcf7-form textarea { min-height: 140px; resize: vertical; }
/* Submit button */
.contact-form-wrap .wpcf7-form input[type="submit"],
.contact-form-wrap .wpcf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 16px 48px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.contact-form-wrap .wpcf7-form input[type="submit"]:hover,
.contact-form-wrap .wpcf7-form .wpcf7-submit:hover { background: var(--gradient-hover); }
/* Validation messages */
.contact-form-wrap .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 12px; color: #e53935; }
/* CF7 response output (5.x) */
.contact-form-wrap .wpcf7-response-output { border-radius: 8px; padding: 12px 16px; margin-top: 16px; font-size: 14px; border: none; }
.contact-form-wrap .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.failed  .wpcf7-response-output,
.contact-form-wrap .wpcf7-validation-errors,
.contact-form-wrap .wpcf7-mail-sent-ng { background: #fff5f5; color: #c0392b; border-left: 4px solid #e53935; }
.contact-form-wrap .wpcf7-form.sent .wpcf7-response-output,
.contact-form-wrap .wpcf7-mail-sent-ok { display: none; }
/* Shake animation on invalid submit */
.contact-form-wrap .wpcf7-form.invalid .wpcf7-submit { animation: cf7-shake 0.4s ease; }
@keyframes cf7-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.contact-form-wrap .wpcf7-form input.wpcf7-not-valid,
.contact-form-wrap .wpcf7-form textarea.wpcf7-not-valid { border-color: #e53935; }
/* Spinner (CF7 default) */
.contact-form-wrap .wpcf7-spinner { display: none !important; }

/* Submitting: button loading indicator */
.contact-form-wrap .wpcf7-form.submitting .wpcf7-submit {
  opacity: 0.75;
  pointer-events: none;
  position: relative;
}
.contact-form-wrap .wpcf7-form.submitting .wpcf7-submit::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cf7-spin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}
@keyframes cf7-spin { to { transform: rotate(360deg); } }

/* Success modal */
.form-success-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}
.form-success-modal[hidden] { display: none; }
.form-success-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(3px);
  animation: modal-fade-in 0.25s ease forwards;
}
.form-success-modal-box {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 56px 48px 48px;
  width: min(480px, calc(100vw - 40px));
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  animation: modal-slide-up 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.form-success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  animation: icon-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}
.form-success-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--color-text); }
.form-success-msg { font-size: 15px; color: var(--color-text-muted); line-height: 1.9; margin-bottom: 32px; }
.form-success-close {
  display: inline-block;
  padding: 12px 40px;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.form-success-close:hover { background: var(--gradient-hover); }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes icon-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@media (max-width: 767px) {
  .contact-inner { width: calc(100% - 32px); }
  .contact-form-wrap { padding: 28px 20px; }
}
