/**
 * Finance Brain - Main Stylesheet
 * Design inspired by mc-dream.com - Clean, sophisticated corporate design
 */

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */

:root {
  --ease-primary: cubic-bezier(0.26, 0.06, 0, 1);
  --ease-sharp: cubic-bezier(0.43, 0.05, 0.17, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);

  --color-text: #222;
  --color-text-light: #666;
  --color-text-lighter: #999;
  --color-accent: #0066cc;
  --color-bg-white: #fff;
  --color-bg-light: #f5f5f5;
  --color-bg-dark: #1e2a3a;
  --color-border: rgba(0, 0, 0, 0.08);

  --header-height: 90px;
  --mv-inset: 16px;
  --section-padding: clamp(80px, 10vw, 140px);
  --container-width: 1200px;

  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ja: 'Noto Sans JP', '游ゴシック体', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
}

/* ============================================
   2. BASE STYLES
   ============================================ */

body {
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
  background-color: var(--color-bg-white);
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.4s var(--ease-primary);
}

a:hover {
  opacity: 0.6;
  transition-duration: 0s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   3. LOADING SCREEN
   ============================================ */

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-primary), visibility 0.6s var(--ease-primary);
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__inner {
  text-align: center;
}

.loading__logo {
  width: 260px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.6s var(--ease-smooth) backwards;
}

.loading__logo img {
  width: 100%;
  height: auto;
}

.loading__progress {
  width: 200px;
  height: 2px;
  background: #eee;
  margin: 0 auto;
  overflow: hidden;
  animation: fadeIn 0.4s var(--ease-smooth) 0.3s backwards;
}

.loading__progress-bar {
  display: block;
  height: 100%;
  background: var(--color-accent);
  transition: width 0.3s var(--ease-primary);
  width: 0%;
}

/* ============================================
   4. HEADER
   ============================================ */

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color 0.5s var(--ease-primary),
              box-shadow 0.5s var(--ease-primary),
              color 0.5s var(--ease-primary);
}

/* Header always has dark text since MV is inset with white background */
.l-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.l-header__inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-header__logo a {
  display: flex;
  align-items: center;
}

.l-header__logo img {
  height: 48px;
  width: auto;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.l-header__nav-link {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

.l-header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text);
  transition: width 0.4s var(--ease-primary);
}

.l-header__nav-link:hover {
  opacity: 1;
}

.l-header__nav-link:hover::after {
  width: 100%;
}

@media screen and (max-width: 1024px) {
  .l-header {
    height: 60px;
  }
  .l-header__inner {
    padding: 0 20px;
  }
  .l-header__logo img {
    height: 32px;
  }
  .l-header__nav {
    display: none;
  }
}

/* ============================================
   5. HAMBURGER MENU
   ============================================ */

.c-hamburger {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.c-hamburger__bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text);
  transition: all 0.4s var(--ease-primary);
}

.c-hamburger__bar:nth-child(1) { top: 0; }
.c-hamburger__bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.c-hamburger__bar:nth-child(3) { bottom: 0; }

.c-hamburger.is-active .c-hamburger__bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.c-hamburger.is-active .c-hamburger__bar:nth-child(2) {
  opacity: 0;
}
.c-hamburger.is-active .c-hamburger__bar:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

@media screen and (max-width: 1024px) {
  .c-hamburger {
    display: block;
  }
}

/* ============================================
   6. MOBILE NAVIGATION
   ============================================ */

.l-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
}

.l-mobile-nav.is-active {
  pointer-events: all;
}

.l-mobile-nav__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s var(--ease-primary);
}

.l-mobile-nav.is-active .l-mobile-nav__overlay {
  opacity: 1;
}

.l-mobile-nav__inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: var(--color-bg-white);
  padding: 100px 40px 60px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-sharp);
  overflow-y: auto;
}

.l-mobile-nav.is-active .l-mobile-nav__inner {
  transform: translateX(0);
}

.l-mobile-nav__list {
  list-style: none;
}

.l-mobile-nav__item {
  border-bottom: 1px solid var(--color-border);
}

.l-mobile-nav__link {
  display: block;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ============================================
   7. HERO SECTION
   ============================================ */

.p-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  padding: var(--header-height) var(--mv-inset) var(--mv-inset);
  background-color: var(--color-bg-white);
  box-sizing: border-box;
}

.p-hero__bg {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.p-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: heroZoom 1.5s var(--ease-primary) forwards;
  transform: scale(1.08);
}

