@charset "UTF-8";

:root {
  --bg-color: #000000;
  --text-color: #ededed;
  --border-color: rgba(255, 255, 255, 0.15);
  --hover-bg: rgba(255, 255, 255, 0.08);
  --accent-color: #10b981;
  --side-margin: max(60px, calc((100vw - 1200px) / 2));
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
  overscroll-behavior: none; /* iOSバウンス・Androidグロー無効化 */
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  -webkit-tap-highlight-color: transparent;
}

body.scroll-lock {
  overflow: hidden;
}

/* -------------------------------------
   Typography / 文字組
-------------------------------------- */
p {
  text-align: justify;
  text-justify: inter-ideograph;
  hanging-punctuation: allow-end;
  line-break: strict;
  overflow-wrap: break-word;
}

/* ★全ページのメインコンテンツ下部の余白をスッキリ設定 */
main {
  padding-bottom: 50px;
}

/* -------------------------------------
   Header & Navigation
-------------------------------------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--side-margin);
  box-sizing: border-box;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background-color 0.2s, border-bottom-color 0.2s;
}

header.scrolled,
body:not(.page-index) header {
  background-color: #000000;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo img {
  height: 24px;
  width: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

#desktop-nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
  transform: translateY(5px);
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.9rem;
  transition: color 0.2s;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}

.nav-item:hover .nav-link {
  color: var(--accent-color);
}

.nav-link svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1001;
}

.nav-item:hover .dropdown-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-menu {
  background-color: #000000;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  width: 360px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

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

.dropdown-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ededed;
  position: relative;
}

.dropdown-icon svg,
.dropdown-icon img.svg-icon {
  width: 16px;
  height: 16px;
}

.dropdown-icon::before,
.dropdown-icon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ffffff;
  transition: background-color 0.2s;
}

.dropdown-icon::before {
  top: 0;
  left: 0;
  mask-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 L1,9 L1,1 L9,1 L10,0 L0,0 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,10 L1,9 L1,1 L9,1 L10,0 L0,0 Z' fill='black'/%3E%3C/svg%3E");
}

.dropdown-icon::after {
  bottom: 0;
  right: 0;
  mask-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,0 L9,1 L9,9 L1,9 L0,10 L10,10 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,0 L9,1 L9,9 L1,9 L0,10 L10,10 Z' fill='black'/%3E%3C/svg%3E");
}

.dropdown-item:hover .dropdown-icon::before,
.dropdown-item:hover .dropdown-icon::after {
  background-color: var(--accent-color);
}

.dropdown-text h4 {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.dropdown-text p {
  margin: 0;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
  position: relative;
}

.hamburger .line {
  width: 22px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.2s ease;
}

.desktop-only {
  display: flex !important;
}

.mobile-only {
  display: none !important;
}

.sp-br {
  display: none;
}

nav#mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000000;
  flex-direction: column;
  padding: 100px 24px 40px 24px;
  box-sizing: border-box;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transform-origin: top right;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

nav#mobile-nav-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.mobile-nav-header {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.mobile-dropdown-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.mobile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #000000;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 20px 16px;
  width: 100%;
  box-sizing: border-box;
}

.mobile-dropdown-item:hover {
  background-color: var(--hover-bg);
}

.mobile-dropdown-item:hover .dropdown-icon::before,
.mobile-dropdown-item:hover .dropdown-icon::after {
  background-color: var(--accent-color);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.mobile-nav-links a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover {
  color: var(--accent-color);
}

/* -------------------------------------
   Buttons
-------------------------------------- */
.contact-btn-ripple {
  background-color: #fff;
  color: #000;
  border-radius: 999px;
  border: 1px solid #fff;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}

.contact-btn-ripple:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.contact-btn-ripple span {
  position: relative;
  z-index: 2;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.header-contact-btn {
  padding: 4px 12px;
  font-size: 0.85rem;
}

/* ★PC版のボタン高さも少し削ってスタイリッシュに */
.mobile-contact-btn {
  padding: 10px 0;
  font-size: 1.1rem;
  width: 100%;
  margin-top: 32px;
}

/* -------------------------------------
   Index Page Styles
-------------------------------------- */
/* Full-screen intro overlay (espoirer.com style) */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#intro-overlay.hidden {
  display: none;
}

#intro-overlay-video {
  width: 100%;
  max-width: 1200px;
  max-height: 100vh;
  object-fit: contain;
}

