/* ==========================================================================
   Vision Page Styles (ハビタスの想い)
   ========================================================================== */

.vision-page {
  background-color: #F7F7F7;
  color: #333333;
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  margin-top: 60px;
}

/* 共通ユーティリティ */
.vision-page h2 {
  font-size: 25px;
  font-weight: 700;
  color: #333333;
  margin: 0;
}

/* 共通セクションヘッダー装飾 */
.section-header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
}


.section-head h3 {
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  margin-bottom: 20px;
}

@media screen and (min-width: 768px) {
  .section-head h3 {
    font-size: 24px;
  }
}

.section-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f39a7c;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  text-align: center;
}

.vision-page h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333333;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 10px;
  text-align: center;
}

.vision-page h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  /* background: linear-gradient(to right, #f39a7c, #FFBA7C); */
  background-color: #f39a7c;
  border-radius: 2px;
}

.vision-page p {
  font-size: 16px;
  color: #333333;
}

@media screen and (min-width: 768px) {
  .vision-page h2 {
    font-size: 32px;
  }
}

/* 1. MV SECTION */
.vision-mv {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px;
}

.vision-mv-bg {
  width: 100%;
}

.vision-mv-bg-img {
  display: none;
}

.vision-mv-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2.& 3. MIDDLE WRAPPER (Animated Canvas Wave Architecture) */
.middle-sections-wrapper {
  position: relative;
  width: 100%;
  padding: 45px 0;
  margin-top: 70px;
  margin-bottom: 60px;
  background-color: #ffe8df;
  z-index: 1;
}

/* キャンバスによる波の共通スタイル */
.wave-canvas {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none; /* クリック等を透過させる */
  z-index: -1; /* コンテンツより背面に配置 */
}

.vision-mv h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333333;
}

@media screen and (min-width: 768px) {
  .vision-mv {
    padding: 90px 20px 40px;
  }
  .vision-mv h1 {
    font-size: 40px;
  }
  .mv-lead {
    font-size: 20px !important;
  }
  .middle-sections-wrapper {
    padding: 45px 0;
    margin-top: 120px;
  }
}



/* UTILITY CLASSES */
.text-orange {
  color: #FF6733;
}
.font-bold {
  font-weight: 700;
}

/* 2. WHY NOT CONTINUE? */
.vision-prob {
  padding: 40px 20px;
}

.vision-prob-inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.vision-prob h2 {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 25px;
  text-align: left;
}

.vision-prob-text p {
  text-align: left;
  line-height: 1.8;
}

.vision-prob-image img {
  max-width: 100%;
  border-radius: 12px;
  animation: worryShake 4s ease-in-out infinite;
}

@keyframes worryShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px) rotate(-0.5deg); }
  20%, 40%, 60%, 80% { transform: translateX(1px) rotate(0.3deg); }
}

@media screen and (min-width: 768px) {
  .vision-prob-inner {
    flex-direction: row;
    gap: 40px;
    align-items: center;
  }
  .vision-prob-text {
    flex: 1;
  }
  .vision-prob-image {
    flex: 0.9;
  }
  .vision-prob h2 {
    font-size: 26px;
  }
}

/* 3. GAPS */
.vision-gaps {
  padding: 70px 20px 0;
  max-width: 1024px;
  margin: 0 auto;
  text-align: center;
}

.gaps-lead {
  margin-bottom: 45px;
  line-height: 1.8;
}

.gaps-bottom-text {
  margin-top: 50px;
  line-height: 2.0;
  text-align: center;
}

.gaps-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.gaps-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* .gaps-card-icon-wrap removed as not used anymore */

/* CSSプログラムによるアイコン */
.gaps-icon-css {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

/* アプリ（スマホ）アイコン */
.icon-app {
  width: 14px;
  height: 24px;
  border: 1.5px solid #077290;
  border-radius: 3px;
  background: transparent;
}
.icon-app::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border: 1px solid #077290;
  border-radius: 50%;
}

/* パーソナル（人）アイコン */
.icon-personal {
  width: 20px;
  height: 20px;
}
.icon-personal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border: 1.5px solid #E23750;
  border-radius: 50%;
}
.icon-personal::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 7px;
  border: 1.5px solid #E23750;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.gaps-card-content {
  text-align: left;
  flex: 1;
}

.gaps-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.gaps-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
}

.app-badge {
  background: #D4F1F8;
  color: #077290;
}

.personal-badge {
  background: #FFE5E7;
  color: #E23750;
}

