/* ============================================================
   NEW ERA Inc. - Main Stylesheet
   ============================================================ */

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

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --color-primary: #e60012;
  --color-primary-dark: #c0000f;
  --color-secondary: #1a1a2e;
  --color-accent: #f5a623;
  --color-dark: #111111;
  --color-gray: #666666;
  --color-light-gray: #f5f5f5;
  --color-white: #ffffff;
  --color-blue: #003087;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Oswald', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-jp);
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
  line-height: 1.7;
}

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

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

ul, ol {
  list-style: none;
}

/* ============================================================
   Typography
   ============================================================ */
.section-title {
  font-family: var(--font-en);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.08);
  letter-spacing: 0.05em;
  line-height: 1;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-primary);
}

.section-heading {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-dark);
}

.section-heading span {
  color: var(--color-primary);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  padding-right: 52px;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateX(4px);
  box-shadow: -4px 0 0 rgba(230,0,18,0.4);
}

.btn-primary .btn-arrow {
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  padding-right: 52px;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateX(4px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  padding-right: 52px;
  font-weight: 700;
}

.btn-white:hover {
  background: var(--color-light-gray);
  transform: translateX(4px);
}

/* Victory-style diagonal button */
.btn-v {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 50px 18px 36px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
  transition: all 0.4s ease;
}

.btn-v::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  background: rgba(0,0,0,0.2);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  transition: width 0.3s ease;
}

.btn-v .btn-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-v:hover .btn-icon {
  transform: translateX(6px);
  background: rgba(255,255,255,0.35);
}

.btn-v:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 25px rgba(230,0,18,0.4);
  transform: translateY(-2px);
}

/* CTA Phone Button */
.btn-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-dark);
  transition: var(--transition);
}

.btn-tel:hover {
  color: var(--color-primary);
}

.btn-tel i {
  color: var(--color-primary);
}

/* ============================================================
   Header
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}

.header-top {
  background: var(--color-dark);
  padding: 6px 0;
}

.header-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-top-text {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-top-tel {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-top-tel i {
  color: var(--color-primary);
}

.header-main {
  background: #ffffff;
  backdrop-filter: blur(10px);
  padding: 0 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-main-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 50px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.site-logo-text .logo-main {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
}

.site-logo-text .logo-sub {
  font-size: 10px;
  color: rgba(0,0,0,0.5);
  letter-spacing: 0.1em;
}

/* Navigation */
.global-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.global-nav a {
  color: #222222;
  font-size: 13px;
  font-weight: 600;
  padding: 0 18px;
  height: 70px;
  display: flex;
  align-items: center;
  position: relative;
  letter-spacing: 0.05em;
}

.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.global-nav a:hover {
  color: var(--color-primary);
}

.global-nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta .btn {
  font-size: 13px;
  padding: 10px 24px;
}

/* Scroll state */
#site-header.scrolled .header-main {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

/* ============================================================
   Hamburger Menu
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #222222;
  transition: all 0.35s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* SP Menu Overlay */
.sp-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sp-menu-overlay.active {
  opacity: 1;
}

.sp-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 85vw);
  height: 100%;
  background: var(--color-dark);
  z-index: 1060;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow-y: auto;
  padding: 100px 0 60px;
}

.sp-menu.active {
  right: 0;
}

.sp-menu-nav {
  padding: 0 30px;
}

.sp-menu-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.05em;
}

.sp-menu-nav a i {
  color: var(--color-primary);
  font-size: 12px;
}

.sp-menu-cta {
  padding: 30px 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-menu-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  padding: 16px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.sp-menu-tel i {
  color: var(--color-primary);
  font-size: 18px;
}

.sp-menu-tel .tel-num {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
}

.sp-menu-tel .tel-label {
  font-size: 11px;
  opacity: 0.7;
}

/* ============================================================
   Hero Section
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

/* ---- Video Hero ---- */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* fallback: 古いスライダー（使用しないが残す） */
.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 6s ease;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,48,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  margin-bottom: 20px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-copy {
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-copy span {
  color: var(--color-primary);
  display: inline-block;
}

.hero-copy .hero-sub {
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--color-white);
}

.hero-desc {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-features {
  display: none; /* 不使用 */
}

/* ============================================================
   Hero Catch Section（黄色キャッチコピー）
   ============================================================ */
#hero-catch {
  background: #f5c800;
  position: relative;
  overflow: hidden;
  padding: 48px 24px 40px;
}

.hero-catch-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}

