/* ========================================
   IFB Technologies - Business Website
   Design System & Styles — LIGHT THEME
   ======================================== */

/* --- CSS Variables --- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-bg-section: #f0f4f8;
  --color-bg-card: #ffffff;
  --color-bg-card-hover: #f8fbff;
  --color-primary: #0066cc;
  --color-primary-dark: #004fa3;
  --color-primary-light: #3399ff;
  --color-primary-glow: rgba(0, 102, 204, 0.12);
  --color-accent: #00b4d8;
  --color-text: #2d3748;
  --color-text-muted: #64748b;
  --color-text-heading: #1a202c;
  --color-border: #e2e8f0;
  --color-border-light: #edf2f7;
  --color-success: #10b981;
  --color-hero-bg: linear-gradient(135deg, #0066cc 0%, #0099e6 40%, #00b4d8 100%);
  --color-hero-bg-dark: linear-gradient(135deg, #004fa3 0%, #0066cc 50%, #0099e6 100%);
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-nav: 0 2px 16px rgba(0, 0, 0, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-jp);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--color-primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-label {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-heading);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.8;
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-subtitle {
  margin: 0 auto;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin-top: 20px;
  border-radius: 2px;
}

.section-header.center .divider {
  margin: 20px auto 0;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition-smooth), padding var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* Hero上のヘッダー（白文字） */
.header--hero {
  background: transparent;
}

.header--hero .logo-text {
  color: #fff;
}

.header--hero .logo-text span {
  color: rgba(255, 255, 255, 0.8);
}

.header--hero .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

.header--hero .nav-links a:hover,
.header--hero .nav-links a.active {
  color: #fff;
}

.header--hero .nav-links a::after {
  background: #fff;
}

.header--hero .mobile-toggle span {
  background: #fff;
}

/* スクロール後のヘッダー */
.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: var(--shadow-nav);
}

.header.scrolled .logo-text {
  color: var(--color-text-heading);
}

.header.scrolled .logo-text span {
  color: var(--color-primary);
}

.header.scrolled .nav-links a {
  color: var(--color-text-muted);
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
  color: var(--color-text-heading);
}

.header.scrolled .nav-links a::after {
  background: var(--color-primary);
}

.header.scrolled .mobile-toggle span {
  background: var(--color-text-heading);
}

/* 製品ページなどでヒーローなし */
.header--light {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-nav);
}

.header--light .logo-text {
  color: var(--color-text-heading);
}

.header--light .logo-text span {
  color: var(--color-primary);
}

.header--light .nav-links a {
  color: var(--color-text-muted);
}

.header--light .nav-links a:hover,
.header--light .nav-links a.active {
  color: var(--color-text-heading);
}

.header--light .nav-links a::after {
  background: var(--color-primary);
}

.header--light .mobile-toggle span {
  background: var(--color-text-heading);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-text {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  transition: width var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 24px !important;
  background: var(--color-primary) !important;
  border-radius: 50px;
  color: #fff !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
  background: var(--color-primary-dark) !important;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  transition: var(--transition-fast);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("images/1_75f8cf80_top1600_500_1600.jpg") center/cover no-repeat;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 100, 0.4);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #6ee7b7;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.9;
  margin-bottom: 40px;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  color: var(--color-primary-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* In-page btn-secondary (not hero) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-glow);
}

.hero-stats {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 48px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Hero floating orbs */
.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  z-index: 2;
  opacity: 0.4;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  top: 10%;
  right: 10%;
}

.hero-orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
  bottom: 20%;
  right: 30%;
  animation-delay: -3s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 15px); }
}

/* ========================================
   PRODUCTS SECTION (TOP PAGE)
   ======================================== */
.products {
  background: var(--color-bg-alt);
  position: relative;
}

.product-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.product-categories .cat-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-jp);
}

.product-categories .cat-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.product-categories .cat-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.product-card:hover::before {
  opacity: 1;
}

.product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  box-sizing: border-box;
  transition: transform var(--transition-smooth);
}

