/* --- Manage Life LLC. Official Premium CSS (Strict Final Edition) --- */

/* 1. 変数定義 (1400pxコンテナに拡張) */
:root {
  --font-main: 'Inter', 'Noto Sans JP', sans-serif;
  --color-bg: #fdfbf7;
  /* Warm Beige Base */
  --color-bg-alt: #f1f5f9;
  --color-text: #4c4c4c;
  /* Warmer Dark Gray */
  --color-text-muted: #57534e;
  --color-primary: #ea580c;
  /* Orange Accent */
  --color-primary-glow: rgba(234, 88, 12, 0.2);
  --color-secondary: #f59e0b;
  /* Amber */
  --spacing-container: 1400px;
  /* 広々としたワイドレイアウト */
  --spacing-section: 6rem;
  /* ブロック間の余白を調整（10remから縮小） */
}

/* 2. グローバル設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* リンクを親要素全体に広げるユーティリティ */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.card,
.feature-card,
.about-card {
  position: relative;
  /* 子のstretched-linkの基準点に */
}

/* アンカーリンクのスクロール位置調整 (固定ヘッダー対策) */
[id] {
  scroll-margin-top: 100px;
  /* 固定ヘッダーの高さ分、上部にマージンを持たせる */
}

.logo-pc {
  display: inline;
}

.logo-sp {
  display: none;
}

@media (max-width: 768px) {
  .logo-pc {
    display: none;
  }

  .logo-sp {
    display: inline;
  }
}

/* 3. 背景装飾 (Warm Texture) */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(234, 88, 12, 0.05), transparent 40%);
  z-index: -2;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

/* 4. ヘッダー (Warm Beige + Gradient Line) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.9rem 0;
  z-index: 1000;
  background: #fdfbf7;
  /* border-bottom: 3px solid transparent removed to use border-image */
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, #f59e0b, #ea580c) 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
  color: #4c4c4c;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-img {
  width: 34px;
  height: auto;
  /* Darker shadow for visibility on light bg */
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo .accent {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #57534e;
}

.nav-links a:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger i {
  font-size: 0.75rem;
  margin-left: 0.2rem;
  transition: transform 0.3s ease;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
  }
}