/* 背景の大きな透かし文字 */
.hero-catch-bg-text {
  font-family: var(--font-en);
  font-size: clamp(80px, 18vw, 200px);
  font-weight: 700;
  color: rgba(0,0,0,0.07);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
  line-height: 1;
  user-select: none;
}

.hero-catch-content {
  position: relative;
  z-index: 1;
}

.hero-catch-lead {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  color: #111;
  margin-bottom: 14px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.hero-catch-lead strong {
  font-weight: 900;
}

.hero-catch-sub {
  font-size: clamp(13px, 2vw, 16px);
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.03em;
}

.hero-catch-main {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.hero-catch-note {
  font-size: clamp(10px, 1.5vw, 12px);
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.02em;
}

/* ============================================================
   Intro Section（キャッチコピー）
   ============================================================ */
#intro {
  background: #fff;
}

.intro-header {
  position: relative;
  margin-bottom: 8px;
}

.intro-en-title {
  font-family: var(--font-en);
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.07);
  letter-spacing: 0.05em;
  line-height: 1;
  display: block;
  margin-top: -8px;
  margin-bottom: -32px;
  pointer-events: none;
  user-select: none;
}

.intro-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-catch {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 900;
  line-height: 1.4;
  color: #111;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.intro-body {
  font-size: clamp(14px, 1.5vw, 16px);
  color: #555;
  line-height: 2;
  margin-bottom: 36px;
}

.intro-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid #222;
  color: #222;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
  background: transparent;
  cursor: pointer;
}

.btn-outline-dark:hover {
  background: #222;
  color: #fff;
}

.intro-img {
  position: relative;
  overflow: hidden;
}

.intro-img img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease;
}

/* INTROセクション背景 */
.intro-has-bg {
  position: relative;
  overflow: hidden;
}

.intro-has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://test-new.era.bellanotte.biz/wp-content/uploads/2026/02/newera-about.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.intro-has-bg .container {
  position: relative;
  z-index: 1;
}


.intro-img:hover img {
  transform: scale(1.03);
}

/* ============================================================
   Section Common
   ============================================================ */
.section {
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-inner {
  padding: 100px 0;
}

/* ============================================================
   Reason Section - NEW ERAが選ばれる理由
   ============================================================ */
#reason {
  background: var(--color-white);
}

.reason-header {
  text-align: center;
  margin-bottom: 70px;
  position: relative;
  padding-top: 50px;
}

.reason-header .section-title {
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.06);
}

.reason-header .en-title {
  font-family: var(--font-en);
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.07);
  letter-spacing: 0.05em;
  line-height: 1;
  display: block;
  margin-bottom: -40px;
}

.reason-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--color-dark);
  position: relative;
  z-index: 1;
}

.reason-header h2 span {
  color: var(--color-primary);
}

.reason-header .subtitle {
  font-size: 15px;
  color: var(--color-gray);
  margin-top: 16px;
  line-height: 1.8;
}

.reason-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.reason-steps::after {
  content: '';
  position: absolute;
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-primary);
  z-index: 0;
}

.reason-step {
  text-align: center;
  padding: 0 20px 40px;
  position: relative;
  z-index: 1;
}

.reason-step-num {
  width: 90px;
  height: 90px;
  background: var(--color-primary);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.reason-step-num .num {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  line-height: 1;
}

.reason-step-num .digit {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.reason-step-icon {
  width: 64px;
  height: 64px;
  background: var(--color-light-gray);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
  border-radius: 50%;
}

.reason-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}

.reason-step-text {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.7;
}

.reason-cta {
  text-align: center;
  margin-top: 60px;
}

/* ============================================================
   Service Section - NEW ERAのサービス
   ============================================================ */
#service {
  background: var(--color-dark);
  padding: 100px 0 0;
  overflow: hidden;
}

.service-header {
  padding: 0 40px;
  margin-bottom: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.service-header-left .en-label {
  font-family: var(--font-en);
  font-size: clamp(70px, 12vw, 160px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.08);
  line-height: 1;
  display: block;
  margin-bottom: -30px;
}

.service-header-left h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.service-header-left p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  max-width: 400px;
  line-height: 1.8;
}

