@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0077b6;
  --primary-light: #00b4d8;
  --primary-dark: #03045e;
  --accent: #90e0ef;
  --accent-soft: #caf0f8;
  --bg-light: #f4f9fc;
  --white: #ffffff;
  --text-main: #1a2530;
  --text-muted: #607285;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 12px 40px 0 rgba(0, 119, 182, 0.08);
  --shadow-hover: 0 20px 48px 0 rgba(0, 119, 182, 0.15);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

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

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

section {
  padding: 100px 0;
  position: relative;
}

/* Header */
header {
  position: fixed; /* 常時固定 */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0; /* スクロール前は少し広めのパディング */
  background: rgba(255, 255, 255, 0.9); /* 白の半透明背景 */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--glass-border); /* 境界線 */
  transition: var(--transition);
}

header.sticky {
  padding: 12px 0; /* スクロール後はコンパクトに */
  background: rgba(255, 255, 255, 0.95); /* 少し不透明度を上げる */
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

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

.btn-header {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-header:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(244,249,252,0.8) 0%, rgba(202,240,248,0.4) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px; /* 固定ヘッダー分の余白を確保し、コンテンツとの重なりを防止 */
}

.hero-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url('assets/luxury_condo_pool.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-bg-img::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(244,249,252,1) 0%, rgba(244,249,252,0.8) 20%, rgba(244,249,252,0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-content {
    width: 75%;
  }
}

@media (min-width: 1200px) {
  .hero-content {
    width: 65%;
  }
}

@media (min-width: 1400px) {
  .hero-content {
    width: 55%;
  }
}

.tagline {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid var(--accent);
}

.hero h1 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.35;
  margin-bottom: 24px;
}

.hero-pre-title {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-line {
  display: block;
}

@media (min-width: 992px) {
  .hero-title-line {
    white-space: nowrap;
  }
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

.cta-group {
  display: flex;
  gap: 16px;
}

.cta-group .btn-primary,
.cta-group .btn-secondary {
  font-size: 15px;
  padding: 14px 28px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.25);
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 180, 216, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--accent);
  display: inline-block;
  text-align: center;
}

.btn-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-3px);
}

/* Floating Badges */
.floating-badge-container {
  position: absolute;
  right: 6%;
  top: 52%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 3;
}

.floating-badge {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 380px;
  transition: all 0.3s ease;
}

.floating-badge:hover {
  transform: translateX(-5px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.badge-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
}

.badge-text h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.badge-text p {
  font-size: 12px;
  margin: 0;
  color: var(--text-muted);
}

/* Trouble Section Redesign */
.trouble-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}

.trouble-image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
}

.trouble-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.trouble-image-container:hover .trouble-image {
  transform: scale(1.03);
}

.image-overlay-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(230, 57, 70, 0.95);
  color: var(--white);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.trouble-cards-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.trouble-card {
  position: relative;
  background: var(--white);
  padding: 40px 40px 40px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: all 0.3s ease;
}
.trouble-card h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.trouble-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.trouble-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 57, 70, 0.2);
}

.trouble-card-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 2px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.trouble-card-icon {
  background: #fff0f3;
  color: #e63946;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(230, 57, 70, 0.1);
}

.trouble-card-body h4 {
  font-size: 19px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 800;
}

.trouble-card-body .highlight-red {
  color: #e63946;
  font-size: 22px;
  font-weight: 900;
  margin: 0 4px;
  border-bottom: 2px solid rgba(230, 57, 70, 0.2);
}

.trouble-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* About Proposal Box Style */
.about-proposal-wrapper {
  margin-top: 56px;
  background: linear-gradient(135deg, var(--white) 0%, rgba(202, 240, 248, 0.15) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: flex;
  overflow: hidden;
  align-items: stretch;
}

.about-proposal-image {
  width: 40%;
  flex-shrink: 0;
  position: relative;
}

.about-proposal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-proposal-content {
  padding: 56px 48px;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proposal-tag {
  align-self: flex-start;
  background: var(--primary-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.about-proposal-content h3 {
  font-size: 28px;
  color: var(--primary-dark);
  line-height: 1.5;
  margin-bottom: 16px;
  font-weight: 800;
}

.about-proposal-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0px;
}

.about-to-charm-arrow {
  border-top: 1px solid var(--accent-soft);
  padding-top: 20px;
  margin-top: 20px;
}

.about-to-charm-arrow p {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0;
  line-height: 1.6;
}

/* Section Common Styles */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Pain & Solutions Section */
.pain-sol-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.concierge-box {
  margin-top: 50px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 40px;
}

.simulator-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.pain-container {
  background: #fff0f3;
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid #ffccd5;
}

.pain-container h3 {
  color: #c9184a;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pain-list {
  list-style: none;
}

.pain-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  font-size: 15px;
}

.pain-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: -2px;
  font-size: 22px;
  color: #ff4d6d;
  font-weight: 700;
}

.sol-container {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
}

.sol-container h3 {
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sol-list {
  list-style: none;
}

.sol-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 20px;
  font-size: 15px;
}

.sol-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  color: var(--primary-light);
  font-weight: 700;
}