.dropdown-content {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 1rem 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-content a {
  color: #57534e;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #fffaf5;
  color: var(--color-primary);
}

/* ta1 Table Styles (for Company Profile) */
.ta1 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 4rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.ta1 th,
.ta1 td {
  padding: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.ta1 th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 700;
  width: 25%;
  text-align: left;
  vertical-align: top;
}

.ta1 td {
  background-color: #ffffff;
  color: var(--color-text);
  width: 75%;
  text-align: left;
}

.ta1 tr:last-child th,
.ta1 tr:last-child td {
  border-bottom: none;
}

/* 5. ヒーローセクション (【修正】中央寄せの徹底) */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #cbd5e1;
  z-index: 0;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.slide.active {
  opacity: 1;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 中央寄せを考慮し、背景画像がどの位置でも文字が読める放射状グラデーションへ */
  /* Medium (Balance) */
  background: radial-gradient(circle at center, rgba(248, 250, 252, 0.5) 0%, rgba(248, 250, 252, 0.9) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  /* コンテンツの中身も中央へ */
}

.hero-message-box {
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: 3.5rem;
  font-weight: 500;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ボタンも中央 */

/* 6. サービス・事業内容 (【修正】3枚横並び保証) */
.section-padding {
  padding: var(--spacing-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  /* 5remから縮小 */
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--color-text);
  font-size: 1.45rem;
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto;
}

.grid-3 {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.glass-card {
  flex: 1;
  min-width: 350px;
  /* ワイド化に合わせて最小幅を調整 */
  max-width: 450px;
  /* 横に広がりすぎないようにバランスを調整 */
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.service-img-container {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Remove or keep icon-box if needed for compatibility, but here we replace it */
/*
.icon-box {
  color: var(--color-primary);
  background: #f0f9ff;
  padding: 1.1rem;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 2.5rem;
}
*/

.glass-card h4 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.service-subtitle {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.text-link {
  color: var(--color-primary);
  font-weight: 800;
  margin-top: 2rem;
  display: inline-block;
}

/* 7. お知らせ (News) */
.bg-alt {
  background-color: var(--color-bg-alt);
}

.new-list {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
}

.news-item {
  background: #ffffff;
  padding: 1.8rem 2.5rem;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
}

.news-item dt {
  font-weight: 700;
  min-width: 140px;
  color: var(--color-text-muted);
}

.news-item dd {
  flex: 1;
  color: var(--color-text);
}

.news-item .label {
  background: #f1f5f9;
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-left: 1.5rem;
  font-weight: 800;
}

/* 8. アバウト (About Card) */
.about-card {
  background: #ffffff;
  padding: 6rem 4rem;
  border-radius: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.04);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.35rem;
  line-height: 2.1;
  font-weight: 500;
  color: var(--color-text);
}

/* About Philosophy Styling */
.about-lead {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4rem;
  color: var(--color-text);
}

.philosophy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
  text-align: left;
}

.philosophy-item {
  padding: 0 1.5rem;
  border-left: 3px solid var(--color-primary);
}

.philosophy-item h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.philosophy-item .sub-tag {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.philosophy-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.about-closing {
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 600;
}

/* 9. コンタクト (CTA Section) */
.cta-section {
  padding: 10rem 0;
  background-color: #0f172a;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(8, 145, 178, 0.1), transparent 60%);
}

.cta-section h2 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  position: relative;
}

.cta-section p {
  font-size: 1.4rem;
  color: #94a3b8;
  margin-bottom: 4rem;
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
}

/* 10. ボタン */
.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
  color: #ffffff !important;
  border-radius: 100px;
  font-weight: 700;
  box-shadow: 0 10px 25px var(--color-primary-glow);
  transition: 0.3s;
  border: none;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px var(--color-primary-glow);
  filter: brightness(1.1);
}

.btn-primary.large {
  padding: 1.3rem 4rem;
  font-size: 1.25rem;
}

/* 11. フッター (【修正】全情報の包含) */
footer {
  padding: 8rem 0 4rem;
  background: #0b1120;
  color: #f8fafc;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.footer-brand h4 {
  font-size: 1.6rem;
  margin-bottom: 0;
  color: #fff;
}

.footer-brand p {
  color: #64748b;
}

.footer-nav {
  margin-top: 2rem;
}

#footermenu {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

#footermenu a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: #475569;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: inherit;
}

.footer-bottom .pr a {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Page Top Button */
.pagetop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.pagetop.pagetop-show {
  opacity: 1;
  visibility: visible;
}

.pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #0f172a;
  /* Darker bg like the image */
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 1.5rem;
  /* Slightly larger for the double arrow */
}

.pagetop a:hover {
  transform: translateY(-5px);
  background-color: var(--color-primary);
  box-shadow: 0 15px 35px var(--color-primary-glow);
}

/* 12. アニメーションリセット・レスポンシブ */
.fade-in,
.fade-up,
.fade-right,
.fade-left {
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 1025px) {

  /* PCでは3つ横に絶対並べる */
  .grid-3 {
    flex-wrap: nowrap;
  }

  .mobile-menu-btn {
    display: none;
  }

  /* デスクトップでは非表示 */
}

@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 3.2rem;
  }

  .grid-3 {
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

/* Mobile Menu Button (Hamburger) - Global Styles */
.mobile-menu-btn {
  display: none;
  /* Hidden by default on PC */
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 2000;
}

.mobile-menu-btn span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  /* Dark color for light background */
  border-radius: 4px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0px;
}

.mobile-menu-btn span:nth-child(2) {
  top: 10px;
}

.mobile-menu-btn span:nth-child(3) {
  top: 20px;
}

.mobile-menu-btn.active span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.mobile-menu-btn.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

@media (max-width: 768px) {
  :root {
    --spacing-section: 5rem;
  }

  header {
    padding: 0.6rem 0;
    /* モバイルでは少し低くする */
  }

  .logo {
    font-size: 1.25rem;
    /* Manage Life LLC. が1行に収まるサイズ */
    gap: 0.6rem;
    font-weight: 800;
  }

  .logo-img {
    width: 28px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

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

  .about-card {
    padding: 3rem 1.5rem;
  }

  .news-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
  }

  .news-item dt {
    min-width: auto;
  }

  /* --- Mobile Menu Styles (Inserted) --- */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1500;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.3rem;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for links */
  .nav-links.active a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active a:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-links.active a:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links.active a:nth-child(4) {
    transition-delay: 0.4s;
  }

  /* Mobile Dropdown Fix (Click to toggle) */
  .nav-links .dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-links .dropdown-trigger {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
  }

  .nav-links .dropdown-content {
    position: static;
    display: none;
    /* Hidden by default on mobile */
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle background integration */
    border-radius: 12px;
    width: 250px;
    /* Fixed width for better centering on small screens */
    margin: 1rem auto 0;
    padding: 0.5rem 0;
  }

  .nav-links .dropdown.open .dropdown-content {
    display: block;
    /* Show when toggled */
  }

  .nav-links .dropdown.open .dropdown-trigger i {
    transform: rotate(180deg);
  }

  .nav-links .dropdown-content a {
    color: #cbd5e1 !important;
    /* Clearly visible on dark background */
    font-size: 1.05rem;
    padding: 0.8rem 0;
    opacity: 1;
    transform: none;
    display: block;
  }

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

  /* Button Logic is Global below, but layout adjustment here if needed */
  .mobile-menu-btn {
    display: block;
  }
}

/* 13. サブページ (Service Pages) Styles */
.sub-hero {
  padding: 8rem 0 4rem;
  /* 12rem 0 6rem から縮小 */
  background: radial-gradient(circle at 70% 30%, rgba(234, 88, 12, 0.08), transparent 50%);
  text-align: center;
}

.sub-hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.sub-hero h2 {
  /* font-size: 3.0rem; */
  font-size: 2.0rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.sub-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.service-content-section {
  padding: 6rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.feature-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-card .icon-label {
  display: inline-block;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.feature-card h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
}

.feature-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text);
}

.feature-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* 14. プレミアム・ギャラリー (Thumbnail Swap) */
.gallery-section {
  padding: 6rem 0;
  background: rgba(248, 250, 252, 0.5);
  border-radius: 40px;
  margin: 4rem 0;
}

.thumbnail-view-parts {
  max-width: 900px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  position: relative;
}

.thumbnail-view-parts img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.thumbnail-parts {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
}

.thumbnail-parts img {
  width: 120px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail-parts img:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.thumbnail-parts img.active-thumb {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

/* 15. インビュー・アニメーション (Inview Animations) */
.up,
.down,
.blur,
.transform1,
.transform2,
.transform3,
.transform4 {
  opacity: 0;
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.up {
  transform: translateY(30px);
}

.down {
  transform: translateY(-30px);
}

.blur {
  filter: blur(20px);
  transform: scale(1.05);
}

/* スタイル適用時 (Visible state) */
.upstyle,
.downstyle {
  opacity: 1;
  transform: translateY(0);
}

.blurstyle {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Transform Keyframes & Classes */
@keyframes transform3_anim {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.transform3style {
  animation: transform3_anim 0.8s ease-out forwards;
}

.transform4style {
  animation: transform3_anim 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* サムネイルナビゲーション (Next/Prev Service) */
.service-nav {
  padding: 8rem 0;
  background: var(--color-bg-alt);
}

.thumbnail-nav-parts {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.thumbnail-nav-parts .card {
  flex: 0 1 350px;
  padding: 0;
  text-align: center;
  overflow: hidden;
  border-radius: 24px;
}

.thumbnail-nav-parts .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.thumbnail-nav-parts .card h4 {
  margin-top: 1.5rem;
  padding: 0 1.5rem;
}

.thumbnail-nav-parts .card p {
  padding: 0 1.5rem 2rem;
}

@media (max-width: 768px) {
  .sub-hero h1 {
    font-size: 2.5rem;
  }

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

  .thumbnail-parts img {
    width: 80px;
  }
}