.service-header-right {
  flex-shrink: 0;
}

/* Service Grid - Victory style */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.1) 100%
  );
  transition: background 0.4s ease;
}

.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(230,0,18,0.8) 0%,
    rgba(0,0,0,0.5) 60%,
    rgba(0,0,0,0.1) 100%
  );
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 28px;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.service-card-num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card-num::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--color-primary);
}

.service-card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 10px;
}

.service-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.service-card:hover .service-card-sub {
  max-height: 80px;
  opacity: 1;
}

.service-card-arrow {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 14px;
  position: absolute;
  top: 24px;
  right: 24px;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-arrow {
  transform: scale(1);
}

/* Service CTA Banner */
.service-cta-banner {
  background: var(--color-primary);
  padding: 50px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
}

.service-cta-banner-text h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 8px;
}

.service-cta-banner-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.service-cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* ============================================================
   Flow Section - 工事の流れ
   ============================================================ */
#flow {
  background: var(--color-light-gray);
  padding: 100px 0;
}

.flow-header {
  text-align: center;
  margin-bottom: 70px;
}

.flow-header .en-title {
  font-family: var(--font-en);
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.07);
  line-height: 1;
  display: block;
  margin-bottom: -40px;
}

.flow-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--color-dark);
  position: relative;
  z-index: 1;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0;
  align-items: stretch;
  position: relative;
}

.flow-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step-num-wrap {
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step-num {
  width: 80px;
  height: 80px;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flow-step-num .step-label {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.15em;
  line-height: 1;
}

.flow-step-num .step-digit {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.flow-step-line {
  width: 2px;
  flex: 1;
  background: var(--color-primary);
  opacity: 0.3;
  min-height: 30px;
}

.flow-step:last-child .flow-step-line {
  display: none;
}

.flow-step-content {
  padding: 0 0 50px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: start;
}

.flow-step-text {
  padding-top: 10px;
}

.flow-step-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 900;
  color: var(--color-dark);
  margin-bottom: 12px;
}

.flow-step-desc {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
}

.flow-step-img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 10px;
}

.flow-cta {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.flow-cta-box {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.flow-cta-box.tel-box {
  background: var(--color-dark);
}

.flow-cta-box.form-box {
  background: var(--color-primary);
}

.flow-cta-box-text {
  color: var(--color-white);
}

.flow-cta-box-text .label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.flow-cta-box-text .tel-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.flow-cta-box-text .tel-num i {
  color: var(--color-primary);
  font-size: 24px;
}

.flow-cta-box.form-box .flow-cta-box-text .tel-num i {
  color: rgba(255,255,255,0.8);
}

.flow-cta-box-text .sub {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

/* ============================================================
   Trouble Section - こんなお悩みありませんか？
   ============================================================ */
#trouble {
  background: var(--color-dark);
  padding: 100px 0;
}

.trouble-header {
  text-align: center;
  margin-bottom: 70px;
}

.trouble-header .en-title {
  font-family: var(--font-en);
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.06);
  line-height: 1;
  display: block;
  margin-bottom: -30px;
}

.trouble-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.trouble-header h2 span {
  color: var(--color-primary);
}

.trouble-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 14px;
  line-height: 1.8;
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 60px;
}

.trouble-item {
  background: rgba(255,255,255,0.04);
  padding: 36px 30px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.3s ease;
  cursor: default;
}

.trouble-item:hover {
  background: rgba(230,0,18,0.1);
}

.trouble-item-icon {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-white);
  flex-shrink: 0;
}

.trouble-item-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
}

.trouble-item-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.trouble-solution {
  background: var(--color-primary);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.trouble-solution-text h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.5;
  margin-bottom: 16px;
}

.trouble-solution-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  margin-bottom: 30px;
}

.trouble-solution-img {
  position: relative;
}

.trouble-solution-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ============================================================
   CTA Section
   ============================================================ */
#cta {
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: 'CONTACT';
  font-family: var(--font-en);
  font-size: 200px;
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 16px;
}

.cta-inner h2 span {
  color: var(--color-primary);
}