/* 画像を大きく表示するための修飾クラス */
.product-img--large img {
  padding: 0.2rem;
  object-fit: contain;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-card h3 {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 4px;
}

.product-card .product-type {
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.product-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-card .learn-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.product-card:hover .learn-more {
  gap: 10px;
}

/* アイコン表示用（BLASE X / UFB水販売 / 技術開発支援など画像なし製品） */
.product-img--icon {
  background: linear-gradient(135deg, var(--color-primary-glow) 0%, rgba(0, 180, 216, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon-wrap {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  opacity: 0.85;
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

.product-icon-wrap svg {
  width: 64px;
  height: 64px;
}

.product-card:hover .product-icon-wrap {
  transform: scale(1.1);
  opacity: 1;
}


/* ========================================
   APPLICATIONS SECTION
   ======================================== */
.applications {
  background: var(--color-bg);
  position: relative;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.app-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width var(--transition-smooth);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.app-card:hover::after {
  width: 60%;
}

.app-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.app-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.app-card:hover .app-img img {
  transform: scale(1.05);
}

.app-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 4px;
}

.app-card .app-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.app-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news {
  background: var(--color-bg-alt);
  position: relative;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--color-bg-alt);
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  min-width: 90px;
  font-weight: 500;
}

.news-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--color-primary-glow);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary);
  min-width: 72px;
  text-align: center;
}

.news-title {
  flex: 1;
  font-size: 0.92rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.news-item:hover .news-title {
  color: var(--color-primary);
}

.news-arrow {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.news-item:hover .news-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
  background: var(--color-bg);
  position: relative;
}

.about-mission {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.about-mission blockquote {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.about-mission blockquote::before,
.about-mission blockquote::after {
  content: '"';
  font-size: 5rem;
  color: var(--color-primary);
  opacity: 0.15;
  position: absolute;
  font-family: Georgia, serif;
  line-height: 1;
}

.about-mission blockquote::before {
  top: 0;
  left: -10px;
}

.about-mission blockquote::after {
  content: '"';
  bottom: -20px;
  right: -10px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.about-card-number {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(0, 102, 204, 0.1);
  line-height: 1;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Company Info Table */
.company-profile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 40px;
}

.company-profile h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-profile h3 .accent-line {
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.profile-table tr:last-child {
  border-bottom: none;
}

.profile-table th,
.profile-table td {
  padding: 16px 0;
  text-align: left;
  font-size: 0.92rem;
}

.profile-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  width: 160px;
  vertical-align: top;
}

.profile-table td {
  color: var(--color-text);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  background: linear-gradient(135deg, #0a1628 0%, #1a2d50 50%, #0d2137 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 180, 216, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.contact .section-header .section-label {
  color: rgba(255, 255, 255, 0.75);
}

.contact .section-header .section-title {
  color: #fff;
}

.contact .section-header .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact .section-header .divider {
  background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.6), transparent);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--color-text-heading);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text .item-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact-item-text .item-value {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Contact Form — Glass Card */
.contact-form {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: #f97066;
  margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-jp);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
  background: #1a2d50;
  color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(0, 180, 216, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.12),
              0 0 20px rgba(0, 180, 216, 0.08);
  background: rgba(255, 255, 255, 0.1);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.09);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-jp);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 102, 204, 0.35);
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:active {
  transform: translateY(0);
}

/* Contact Form 7 integration — inherit styles */
.contact-form .wpcf7-form-control-wrap input,
.contact-form .wpcf7-form-control-wrap textarea,
.contact-form .wpcf7-form-control-wrap select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff !important;
  font-size: 0.95rem;
  font-family: var(--font-jp);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.contact-form .wpcf7-form-control-wrap select option {
  background: #fff;
  color: #1a2d50;
}

.contact-form .wpcf7-list-item-label,
.contact-form .wpcf7-checkbox .wpcf7-list-item-label,
.contact-form .wpcf7-radio .wpcf7-list-item-label {
  color: #fff !important;
}

.contact-form .wpcf7-form-control-wrap input:focus,
.contact-form .wpcf7-form-control-wrap textarea:focus,
.contact-form .wpcf7-form-control-wrap select:focus {
  border-color: rgba(0, 180, 216, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.12),
              0 0 20px rgba(0, 180, 216, 0.08);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form .wpcf7-form p,
.contact-form .wpcf7-form label,
.contact-form .wpcf7-form span,
.contact-form .wpcf7 p,
.contact-form .wpcf7 label {
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-form .wpcf7-form-control-wrap input::placeholder,
.contact-form .wpcf7-form-control-wrap textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.contact-form .wpcf7-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-jp);
  letter-spacing: 0.05em;
  margin-top: 8px;
}

.contact-form .wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 102, 204, 0.35);
}

/* CF7 Response Messages — Dark background visibility fix */
.contact-form .wpcf7-response-output {
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 16px 20px !important;
  border-radius: 12px !important;
  margin: 20px 0 0 !important;
  line-height: 1.6;
}

/* 送信成功メッセージ */
.contact-form .wpcf7-form.sent .wpcf7-response-output {
  border-color: rgba(52, 211, 153, 0.5) !important;
  background: rgba(52, 211, 153, 0.12) !important;
  color: #6ee7b7 !important;
}

/* バリデーションエラー（入力不備）*/
.contact-form .wpcf7-form.invalid .wpcf7-response-output,
.contact-form .wpcf7-form.unaccepted .wpcf7-response-output {
  border-color: rgba(251, 191, 36, 0.5) !important;
  background: rgba(251, 191, 36, 0.12) !important;
  color: #fde68a !important;
}

/* 送信失敗（メールエラーなど）*/
.contact-form .wpcf7-form.failed .wpcf7-response-output,
.contact-form .wpcf7-form.aborted .wpcf7-response-output {
  border-color: rgba(248, 113, 113, 0.5) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  color: #fca5a5 !important;
}

/* スパムブロック */
.contact-form .wpcf7-form.spam .wpcf7-response-output {
  border-color: rgba(248, 113, 113, 0.5) !important;
  background: rgba(248, 113, 113, 0.12) !important;
  color: #fca5a5 !important;
}

/* 個別フィールドのバリデーションエラー */
.contact-form .wpcf7-not-valid-tip {
  color: #fca5a5 !important;
  font-size: 0.8rem;
  margin-top: 6px;
}

/* reCAPTCHA v3 バッジを非表示（テキスト帰属表示に置き換え） */
.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-notice {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}

.recaptcha-notice a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
}