/* Plans Section */
.plans-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .plans-wrapper {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.plan-card.featured {
  border: 2px solid var(--primary-light);
}

.plan-card.featured::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.plan-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.plan-card.featured .plan-badge {
  background: var(--accent-soft);
  color: var(--primary-dark);
}

.plan-card h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.plan-duration {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-price {
  font-family: 'Outfit', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-deposit {
  font-size: 13px;
  color: var(--primary);
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 32px;
}

.plan-card.featured .plan-deposit {
  background: var(--accent-soft);
}

.plan-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.plan-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 16px;
  font-size: 14px;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-light);
  font-weight: 700;
}

/* Scheme Section */
.scheme {
  background: var(--white);
}

.scheme-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-card:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 30px;
  right: -12%;
  font-size: 24px;
  color: var(--accent);
}

.step-num {
  width: 64px;
  height: 64px;
  background: var(--bg-light);
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

.step-card h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Substance & Bank Section */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.detail-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.detail-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.detail-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-card:hover .detail-card-image img {
  transform: scale(1.04);
}

.detail-card-body {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.detail-card h3 {
  font-size: 22px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-dark);
}

.detail-card h3 i {
  color: var(--primary-light);
}

.detail-item {
  margin-bottom: 24px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item h5 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.detail-item p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Substance Flow Intro */
.substance-intro {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 180, 216, 0.1);
}

.substance-intro-image {
  flex: 1;
  min-height: 320px;
  align-self: stretch;
}

.substance-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.substance-intro-content {
  flex: 1.2;
  padding: 48px;
}

.substance-intro-content h3 {
  font-size: 28px;
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.substance-intro-content h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

.substance-intro-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 16px;
}

.substance-intro-content ul {
  list-style: none;
  padding: 0;
}

.substance-intro-content li {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.substance-intro-content li i {
  color: var(--primary);
}

/* Contact Form */
.contact {
  background: linear-gradient(135deg, rgba(202,240,248,0.2) 0%, rgba(244,249,252,0.8) 100%);
}

.contact-wrapper {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}

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

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  background-color: var(--bg-light);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.25);
  transition: var(--transition);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 180, 216, 0.4);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
  text-align: center;
  font-size: 13px;
}