.cta-inner p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 50px;
  line-height: 1.8;
}

.cta-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box {
  padding: 50px 40px;
  text-align: center;
}

.cta-box.tel-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.cta-box.form-box {
  background: var(--color-primary);
}

.cta-box-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.cta-box-tel {
  font-family: var(--font-en);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  text-decoration: none;
}

.cta-box-tel i {
  color: var(--color-primary);
  font-size: 28px;
}

.cta-box.form-box .cta-box-tel i {
  color: rgba(255,255,255,0.8);
}

.cta-box-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}

.cta-box-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.cta-box-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */
#footer {
  background: #ffffff;
  padding: 70px 0 0;
  border-top: 2px solid #eeeeee;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none;
  opacity: 1;
}

.footer-brand-text {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  font-family: var(--font-en);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  color: #666666;
  line-height: 1.8;
}

.footer-nav-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: #444444;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav-group h4::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
}

.footer-nav-group a {
  display: block;
  color: #555555;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid #eeeeee;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-nav-group a:hover {
  color: var(--color-primary);
  padding-left: 10px;
}

.footer-contact {
  background: #f7f7f7;
  padding: 24px;
  margin-top: 20px;
  border-radius: 4px;
}

.footer-contact .tel {
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  color: #111111;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact .tel i {
  color: var(--color-primary);
}

.footer-contact .hours {
  font-size: 11px;
  color: #888888;
  margin-top: 4px;
}

.footer-bottom {
  background: #f0f0f0;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
  font-size: 12px;
  color: #888888;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: #888888;
}

.footer-bottom-links a:hover {
  color: var(--color-primary);
}

/* ============================================================
   Scroll Top Button
   ============================================================ */
.scroll-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-4px);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll animation classes */
.anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim.anim-left {
  transform: translateX(-40px);
}

.anim.anim-right {
  transform: translateX(40px);
}

.anim.anim-scale {
  transform: scale(0.9);
}

.anim.in-view {
  opacity: 1;
  transform: none;
}

.anim-delay-1 { transition-delay: 0.1s; }
.anim-delay-2 { transition-delay: 0.2s; }
.anim-delay-3 { transition-delay: 0.3s; }
.anim-delay-4 { transition-delay: 0.4s; }
.anim-delay-5 { transition-delay: 0.5s; }
.anim-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   Responsive - Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }

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

  .reason-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .reason-steps::after {
    display: none;
  }

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

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

  .trouble-solution {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px;
  }

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

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

/* ============================================================
   Responsive - Mobile
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .section-inner {
    padding: 70px 0;
  }

  /* Header */
  .header-top {
    display: none;
  }

  .header-main {
    padding: 0 20px;
  }

  .global-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  #hero {
    min-height: 50vh;
  }

  /* Hero Catch */
  #hero-catch {
    padding: 36px 20px 28px;
  }

  .hero-catch-bg-text {
    font-size: 18vw;
  }

  .hero-catch-sub {
    font-size: 12px;
  }

  /* Intro */
  .intro-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .intro-img img {
    height: 260px;
  }
  .intro-btns {
    flex-direction: column;
  }
  .intro-btns .btn,
  .intro-btns .btn-outline-dark {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Reason */
  .reason-steps {
    grid-template-columns: 1fr;
  }

  /* Service */
  .service-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
  }

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

  .service-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .service-cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  /* Flow */
  .flow-step-content {
    grid-template-columns: 1fr;
  }

  .flow-step-img {
    width: 100%;
    height: 200px;
  }

  .flow-cta {
    grid-template-columns: 1fr;
  }

  .flow-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  /* Trouble */
  .trouble-grid {
    grid-template-columns: 1fr;
  }

  .trouble-solution {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  /* CTA */
  .cta-boxes {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-nav-wrap {
    grid-template-columns: 1fr;
  }

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

/* ============================================================
   Page specific - breadcrumb
   ============================================================ */
.breadcrumb {
  background: var(--color-light-gray);
  padding: 14px 0;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray);
}

.breadcrumb-inner a {
  color: var(--color-gray);
}

.breadcrumb-inner a:hover {
  color: var(--color-primary);
}

.breadcrumb-inner .sep {
  color: rgba(0,0,0,0.25);
  font-size: 10px;
}

/* Page Hero */
.page-hero {
  background: var(--color-dark);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 20, 0.50) 100%
  );
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.page-hero-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-primary);
}

