/*
Theme Name: XHRO Theme
Theme URI: https://xhro.org
Description: XHRO Project Official Website Theme
Version: 1.0
Author: XHRO Project
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: rgb(35, 24, 21);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== UTILITY ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
/* Subtle zoom-in variant for hero images */
.fade-in.fade-zoom { opacity: 0; transform: scale(0.94); transition: opacity 1.1s ease-out, transform 1.1s ease-out; }
.fade-in.fade-zoom.visible { opacity: 1; transform: scale(1); }

/* ===== TOP BAR ===== */
.top-bar {
  background: rgb(35, 24, 21);
  color: rgb(245, 245, 245);
  text-align: center;
  padding: 0 20px;
  height: 24px;
  line-height: 24px;
  font-size: 13px;
  letter-spacing: 0.05em;
  font-family: 'Noto Sans JP', sans-serif;
}
.top-bar a {
  color: rgb(245, 245, 245);
  text-decoration: none;
  text-underline-offset: 3px;
}
.top-bar a:hover { opacity: 0.8; }

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 60px;
  border-top: 1px solid rgb(0, 0, 0);
  border-bottom: 1px solid rgb(0, 0, 0);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10001;
  overflow: visible;
  transition: box-shadow 0.3s ease;
}
.header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.header-logo img {
  height: 26px;
  width: auto;
  display: block;
}

/* ===== NAVIGATION ===== */
.header-nav { display: flex; gap: 0; }
.header-nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: rgb(35, 24, 21);
  text-decoration: none;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  box-sizing: border-box;
  background: transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: none;
  border-bottom: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.header-nav a:hover {
  background: rgb(231, 243, 246);
  border-left-color: rgb(0, 0, 0);
  border-right-color: rgb(0, 0, 0);
}
/* Active nav state for current page (mirrors hover) */
.header-nav a.active {
  background: rgb(231, 243, 246);
  border-left-color: rgb(0, 0, 0);
  border-right-color: rgb(0, 0, 0);
}

/* ===== HAMBURGER ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; position: relative; z-index: 10000; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: rgb(35, 24, 21);
  margin: 5px 0; transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== LANG SWITCH ===== */
.lang-row {
  display: flex;
  justify-content: flex-end;
  padding: 8px 40px 0;
  background: #fff;
}
.lang-switch { display: flex; gap: 0; }
.lang-btn {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  width: 96px;
  height: 32px;
  border: 1px solid rgb(230, 230, 230);
  cursor: pointer;
  background: transparent;
  color: rgb(230, 230, 230);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}