#hero-container {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000;
}

#hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
}

#hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#concept-text {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  z-index: 30;
  width: 100%;
  padding: 60px;
  box-sizing: border-box;
}

#concept-text h2 {
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  font-feature-settings: "palt" 1;
  /* Remove Japanese punctuation gaps */
  white-space: nowrap;
  /* Ensure it stays on one line if possible */
}

.quote-light {
  font-weight: 300;
}

#concept-text p {
  font-size: 1.05rem;
  line-height: 2;
  color: #aaa;
  margin-bottom: 1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#vision-text {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  z-index: 30;
  width: 100%;
  padding: 60px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

#vision-text h2 {
  font-size: clamp(2.6rem, 6vw, 6.75rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  white-space: nowrap;
}

#vision-text h2 img {
  height: 0.75em;
  width: auto;
}

@keyframes concept-emerge {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  #concept-text {
    padding: 40px 20px;
    width: 95%;
    text-align: left;
    top: 50%;
  }

  #concept-text h2 {
    font-size: clamp(2.8rem, 4.5vw + 1rem, 3.6rem);
    margin-bottom: 20px;
    line-height: 1.5;
  }

  #vision-text {
    padding: 40px 20px;
    width: 95%;
    text-align: left;
  }

  #vision-text h2 {
    font-size: clamp(3.5rem, 5.5vw + 1.2rem, 4.5rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    top: 44%;
    /* Shift up slightly on mobile to balance layout */
  }
}

/* Scroll Indicator */
#scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  /* GSAP will fade it in */
}

#scroll-indicator svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5;
  color: #fff;
}

/* Reveal Animation Styles */
.reveal-text-container {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  /* Prevent flash before JS */
}

.reveal-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  /* Prevent flash before JS */
}

#concept-text .reveal-text {
  color: #fff;
}

.wipe-block {
  clip-path: inset(0 100% 0 0);
}

/* Bottom gradient for hero readability */
#hero-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.85));
  z-index: 25;
  pointer-events: none;
}

/* -------------------------------------
   Brand Section — sticky left title layout
-------------------------------------- */
#brand {
  background: #000;
  position: relative;
  z-index: 30;
}

/* Full-bleed photo before Brand section — sticky, pushed out by #brand */
.brand-photo-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.brand-photo-hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* #brand sits on top and slides over the photo */
#brand {
  position: relative;
  z-index: 10;
  background-color: var(--bg-color);
}

/* Each block = one spread */
.brand-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  border-top: 1px solid var(--border-color);
  padding: 0 var(--side-margin);
  position: relative;
}

/* Full-height vertical divider line via pseudo-element */
.brand-block::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--side-margin) + 280px);
  width: 1px;
  background-color: var(--border-color);
}

/* Left: sticky title column */
.brand-left {
  position: sticky;
  top: 64px;
  /* below fixed header */
  align-self: start;
  /* required for sticky in CSS grid */
  padding: 60px 40px 60px 0;
  box-sizing: border-box;
  /* border-right removed — handled by brand-block::before */
}

.brand-num {
  font-size: 0.85rem;
  color: #555;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.brand-title,
.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
}

.section-title {
  margin-bottom: 40px;
}

/* Right: scrollable content — padding-bottom gives sticky breathing room */
.brand-right {
  padding: 80px 0 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Last brand block: compact, no extra space needed */
.brand-block:last-child .brand-right {
  padding-bottom: 80px;
}

.brand-photo {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.brand-body {
  font-size: 1rem;
  line-height: 2;
  color: #aaa;
  margin: 0;
  max-width: 680px;
}

/* Values grid inside brand-right */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 16px;
}

.value-item {
  display: flex;
  flex-direction: column;
}

.value-icon {
  width: 48px;
  height: 48px;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
}

.value-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.value-icon i {
  width: 100%;
  height: 100%;
  display: flex;
}

.value-item h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: 0.04em;
}

.value-item h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin: 0 0 20px;
  letter-spacing: 0.06em;
}