.page-hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.3;
}

.page-hero-title .en {
  font-family: var(--font-en);
  font-size: clamp(60px, 10vw, 130px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.1);
  display: block;
  line-height: 1;
  margin-bottom: -20px;
}

/* ============================================================
   Floating CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  display: none;
  background: rgba(17,17,17,0.95);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.floating-cta-inner {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.floating-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  text-align: center;
}

.floating-cta a.tel-btn {
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 768px) {
  .floating-cta {
    display: block;
  }
  
  .scroll-top {
    bottom: 90px;
  }
}
.container.section-inner01 {
    padding: 0px 0px 100px;
}
/* =========================================================
   SP Drawer Menu（Mobile）
   これ1つに統一してください
   ========================================================= */

:root{
  --z-overlay: 10000;
  --z-drawer:  10010;
  --z-header:  10020;
  --z-hamb:    10030;

  --sp-padding-top: 16px; /* ← 上の余白：12〜20で調整 */
}

/* ---------- PC/SP 出し分け ---------- */
@media (min-width: 992px){
  .hamburger,
  .sp-menu,
  .sp-menu-overlay{
    display: none !important;
  }
}

@media (max-width: 991px){
  .global-nav{ display:none !important; }
  .hamburger{ display:inline-flex; }
}

/* ---------- Header / Hamburger（常に前面） ---------- */
#site-header{
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: #fff;
}