.lang-btn:hover {
  background: rgb(231, 243, 246);
  border-color: rgb(35, 24, 21);
  color: rgb(35, 24, 21);
}
.lang-btn.active {
  background: rgb(35, 24, 21);
  color: #fff;
  border: 1px solid rgb(35, 24, 21);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 40px 40px;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: rgb(35, 24, 21);
  text-decoration: none;
}
.mobile-menu .lang-switch {
  display: flex;
  margin-top: 20px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  color: rgb(35, 24, 21);
}
/* Gradient titles base */
.section-title-gradient {
  font-family: 'Roboto', sans-serif;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: inline-block;
}
/* Front page: PROJECT and PRODUCTS */
.section-title-gradient.project-title,
.section-title-gradient.products-title {
  background: linear-gradient(74deg, rgb(21, 33, 35), rgb(57, 59, 84) 58%, rgb(152, 132, 217));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* About page: OUR VISION */
.section-title-gradient.about-vision-title {
  background: linear-gradient(74deg, rgb(21, 33, 35), rgb(57, 59, 84) 58%, rgb(152, 132, 217));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
/* About page: PROJECT INFO */
.section-title-gradient.about-info-title {
  background: linear-gradient(74deg, rgb(21, 33, 35), rgb(57, 59, 84) 58%, rgb(152, 132, 217));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
/* Current Focus page */
.section-title-gradient.focus-title {
  background: linear-gradient(74deg, rgb(21, 33, 35), rgb(57, 59, 84) 58%, rgb(152, 132, 217));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
/* Case Studies page */
.section-title-gradient.cs-title {
  background: linear-gradient(to right, rgb(35, 24, 21) 0%, rgb(35, 24, 21) 40%, #7b6ba5 80%, #7b6ba5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Contact page */
.section-title-gradient.contact-title {
  background: linear-gradient(to right, rgb(35, 24, 21) 0%, rgb(35, 24, 21) 40%, #7b6ba5 70%, #7b6ba5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* MEASURABLE DATA: dark color matching original */
.measurable-data .section-title {
  color: rgb(35, 24, 21);
}
/* PARTNERSHIP: white 60% opacity */
.partnership .section-title {
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 60px;
}

/* ===== BUTTONS ===== */
.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgb(35, 24, 21);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(35, 24, 21);
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-outline:hover { background: rgb(35, 24, 21); color: #fff; }
.btn-outline-light {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 13px;
  color: #999;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-outline-light:hover { border-color: rgb(35, 24, 21); background: rgb(35, 24, 21); color: #fff; }
.btn-outline-white {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-outline-white:hover { background: #fff; color: rgb(35, 24, 21); }

/* ===== PLACEHOLDER IMAGES ===== */
.placeholder-img {
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  font-family: 'Lato', sans-serif;
}

/* ===== PHASE LABEL ===== */
.phase-label {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: rgb(102, 101, 99);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phase-label .circle {
  width: 10px; height: 10px;
  border: 1.5px solid rgb(102, 101, 99);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-available { border: 1px solid rgb(35, 24, 21); color: rgb(35, 24, 21); }
.badge-dev { background: #e05050; color: #fff; border: none; }
.badge-planned { border: 1px solid #999; color: #999; background: transparent; }

/* ===== HERO (Front Page) ===== */
.hero { padding: 40px 0 80px; overflow: visible; }
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
}
.hero-text { flex: 1; position: relative; z-index: 2; }
.hero-title {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 40px;
  font-family: 'Noto Sans JP', sans-serif;
  background: linear-gradient(74deg, rgb(21, 33, 35), rgb(57, 59, 84) 58%, rgb(152, 132, 217));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-image {
  flex: 1.2;
  position: relative;
  z-index: 1;
  margin-right: -20px;
  margin-left: -120px;
}
/* Hero Slideshow */
.hero-slideshow {
  position: relative;
  width: 130%;
  max-width: none;
  overflow: hidden;
}
.hero-image .hero-slideshow .hero-slide {
  width: 100% !important;
  max-width: none !important;
  height: auto;
  display: block;
  position: absolute !important;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
.hero-image .hero-slideshow .hero-slide.active {
  position: relative !important;
  opacity: 1;
  pointer-events: auto;
}

/* ===== VISION (Front Page) ===== */
.vision { padding: 0 0 100px; }
.vision-divider {
  width: 80px;
  height: 1px;
  background: rgb(35, 24, 21);
  margin-bottom: 40px;
}
.vision-text {
  font-size: 15px;
  line-height: 2;
  max-width: 900px;
  color: rgb(35, 24, 21);
}

/* ===== PROJECT (Front Page) ===== */
.project { padding: 100px 0; }
.timeline-placeholder { margin-bottom: 40px; }
.timeline-placeholder img { width: 100%; height: auto; object-fit: contain; }
.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.project-card {
  display: block;
}
.project-card-img {
  width: 100%;
  aspect-ratio: 77/60;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 16px;
}
.project-card .placeholder-img {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 4px;
  margin-bottom: 16px;
}
.project-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.5;
  color: rgb(35, 24, 21);
}
.project-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

/* ===== PRODUCTS (Front Page) ===== */
.products { padding: 100px 0; }
.product-item {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
  align-items: flex-start;
}
.product-item:last-child { margin-bottom: 0; }
.product-image { flex: 1; min-width: 0; }
.product-image .placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 4px;
}
.product-info { flex: 1; min-width: 0; }
.product-phase-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.product-phase-row .phase-label {
  margin-bottom: 0;
}
.product-info h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: rgb(35, 24, 21);
  margin-bottom: 12px;
}
.product-divider {
  height: 1px;
  background: #e0e0e0;
  margin-bottom: 16px;
}
.product-info p {
  font-size: 14px;
  line-height: 2;
  color: #666;
  margin-bottom: 24px;
}

/* ===== MEASURABLE DATA (Front Page) ===== */
.measurable-data {
  background: #f5f5f5;
  padding: 80px 0;
}
.measurable-data .section-subtitle { color: #666; margin-bottom: 50px; }
.data-subheader {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 30px;
  color: rgb(35, 24, 21);
}
.data-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.data-list { flex: 1; }
.data-list-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}
.data-list-item:last-child { border-bottom: none; }
.data-list-name {
  font-size: 14px;
  font-weight: 700;
  min-width: 120px;
  color: rgb(35, 24, 21);
}
.data-list-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
}
.data-body-figure { flex: 0 0 400px; }
.next-gen-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}
.next-gen-title {
  font-size: 15px;
  font-weight: 700;
  color: rgb(35, 24, 21);
  margin-bottom: 20px;
}
.next-gen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.next-gen-tag {
  padding: 6px 16px;
  border: 1px solid #ccc;
  border-radius: 50px;
  font-size: 13px;
  color: #666;
  background: #fff;
}

/* ===== PARTNERSHIP ===== */
.partnership {
  background: rgb(124, 123, 118);
  padding: 100px 0;
}
.partnership-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}
.partnership-image { flex: 1; }
.partnership-image .placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}
.partnership-content { flex: 1; }
.partnership-content h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
}
.partnership-content .partnership-lead {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 20px;
}
.partnership-content p {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 2;
  margin-bottom: 32px;
}
.partnership-btn-wrap { text-align: right; }

/* ===== FOOTER ===== */
.footer {
  background: rgb(51, 49, 44);
  padding: 77px 40px 49px;
  color: #fff;
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
}
.footer-nav { display: flex; gap: 30px; }
.footer-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}
.footer-nav a:hover { color: #fff; }
.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-family: 'Lato', sans-serif;
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s ease;
}
.footer-bottom a:hover { color: #fff; }

/* ===== ABOUT PAGE ===== */
.video-section { padding: 80px 0; }
.video-embed {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.about-section { padding: 80px 0; }
.about-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgb(35, 24, 21);
}
.about-text {
  font-size: 15px;
  line-height: 2;
  max-width: 900px;
  color: rgb(35, 24, 21);
}
.director-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 40px;
}
.director-info { flex: 1; }
.director-photo { flex: 0 0 280px; }
.director-photo img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}
.director-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}
.director-roman {
  font-size: 14px;
  color: #666;
  font-family: 'Lato', sans-serif;
  margin-bottom: 8px;
}
.director-role {
  font-size: 14px;
  color: #666;
  margin-bottom: 0;
}
.director-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0;
}
.director-detail {
  font-size: 14px;
  line-height: 2;
  color: rgb(35, 24, 21);
}
.director-detail strong { font-weight: 700; }
.info-section { padding: 80px 0; }
.info-item {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}
.info-label {
  font-weight: 700;
  min-width: 140px;
  color: rgb(35, 24, 21);
}
.info-value { color: #666; }

/* ===== CURRENT FOCUS PAGE ===== */
.focus-hero { padding: 100px 0 60px; }
.focus-section { padding: 0 0 80px; }
.focus-hero-image {
  width: calc(100% + 160px);
  max-width: none;
  margin-left: -80px;
  margin-right: -80px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}
.focus-heading { font-size: 28px; font-weight: 700; line-height: 1.6; margin-bottom: 30px; }
.focus-text { font-size: 15px; line-height: 2; max-width: 900px; color: rgb(35, 24, 21); margin-bottom: 40px; }
.adjust-section { padding: 80px 0; background: #f5f5f5; }
.adjust-section .section-title {
  background: linear-gradient(74deg, rgb(21, 33, 35), rgb(57, 59, 84) 58%, rgb(152, 132, 217));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}
.adjust-overview { display: flex; gap: 60px; align-items: flex-start; margin-top: 40px; }
.adjust-devices { flex: 0 0 40%; min-width: 0; }
.adjust-text { flex: 1; }
.adjust-desc { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: rgb(35, 24, 21); }
.adjust-supplement { font-size: 14px; color: #666; line-height: 1.8; margin-bottom: 40px; }
.vital-header {
  font-size: 14px;
  font-weight: 700;
  color: rgb(35, 24, 21);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgb(35, 24, 21);
  letter-spacing: 0.02em;
}
.vital-grid {
  display: flex;
  flex-direction: column;
}
.vital-item {
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #d8d8d8;
}
.vital-item:last-child { border-bottom: none; }
.vital-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: rgb(35, 24, 21);
  margin: 0;
  line-height: 1.5;
}
.vital-item p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}
.features-section { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: rgb(35, 24, 21); }
.feature-card p { font-size: 14px; color: #666; line-height: 1.8; }
.planned-section { padding: 80px 0; text-align: center; }
.planned-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; margin-top: 40px; }
.planned-card .planned-icon { width: 60px; height: 60px; margin: 0 auto 16px; }
.planned-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.planned-card p { font-size: 13px; color: #666; line-height: 1.6; }

/* ===== CASE STUDIES PAGE ===== */
.cs-hero { padding: 100px 0 40px; }
.cs-subtitle {
  font-size: 15px;
  color: #666;
  margin-bottom: 30px;
}
.cs-desc { font-size: 15px; line-height: 2; max-width: 900px; color: rgb(35, 24, 21); }
.casestudy-list { padding: 0 0 100px; }
.casestudy-item { padding: 30px 0; border-bottom: 1px solid #e0e0e0; }
.casestudy-item:last-child { border-bottom: none; }
.casestudy-item h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: rgb(35, 24, 21); }
.casestudy-item .en-name { font-size: 14px; color: #666; font-family: 'Lato', sans-serif; }

/* ===== CONTACT PAGE ===== */
.contact-hero { padding: 100px 0 40px; }
.contact-divider { width: 80px; height: 1px; background: rgb(35, 24, 21); margin-bottom: 20px; }
.contact-desc { font-size: 15px; line-height: 2; max-width: 900px; color: rgb(35, 24, 21); }
.contact-subtitle { font-size: 15px; color: #666; margin-bottom: 20px; }
.contact-form-wrap { max-width: 600px; margin: 0 auto; padding: 40px 0 100px; }

/* CF7 Reset — CF7デフォルトCSSを上書き */
.contact-form-wrap .wpcf7 { margin: 0; padding: 0; }
.contact-form-wrap .wpcf7-form { font-family: 'Noto Sans JP', sans-serif; }

/* CF7 各フィールドブロック（<p>で囲まれる） */
.contact-form-wrap .wpcf7-form > p {
  margin: 0 0 30px !important;
  padding: 0;
}

/* ラベル */
.contact-form-wrap .wpcf7-form > p > label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: rgb(35, 24, 21) !important;
  margin-bottom: 8px !important;
}

/* テキスト・メール入力 */
.contact-form-wrap .wpcf7 input.wpcf7-form-control.wpcf7-text,
.contact-form-wrap .wpcf7 input.wpcf7-form-control.wpcf7-email,
.contact-form-wrap .wpcf7 textarea.wpcf7-form-control.wpcf7-textarea {
  width: 100% !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  padding: 12px 0 !important;
  font-size: 16px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  background: transparent !important;
  color: rgb(35, 24, 21) !important;
  outline: none !important;
  border-radius: 0 !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
}
.contact-form-wrap .wpcf7 input.wpcf7-form-control:focus,
.contact-form-wrap .wpcf7 textarea.wpcf7-form-control:focus {
  border-bottom-color: rgb(35, 24, 21) !important;
}
.contact-form-wrap .wpcf7 textarea.wpcf7-form-control {
  resize: vertical !important;
  min-height: 120px !important;
}

/* CF7 control wrap — インラインブロック解除 */
.contact-form-wrap .wpcf7-form-control-wrap {
  display: block;
}

/* ラジオボタン */
.contact-form-wrap .wpcf7 .wpcf7-radio {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  margin-top: 4px;
}
.contact-form-wrap .wpcf7 .wpcf7-radio .wpcf7-list-item {
  margin: 0 !important;
}
.contact-form-wrap .wpcf7 .wpcf7-radio .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}
.contact-form-wrap .wpcf7 .wpcf7-radio input[type="radio"] {
  accent-color: rgb(35, 24, 21) !important;
  margin: 0 !important;
}

/* チェックボックス（プライバシーポリシー同意） */
.contact-form-wrap .wpcf7 .wpcf7-acceptance {
  font-size: 13px;
}
.contact-form-wrap .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0 !important;
}
.contact-form-wrap .wpcf7 .wpcf7-acceptance .wpcf7-list-item label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}
.contact-form-wrap .wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  accent-color: rgb(35, 24, 21) !important;
  margin: 0 !important;
}

/* 送信ボタン */
.contact-form-wrap .wpcf7-form p.form-submit {
  text-align: center !important;
  margin-top: 10px !important;
}
.contact-form-wrap .wpcf7 input.wpcf7-form-control.wpcf7-submit {
  display: inline-block !important;
  padding: 16px 60px !important;
  border: 1px solid #999 !important;
  border-radius: 50px !important;
  background: transparent !important;
  color: #999 !important;
  font-size: 15px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  -webkit-appearance: none !important;
}
.contact-form-wrap .wpcf7 input.wpcf7-form-control.wpcf7-submit:hover {
  background: rgb(35, 24, 21) !important;
  border-color: rgb(35, 24, 21) !important;
  color: #fff !important;
}

/* バリデーション */
.contact-form-wrap .wpcf7-not-valid-tip {
  color: #e05050 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
}
.contact-form-wrap .wpcf7 .wpcf7-response-output {
  margin: 20px 0 !important;
  padding: 12px 16px !important;
  border-radius: 4px !important;
  font-size: 14px !important;
}

/* スピナー非表示 */
.contact-form-wrap .wpcf7-spinner { display: none !important; }

/* screen-reader-response非表示 */
.contact-form-wrap .wpcf7 .screen-reader-response { display: none; }

/* ===== PRIVACY POLICY PAGE ===== */
.pp-section { padding: 100px 0 80px; }
.pp-title { font-family: 'Roboto', sans-serif; font-size: 48px; font-weight: 300; color: rgb(35, 24, 21); margin-bottom: 8px; }
.pp-subtitle { font-size: 15px; color: #666; margin-bottom: 60px; }
.pp-item { display: flex; gap: 40px; padding: 30px 0; border-bottom: 1px solid #e0e0e0; }
.pp-item:last-child { border-bottom: none; }
.pp-item-title { font-size: 15px; font-weight: 700; flex: 0 0 280px; color: rgb(35, 24, 21); }
.pp-item-body { font-size: 14px; line-height: 2; color: rgb(35, 24, 21); }
.pp-item-body ol { padding-left: 20px; margin-top: 8px; }
.pp-item-body ul { padding-left: 20px; margin-top: 8px; list-style: disc; }

/* ===== RESPONSIVE ===== */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .section-title, .section-title-gradient { font-size: 48px; }
  .hero-title { font-size: 32px; }
  .header-nav a { font-size: 16px; padding: 0 20px; }
  .data-body-figure { flex: 0 0 280px; }
}

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

  /* Header */
  .header { padding: 0 20px; }
  .header-nav { display: none; }
  .lang-row { display: none; }
  .hamburger { display: block; }

  /* Hero */
  .hero { padding: 20px 0 40px; }
  .hero-inner { flex-direction: column; gap: 30px; }
  .hero-text { flex: none; width: 100%; }
  .hero-image { order: -1; margin-right: 0; margin-left: 0; flex: none; width: 100%; }
  .hero-slideshow { width: 100%; }
  .hero-slideshow .hero-slide { width: 100%; }
  .timeline-placeholder { display: none; }
  .hero-title {
    font-size: 28px;
    display: inline-block;
    width: 100%;
    background: linear-gradient(74deg, rgb(21, 33, 35), rgb(57, 59, 84) 58%, rgb(152, 132, 217));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* All placeholder images responsive */
  .placeholder-img { width: 100% !important; max-width: 100% !important; min-height: 200px; }

  /* Section titles */
  .section-title, .section-title-gradient { font-size: 36px !important; }
  h2[style*="background:linear-gradient"] { font-size: 36px !important; }

  /* Project cards */
  .project-cards { grid-template-columns: 1fr; gap: 30px; }

  /* Products */
  .product-item { flex-direction: column; gap: 24px; }
  .products { padding: 60px 0; }

  /* Data */
  .data-layout { flex-direction: column; }
  .data-body-figure { flex: none; width: 100%; }
  .data-list-item { gap: 12px; }
  .data-list-name {
    flex: 0 0 110px;
    min-width: 0;
    word-break: break-word;
  }
  .data-list-desc { flex: 1; min-width: 0; }

  /* About: Director */
  .director-grid { flex-direction: column; }
  .director-photo { flex: none; width: 100%; max-width: 200px; }

  /* Current Focus */
  .adjust-overview { flex-direction: column; }
  .adjust-devices { flex: none; width: 100%; }
  .vital-item { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 32px; }
  .planned-grid { grid-template-columns: 1fr; }
  .focus-hero-image {
    width: calc(100% + 40px);
    max-width: none;
    margin-left: -20px;
    margin-right: -20px;
    aspect-ratio: 4/3;
  }

  /* Contact */
  .contact-hero { padding: 40px 0 20px; }
  .contact-form-wrap { padding: 20px 0 60px; }

  /* Privacy Policy */
  .pp-item { flex-direction: column; gap: 8px; }
  .pp-item-title { min-width: auto; }
  .pp-title { font-size: 36px; }

  /* Partnership */
  .partnership { padding: 60px 0; }
  .partnership-inner { flex-direction: column; gap: 30px; }
  .partnership-btn-wrap { text-align: left; }

  /* Footer */
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { flex-wrap: wrap; gap: 16px; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .footer-bottom > span { text-align: left; }
  .footer-bottom > a { text-align: right; }
}