footer .logo {
  color: var(--white);
  justify-content: center;
  margin-bottom: 16px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    background: linear-gradient(135deg, rgba(10, 34, 64, 0.92) 0%, rgba(0, 50, 80, 0.88) 100%), url('assets/luxury_condo_pool.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 180px !important; /* 固定ヘッダーに隠れる部分とデザイン余白を考慮 */
    padding-bottom: 80px !important;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上部から開始して余白を正確にコントロール */
    align-items: center;
  }
  .hero-bg-img {
    display: none;
  }
  .hero-content {
    width: 100%;
    text-align: center;
  }
  .hero h1 {
    color: var(--white);
  }

  .hero h1 span {
    background: linear-gradient(90deg, #90e0ef 0%, #00b4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero p {
    color: rgba(255, 255, 255, 0.85);
    margin-left: auto;
    margin-right: auto;
  }
  .tagline {
    background: rgba(0, 180, 216, 0.15);
    color: #90e0ef;
    border-color: rgba(0, 180, 216, 0.3);
  }
  .cta-group {
    justify-content: center;
  }
  .floating-badge-container {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 48px;
    width: 100%;
    align-items: center;
    padding: 0 24px;
    box-sizing: border-box;
  }
  .floating-badge {
    position: static;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 14px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    text-align: left;
  }
  .floating-badge h4 {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 700;
  }
  .floating-badge p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin: 0;
  }
  .badge-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #90e0ef;
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .pain-sol-wrapper {
    grid-template-columns: 1fr;
  }
  .compound-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .plans-wrapper {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .scheme-steps {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .step-card:not(:last-child)::after {
    display: none;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .trouble-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .trouble-card {
    padding: 28px 24px 28px 24px;
  }
  .trouble-card-badge {
    left: 24px;
  }
  .about-proposal-wrapper {
    flex-direction: column;
  }
  .about-proposal-image {
    width: 100%;
    height: 300px;
  }
  .about-proposal-content {
    width: 100%;
    padding: 32px 24px;
  }
}

@media (max-width: 576px) {
  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 12px;
  }
  .scheme-steps {
    grid-template-columns: 1fr;
  }
  nav {
    display: block;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-pre-title {
    font-size: 12.5px;
    margin-bottom: 12px;
    padding: 5px 12px;
  }
}

/* Inheritance Section (10-Year Rule) */
.inheritance-wrapper {
  display: flex;
  gap: 40px;
  align-items: stretch;
  margin-top: 40px;
}

.inheritance-visual {
  width: 45%;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.inheritance-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.inheritance-wrapper:hover .inheritance-visual img {
  transform: scale(1.03);
}

.inheritance-info {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Compound Section (Non-Tax Interest) */
.compound-wrapper {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 60px;
  align-items: stretch;
}

.compound-visual {
  width: 38%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.compound-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.compound-wrapper:hover .compound-visual img {
  transform: scale(1.03);
}

.compound-content {
  padding: 40px;
  width: 62%;
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .inheritance-wrapper {
    flex-direction: column;
    gap: 32px;
  }
  .inheritance-visual {
    width: 100%;
    height: 360px;
  }
  .inheritance-info {
    width: 100%;
  }

  .compound-wrapper {
    flex-direction: column;
  }
  .compound-visual {
    width: 100%;
    height: 360px;
  }
  .compound-content {
    width: 100%;
    padding: 32px 24px;
  }


  
  /* Hide utility */
  .hide-on-mobile {
    display: none !important;
  }

  /* Swipe Navigation */
  .header-container {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
  }
  
  nav {
    display: block !important;
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px 0;
    margin-top: 4px;
    -webkit-overflow-scrolling: touch;
  }
  
  nav::-webkit-scrollbar {
    display: none;
  }
  
  nav ul {
    gap: 12px;
    padding: 0 4px;
  }
  
  nav a {
    font-size: 13px;
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 50px;
    border: 1px solid var(--accent-soft);
    display: inline-block;
  }

  .btn-header {
    padding: 8px 16px;
    font-size: 12px;
  }

  /* Padding Adjustments for Sections and Cards on Mobile */
  section {
    padding: 60px 0;
  }

  .pain-sol-wrapper {
    gap: 24px;
  }

  .pain-container, .sol-container {
    padding: 24px 20px;
  }

  .plan-card {
    padding: 32px 24px;
  }
  
  .concierge-box {
    margin-top: 40px;
    padding: 32px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0 16px;
  }
  .logo {
    font-size: 15px;
  }
  .btn-header {
    padding: 6px 12px;
    font-size: 11px;
  }
  nav a {
    font-size: 12px;
    padding: 5px 10px;
  }

  .hero p {
    font-size: 14px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .simulator-inputs {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Overrides for big box inline paddings */
  #simulation div[style*="padding: 40px"],
  #schools div[style*="padding: 40px"] {
    padding: 24px 16px !important;
  }
}

/* Tour Selection Cards */
.tour-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.tour-card {
  flex: 1;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 2px solid var(--accent-soft);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tour-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.tour-card.selected {
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 180, 216, 0.15);
}

.tour-card .tour-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.tour-card.selected .tour-badge {
  background: var(--primary);
  color: var(--white);
}

.tour-card h4 {
  font-size: 16px;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 700;
}

.tour-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tour-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.tour-card li {
  font-size: 12px;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.tour-card li i {
  color: var(--primary-light);
  margin-right: 8px;
  font-size: 12px;
}

.tour-card.selected li i {
  color: var(--primary);
}

.tour-card .tour-select-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  padding: 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  margin-top: auto;
  transition: var(--transition);
  text-align: center;
}

.tour-card.selected .tour-select-indicator {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .tour-cards {
    flex-direction: column;
  }
}

/* Roadmap (Flow) Section */
.flow-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
  position: relative;
}

.flow-container::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--accent);
  z-index: 1;
}

.flow-step {
  background: var(--white);
  padding: 40px 40px 40px 72px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
  transition: var(--transition);
  display: flex;
  gap: 32px;
  align-items: stretch;
}

.flow-card-content {
  flex: 1;
}

.flow-card-image {
  width: 280px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.flow-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-step:hover .flow-card-image img {
  transform: scale(1.03);
}

.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.flow-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.flow-num {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 1px;
}

.flow-header h3 {
  font-size: 24px;
  color: var(--primary-dark);
}

.flow-header h3 .duration {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: normal;
  margin-left: 8px;
}

.flow-why {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 20px;
}

.flow-details ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0;
  margin: 0;
}

.flow-details ul li {
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.flow-details ul li i {
  color: var(--primary-light);
  margin-top: 4px;
}

/* Exit Strategy Cards (inside step 3) */
.flow-exits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.exit-card {
  background: var(--bg-light);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 119, 182, 0.05);
  transition: var(--transition);
}

.exit-card:hover {
  background: var(--white);
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.exit-card h5 {
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exit-card h5 i {
  color: var(--primary-light);
}

.exit-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Exit Card Accordion styles */
.exit-card-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-top: 16px;
  transition: var(--transition);
}

.exit-card-toggle:hover {
  color: var(--primary-dark);
}

.exit-card-toggle i {
  transition: transform 0.3s ease;
}

.exit-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
}


/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 50px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.faq-question i {
  color: var(--primary-light);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p, .faq-answer ol {
  padding: 0 24px 24px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.faq-answer strong {
  color: var(--primary-dark);
}

.faq-answer ol {
  padding-left: 20px;
  margin-top: 10px;
}

.faq-answer ol li {
  margin-bottom: 12px;
}

.faq-answer ol li:last-child {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .flow-step {
    flex-direction: column;
    gap: 24px;
  }
  .flow-card-image {
    width: 100%;
    height: 240px;
  }
  .flow-exits {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .flow-container::before {
    left: 20px;
  }
  .flow-step {
    padding: 24px 20px 24px 45px;
  }
  .flow-details ul {
    grid-template-columns: 1fr;
  }
  .flow-header h3 {
    font-size: 18px;
  }
}

/* Simulation Section Grid */
.simulation-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}

.simulation-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.simulation-grid-3 > div,
.simulation-grid-2 > div {
  padding: 32px 20px !important;
}

@media (max-width: 992px) {
  .simulation-grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .simulation-grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .simulation-grid-3 > div,
  .simulation-grid-2 > div {
    padding: 40px !important;
  }
}

/* Da Nang Charm Section */
#danang-charm {
  position: relative;
  overflow: hidden;
}

.charm-wrapper {
  margin-top: 48px;
}

.charm-item {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 88px;
}

.charm-item.reverse {
  flex-direction: row-reverse;
}

.charm-image-wrapper {
  flex: 1.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 12;
  background: var(--bg-light);
}

.charm-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.charm-image-wrapper:hover img {
  transform: scale(1.04);
}

.charm-content {
  flex: 0.9;
}

.charm-num {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary-light);
  opacity: 0.25;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-secondary);
}

.charm-content h3 {
  font-size: 28px;
  color: var(--primary-dark);
  margin-bottom: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.charm-content p {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0;
}

/* Infra Section inside Charm */
.charm-infra-section {
  margin-top: 96px;
  border-top: 2px dashed var(--accent-soft);
  padding-top: 80px;
}

.charm-infra-section > h3 {
  text-align: center;
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 48px;
  font-weight: 700;
}

.charm-infra-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.infra-card {
  background: var(--white);
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-soft);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.infra-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.infra-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.infra-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.infra-card-content {
  padding: 32px 28px 40px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.infra-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 180, 216, 0.08);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.infra-card:hover .infra-icon {
  background: var(--primary);
  color: var(--white);
}

.infra-card h4 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.infra-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Responsive Styles for Charm Section */
@media (max-width: 992px) {
  .charm-item,
  .charm-item.reverse {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 64px;
  }
  
  .charm-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  
  .charm-content {
    width: 100%;
  }

  .charm-num {
    font-size: 48px;
  }

  .charm-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .charm-infra-section {
    margin-top: 64px;
    padding-top: 60px;
  }

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

  .infra-card {
    padding: 0;
  }
}

/* Common Price Banner */
.common-price-banner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 248, 255, 0.95) 100%);
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.common-price-banner .price-header {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.common-price-banner .price-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.common-price-banner .price-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0 8px;
}

.common-price-banner .price-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--accent-soft);
}