.hamburger{
  position: relative;
  z-index: var(--z-hamb);
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 3本線 */
.hamburger span{
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .2s ease, background .25s ease;
}
.hamburger span:nth-child(1){ top: 14px; }
.hamburger span:nth-child(2){ top: 21px; }
.hamburger span:nth-child(3){ top: 28px; }

/* 開いた時：×に変形 */
.hamburger.active span:nth-child(1){
  top: 21px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2){
  opacity: 0;
}
.hamburger.active span:nth-child(3){
  top: 21px;
  transform: rotate(-45deg);
}

/* 開いた時：×ボタンを固定して必ず見せる（黒×＋薄白背景） */
.hamburger.active{
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: var(--z-hamb);
  background: rgba(255,255,255,.92);
  border-radius: 999px;
}
.hamburger.active span{
  background: #111 !important; /* ← 黒い× */
}

/* ---------- Overlay ---------- */
.sp-menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: var(--z-overlay);
  display: none; /* JSでも制御しているが、保険 */
}
.sp-menu-overlay.active{
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Drawer ---------- */
.sp-menu{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  background: #fff;
  z-index: var(--z-drawer);
  overflow-y: auto;

  transform: translateX(100%);
  transition: transform .3s ease;

  padding-top: var(--sp-padding-top);
  padding-bottom: 18px;
}
.sp-menu.active{
  transform: translateX(0);
}

/* ---------- Menu list（wp_nav_menu対策込み） ---------- */
.sp-menu-nav{
  margin: 0;
  padding: 0;
}
.sp-menu-nav ul,
.sp-menu-nav li{
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-menu-nav a{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* 現在ページ（aria-current）をここでデザインする */
.sp-menu-nav a[aria-current="page"]{
  color: #e60012;
  font-weight: 700;

}

/* ---------- CTA（電話） ---------- */
.sp-menu-cta{
  padding: 16px;
  background: #fff;
}

.sp-menu-tel{
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111;
}

.sp-menu-tel i{
  color: #e60012;
  font-size: 18px;
}

.sp-menu-tel .tel-label{
  color: #555;
  font-size: 12px;
}

.sp-menu-tel .tel-num{
  display: inline-block;
  color: #111;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
/* =========================================
   FIX: ×ボタンと1件目メニューが重なるのを防ぐ
   ========================================= */

/* ×ボタンのサイズ（48px）+ 上余白（10px）+ 少し余裕（10px）= 68px */
.sp-menu.active{
  padding-top: calc(var(--sp-padding-top) + 68px) !important;
}
/* =========================
   SPメニュー：見積もりCTA（キャラ + 文章）
   ========================= */

.sp-cta-btn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
}

.sp-cta-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sp-cta-chara{
  width: 52px;
  height: auto;
  flex: 0 0 auto;
}

.sp-cta-text{
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap; /* 余計な自動改行を防ぐ（<br>だけで改行） */
}

.sp-cta-arrow{
  flex: 0 0 auto;
}
.hamburger.active span{
  background: #111 !important;
}
/* iPhone Safari 対策：下に余白を作って被りを回避 */
.sp-menu{
  padding-bottom: calc(env(safe-area-inset-bottom) + 96px);
}

/* =================================================
   SPメニューCTA：矢印が文字に被らないようにする
   ================================================= */

/* ボタンを基準にして、右側に矢印の席を確保 */
.sp-cta-btn{
  position: relative;
  justify-content: flex-start;      /* space-between をやめる */
  padding-right: 78px;              /* ←矢印分の“席”。(64〜90で微調整) */
}

/* 左側ブロックは伸びてOK */
.sp-cta-left{
  flex: 1 1 auto;
  min-width: 0;
}

/* 矢印は右端に固定配置 */
.sp-cta-arrow{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

/* 念のため、矢印の丸が大きい場合の調整（任意） */
.sp-cta-arrow.btn-icon{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.sp-cta-btn .btn-icon{
  position: static;
}
/* =========================================
   SPメニューCTA：矢印の位置ズレ/重なりを固定で解消
   ========================================= */

/* ボタン全体：右側に矢印の席を確保 */
.sp-cta-btn{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;

  /* 矢印(48px) + 右余白(16px) + 余裕(12px) */
  padding-right: 88px !important;
}

/* 左側（キャラ＋文字）は伸びてOK */
.sp-cta-left{
  flex: 1 1 auto;
  min-width: 0;
}

/* 矢印：このボタン内だけ “右端の円” として確定 */
.sp-cta-btn .sp-cta-arrow{
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;

  width: 48px;
  height: 48px;
  border-radius: 999px;

  display: flex;
  align-items: center;
  justify-content: center;

  /* 円の見た目（不要なら消してOK） */
  background: rgba(255,255,255,.22);
}

/* アイコン自体の微調整 */
.sp-cta-btn .sp-cta-arrow i{
  font-size: 18px;
  line-height: 1;
}
/* =========================================================
   page-home.php SP最適化（992px未満）
   ========================================================= */

/* =========================================================
   SP：左右余白（詰まり感の解消）
   ========================================================= */
@media (max-width: 991px){

  /* サイト全体の基本左右余白（safe-areaも考慮） */
  :root{
    --sp-gutter: 16px; /* 14〜20くらいで好みに調整 */
  }

  /* よくある container に左右余白を付与 */
  .container{
    padding-left: max(var(--sp-gutter), env(safe-area-inset-left));
    padding-right: max(var(--sp-gutter), env(safe-area-inset-right));
  }

  /* このサイト特有の “中身ラッパー” がある場合も同様に */
  .section-inner,
  .section-inner01{
    padding-left: max(var(--sp-gutter), env(safe-area-inset-left));
    padding-right: max(var(--sp-gutter), env(safe-area-inset-right));
  }

  /* もし service-grid が画面端までベタ付けなら、ここにも余白 */
  .service-grid{
    padding-left: max(var(--sp-gutter), env(safe-area-inset-left));
    padding-right: max(var(--sp-gutter), env(safe-area-inset-right));
  }
}
@media (max-width: 991px){
  /* REASON だけ左右の余白（ガター）を強制 */
  #reason{
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 中の要素が full width を持っていても、中央寄せで読みやすくする */
  #reason > *{
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  /* 見出し下の説明文が端に寄りすぎる場合の保険 */
  #reason p{
    line-height: 1.9;
  }
}

/* =========================================================
   SP: SERVICE（タップ表示と同じ見た目をスクロールでも表示）
   ========================================================= */
@media (max-width: 991px){

  /* 画像は常に表示（カード自体は消さない） */
  #service .service-card,
  #service .service-card-inner,
  #service .service-card-inner img{
    opacity: 1 !important;
    transform: none !important;
  }

  /* レイヤー順（文字がoverlayに負けて見えない対策） */
  #service .service-card-inner{ position: relative; }
  #service .service-card-overlay{ position: absolute; inset: 0; z-index: 1; }
  #service .service-card-content{ position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
  #service .service-card-arrow{ position: absolute; top: 14px; right: 14px; z-index: 3; }

  /* SPは hover が無いので、初期は“詳細（赤＋テキスト＋矢印）”を隠す */
  @media (hover:none){
    #service .service-card-overlay,
    #service .service-card-content,
    #service .service-card-arrow{
      opacity: 0;
      transform: translate3d(0, 10px, 0);
      transition: opacity .22s ease, transform .22s ease;
      will-change: opacity, transform;
      pointer-events: none;
    }

    /* ▼ タップ(is-open) と スクロール(is-revealed) どっちでも同じ見た目で出す */
    #service .service-card.is-open .service-card-overlay,
    #service .service-card.is-open .service-card-content,
    #service .service-card.is-open .service-card-arrow,
    #service .service-card.is-revealed .service-card-overlay,
    #service .service-card.is-revealed .service-card-content,
    #service .service-card.is-revealed .service-card-arrow{
      opacity: 1;
      transform: translate3d(0, 0, 0);
      pointer-events: auto;
    }

    /* 文字が背景に負ける場合の保険（必要なら） */
    #service .service-card-content,
    #service .service-card-sub{
      color: #fff;
    }
  }
}
/* =========================================================
   FIX: SERVICE本文（.service-card-sub）を必ず表示する
   ========================================================= */