.p-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(15, 30, 60, 0.50) 0%,
    rgba(15, 30, 60, 0.35) 50%,
    rgba(15, 30, 60, 0.60) 100%
  );
}

.p-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 clamp(20px, 5vw, 80px) clamp(40px, 6vh, 80px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  will-change: opacity, transform;
}

.p-hero__text-area {
  color: #fff;
}

.p-hero__title {
  font-family: var(--font-ja);
  font-size: clamp(36px, 7vw, 80px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.5s forwards;
}

.p-hero__subtitle {
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.8s forwards;
}

/* Scroll indicator */
.p-hero__scroll {
  flex-shrink: 0;
  margin-left: 40px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-smooth) 1.2s forwards;
}

.p-hero__scroll-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.p-hero__scroll-text {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.p-hero__scroll-arrow {
  display: block;
  animation: scrollArrow 1.8s ease-in-out infinite;
}

@media screen and (max-width: 767px) {
  .p-hero {
    min-height: 500px;
  }
  .p-hero__scroll {
    display: none;
  }
}

/* ============================================
   8. LAYOUT SECTIONS
   ============================================ */

.l-section {
  padding: var(--section-padding) 0;
}

.l-section--light {
  background-color: var(--color-bg-light);
}

.l-section__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* Section Title Component */
.p-section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.p-section-title--center {
  text-align: center;
}

.p-section-title__line {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 16px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--ease-smooth) 0.3s;
}

.p-section-title__line.is-visible,
.is-visible .p-section-title__line {
  transform: scaleX(1);
}

.p-section-title__line--center {
  margin-left: auto;
  margin-right: auto;
  transform-origin: center;
}

/* ============================================
   9. NEWS SECTION
   ============================================ */

.p-news__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.p-news__header {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.p-news__heading {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 32px;
}

.p-news__more-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.p-news__more-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 13px;
  transition: all 0.4s var(--ease-primary);
}

.p-news__more-link:hover .p-news__more-circle {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.p-news__more-link:hover {
  opacity: 1;
}

.p-news__list {
  list-style: none;
}

.p-news__item {
  border-bottom: 1px solid var(--color-border);
}

.p-news__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  transition: transform 0.3s var(--ease-primary), opacity 0.3s;
}

.p-news__link:hover {
  opacity: 1;
  transform: translateX(4px);
}

.p-news__date {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-text-light);
  min-width: 100px;
  letter-spacing: 0.04em;
}

.p-news__category {
  display: inline-block;
  padding: 2px 14px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  min-width: 80px;
  text-align: center;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.p-news__title {
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

@media screen and (max-width: 767px) {
  .p-news__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-news__header {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .p-news__heading {
    margin-bottom: 0;
  }
  .p-news__link {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 20px 0;
  }
  .p-news__title {
    width: 100%;
    flex: none;
  }
}

/* ============================================
   10. PHILOSOPHY / BUSINESS - 2-Column Blocks
   ============================================ */

.p-philosophy__block,
.p-business__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.p-philosophy__image-wrapper,
.p-business__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.p-philosophy__image-wrapper img,
.p-business__image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease-primary);
}

.p-philosophy__image-wrapper:hover img,
.p-business__image-wrapper:hover img {
  transform: scale(1.03);
}

.p-philosophy__lead,
.p-business__lead {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--color-text-lighter);
  line-height: 1.8;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.p-philosophy__desc,
.p-business__desc {
  font-size: 15px;
  line-height: 2;
  margin-top: 20px;
  color: var(--color-text);
}

/* Arrow Link */
.c-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.c-arrow-link__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 14px;
  transition: all 0.4s var(--ease-primary);
}

.c-arrow-link:hover {
  opacity: 1;
}

.c-arrow-link:hover .c-arrow-link__circle {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.c-arrow-link--white .c-arrow-link__circle {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.c-arrow-link--white:hover .c-arrow-link__circle {
  background: #fff;
  color: var(--color-bg-dark);
  border-color: #fff;
}

.c-arrow-link--white .c-arrow-link__text {
  color: #fff;
}

@media screen and (max-width: 767px) {
  .p-philosophy__block,
  .p-business__block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================
   11. BUSINESS DETAIL CARDS
   ============================================ */

.p-business__details {
  margin-top: clamp(60px, 8vw, 120px);
}

.p-business__detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 5vw, 80px) 0;
  border-bottom: 1px solid var(--color-border);
}

.p-business__detail-item:first-child {
  border-top: 1px solid var(--color-border);
}

.p-business__detail-item--reverse {
  direction: rtl;
}

.p-business__detail-item--reverse > * {
  direction: ltr;
}

.p-business__detail-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.p-business__detail-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease-primary);
}