.common-price-banner .price-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.common-price-banner .price-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.common-price-banner .price-unit {
  font-size: 16px;
  font-weight: 700;
  margin-left: 2px;
}

.common-price-banner .price-tax {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
  line-height: 1.4;
}

.common-price-banner .price-badge {
  position: absolute;
  top: 12px;
  right: -35px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 4px 35px;
  transform: rotate(45deg);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
  .common-price-banner {
    max-width: 700px;
  }
  .common-price-banner .price-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
  .common-price-banner .price-item:not(:last-child)::after {
    display: none;
  }
  .common-price-banner .price-label {
    height: auto;
    margin-bottom: 6px;
  }

  /* Substance Flow Intro Responsive Adjustment */
  .substance-intro {
    flex-direction: column;
    gap: 0;
  }
  .substance-intro-image {
    width: 100%;
    height: 280px;
    min-height: auto;
  }
  .substance-intro-content {
    width: 100%;
    padding: 32px 24px;
  }
}

@media (max-width: 576px) {
  .common-price-banner {
    padding: 24px 16px;
  }
  .common-price-banner .price-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .common-price-banner .price-item:not(:last-child)::after {
    display: block;
    content: "";
    position: absolute;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    top: auto;
    width: 50px;
    height: 1px;
    background: var(--accent-soft);
  }
  .common-price-banner .price-value {
    font-size: 28px;
  }
  .common-price-banner .price-badge {
    top: 8px;
    right: -40px;
    font-size: 9px;
  }

  /* Visual Images Height Optimization for Mobile Viewports */
  .inheritance-visual,
  .compound-visual,
  .school-intro-image,
  .about-proposal-image,
  .substance-intro-image {
    height: 200px !important;
  }

  /* Padding Adjustments to Optimize Screen Space */
  .plan-card,
  .detail-card-body,
  .tour-card,
  .contact-wrapper,
  .substance-intro-content {
    padding: 24px 16px !important;
  }

  .trouble-card {
    flex-direction: column;
    gap: 16px;
    padding: 24px 16px !important;
  }
  .trouble-card-icon {
    margin-bottom: 0;
  }

  .faq-question {
    padding: 20px 16px !important;
  }
  .faq-answer p,
  .faq-answer ol {
    padding: 0 16px 20px 16px !important;
  }

  .flow-card-image {
    height: 180px !important;
  }

  /* Preconditions grid layout override on mobile */
  .conditions-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 375px) {
  .btn-header {
    padding: 6px 10px;
    font-size: 11px;
  }
  .logo {
    font-size: 16px;
  }
}