.recaptcha-notice a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-text-heading);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand .logo-text span {
  color: var(--color-accent);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

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

.footer-bottom-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
  color: #fff;
}

/* ========================================
   PRODUCTS DETAIL PAGE (products.html)
   ======================================== */
.page-hero {
  padding: 120px 0 60px;
  background: var(--color-hero-bg);
  text-align: center;
  color: #fff;
}

.page-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.page-hero .breadcrumb {
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb a:hover {
  color: #fff;
}

/* Product detail sections */
.product-detail-section {
  padding: 80px 0;
}

.product-detail-section:nth-child(even) {
  background: var(--color-bg-alt);
}

.product-detail-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.product-detail-card.reverse {
  direction: rtl;
}

.product-detail-card.reverse > * {
  direction: ltr;
}

.product-detail-image {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #fff;
  padding: 1.5rem;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* 画像を大きく表示するための修飾クラス */
.detail-img--large {
  padding: 0.5rem;
}

.product-detail-image .product-label {
  z-index: 2;
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 14px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.product-detail-info h2 {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-heading);
  margin-bottom: 4px;
}

.product-detail-info .product-category-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: block;
}

.product-detail-info .product-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}

.spec-table caption {
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}

.spec-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th {
  padding: 10px 16px 10px 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: left;
  width: 140px;
  vertical-align: top;
}

.spec-table td {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-product {
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-jp);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-product-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}

.btn-product-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
  color: #fff;
}

.btn-product-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-product-outline:hover {
  background: var(--color-primary-glow);
  transform: translateY(-2px);
}

/* Contaminant notice */
.contaminant-notice {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 60px;
}

.contaminant-notice h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contaminant-notice p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 12px;
}

.service-card .service-en {
  font-family: var(--font-en);
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* CTA banner */
.cta-banner {
  background: var(--color-hero-bg);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-primary {
  margin: 0 auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-visual {
    display: none;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .product-detail-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail-card.reverse {
    direction: ltr;
  }

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

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition-smooth);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--color-border);
  }

  .nav-links a {
    color: var(--color-text) !important;
  }

  .nav-links a:hover {
    color: var(--color-primary) !important;
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    min-height: 90vh;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .news-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-date {
    min-width: auto;
  }

  .about-mission blockquote {
    font-size: 1.3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .page-hero {
    padding: 100px 0 40px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
  }

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

  .product-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .product-categories .cat-btn {
    white-space: nowrap;
  }
}

/* ========================================
   NEWS DETAIL PAGE
   ======================================== */
.news-year {
  margin-bottom: 32px;
}

.news-year-title {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.2;
  letter-spacing: 2px;
}

.news-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-detail-item {
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition-fast);
}

.news-detail-item:last-child {
  border-bottom: none;
}

/* ---- Clickable Header ---- */
.news-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 16px;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
  position: relative;
}

.news-detail-header:hover {
  background: var(--color-bg-alt);
}

.news-detail-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.5;
  flex: 1;
  padding-top: 2px;
}

.news-toggle-icon {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--color-primary);
  min-width: 24px;
  text-align: center;
  line-height: 1.6;
  transition: transform var(--transition-fast);
  user-select: none;
}

.news-detail-item.open .news-toggle-icon {
  color: var(--color-primary-dark);
}

/* ---- Expandable Body ---- */
.news-detail-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 16px;
}