.p-business__detail-item:hover .p-business__detail-image img {
  transform: scale(1.03);
}

.p-business__detail-number {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.p-business__detail-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}

.p-business__detail-text {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
}

@media screen and (max-width: 767px) {
  .p-business__detail-item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }
  .p-business__detail-item--reverse {
    direction: ltr;
  }
}

/* ============================================
   12. SERVICES SECTION
   ============================================ */

.p-services__header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.p-services__subtitle {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 24px;
}

.p-services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}

.p-services__card {
  background: var(--color-bg-white);
  border-radius: 12px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s var(--ease-primary), box-shadow 0.4s var(--ease-primary);
}

.p-services__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.p-services__card-icon {
  margin-bottom: 24px;
}

.p-services__card-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

.p-services__list {
  list-style: none;
}

.p-services__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.p-services__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

@media screen and (max-width: 767px) {
  .p-services__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   13. STAFF SECTION
   ============================================ */

.p-staff-section {
  padding: 0;
}

.p-staff-section__bg {
  background: var(--color-bg-dark);
  border-radius: clamp(16px, 2vw, 24px);
  margin: 0 clamp(16px, 2vw, 24px);
  padding: var(--section-padding) 0;
  color: #fff;
}

.p-staff__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.p-staff__heading {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 40px;
}

.p-staff__role {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.p-staff__name {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  margin-bottom: 24px;
}

.p-staff__credentials {
  margin-bottom: 24px;
}

.p-staff__credentials p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.p-staff__bio {
  margin-bottom: 32px;
}

.p-staff__bio p {
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.7);
}

.p-staff__image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.p-staff__image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  .p-staff-section__bg {
    border-radius: 12px;
    margin: 0 12px;
  }
  .p-staff__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .p-staff__image-area {
    order: -1;
  }
}

/* ============================================
   14. PARTNERS SECTION
   ============================================ */

.p-partners__header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.p-partners__category {
  margin-bottom: clamp(40px, 4vw, 64px);
}

.p-partners__category:last-child {
  margin-bottom: 0;
}

.p-partners__category-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.04em;
}

.p-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.p-partners__item {
  background: var(--color-bg-white);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 3;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s var(--ease-primary), box-shadow 0.3s var(--ease-primary);
}

.p-partners__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.p-partners__item img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

@media screen and (max-width: 1024px) {
  .p-partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .p-partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   15. COMPANY INFO SECTION
   ============================================ */

.p-company__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.p-company__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}

.p-company__table tr {
  border-bottom: 1px solid var(--color-border);
}

.p-company__table th {
  text-align: left;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  width: 120px;
  vertical-align: top;
  color: var(--color-text);
}

.p-company__table td {
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.p-company__map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  min-height: 450px;
  height: 100%;
  position: relative;
}

.p-company__map iframe {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: block;
}

@media screen and (max-width: 767px) {
  .p-company__layout {
    grid-template-columns: 1fr;
  }
  .p-company__map {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================
   16. CONTACT SECTION
   ============================================ */

.p-contact__header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.p-contact__subtitle {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 24px;
  line-height: 2;
}

.p-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 800px;
  margin: 0 auto;
}

.p-contact__card {
  background: var(--color-bg-light);
  border-radius: 12px;
  padding: clamp(32px, 4vw, 48px);
  text-align: center;
  transition: transform 0.4s var(--ease-primary), box-shadow 0.4s var(--ease-primary);
}

.p-contact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.p-contact__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.p-contact__card-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  margin-bottom: 12px;
}

.p-contact__card-text {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Button */
.c-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease-primary);
  letter-spacing: 0.04em;
}

.c-button--primary {
  background: var(--color-text);
  color: #fff;
  border: none;
}

.c-button--primary:hover {
  opacity: 1;
  background: #444;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 767px) {
  .p-contact__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   17. FOOTER
   ============================================ */

.l-footer {
  background: var(--color-bg-light);
  color: var(--color-text);
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
}

.l-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.l-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(32px, 4vw, 60px);
  border-bottom: 1px solid var(--color-border);
}