/* Custom Scrollbar and Momentum Scrolling for Horizontal Tables */
.table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-container::-webkit-scrollbar {
  height: 6px;
}
.table-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
.table-container::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 3px;
}

/* Tour Showcase styles */
.tour-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: 56px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--accent);
  overflow: hidden;
  align-items: stretch;
}

.tour-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 24px;
  background: var(--bg-light);
  height: 100%;
  align-content: center;
}

.tour-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
}

.tour-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.tour-gallery-item span {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(10, 37, 64, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

@media (max-width: 992px) {
  .tour-showcase {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tour-details {
    padding: 32px 24px !important;
  }
  .tour-gallery {
    padding: 16px;
  }
}

@media (max-width: 576px) {
  .tour-gallery {
    grid-template-columns: 1fr;
  }
  .flex-column-mobile {
    flex-direction: column;
    align-items: stretch !important;
  }
}

/* ==========================================================================
   Mobile Optimization Styles
   ========================================================================== */

/* PC表示では非表示にする要素 */
.show-on-mobile {
  display: none !important;
}

/* スマホ用アコーディオンボタンスタイル */
.accordion-btn {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary-light);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  transition: all 0.3s ease;
}

.accordion-btn:hover {
  background: var(--primary);
}

@media (max-width: 992px) {
  .hide-on-mobile {
    display: none !important;
  }
  .show-on-mobile {
    display: block !important;
  }
  .show-on-mobile-flex {
    display: flex !important;
  }

  /* スマホ用アコーディオンコンテンツのトグルスタイル */
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
  }

  .accordion-content.open {
    max-height: 2500px; /* 十分な高さを確保 */
    opacity: 1;
    margin-top: 16px;
  }

  /* 【重要】イメージ画像がスマホの1画面を占拠するのを防ぐ高さ制限 */
  .tour-gallery-item {
    aspect-ratio: 16/9 !important; /* 横長にして高さを抑える */
  }

  /* お悩み夫婦・コンシェルジュ・生前贈与ファミリー・ヨットの画像コンテナの高さ制限 */
  .inheritance-visual,
  .compound-visual,
  .school-intro-image,
  .substance-intro-visual {
    width: 100% !important;
    height: 180px !important; /* 縦幅を180pxに固定制限し、画像とテキストをセットで1画面に収める */
    min-height: 180px !important;
  }

  /* 各種カード内の画像ヘッダー（インフラカード、強み・リスク対策カードなど） */
  .infra-card-image,
  .detail-card-image {
    height: 140px !important; /* 高さを140pxにコンパクト化 */
    min-height: 140px !important;
  }

  /* ロードマップ（ステップ1〜3）の画像コンテナ */
  .flow-image-container {
    width: 100% !important;
    height: 150px !important; /* 高さを150pxにコンパクト化 */
    min-height: 150px !important;
  }

  /* 余白の最適化（1画面内での表示比率を上げるための余白削減） */
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  section {
    padding: 48px 0 !important; /* セクション全体の上下の余白を縮小 */
  }

  /* スマホ表示時のヘッダー余白設定 */
  header {
    padding: 12px 0 !important;
  }

  /* スマホ表示時、かつ固定ヘッダー（.sticky）になっている場合のコンパクト化 */
  header.sticky {
    padding: 8px 0 !important; /* さらにコンパクトにするため 8px に縮小 */
  }
  header.sticky .header-container {
    gap: 8px !important;
  }
  header.sticky .logo {
    font-size: 14.5px !important;
  }
  header.sticky .btn-header {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
  header.sticky nav {
    padding: 2px 0 !important;
    margin-top: 2px !important;
  }
  header.sticky nav a {
    font-size: 11.5px !important;
    padding: 4px 10px !important;
  }

  /* Uniqueness Section Mobile Styles */
  .uniqueness-box {
    padding: 40px 24px !important;
  }
  .uniqueness-header h2 {
    font-size: 20px !important;
  }
  .uniqueness-header p {
    font-size: 14.5px !important;
  }
  .uniqueness-content-grid {
    gap: 24px !important;
  }
  .uniqueness-footer-flex {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
  }
  .uniqueness-footer-flex div {
    text-align: center !important;
  }
}

/* Simulation Accordion */
.simulation-detail-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--primary-dark);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  transition: all 0.3s ease;
  outline: none;
  margin-top: 8px;
}
.simulation-detail-btn i {
  transition: transform 0.3s ease;
}
.simulation-detail-btn:hover {
  background: rgba(0, 180, 216, 0.05);
  border-color: var(--primary-light);
}