.value-item p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #aaa;
  margin: 0;
}

.brand-vision-text {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-top: 32px;
  flex-wrap: wrap;
}

.brand-vision-text .vision-logo {
  height: 0.85em;
  width: auto;
}

/* --- Scroll Reveal Animations --- */
.reveal-up,
.reveal-left {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0s);
}

.reveal-left {
  transform: translateX(-20px);
}

.is-visible.reveal-up,
.is-visible.reveal-left {
  opacity: 1;
  transform: none;
}

/* Mobile brand */
@media (max-width: 768px) {
  .brand-block {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 var(--side-margin);
  }

  .brand-block::before {
    display: none;
  }

  .brand-left {
    position: static;
    height: auto;
    padding: 40px var(--side-margin);
    margin: 0 calc(var(--side-margin) * -1);
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .brand-right {
    padding: 40px 0 60px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .brand-vision-text {
    font-size: 1.8rem;
  }

  /* Modern smaller body text for mobile */
  .brand-body {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #999;
    letter-spacing: 0.02em;
  }

  .value-item p {
    font-size: 0.85rem;
    line-height: 1.7;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 550px) {
  .values-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* -------------------------------------
   Service Rows — vertical scroll layout
-------------------------------------- */
#service {
  position: relative;
  z-index: 30;
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
}

/* Centered "Services" label between brand and service rows */
.services-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px var(--side-margin);
  border-bottom: 1px solid var(--border-color);
}

.service-row {
  display: block;
  /* block required for position:sticky on child to work */
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-row:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Media: sticky — stays at top while text scrolls over it (push-out effect) */
.service-row-media {
  width: 100%;
  height: clamp(300px, 42vw, 570px);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1;
}

.service-media-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

@media (min-width: 769px) {
  .service-media-inner {
    width: calc(100% - var(--side-margin) * 2);
    margin: 0 auto;
  }
}

.service-media-inner img,
.service-media-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-row:hover .service-media-inner img,
.service-row:hover .service-media-inner video {
  transform: scale(1.04);
}

/* 360ビューア — PhotoSphereViewer */
.service-row-media--viewer {
  overflow: hidden;
  cursor: grab;
}

.service-row-media--viewer:active {
  cursor: grabbing;
}

#service-360-viewer {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Text row: solid bg covers the sticky image below as user scrolls */
.service-row-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px var(--side-margin) 100px;
  position: relative;
  z-index: 2;
  background-color: var(--bg-color);
  box-sizing: border-box;
  border-top: 1px solid var(--border-color);
}

.service-row-text::before {
  display: none;
}

.service-row-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  gap: 16px;
}

.service-row-icon {
  width: 48px;
  height: 48px;
  color: #fff;
  transition: color 0.2s;
  flex-shrink: 0;
}

.service-row-icon svg,
.service-row-icon i svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.service-row-icon i {
  width: 100%;
  height: 100%;
  display: flex;
}

.service-row-left h3 {
  transition: color 0.2s;
}


.service-row-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  gap: 24px;
}

.service-row-right p {
  font-size: 1rem;
  line-height: 1.9;
  color: #888;
  margin: 0;
  max-width: 680px;
  text-align: left;
}

.explore-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  align-self: flex-end;
  transition: color 0.2s ease, transform 0.2s ease;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.explore-more-icon {
  width: 14px;
  height: 14px;
  background-color: currentColor;
  mask-image: url('../assets/arrow.svg');
  -webkit-mask-image: url('../assets/arrow.svg');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: transform 0.2s ease;
  transform: rotate(90deg);
}

.explore-more:hover {
  color: var(--accent-color);
}

.explore-more:hover .explore-more-icon {
  transform: translateX(4px) rotate(90deg);
}

@media (max-width: 768px) {
  .services-header {
    padding: 40px var(--side-margin);
  }

  .service-row {
    overflow: hidden;
  }

  .service-row-media {
    position: relative;
    /* no sticky on mobile */
    top: auto;
    height: 300px;
  }

  .service-row-text {
    padding: 0 var(--side-margin);
  }

  .service-row-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 28px var(--side-margin) 20px;
    margin: 0 calc(var(--side-margin) * -1);
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .service-row-right {
    padding: 20px 0 36px;
  }

  .service-row-right p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .explore-more {
    font-size: 1rem;
    margin-top: 8px;
  }
}