@media screen and (min-width: 768px) {
  .gaps-cards {
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
  }
  .gaps-card {
    flex: 1;
    padding: 40px;
  }
  .icon-app {
    width: 18px;
    height: 30px;
  }
  .icon-app::after {
    width: 4px;
    height: 4px;
  }
  .icon-personal::before {
    width: 9px;
    height: 9px;
  }
  .icon-personal::after {
    width: 20px;
    height: 9px;
  }
  .gaps-badge-wrap {
    text-align: left;
  }
}

/* 4. THIRD SPACE */
.vision-thirdspace {
  padding: 130px 20px 40px;
  background-color: #F7F7F7;
  display: flex;
  justify-content: center;
}

.thirdspace-inner {
  max-width: 1024px;
  width: 100%;
  background: #fff5f0;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.thirdspace-icon {
  width: 100px;
  position: absolute;
  top: -125px;
  left: 50%;
  transform: translateX(-50%);
  animation: floatY 3s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-15px);
  }
}

.thirdspace-text p {
  color: #FF6733;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
}

@media screen and (min-width: 768px) {
  .thirdspace-inner {
    padding: 30px;
  }
  .thirdspace-text p {
    font-size: 22px;
  }
  .vision-thirdspace {
    padding: 230px 20px 60px;
  }
}

/* 5. VALUES */
.vision-values {
  padding: 20px 0px 100px 0;
  background-color: #F7F7F7;
}

.values-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

/* .values-header refactored to .section-header */

.values-flex {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.values-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.value-card {
  background: #FFFFFF;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.value-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.value-title-blue {
  color: #077290;
}

.value-title-pink {
  color: #E23750;
}

.values-visual {
  width: 100%;
  max-width: 500px;
}

.values-visual-img {
  width: 100%;
  height: auto;
  display: block;
}

.vision-values-bottom {
  background: #fff5f0;
  padding: 60px 20px;
  width: 100%;
}

.values-bottom-text {
  text-align: center;
  max-width: 1024px;
  margin: 0 auto;
}

.values-bottom-text p {
  color: #FF6733;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.85;
}

@media screen and (min-width: 1024px) {
  .values-flex {
    flex-direction: row;
    align-items: center;
    gap: 60px;
  }
  .values-cards {
    flex: 1;
  }
  .values-visual {
    flex: 1;
    max-width: none;
  }
}

@media screen and (min-width: 768px) {
  .vision-values-bottom {
    padding: 70px 20px;
  }
  .value-card {
    padding: 30px;
  }
  .value-title {
    font-size: 24px;
  }
  .values-bottom-text p {
    font-size: 22px;
  }
}

/* 6. ORIGIN */
.vision-origin {
  padding: 80px 0;
  background-color: #F7F7F7;
}

.origin-top {
  text-align: center;
  padding: 0 20px;
  max-width: 1024px;
  margin: 0 auto 40px;
}

.origin-logo {
  max-width: 220px;
  border-radius: 5px; 
}

.origin-top h2 {
  color: #333333;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.origin-content {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 20px;
}

.origin-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.origin-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.origin-illustration img {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain; /* アスペクト比を維持して収める */
  object-position: bottom; /* 下側で揃える */
}

.origin-label {
  display: block;
  max-width: 80%;
  box-sizing: border-box;
  background: #F39A7C;
  color: #FFFFFF;
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 700;
  margin-top: 20px;
  text-align: center;
}

.origin-label-yellow {
  background: #F3BA7C;
}

.origin-text {
  max-width: 500px;
  padding: 0 10px;
}

.origin-text p {
  line-height: 1.8;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .origin-content {
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
  }
  .origin-item {
    flex: 1;
    gap: 20px;
  }
  .origin-top h2 {
    font-size: 26px;
  }
  .origin-label {
    padding: 15px 20px;
    font-size: 18px;
  }
}

/* 7. CHARACTER */
.vision-character {
  padding: 80px 20px 100px;
  background-color: #fff5f0;
}

.character-wrapper {
  max-width: 1024px;
  margin: 0 auto;
}

.character-wrapper h2 {
  margin-bottom: 30px;
  color: #333333;
}

.character-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.character-img img {
  max-width: 250px;
  width: 100%;
  height: auto;
}

.character-desc {
  max-width: 600px;
}

.character-desc h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.character-desc p {
  line-height: 1.8;
}

@media screen and (min-width: 768px) {
  .character-wrapper {
    padding: 0 40px;
  }
  .character-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
  }
  .character-img img {
    max-width: 400px;
  }
}