.news-detail-body p {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.news-detail-body p:last-child {
  margin-bottom: 0;
}

.news-detail-item.open .news-detail-body {
  padding: 0 16px 24px;
}

.news-detail-item.open {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

/* News inline link */
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 8px;
  transition: gap var(--transition-fast);
}

.news-link:hover {
  gap: 10px;
  color: var(--color-primary-dark);
}

/* ---- Meta ---- */
.news-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  align-items: flex-start;
  padding-top: 2px;
}

.news-detail-meta .news-date {
  min-width: auto;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .news-detail-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 12px;
  }

  .news-detail-meta {
    flex-direction: row;
    align-items: center;
    min-width: auto;
    width: 100%;
  }

  .news-detail-header h3 {
    width: calc(100% - 40px);
  }

  .news-toggle-icon {
    position: absolute;
    right: 12px;
    top: 24px;
  }

  .news-detail-body {
    padding: 0 12px;
  }

  .news-detail-item.open .news-detail-body {
    padding: 0 12px 20px;
  }
}

/* ========================================
   COMPANY INFO PAGE EXTENSIONS
   ======================================== */
.mission-text {
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  text-align: left;
}

.mission-text p {
  margin-bottom: 20px;
}

.business-features {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 1.5rem;
  color: var(--color-text-heading);
  margin-bottom: 20px;
  line-height: 1.4;
}

.feature-text p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-img {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.feature-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.message-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.message-img {
  flex: 0 0 40%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.message-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.message-content {
  flex: 1;
}

.message-content h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.message-content p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.message-content .signature {
  margin-top: 40px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: right;
  color: var(--color-text-heading);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .feature-row, .feature-row.reverse, .message-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .message-img, .feature-img {
    width: 100%;
    flex: none;
  }
}

/* ========================================
   DROPDOWN NAVIGATION
   ======================================== */
.has-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--color-bg);
  min-width: 160px;
  box-shadow: 0 10px 30px rgba(0, 50, 100, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  border: 1px solid var(--color-border);
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text) !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary) !important;
}

/* Mobile adjustments */
@media (max-width: 900px) {
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    padding: 0 0 10px 20px;
  }
  .dropdown-menu a {
    text-align: left;
    padding: 8px 0;
  }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ========================================
   CONTACT FORM 7 — センター配置
   ======================================== */

/* CF7フォーム全体をセンタリング */
.contact-form .wpcf7 {
  text-align: center;
}

/* フォーム要素（入力欄）は左揃えに戻す */
.contact-form .wpcf7 input,
.contact-form .wpcf7 textarea,
.contact-form .wpcf7 select {
  text-align: left;
  width: 100%;
  display: block;
}

/* ラベルをセンターに */
.contact-form .wpcf7 label {
  display: block;
  text-align: left;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* フォームフィールドをブロック表示 */
.contact-form .wpcf7 p {
  text-align: left;
  margin-bottom: 20px;
}

/* 送信ボタンをセンタリング */
.contact-form .wpcf7 input[type="submit"],
.contact-form .wpcf7 .wpcf7-submit {
  display: block;
  margin: 32px auto 0;
  padding: 12px 32px;
  width: auto;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  font-family: var(--font-jp);
  letter-spacing: 0.5px;
}

.contact-form .wpcf7 input[type="submit"]:hover,
.contact-form .wpcf7 .wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
  background: var(--color-primary-dark);
}

/* エラー・成功メッセージ */
.contact-form .wpcf7-response-output {
  text-align: center;
  margin-top: 16px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* チェックボックス・ラジオは左揃え */
.contact-form .wpcf7 .wpcf7-checkbox,
.contact-form .wpcf7 .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

/* ===== FAQ アコーディオン ===== */
.faq-list {
  margin-top: 16px;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 12px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-item summary::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-top: 4px;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item p {
  margin: 10px 0 4px 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

/* ===== ファインバブルとは セクション ===== */
.finebubble-about {
  padding: 60px 0;
}

/* ===== 共通: 画像＋テキスト横並びレイアウト ===== */
.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--color-text-dark);
}

.about-text h3 .en-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 8px;
}

.about-text p {
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--color-text-body);
}

.about-image {
  flex: 0 0 400px;
}

.about-image .about-diagram {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.image-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* 画像をテキスト下にセンター配置 */
.about-image-center {
  text-align: center;
  margin-top: 32px;
}

.about-image-center .about-diagram {
  display: block;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.finebubble-about .bubble-sizes {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.finebubble-about .bubble-card {
  flex: 1;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.finebubble-about .bubble-card h4 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1rem;
}

.finebubble-about .bubble-card p {
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
  .about-image {
    flex: none;
    width: 100%;
  }
  .finebubble-about .bubble-sizes {
    flex-direction: column;
  }
}