/* -------------------------------------
   Index Page — Icon size overrides
-------------------------------------- */
.page-index #scroll-indicator svg {
  width: 24px;
  height: 24px;
}

.page-index .value-icon {
  width: 40px;
  height: 40px;
}

.page-index .service-row-icon {
  width: 40px;
  height: 40px;
}

/* Marquee CTA */
#cta {
  padding: 0;
  position: relative;
  z-index: 30;
  overflow: hidden;
}

.page-index #cta {
  background-image: url('../assets/宣言式cleaned.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* dark overlay so text stays readable */
.page-index #cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 0;
}

#cta>* {
  position: relative;
  z-index: 1;
}

#cta p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  margin: 32px 0 40px;
  text-align: center;
}

#cta h2 {
  margin-bottom: 16px;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-marquee-wrap {
  overflow: visible;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  padding: 0;
}

.cta-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  /* animation handled by GSAP */
  font-size: clamp(3.5rem, 8vw, 9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #fff;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
  /* Crucial to keep the gap when cloned next to each other */
}

.cta-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.cta-logo-inline {
  height: 0.75em;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

.cta-marquee-sep {
  color: var(--accent-color);
  font-size: 0.5em;
  opacity: 0.7;
}

/* CTA text + button area */
.cta-body {
  padding: 60px var(--side-margin) 80px;
  text-align: center;
  background-color: var(--bg-color);
}

.cta-button {
  padding: 14px 48px;
  font-size: 1rem;
}

/* -------------------------------------
   News Page Styles
-------------------------------------- */
/* ★Contactと同じく、mainで中央寄せの土台を作る */
.page-news main {
  padding: 160px var(--side-margin) 50px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
}

/* ★中身の箱。Contact(600px)より記事が読みやすいように少し広めの800pxに設定 */
.news-container {
  width: 100%;
  max-width: 800px;
}

/* 記事リストのゆったりとした余白 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.news-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 60px;
}

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

/* 日付のデザイン */
.news-meta time {
  color: #888;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* タイトルのデザイン */
.news-item-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 16px 0 24px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* タイトルのリンクホバー設定 */
.news-item-title a {
  transition: color 0.2s ease;
}

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

/* 本文のデザイン */
.news-item-content {
  color: #aaa;
  font-size: 1rem;
  line-height: 1.8;
}

.news-item-content p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

.news-item-content p:last-child {
  margin-bottom: 0;
}

.news-item-content a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.news-item-content a:hover {
  opacity: 0.7;
}

.news-item-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.loading-text,
.no-news,
.error-news {
  text-align: center;
  color: #888;
  font-size: 1rem;
  padding: 40px 0;
  letter-spacing: 0.05em;
}

/* スマホ用のレスポンシブ調整 */
@media (max-width: 768px) {
  .page-news main {
    padding: 120px var(--side-margin) 40px;
  }

  .news-item-title {
    font-size: 1.4rem;
  }

  .news-list {
    gap: 40px;
    margin-top: 40px;
  }

  .news-item {
    padding-bottom: 40px;
  }
}

/* -------------------------------------
   Contact Page Styles
-------------------------------------- */
.page-contact main {
  padding: 160px var(--side-margin) 50px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 10;
  min-height: 100vh;
  box-sizing: border-box;
}

.contact-container {
  width: 100%;
  max-width: 600px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  text-align: center;
}

.page-desc {
  text-align: center;
  color: #888;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 60px;
}

.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ededed;
  margin-bottom: 10px;
}

.form-label .required {
  color: #888;
  margin-left: 6px;
}

.form-control {
  width: 100%;
  background-color: #000000;
  border: 1px solid var(--border-color);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: #000000;
}

.form-control::placeholder {
  color: #555;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Hide number input spinners (browser default shows as white box on dark bg) */
input[type="number"].form-control::-webkit-inner-spin-button,
input[type="number"].form-control::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"].form-control {
  -moz-appearance: textfield;
}

/* Custom Checkbox */
.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 12px;
  position: relative;
  user-select: none;
}

