/* =========================================
   DESIGN SYSTEM : HOPE TOWN SYNC (PROFESSIONAL)
   ========================================= */
:root {
  /* Colors */
  --color-taupe: #948473;
  /* Hope Town Concept Board base */
  --color-taupe-light: #B2A394;
  --color-taupe-bg: #EFECE9;
  /* Off-white taupe for subtle backgrounds */

  --color-black: #111111;
  /* Crisp black for strong contrast */
  --color-text: #2B2B2B;
  /* Very dark gray for body text */
  --color-text-light: #5A5A5A;

  --color-white: #FFFFFF;
  --color-bg-light: #FAFAFA;
  /* Almost white for depth */

  --color-accent: #C4272A;
  /* Hope Town Red CTA */
  --color-accent-hover: #A01D20;

  /* Typography - Stronger hierarchy */
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  /* Fluid Typography for elegance and scale */
  --fz-hero: clamp(2rem, 5vw, 4rem);
  --fz-section-title: clamp(2rem, 4.5vw, 3rem);
  --fz-h3: clamp(1.4rem, 3vw, 2rem);
  --fz-body: clamp(1rem, 1.5vw, 1.1rem);
  --fz-small: 0.85rem;

  /* Spacing - Luxurious Whitespace */
  --spacing-container: clamp(1.5rem, 5vw, 4rem);
  --spacing-section: clamp(8rem, 12vw, 15rem);
  /* Extremely generous */

  /* Layout */
  --width-container: 1280px;
  --width-narrow: 800px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.9;
  font-weight: var(--fw-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.4;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utilities */
.container {
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
}

.container--narrow {
  max-width: var(--width-narrow);
}

.text-center {
  text-align: center;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.25em;
  color: var(--color-taupe);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-taupe);
  padding-bottom: 0.5rem;
}

.section-title {
  font-size: var(--fz-section-title);
  margin-bottom: 2rem;
}

.section-lead {
  font-size: 1.1rem;
  font-weight: var(--fw-regular);
  color: var(--color-text-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px;
  /* Slightly sharp corners for professional look */
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(196, 39, 42, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 39, 42, 0.4);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
}

.hero__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 2rem;
  max-width: 1000px;
}

.hero__title {
  color: var(--color-white);
  font-size: var(--fz-hero);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 3rem;
  line-height: 1.5;
}

.hero__sub {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 2.2;
  margin-bottom: 4rem;
  font-weight: var(--fw-regular);
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero__scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  font-weight: var(--fw-bold);
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

/* =========================================
   VALUES (Autonomous Infrastructure)
   ========================================= */
.values {
  padding: var(--spacing-section) 0;
  background-color: var(--color-bg-light);
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-top: 6rem;
}

@media (min-width: 900px) {
  .value-item {
    flex-direction: row;
    gap: 6rem;
    margin-top: 10rem;
  }

  .value-item--reverse {
    flex-direction: row-reverse;
  }

  .value-item__content {
    flex: 1;
    padding: 2rem 0;
  }

  .value-item__image {
    flex: 1.2;
  }
}

.value-item__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: var(--fw-light);
  color: var(--color-taupe-light);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.value-item__title {
  font-size: var(--fz-h3);
  margin-bottom: 2rem;
}

.value-item__text {
  font-size: var(--fz-body);
  color: var(--color-text-light);
  line-height: 2;
}

.value-item__image {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.value-item__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.value-item:hover .value-item__image img {
  transform: scale(1.03);
}

/* =========================================
   FAQ
   ========================================= */
.faq {
  padding: var(--spacing-section) 0;
  background-color: var(--color-white);
}

.faq__list {
  border-top: 1px solid var(--color-taupe-light);
}

.faq__item {
  border-bottom: 1px solid var(--color-taupe-light);
}

.faq__question {
  width: 100%;
  text-align: left;
  padding: 2.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: var(--color-taupe);
}

.faq__icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-taupe);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.faq__icon::before {
  width: 100%;
  height: 2px;
}

.faq__icon::after {
  height: 100%;
  width: 2px;
}

.faq__question[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__answer-inner {
  padding-bottom: 2.5rem;
  padding-right: 2rem;
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 2;
}

/* =========================================
   CLOSING CTA
   ========================================= */
.closing {
  position: relative;
  padding: 12rem 0;
  color: var(--color-white);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.closing__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.closing__bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.85);
  /* Dark cinematic overlay */
  z-index: 2;
}

.closing__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 2rem;
}

.closing__title {
  color: var(--color-white);
  font-size: var(--fz-section-title);
  margin-bottom: 2.5rem;
}

.closing__text {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 2;
  margin-bottom: 4rem;
}

.closing__cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.closing__note {
  font-size: 0.85rem;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 4rem 0;
}

.copyright {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.5;
}

/* =========================================
   ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  :root {
    --spacing-section: 6rem;
  }

  .value-item {
    margin-top: 5rem;
    gap: 2.5rem;
  }

  .value-item__number {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .hero__title {
    margin-bottom: 2rem;
  }

  .hero__sub {
    margin-bottom: 3rem;
  }

  .closing {
    padding: 8rem 0;
  }
}

/* responsive fixes */
.view-pc, .view-mb, .br-pc, .br-mb, .br-430, .br-375 {display: none;}
@media (min-width:668px){
  .view-pc, .br-pc {display: block;}
}
@media screen and (max-width: 667px) {
  .view-mb, .br-mb {display: block;}
}
@media screen and (width: 430px) {
  .br-430 {display: block;}
}
@media (width: 390px){
  .br-390 {display: block;}
}
@media screen and (max-width: 375px) {
  .br-375 {display: block;}
  .hero {height: 120vh;}
  .btn {padding: 1.25rem 1rem;}
}