.simulation-detail-btn.gray-btn {
  border-color: #dee2e6;
  color: var(--text-muted);
}
.simulation-detail-btn.gray-btn:hover {
  background: #f8f9fa;
  border-color: #ced4da;
  color: var(--text-main);
}


.simulation-detail-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

/* Simulator Preset Buttons */
.sim-preset-btn {
  background: var(--white);
  border: 1px solid var(--primary-light);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.sim-preset-btn:hover {
  background: var(--accent-soft);
  color: var(--primary-dark);
}
.sim-preset-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.highlight-num {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--primary);
  margin: 0 1px;
}

/* Unified Uniqueness & Scheme Overview Section */
.uniqueness-scheme-grid {
  display: flex;
  gap: 48px;
  align-items: stretch;
  margin-bottom: 48px;
}

.uniqueness-scheme-image {
  flex: 1.1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.uniqueness-scheme-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.uniqueness-scheme-image:hover img {
  transform: scale(1.03);
}

.uniqueness-scheme-cards {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.uniqueness-mini-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.uniqueness-mini-card:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.06);
}

.uniqueness-mini-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

.uniqueness-mini-card h4 i {
  color: var(--accent);
  font-size: 18px;
}

.uniqueness-mini-card p {
  font-size: 14.2px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Accordion QA Styles inside uniqueness-box */
.scheme-qa-container {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scheme-qa-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.scheme-qa-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 180, 216, 0.3);
}