.l-footer__logo {
  margin-bottom: 20px;
}

.l-footer__logo img {
  height: 80px;
  width: auto;
}

.l-footer__company-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.l-footer__address {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.l-footer__nav-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.l-footer__section-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.l-footer__list {
  list-style: none;
}

.l-footer__list li {
  margin-bottom: 8px;
}

.l-footer__link {
  font-size: 13px;
  color: var(--color-text-light);
}

.l-footer__social {
  display: flex;
  gap: 12px;
}

.l-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-border);
  border-radius: 50%;
  transition: all 0.3s var(--ease-primary);
}

.l-footer__social-link:hover {
  opacity: 1;
  background: var(--color-text);
}

.l-footer__social-icon {
  width: 20px;
  height: 20px;
}

.l-footer__social-link:hover .l-footer__social-icon {
  filter: brightness(0) invert(1);
}

.l-footer__bottom {
  text-align: center;
  padding-top: clamp(24px, 3vw, 40px);
  font-size: 12px;
  color: var(--color-text-lighter);
  letter-spacing: 0.04em;
}

@media screen and (max-width: 767px) {
  .l-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .l-footer__nav-area {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ============================================
   18. SCROLL TO TOP
   ============================================ */

.c-scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--color-bg-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.4s var(--ease-primary);
  z-index: 998;
}

.c-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-scroll-top:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  transform: translateY(-4px);
}

/* ============================================
   19. ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes scrollArrow {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Scroll Reveal Animations - Smooth, refined transitions */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-smooth), transform 1s var(--ease-smooth);
  will-change: opacity, transform;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left (text elements) */
.js-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
  will-change: opacity, transform;
}

.js-reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right (text elements) */
.js-reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s var(--ease-smooth) 0.3s,
              transform 1s var(--ease-smooth) 0.3s;
  will-change: opacity, transform;
}

.js-reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children inside reveal-right (title, line, lead, desc, link) */
.js-reveal-right.is-visible .p-section-title {
  animation: staggerFadeUp 0.8s var(--ease-smooth) 0.1s both;
}
.js-reveal-right.is-visible .p-section-title__line {
  transform: scaleX(1);
  transition-delay: 0.5s;
}
.js-reveal-right.is-visible .p-philosophy__lead,
.js-reveal-right.is-visible .p-business__lead {
  animation: staggerFadeUp 0.8s var(--ease-smooth) 0.3s both;
}
.js-reveal-right.is-visible .p-philosophy__desc,
.js-reveal-right.is-visible .p-business__desc {
  animation: staggerFadeUp 0.8s var(--ease-smooth) 0.45s both;
}
.js-reveal-right.is-visible .c-arrow-link {
  animation: staggerFadeUp 0.8s var(--ease-smooth) 0.6s both;
}

@keyframes staggerFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   FEATURE SECTION - Sticky Image + Scrolling Text
   (mc-dream.com style)
   ============================================ */

.p-feature {
  position: relative;
  padding: 0;
}

.p-feature__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  gap: clamp(40px, 6vw, 100px);
}

.p-feature__image-col {
  flex: 0 0 40%;
  position: sticky;
  top: calc(var(--header-height) + 40px);
  height: fit-content;
  align-self: flex-start;
}

.p-feature__image-stack {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  aspect-ratio: 3 / 4;
}

.p-feature__image-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition: opacity 0.6s var(--ease-smooth),
              clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.p-feature__image-item.is-active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  z-index: 2;
}

.p-feature__image-item.is-exiting {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  z-index: 1;
}

.p-feature__text-col {
  flex: 1;
  padding: var(--section-padding) 0;
}

.p-feature__section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vh, 60px) 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.p-feature__section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.p-feature__section:first-child {
  padding-top: var(--section-padding);
}

.p-feature__section:last-child {
  padding-bottom: var(--section-padding);
}

.p-feature__lead {
  font-size: clamp(14px, 1.2vw, 16px);
  color: var(--color-text-lighter);
  line-height: 1.8;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.p-feature__desc {
  font-size: 15px;
  line-height: 2;
  margin-top: 20px;
  color: var(--color-text);
}

@media screen and (max-width: 767px) {
  .p-feature__inner {
    flex-direction: column;
    gap: 32px;
  }
  .p-feature__image-col {
    flex: none;
    position: relative;
    top: auto;
    width: 100%;
  }
  .p-feature__section {
    min-height: auto;
    padding: 32px 0;
  }
}

/* ============================================
   HORIZONTAL SCROLL - Business Details (scroll-linked card switch)
   ============================================ */
.p-hscroll {
  /* Each card gets ~150vh scroll distance */
  height: 450vh;
  position: relative;
}

.p-hscroll__sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(20px, 3vh, 40px) 0 0;
  box-sizing: border-box;
}