@media (max-width: 991px){
  #service .service-card-sub{
    display: block !important;
    opacity: 1 !important;
    transform: none !important;

    /* 以前 max-height / overflow で隠していた場合の解除 */
    max-height: none !important;
    overflow: visible !important;

    /* 余白はお好みで */
    margin-top: 10px !important;

    /* 背景が赤/写真なので白文字に */
    color: #fff !important;
  }
}
/* =========================================
   FIX: SERVICE画像の左右余白を消す（フルブリード）
   ========================================= */
@media (max-width: 991px){

  /* グリッド全体を画面端まで広げる */
  #service .service-grid{
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* カード/内側に余白がある場合の保険 */
  #service .service-card,
  #service .service-card-inner{
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 画像をベタ付け（インライン画像の隙間も消す） */
  #service .service-card-inner img{
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}
/* =========================================
   FIX: SERVICE カード内テキストの下に余白を作る
   ========================================= */
@media (max-width: 991px){
  #service .service-card-content{
    padding-bottom: 5px !important; /* 12〜28pxで調整OK */
  }

  /* 説明文の下も少し空けたい場合（任意） */
  #service .service-card-sub{
    margin-bottom: 6px !important; /* 0〜12pxで調整OK */
  }
}
/* =========================================
   SP: FLOW（工事の流れ）縦積み + STEP下の余白解消
   ========================================= */
@media (max-width: 991px){

  /* セクション全体（必要なら） */
  #flow.section{
    padding: 56px 0;
  }

  /* 1ステップを“カード”として整える */
  #flow .flow-step{
    display: block !important;
    margin: 0 0 18px 0 !important;
  }
  #flow .flow-step:last-child{
    margin-bottom: 0 !important;
  }

  /* 左カラム（STEP）を横幅いっぱいにして、下余白を小さく */
  #flow .flow-step-left{
    width: auto !important;
    flex: none !important;
    margin: 0 0 10px 0 !important; /* ← STEP直下の余白はここで調整 */
    padding: 0 !important;
  }

  /* STEP 01 のブロックを“横並び”にしてコンパクトに */
  #flow .flow-step-num-wrap{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* 縦線がSPで「無駄な余白」に見えるので消す（おすすめ） */
  #flow .flow-step-line{
    display: none !important;
  }

  /* 右側コンテンツを縦積み（見出し→本文→画像） */
  #flow .flow-step-content{
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  #flow .flow-step-text{
    margin: 0 !important;
  }
  #flow .flow-step-title{
    margin: 0 !important;
    line-height: 1.35;
  }
  #flow .flow-step-desc{
    margin: 0 !important;
    line-height: 1.85;
  }

  /* 画像は最後に、幅100%で */
  #flow .flow-step-img{
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 6px 0 0 0 !important;
    border-radius: 10px; /* 任意：角丸が不要なら削除 */
  }
}
/* =========================================
   FIX: ヘッダー/フッターのメニューの「・」を消す
   ========================================= */
