/* ========================
   ヒーローセクション（スライダー）
   ======================== */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  background: #000;
  overflow: hidden;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --- スライド本体 --- */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

/* Ken Burns ズームエフェクト (CSS Animation 方式) */
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55);
  transform: scale(1.0);
}

.hero-slide.active .hero-img {
  animation: kenBurnsZoom 10s ease-out forwards;
}

@keyframes kenBurnsZoom {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.1);
  }
}

/* --- テキストオーバーレイ --- */
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 2;
  padding: 0 8%;
}

.hero-text-wrapper {
  max-width: 800px;
  position: relative;
  padding: 45px 50px;
  border-left: 5px solid var(--primary-color);
  background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ラベル（英語キーワード） */
.hero-slide-label {
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  line-height: 1.2;
  /* アニメーション初期状態 */
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.hero-slide.active .hero-slide-label {
  opacity: 1;
  transform: translateY(0);
}

/* メインタイトル（日本語） */
.hero-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  /* アニメーション */
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s ease 0.6s, transform 0.9s ease 0.6s;
}

.hero-slide.active .hero-slide-title {
  opacity: 1;
  transform: translateY(0);
}

/* サブテキスト */
.hero-slide-desc {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  font-weight: 400;
  /* アニメーション */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease 1s, transform 0.8s ease 1s;
}

.hero-slide.active .hero-slide-desc {
  opacity: 1;
  transform: translateY(0);
}

/* --- ナビゲーション矢印 --- */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.hero-section:hover .slide-arrow {
  opacity: 1;
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-50%) scale(1.1);
}

.slide-arrow.prev { left: 25px; }
.slide-arrow.next { right: 25px; }

/* --- ドットナビゲーション --- */
.slide-dots {
  position: absolute;
  bottom: 40px;
  right: 8%;
  z-index: 10;
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.dot.active {
  background: var(--primary-color);
  border-color: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(13, 56, 124, 0.5);
}

/* --- プログレスバー --- */
.slide-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}

.slide-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), #5a9fd4);
  transition: width 0.1s linear;
}