.custom-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox-mark {
  position: relative;
  top: 4px;
  width: 20px;
  height: 20px;
  background-color: #000000;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.custom-checkbox-label:hover .custom-checkbox-mark {
  border-color: var(--accent-color);
}

.custom-checkbox-input:checked ~ .custom-checkbox-mark {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.custom-checkbox-mark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox-input:checked ~ .custom-checkbox-mark:after {
  display: block;
}

.custom-checkbox-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-color);
}

.custom-checkbox-text small {
  color: #888;
  display: block;
  margin-top: 4px;
}


.custom-select-wrapper {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  line-height: 1.2;
  cursor: pointer;
  color: #555;
  user-select: none;
}

.custom-select-trigger.has-value {
  color: #fff;
}

.custom-select-trigger svg {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-trigger.open {
  border-color: var(--accent-color);
}

.custom-select-trigger.open svg {
  transform: rotate(180deg);
  stroke: var(--accent-color);
}

.custom-options-container {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background-color: #000;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-options-container.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.custom-option:hover {
  background-color: var(--hover-bg);
}

.custom-option:hover .dropdown-icon::before,
.custom-option:hover .dropdown-icon::after {
  background-color: var(--accent-color);
}

.custom-option-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  background-color: #000 !important;
  /* 背景を黒に強制（これで白くならなくなります） */
  color: #fff !important;
  /* 文字色を白に強制 */
  border: 1px solid #333;
  /* 暗いグレーの枠線 */
  padding: 15px;
  /* 余白 */
  border-radius: 5px;
  /* 角丸 */
  box-sizing: border-box;
  /* パディングを含める */
  font-size: 1rem;
  /* フォントサイズ */
  transition: border-color 0.2s;
  /* アニメーション */
}

/* フォーカス時のスタイル（緑のアクセント） */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  /* デフォルトのアウトラインを消す */
  border-color: var(--accent-color, #00ff00) !important;
  /* 緑の枠線（変数が使われていない場合は#00ff00） */
}

.custom-error {
  color: #ff5f5f;
  font-size: 0.85rem;
  margin-top: 8px;
  letter-spacing: 0.05em;
  animation: fadeInDown 0.3s ease forwards;
}

.is-invalid {
  border-color: #ff5f5f !important;
  /* 赤い枠線 */
  background-color: #000 !important;
  /* 背景を黒に強制（ピンク色にしない） */
  /* 文字色は白のまま。エラーメッセージだけ赤くなる。 */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#submitBtn {
  background-color: #fff;
  color: #000;
  border-radius: 999px;
  border: 1px solid #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

#submitBtn:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

#submitBtn.is-sending {
  background-color: #555 !important;
  color: #fff !important;
  border-color: #555 !important;
  pointer-events: none;
}

.privacy-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.privacy-note p {
  margin: 0;
}

#success-block {
  text-align: center;
  padding: 40px 0;
  display: none;
}

#success-block h3 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

#success-block p {
  color: #888;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* -------------------------------------
   Footer
-------------------------------------- */
.site-footer {
  background-color: #000000;
  padding: 0 var(--side-margin) 40px;
  position: relative;
  z-index: 30;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "logo info arrow";
  column-gap: 80px;
  row-gap: 40px;
  margin-bottom: 40px;
  padding-top: 40px;
}

