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

:root {
  --red: #c0392b;
  --dark: #1a1a1a;
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-light: #f4f4f4;
  --gray-mid: #e0e0e0;
  --text: #2c2c2c;
  --text-light: #888;
  --serif: 'Noto Sans JP', sans-serif;
  --sans: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== ヘッダーナビ ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(255,255,255,0);
  transition: background 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(0px);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--gray-mid);
  backdrop-filter: blur(8px);
}
.site-logo {
  display: flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}
.site-logo img {
  height: 36px;
  width: auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 13px;
  color: var(--dark);
  letter-spacing: 0.5px;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--red); }
.site-nav .nav-cta {
  background: var(--dark);
  color: #fff;
  padding: 10px 24px;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 500;
  transition: background 0.2s;
}
.site-nav .nav-cta:hover { background: var(--red); color: #fff; }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  padding-top: 72px;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('https://idea-soken.com/assets/photo_lecture.jpg') !important;
  background-size: cover !important;
  background-position: center 25% !important;
  filter: none !important;
  opacity: 1 !important;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none !important;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 60px;
}
.hero-site-name {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-weight: 400;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.hero-title em {
  color: var(--red);
  font-style: normal;
}
.hero-lead {
  font-size: 15px;
  color: #555;
  line-height: 2;
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 36px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.btn-fill {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 16px 44px;
  transition: background 0.25s, transform 0.2s;
}
.btn-fill:hover { background: var(--red); transform: translateY(-2px); }
.btn-text-link {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
  border-bottom: 1px solid var(--gray-mid);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-text-link:hover { color: var(--red); border-color: var(--red); }

/* ===== 実績バー ===== */
.stats-strip {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stats-strip-inner {
  display: flex;
  max-width: 960px;
  width: 100%;
}
.stat-cell {
  flex: 1;
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-cell:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.stat-num sup { font-size: 18px; color: var(--red); }
.stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
}

/* ===== ロゴ帯 ===== */
.logo-strip {
  padding: 32px 60px;
  border-bottom: 1px solid var(--gray-mid);
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-strip-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-light);
  white-space: nowrap;
  font-weight: 500;
}
.logo-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}
.logo-name {
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  padding: 0 20px;
  border-right: 1px solid var(--gray-mid);
  letter-spacing: 1px;
  line-height: 1;
}
.logo-name:last-child { border-right: none; }

/* ===== セクション共通 ===== */
.section-wrap {
  padding: 104px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 56px;
  letter-spacing: 0.02em;
}

/* ===== 写真+テキスト 左右分割 ===== */
.split {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 72px;
  align-items: center;
  padding: 104px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.split.flip { grid-template-columns: 1fr 55%; }
.split.flip .split-photo { order: 2; }
.split.flip .split-text { order: 1; }
.split-photo { position: relative; }
.split-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  filter: none !important;
  opacity: 1 !important;
}
.split-photo-accent {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 180px;
  height: 180px;
  border: 2px solid var(--red);
  z-index: -1;
}
.split.flip .split-photo-accent {
  left: auto;
  right: -20px;
}
.split-text .eyebrow { margin-bottom: 12px; }
.split-text h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--dark);
  margin-bottom: 24px;
}
.split-text p {
  font-size: 14px;
  color: #666;
  line-height: 2;
  margin-bottom: 28px;
  font-weight: 300;
}
.feature-list {
  list-style: none;
  margin-bottom: 36px;
  border-top: 1px solid var(--gray-mid);
}
.feature-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-mid);
  font-weight: 400;
}
.feature-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== 写真グリッド ===== */
.photo-mosaic {
  padding: 0 60px 104px;
  max-width: 1100px;
  margin: 0 auto;
}
.mosaic-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 6px;
}
.mosaic-item {
  overflow: hidden;
  position: relative;
}
.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  filter: none !important;
  opacity: 1 !important;
}
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-item.tall { grid-row: 1 / 3; }

/* ===== 理由4つ ===== */
.reasons-section {
  background: var(--off-white);
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  padding: 104px 60px;
}
.reasons-inner { max-width: 1100px; margin: 0 auto; }
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--gray-mid);
  border-top: 1px solid var(--gray-mid);
}
.reason-item {
  padding: 40px 32px;
  border-right: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  background: #fff;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.reason-item:hover { background: var(--off-white); }
.reason-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.reason-item:hover::after { transform: scaleX(1); }
.reason-no {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--gray-mid);
  line-height: 1;
  margin-bottom: 20px;
}
.reason-ttl {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 12px;
}
.reason-body {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.9;
  font-weight: 300;
}