.global-nav ul,
.global-nav li,
.site-footer ul,
.site-footer li,
footer ul,
footer li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================
   Footer banners
========================= */
.footer-banners {
  padding: 18px 0;
}

.footer-banners-inner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.footer-banner {
  display: block;
  flex: 1;
  max-width: 560px;
}

.footer-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* リンク未設定の見た目（任意） */
.footer-banner--comingsoon {
  cursor: default;
  opacity: 0.95;
}

/* SPでは縦積み */
@media (max-width: 767px) {
  .footer-banners-inner {
    flex-direction: column;
  }
  .footer-banner {
    max-width: 520px;
    width: 100%;
  }
}
@media (min-width: 768px) {
  .footer-banners-inner {
    justify-content: center;
  }

  .footer-banner {
    width: min(360px, 45%); /* ← ここでサイズ調整 */
  }
}
/* 既存: .footer-banner { flex: 1; max-width: 560px; } を上書き */
.footer-banner {
  display: block;
  flex: 0 1 auto; /* ← 伸びない */
  max-width: none;
}

#footer .footer-inner {
  padding-top: 70px;
}
/* =========================
   TOP: Character teaser (White / No frame)
========================= */
.character-teaser{
  padding: 110px 0;
  background: #fff;           /* ←白背景 */
  color: #111;                /* ←文字色を黒寄せ */
}

.character-teaser .section-label{
  color: rgba(0,0,0,0.55);    /* ラベルも黒系に */
}

.character-teaser-inner{
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: center;
}

.character-teaser-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;           /* ←角丸なし */
  box-shadow: none;           /* ←影なし */
}

.character-teaser-title{
  margin-top: 14px;
  font-size: 34px;
  line-height: 1.25;
  color: #111;
}

.character-teaser-title span{
  color: var(--color-primary); /* 既存テーマのアクセント色 */
}

.character-teaser-text{
  margin-top: 16px;
  color: rgba(0,0,0,0.75);
  line-height: 1.9;
  font-size: 15px;
}

.character-teaser-actions{
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* SP */
@media (max-width: 767px){
  .character-teaser{
    padding: 72px 0;
  }

  .character-teaser-inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .character-teaser-title{
    font-size: 26px;
  }

  .character-teaser-actions .btn{
    width: 100%;
    justify-content: center;
  }
}
/* 見出し（NEW ERA + 英字背景） */
.character-teaser-head{
  position: relative;
  padding-top: 16px;  /* 英字が被るので少し余白 */
}

/* 小さなラベル：NEW ERA */
.character-teaser-label{
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
}

/* 薄い英字背景：CHARACTER */
.character-teaser-en{
  position: absolute;
  left: 0;
  top: -12px;
  font-family: 'Oswald', sans-serif;
  font-weight: 800;
  letter-spacing: .12em;
  font-size: clamp(56px, 6vw, 92px);
  color: transparent;
  -webkit-text-stroke: 2px rgba(0,0,0,0.07);
  text-stroke: 2px rgba(0,0,0,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* タイトルは前面に */
.character-teaser-title{
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

/* SP調整 */
@media (max-width: 767px){
  .character-teaser-en{
    top: -6px;
    font-size: 58px;
    -webkit-text-stroke: 2px rgba(0,0,0,0.06);
    text-stroke: 2px rgba(0,0,0,0.06);
  }
}

/* HERO video basic */
.hero-video-wrap { position: relative; width: 100%; }
.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* 例：FVの高さ（好みで調整） */
#hero { height: 72vh; min-height: 520px; }
@media (max-width: 767px){
  #hero { height: 68vh; min-height: 520px; }
}

/* HERO：横100%・縦auto（見切れ防止の上書き） */
#hero{
  height: auto !important;
  min-height: 0 !important;
}

.hero-video-wrap{
  position: relative;   /* absolute等になってたら戻す */
  height: auto !important;
}

.hero-video{
  display: block;
  width: 100%;
  height: auto !important;     /* ←縦auto */
  max-width: 100%;
  object-fit: initial !important; /* cover/containの影響を切る */
}