.p-hscroll__header {
  text-align: center;
  padding: 0 var(--content-padding);
  margin-bottom: clamp(16px, 2vw, 28px);
  flex-shrink: 0;
}

/* Track: relative container, cards stack on top */
.p-hscroll__track {
  position: relative;
  flex: 1;
  margin: 0 clamp(40px, 6vw, 100px);
}

/* Cards: absolutely positioned, stacked */
.p-hscroll__card {
  position: absolute;
  inset: 0 0 48px 0;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: row;
  will-change: transform, opacity, clip-path;
  /* Initially hidden */
  opacity: 0;
  transform: translateX(60px) scale(0.96);
  clip-path: inset(4% 4% 4% 4% round 16px);
  pointer-events: none;
}

/* Active card */
.p-hscroll__card.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  clip-path: inset(0% 0% 0% 0% round 16px);
  pointer-events: auto;
}

/* Exiting card (going out to the left) */
.p-hscroll__card.is-exiting {
  pointer-events: none;
}

.p-hscroll__card-image {
  flex: 0 0 45%;
  overflow: hidden;
}

.p-hscroll__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.p-hscroll__card-body {
  flex: 1;
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-hscroll__card-number {
  font-family: var(--font-en);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  will-change: transform, opacity;
}

.p-hscroll__card-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  margin: 12px 0 20px;
  will-change: transform, opacity;
}

.p-hscroll__card-text {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 2;
  color: var(--color-text-light);
  will-change: transform, opacity;
}

/* Progress dots */
.p-hscroll__progress {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 10;
  pointer-events: none;
}

.p-hscroll__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.4s ease, transform 0.4s ease, width 0.4s ease;
  cursor: pointer;
  pointer-events: auto;
}

.p-hscroll__dot.is-active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 5px;
}

/* Mobile: stack vertically, disable scroll-driven animation */
@media (max-width: 767px) {
  .p-hscroll {
    height: auto;
  }
  .p-hscroll__sticky {
    position: relative;
    height: auto;
    padding: var(--section-padding) 0;
  }
  .p-hscroll__track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 var(--content-padding);
  }
  .p-hscroll__card {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    clip-path: none;
    pointer-events: auto;
    flex-direction: column;
  }
  .p-hscroll__card-image {
    flex: none;
    aspect-ratio: 16 / 10;
  }
  .p-hscroll__progress {
    display: none;
  }
}

/* Partners card style */
.p-partners__card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  min-height: 80px;
}

.p-partners__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.p-partners__card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Staggered children delay */
.js-reveal:nth-child(2) { transition-delay: 0.15s; }
.js-reveal:nth-child(3) { transition-delay: 0.3s; }
.js-reveal:nth-child(4) { transition-delay: 0.45s; }
.js-reveal:nth-child(5) { transition-delay: 0.6s; }

/* Paired left/right reveal delay for 2-col layouts */
.js-reveal-group .js-reveal-right {
  transition-delay: 0.2s;
}

/* ============================================
   20. UTILITY & ACCESSIBILITY
   ============================================ */

body.is-menu-open {
  overflow: hidden;
}

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ============================================
   21. COMPREHENSIVE RESPONSIVE STYLES
   ============================================ */

/* Tablet (768px - 1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  :root {
    --header-height: 60px;
    --section-padding: clamp(60px, 8vw, 100px);
  }

  .l-header__inner {
    padding: 0 24px;
  }

  .l-section__inner {
    padding: 0 32px;
  }

  .p-hero__content {
    padding: 0 32px clamp(32px, 5vh, 60px);
  }

  .p-philosophy__block,
  .p-business__block {
    gap: 40px;
  }

  .p-business__detail-item {
    gap: 40px;
  }

  .p-staff__layout {
    gap: 40px;
  }

  .p-company__layout {
    gap: 40px;
  }

  .l-footer__top {
    gap: 40px;
  }

  .p-partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Small tablet / Large mobile (481px - 767px) */