.footer-logo {
  grid-area: logo;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

.footer-info {
  grid-area: info;
  color: #888;
  font-size: 0.9rem;
  line-height: 2;
}

.footer-info a {
  color: #888;
  transition: color 0.15s;
}

.footer-info a:hover {
  color: var(--accent-color);
}

.footer-arrow {
  grid-area: arrow;
  display: flex;
  align-items: flex-start;
}

.back-to-top {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-icon {
  width: 24px;
  height: 24px;
  background-color: #ededed;
  mask-image: url('../assets/arrow.svg');
  -webkit-mask-image: url('../assets/arrow.svg');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease;
}

.back-to-top:hover .back-to-top-icon {
  transform: scale(1.3);
  background-color: var(--accent-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #555;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* クレジット表記はindexページのみ表示 */
.footer-credit {
  display: none;
}
.page-index .footer-credit {
  display: inline;
  color: #444;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* -------------------------------------
   CTAセクションのロゴ＋テキスト混植設定
-------------------------------------- */
#cta h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-logo {
  height: 0.8em;
  width: auto;
  transform: translateY(0px);
}

/* -------------------------------------
   Responsive: Mobile
-------------------------------------- */
@media (max-width: 1350px) {
  .carousel-btn.prev {
    left: calc(var(--side-margin) * -0.5);
  }

  .carousel-btn.next {
    right: calc(var(--side-margin) * -0.5);
  }
}

@media (max-width: 768px) {
  :root {
    --side-margin: 15px;
  }

  header {
    padding: 15px var(--side-margin);
  }

  .header-left {
    gap: 16px;
  }

  .hamburger {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .sp-br {
    display: block;
  }

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

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

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

  #concept-text {
    width: 95%;
    padding: 40px 16px;
  }

  #concept-text::before,
  #concept-text::after {
    width: 40px;
    height: 40px;
  }

  #concept-text h2 {
    font-size: 2.2rem;
  }

  .section-title,
  #cta h2 {
    font-size: 1.8rem;
  }

  #concept-text p {
    font-size: 1rem;
  }

  .carousel-btn {
    display: none !important;
  }

  #media-wrapper {
    width: 100%;
    overflow: hidden;
  }

  #service {
    padding: 0;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .grid {
    flex-direction: column;
    overflow-x: hidden;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    gap: 24px;
  }

  .card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 32px;
  }

  .card:hover {
    transform: none;
  }

  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .card p {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  #cta {
    padding: 0;
  }

  /* Mobile: background-attachment:fixed is unsupported on mobile
     → Move background specifically to the marquee wrap so it's not hidden by cta-body */
  .page-index #cta {
    background-image: none;
  }

  .page-index #cta::before {
    display: none;
  }

  .page-index .cta-marquee-wrap {
    background-image: url('../assets/宣言式cleaned.jpg');
    background-size: cover;
    background-position: center 80%;
    /* 画像を上にシフトし、バナーを相対的に下へ。上部の縦ノボリは切れる想定 */
  }

  .page-index .cta-marquee-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    z-index: 0;
  }

  .page-index .cta-marquee-track {
    position: relative;
    z-index: 1;
  }

  /* cta-body: full-width on mobile, no floating box */
  .cta-body {
    background-color: var(--bg-color);
    padding: 48px var(--side-margin) 64px;
  }

  /* Marquee: smaller on mobile */
  .cta-marquee-track {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .cta-marquee-wrap {
    height: 180px;
  }

  /* index service rows: stack cleanly */
  .service-row-left {
    padding: 28px var(--side-margin);
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .service-row-right {
    padding: 24px 0 40px;
  }

  .service-row-arrow {
    align-self: flex-end;
  }

  /* ★スマホ版のボタン厚み指定を「上下」だけに限定（横方向のつぶれを防止！） */
  .cta-button {
    padding: 10px 0;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  #submitBtn {
    padding: 10px 0;
  }

  .mobile-contact-btn {
    padding: 10px 0;
  }

  /* モバイル時の余白もスッキリ修正 */
  main {
    padding-bottom: 40px;
  }

  .page-contact main {
    padding: 120px var(--side-margin) 40px;
  }

  .page-title,
  #success-block h3 {
    font-size: 2rem;
  }

  .page-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 40px;
  }

  /* grid-template-areasで美しく再構築したフッター */
  .footer-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo arrow"
      "info info";
    gap: 24px 0;
    margin-bottom: 60px;
  }

  .footer-logo {
    display: flex;
    align-items: center;
  }

  .footer-info {
    margin-left: 0;
  }

  .footer-arrow {
    justify-content: flex-end;
    align-items: center;
  }
}

/* --------------------------------------------------
  スマホ時のヘッダー：スクロールで隠すアニメーション
 -------------------------------------------------- */
#site-header {
  /* 既存の背景色の変化に加えて、位置（transform）の変化も滑らかにする */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border-bottom-color 0.2s;
}

#site-header.header-hidden {
  /* JSでこのクラスが付いた時、ヘッダーを自分の高さ分だけ上（マイナス方向）に移動して隠す */
  transform: translateY(-100%);
}