.slide-progress-bar.running {
  animation: progressFill 7s linear forwards;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }
  .hero-content {
    padding: 0 5%;
    align-items: flex-end;
    padding-bottom: 80px;
  }
  .hero-text-wrapper {
    padding: 25px 20px;
    border-left-width: 4px;
  }
  .slide-arrow {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .slide-arrow.prev { left: 10px; }
  .slide-arrow.next { right: 10px; }
  .slide-dots {
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* ========================
   ヒーローレイアウト バリエーション
   ======================== */

/* --- Layout 2: 右寄せ（ボーダー右）--- */
.hero-layout-right {
  justify-content: flex-end;
}

.hero-text-right {
  border-left: none;
  border-right: 5px solid var(--primary-color);
  text-align: right;
  background: linear-gradient(225deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.10) 100%);
}

/* --- Layout 3: センター（フロストガラス ピル）--- */
.hero-layout-center {
  justify-content: center;
  align-items: center;
}

.hero-text-center {
  border-left: none;
  text-align: center;
  border-radius: 16px;
  padding: 50px 60px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-text-center .hero-slide-label {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 8px;
}

.hero-text-center .hero-slide-title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
}

/* --- Layout 4: ボトムバー（全幅ストライプ）--- */
.hero-layout-bottom {
  align-items: flex-end;
  padding: 0;
}

.hero-text-bottom {
  border-left: none;
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  padding: 35px 8%;
  background: linear-gradient(0deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.0) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text-bottom .hero-slide-label {
  min-width: 180px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0;
  border-right: 2px solid rgba(255,255,255,0.3);
  padding-right: 40px;
}

.hero-text-bottom .hero-slide-title {
  margin-bottom: 4px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.hero-text-bottom .hero-slide-desc {
  flex-basis: 100%;
}

/* レスポンシブ補足 */
@media (max-width: 768px) {
  .hero-layout-right {
    justify-content: flex-start;
  }
  .hero-text-right {
    border-right: none;
    border-left: 4px solid var(--primary-color);
    text-align: left;
  }
  .hero-text-center {
    padding: 25px 20px;
    border-radius: 10px;
  }
  .hero-text-bottom {
    flex-direction: column;
    gap: 10px;
    padding: 20px 5%;
    padding-bottom: 60px;
  }
  .hero-text-bottom .hero-slide-label {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    min-width: auto;
  }
}

/* ========================
   PICK UP (Initiatives) Grid
   ======================== */
.pickup-section {
  background: linear-gradient(180deg, #f0f4f8 0%, #f8f9fb 100%);
  position: relative;
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pickup-item {
  display: block;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-bottom: 3px solid transparent;
}

.pickup-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-bottom-color: var(--primary-color);
}

.pickup-img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #eee;
}

.pickup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pickup-item:hover .pickup-img {
  transform: scale(1.08);
}

.pickup-content {
  padding: 25px;
}

.pickup-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color); 
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.pickup-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.pickup-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

/* Arrow indicator on hover */
.pickup-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.pickup-arrow::before, .pickup-arrow::after {
  content: '';
  position: absolute;
  background: var(--primary-color);
}

.pickup-arrow::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
}
.pickup-arrow::after {
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  transform: translateY(-50%) rotate(45deg);
}

.pickup-item:hover .pickup-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========================
   Tech Concept (Visual Section)
   ======================== */
.tech-concept-section {
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(13, 56, 124, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(13, 56, 124, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(13, 56, 124, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 56, 124, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  text-align: center;
  border-top: 1px solid #e8ecf1;
  border-bottom: 1px solid #e8ecf1;
}

.tech-concept-title {
  font-size: 2rem;
  margin-bottom: 30px;
  font-family: var(--font-serif);
}

.concept-keyword {
  font-weight: 700;
  color: #333;
}

.concept-x {
  color: #ccc;
  font-weight: 300;
  margin: 0 10px;
}

.concept-brand {
  color: var(--primary-color);
  font-size: 1.2em;
  font-weight: 700;
}

.tech-concept-desc {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

/* ========================
   News Section (List Style)
   ======================== */
.news-section {
  background: linear-gradient(180deg, #fcfcfd 0%, #f6f8fb 100%);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.section-header-row .section-heading {
  margin-bottom: 0;
  border-left: none; /* Reset default Style */
  padding-left: 0;
  text-align: left;
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding-right: 20px;
}

.view-all-link::after {
  content: '>';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8em;
  transition: transform 0.3s;
}

.view-all-link:hover::after {
  transform: translateY(-50%) translateX(5px);
}

.news-list-wrapper {
  display: flex;
  flex-direction: column;
}

.news-row {
  display: flex;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: background-color 0.2s;
}

.news-row:hover {
  background-color: #fafafa;
}

.news-meta {
  display: flex;
  align-items: center;
  min-width: 250px;
  gap: 15px;
}

.news-row time {
  color: #888;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.news-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 2px;
  color: #fff;
  background: #999;
}

.cat-notice { background: var(--primary-color); }
.cat-facility { background: var(--secondary-color); }

.news-text {
  flex: 1;
  color: var(--text-color);
  font-weight: 500;
}

.news-row:hover .news-text {
  color: var(--primary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .news-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .news-meta {
    width: 100%;
  }
}

/* ========================
   Gallery Section (Marquee)
   ======================== */
.gallery-section {
  background: linear-gradient(180deg, #ffffff 0%, #f0f3f7 50%, #e8ecf2 100%);
  padding-bottom: 80px;
  border-top: 1px solid #e8ecf1;
  overflow: hidden;
}

.gallery-marquee {
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: galleryScroll var(--scroll-duration, 40s) linear infinite;
}

.gallery-marquee:hover .gallery-track {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  width: 320px;
  height: 240px;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}


/* ========================
   Contact/CTA Section
   ======================== */
.contact-cta-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #e8ecf2 0%, #edf1f5 30%, #f5f7fa 100%);
  position: relative;
}

.contact-cta-inner {
  background: #fff;
  padding: 60px 40px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  max-width: 900px;
  margin: auto;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color);
}

.cta-desc {
  margin-bottom: 40px;
  color: #666;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 320px;
  padding: 20px;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-tel {
  background: #fff;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-tel:hover {
  background: var(--secondary-color);
  color: #fff;
}

.btn-mail {
  background: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: #fff;
}

.btn-mail:hover {
  background: #fff;
  color: var(--primary-color);
}

.btn-cta .icon {
  font-size: 0.8em;
  opacity: 0.8;
}

.btn-cta .small {
  font-size: 0.7em;
  font-weight: normal;
  margin-left: 5px;
}