/* ===== お客様の声 ===== */
.voices-section {
  padding: 104px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.voice-item {
  border-top: 2px solid var(--dark);
  padding-top: 32px;
}
.voice-avatar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.voice-silhouette {
  width: 48px;
  height: 48px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voice-silhouette svg {
  width: 28px;
  height: 28px;
  fill: #bbb;
}
.voice-meta { display: flex; flex-direction: column; gap: 3px; }
.voice-role {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
}
.voice-company {
  font-size: 12px;
  font-weight: 700;
  color: var(--dark);
}
.voice-quote {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 900;
  color: var(--gray-mid);
  line-height: 0.8;
  margin-bottom: 12px;
}
.voice-body {
  font-size: 13px;
  color: #555;
  line-height: 2;
  margin-bottom: 16px;
  font-weight: 300;
}
.voice-name {
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 1px;
  border-left: 2px solid var(--red);
  padding-left: 10px;
}

/* ===== フロー ===== */
.flow-section {
  background: var(--gray-light);
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  padding: 104px 60px;
}
.flow-inner { max-width: 1100px; margin: 0 auto; }
.flow-section .eyebrow { color: var(--red); }
.flow-section .sec-title { color: var(--dark); }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--gray-mid);
}
.flow-item {
  padding: 40px 32px;
  border-right: 1px solid var(--gray-mid);
  position: relative;
  background: #fff;
  transition: background 0.2s;
}
.flow-item:hover { background: var(--off-white); }
.flow-num {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 900;
  color: var(--gray-mid);
  line-height: 1;
  margin-bottom: 20px;
}
.flow-step {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.flow-ttl {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.flow-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.flow-ttl {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.flow-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
  font-weight: 300;
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  padding: 120px 60px;
  overflow: hidden;
  text-align: center;
}
.cta-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://idea-soken.com/assets/photo_workshop.jpg');
  background-size: cover;
  background-position: center;
}
.cta-photo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-content .eyebrow { color: var(--red); }
.cta-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 20px;
}
.cta-lead {
  font-size: 14px;
  color: #666;
  line-height: 2;
  margin-bottom: 44px;
  font-weight: 300;
}
.cta-btn-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  display: inline-block;
  border: 1px solid var(--dark);
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  padding: 16px 44px;
  transition: all 0.25s;
}
.btn-outline:hover { background: var(--dark); color: #fff; }
.cta-note {
  font-size: 11px;
  color: #bbb;
  margin-top: 24px;
  letter-spacing: 1px;
}

.site-nav .nav-x-link {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  padding: 4px;
}
.site-nav .nav-x-link:hover { color: #fff; }
.site-header.scrolled .nav-x-link { color: var(--text-light); }
.site-header.scrolled .nav-x-link:hover { color: var(--dark); }

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .site-nav a:not(.nav-cta):not(.nav-x-link) { display: none; }
  .site-nav { gap: 12px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 28px; }
  .hero-lead { font-size: 13px; }
  .hero-cta-row { flex-direction: column; gap: 12px; }
  .stats-strip-inner { flex-wrap: wrap; }
  .stat-cell { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .logo-strip { padding: 20px 24px; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .logo-strip-items { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  .split.flip .split-photo { order: 0; }
  .split.flip .split-text { order: 0; }
  .split-photo img { height: 240px; }
  .split-photo-accent { display: none; }
  .photo-mosaic { padding: 0 24px 48px; }
  .mosaic-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mosaic-item.tall { grid-row: auto; grid-column: 1 / 3; height: 200px; }
  .mosaic-item { height: 140px; }
  .reasons-section { padding: 48px 24px; }
  .reasons-grid { grid-template-columns: 1fr; }
  .voices-section { padding: 48px 24px; }
  .voices-grid { grid-template-columns: 1fr; }
  .flow-section { padding: 48px 24px; }
  .flow-grid { grid-template-columns: 1fr 1fr; border-left: none; }
  .flow-item { border-left: 1px solid rgba(255,255,255,0.08); }
  .cta-section { padding: 64px 24px; }
  .cta-title { font-size: 24px; }
  .cta-btn-row { flex-direction: column; align-items: center; }
  #contents { padding: 48px 24px; }
  #contents > div { grid-template-columns: 1fr !important; }
  .sec-title { font-size: 24px; }
  .hero { max-height: none; min-height: 100svh; }
}
@media (max-width: 960px) {
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 32px; }
  .split { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px; }
  .split.flip .split-photo { order: 0; }
  .split.flip .split-text { order: 0; }
  .split-photo img { height: 280px; }
  .split-photo-accent { display: none; }
  .section-wrap { padding: 64px 24px; }
  .photo-mosaic { padding: 0 24px 64px; }
  .mosaic-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .mosaic-item.tall { grid-row: auto; grid-column: 1 / 3; }
  .reasons-section { padding: 64px 24px; }
  .reasons-grid { grid-template-columns: 1fr 1fr; }
  .voices-section { padding: 64px 24px; }
  .voices-grid { grid-template-columns: 1fr; }
  .flow-section { padding: 64px 24px; }
  .flow-grid { grid-template-columns: 1fr 1fr; border-left: none; }
  .flow-item { border-left: 1px solid rgba(255,255,255,0.08); }
  .cta-section { padding: 80px 24px; }
  .logo-strip { padding: 24px; }
  .stats-strip-inner { flex-wrap: wrap; }
  .stat-cell { flex: 1 1 50%; }
}

/* WordPressテーマのimg設定を強制上書き */
.hero-photo,
.mosaic-item img,
.split-photo img,
.cta-photo-bg {
  filter: none !important;
  opacity: 1 !important;
  -webkit-filter: none !important;
}
.hero-photo::before {
  display: none !important;
}

/* ===== 旧テーマ要素を非表示 ===== */
.home #header,
.home #logo,
.home #gnav,
.home #gnav-container,
.home #header-sns,
.home #header-menu-tog,
.home #footer,
.home .footer-01,
.home .footer-02,
.home #footer-nav,
.home .footer-copy,
.home .page-top,
.home #page-top {
  display: none !important;
}

/* ===== ヒーローテキスト可読性改善 ===== */
.hero-section {
  position: relative;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-content .hero-sub,
.hero-content p {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ===== 右下ページトップボタン非表示 ===== */
.home .page-top,
.home #page-top,
.home a[href="#top"],
.home .scrollup {
  display: none !important;
}


/* ===== ヒーロー テキスト色修正 ===== */
.hero-site-name {
  color: rgba(0, 0, 0, 0.8) !important;
  text-shadow: none !important;
}

.hero-content .btn-text-link {
  color: #ffffff !important;
  border-color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ===== 03コンテンツ グリッド修正 ===== */
#contents > div {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