@media screen and (max-width: 767px) {
  :root {
    --header-height: 56px;
    --section-padding: 60px;
  }

  body {
    font-size: 14px;
    line-height: 1.9;
  }

  .l-header__inner {
    padding: 0 16px;
  }

  .l-header__logo img {
    height: 28px;
  }

  .l-section__inner {
    padding: 0 20px;
  }

  /* Hero mobile */
  .p-hero {
    min-height: 100svh;
  }

  .p-hero__content {
    padding: 0 20px 40px;
  }

  .p-hero__title {
    font-size: clamp(32px, 10vw, 48px);
    letter-spacing: 0.05em;
  }

  .p-hero__subtitle {
    font-size: 13px;
    line-height: 1.8;
  }

  /* News mobile */
  .p-news__heading {
    font-size: 24px;
  }

  /* Section titles mobile */
  .p-section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  /* Philosophy / Business mobile */
  .p-philosophy__image-col,
  .p-business__image-col {
    order: -1;
  }

  .p-philosophy__lead,
  .p-business__lead {
    margin-top: 24px;
    padding-top: 24px;
    font-size: 14px;
  }

  .c-arrow-link {
    margin-top: 28px;
  }

  /* Business details mobile */
  .p-business__details {
    margin-top: 48px;
  }

  .p-business__detail-number {
    font-size: 11px;
  }

  .p-business__detail-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .p-business__detail-text {
    font-size: 13px;
  }

  /* Services mobile */
  .p-services__card {
    padding: 28px;
  }

  .p-services__card-title {
    font-size: 18px;
  }

  /* Staff mobile */
  .p-staff-section__bg {
    border-radius: 12px;
    margin: 0 12px;
    padding: 48px 0;
  }

  .p-staff__heading {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .p-staff__name {
    font-size: 22px;
  }

  .p-staff__credentials p {
    font-size: 12px;
  }

  .p-staff__bio p {
    font-size: 13px;
  }

  /* Partners mobile */
  .p-partners__item {
    padding: 16px;
  }

  /* Company mobile */
  .p-company__table {
    margin-top: 28px;
  }

  .p-company__table th {
    font-size: 13px;
    width: 90px;
    padding: 12px 0;
  }

  .p-company__table td {
    font-size: 13px;
    padding: 12px 0;
  }

  .p-company__map {
    min-height: 280px;
  }

  /* Contact mobile */
  .p-contact__subtitle {
    font-size: 13px;
  }

  .p-contact__card {
    padding: 28px;
  }

  .p-contact__card-title {
    font-size: 18px;
  }

  /* Footer mobile */
  .l-footer {
    padding: 40px 0 24px;
  }

  .l-footer__inner {
    padding: 0 20px;
  }

  .l-footer__logo img {
    height: 56px;
  }

  .l-footer__company-name {
    font-size: 13px;
  }

  .l-footer__nav-area {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .l-footer__section-title {
    font-size: 13px;
  }

  .l-footer__link {
    font-size: 12px;
  }

  /* Scroll to top mobile */
  .c-scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* Mobile nav adjustments */
  .l-mobile-nav__inner {
    padding: 80px 28px 48px;
    width: 280px;
  }

  .l-mobile-nav__link {
    font-size: 14px;
    padding: 16px 0;
  }
}

/* Extra small mobile (max-width: 480px) */
@media screen and (max-width: 480px) {
  .p-hero__title {
    font-size: 32px;
  }

  .p-hero__subtitle br {
    display: none;
  }

  .p-news__link {
    padding: 16px 0;
  }

  .p-news__date {
    font-size: 12px;
    min-width: 80px;
  }

  .p-news__category {
    font-size: 10px;
    padding: 2px 10px;
    min-width: 60px;
  }

  .p-news__title {
    font-size: 13px;
  }

  .p-partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .p-partners__item {
    padding: 12px;
    aspect-ratio: auto;
    min-height: 80px;
  }

  .l-footer__nav-area {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .p-company__table th {
    width: 80px;
    font-size: 12px;
  }

  .p-company__table td {
    font-size: 12px;
  }
}

/* Height-based adjustments for landscape phones */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .p-hero {
    min-height: 400px;
  }

  .p-hero__title {
    font-size: 28px;
  }

  .p-hero__content {
    padding-bottom: 24px;
  }
}

/* ============================================
   22. ACCESSIBILITY & MOTION PREFERENCES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal,
  .js-reveal-left,
  .js-reveal-right {
    opacity: 1;
    transform: none;
  }
}