.scheme-qa-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 28px;
  text-align: left;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.scheme-qa-btn span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scheme-qa-btn span .q-num {
  font-family: 'Outfit', sans-serif;
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
}

.scheme-qa-btn > i {
  transition: transform 0.3s ease;
  color: var(--accent);
  font-size: 18px;
  margin-left: 16px;
}

.scheme-qa-btn.open > i {
  transform: rotate(180deg);
}

.scheme-qa-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.scheme-qa-content.open {
  max-height: 1000px;
  opacity: 1;
}

.scheme-qa-answer {
  padding: 0 28px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.85);
}

.scheme-qa-answer p {
  margin: 0 0 16px 0;
}

.scheme-qa-answer p:last-child {
  margin-bottom: 0;
}

.scheme-qa-answer strong {
  color: var(--white);
  font-weight: 700;
}

.scheme-qa-answer .alert-box {
  padding: 16px;
  background: rgba(217, 119, 6, 0.08);
  border-left: 4px solid #d97706;
  border-radius: 4px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.scheme-qa-answer .alert-box strong {
  color: #fbbf24;
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 992px) {
  .uniqueness-scheme-grid {
    flex-direction: column;
    gap: 24px;
  }
  .uniqueness-scheme-image {
    width: 100%;
    height: 240px;
  }
  .uniqueness-scheme-cards {
    gap: 16px;
  }
  .uniqueness-mini-card {
    padding: 20px;
  }
  .scheme-qa-btn {
    padding: 18px 20px;
    font-size: 14.5px;
  }
  .scheme-qa-answer {
    padding: 0 20px 20px 20px;
    font-size: 13.5px;
  }
}


/* Step Cards with inline details */
.scheme-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  padding: 32px;
  text-align: left;
  transition: all 0.3s ease;
}

.scheme-step-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(0, 180, 216, 0.3);
}

.step-detail-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.step-detail-content.open {
  max-height: 1000px !important;
  opacity: 1 !important;
}

.step-detail-btn.open > i {
  transform: rotate(180deg);
}

.step-detail-btn:hover {
  background: rgba(0, 180, 216, 0.05) !important;
  border-color: var(--primary-light) !important;
}

@media (max-width: 768px) {
  .scheme-step-card {
    padding: 24px !important;
  }
}

/* Adjustments for step cards grid and images for 13-inch PC and mobile compatibility */
.scheme-step-card-grid {
  display: flex;
  gap: 32px;
  align-items: center; /* Vertically center the text content next to the larger images */
}

.scheme-step-card-image {
  flex: 0 0 350px; /* Even larger image as requested, highly prominent */
  width: 350px;
  height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.scheme-step-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scheme-step-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Premise check (Step 0) card styles - Centered layout with large image */
.premise-box {
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.2);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.premise-title {
  font-size: 26px; /* Larger title font as requested */
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.premise-title i {
  font-size: 28px;
}

.premise-image-centered {
  width: 600px; /* Even larger centered image for ultimate celebration impact */
  height: 600px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 180, 216, 0.3);
  box-shadow: 0 8px 30px rgba(0, 180, 216, 0.25);
}

.premise-image-centered img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive adjustments for mid-size monitors/tablets (between 769px and 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .scheme-step-card-image {
    flex: 0 0 260px;
    width: 260px;
    height: 260px;
  }
  .premise-image-centered {
    width: 440px;
    height: 440px;
  }
}

@media (max-width: 768px) {
  .scheme-step-card-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .scheme-step-card-image {
    flex: 0 0 auto;
    width: 100%;
    height: 260px; /* Slightly taller on mobile since images are now larger */
  }
  .premise-image-centered {
    width: 100%;
    height: 360px; /* Fluid width and height on mobile */
  }
  .premise-title {
    font-size: 20px; /* Scale down on mobile for clean wrapping */
    gap: 8px;
  }
  .premise-title i {
    font-size: 22px;
  }
}
