/* CSS Variables */
:root {
  --font-size: 16px;

  /* Hero Section Colors */
  --hero-blue: #4d769c;
  --hero-overlay: rgba(77, 118, 156, 0.3);
  --line-green: #00b801;
  --white: #ffffff;
  --black: #222222;
  --shadow-text: rgba(0, 0, 0, 0.25);

  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}
/* Hero Section Styles */
.hero-section {
  width: 100%;
  height: 90svh;
  min-height: 768px;
  max-height: 968px;
  background: var(--hero-blue);
  overflow: hidden;
  position: relative; /* line-buttonの絶対配置基準 */
}

.hero-section__container {
  max-width: 90rem;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  height: 100%;
}

/* Content Area */
.hero-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  padding: var(--spacing-3xl) var(--spacing-2xl);
  position: relative;
  z-index: 2;
}

.hero-section__heading {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  color: var(--white);
  text-shadow: 0 0.25rem 0.25rem var(--shadow-text);
  font-size: 3.75rem;
  line-height: 1.1;
  font-weight: 600;
  margin: 0;
}

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

.hero-section__description {
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.hero-section__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  color: var(--white);
  border: none;
  border-radius: 2.4375rem;
  padding: var(--spacing-md) var(--spacing-xl);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 28.75rem;
}

.hero-section__cta:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.hero-section__cta-text {
  font-size: 1.125rem;
  line-height: 1.875rem;
  font-weight: 600;
}

.hero-section__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4375rem;
  height: 2.4375rem;
  background: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-section__cta-svg {
  width: 1.21875rem;
  height: 0.9375rem;
}

.hero-section__stats {
  display: flex;
  gap: var(--spacing-md);
  padding-top: var(--spacing-xl);
  border-top: 0.078125rem solid var(--white);
}

.hero-section__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--white);
}

.hero-section__stat-value {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 600;
}

.hero-section__stat-label {
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 600;
}

/* Image Area */
.hero-section__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 54.25rem;
  overflow: hidden;
}

.hero-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =============================== */
/* 画像表示制御：ウィンドウサイズ対応 */
/* =============================== */

/* デフォルト：.hero-section__image.tab-onlyは非表示 */
.hero-section__image.tab-only {
  display: none;
}

/* 768px以下：.hero-section__image.tab-onlyを表示、.hero-section__imageを非表示 */
@media (max-width: 768px) {
  .hero-section__image {
    display: none;
  }
  .hero-section__image.tab-only {
    display: block !important;
    object-fit: cover;
  }
}

/* 480px以下：.hero-section__image.tab-onlyも非表示 */
@media (max-width: 480px) {
  .hero-section__image.tab-only {
    display: none;
  }
}

.hero-section__image.tab-only {
  display: none;
}

/* LINE Button */
.hero-section__line-button {
  position: absolute; /* hero-section内で右下に配置 */
  bottom: var(--spacing-2xl);
  right: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--line-green);
  color: var(--white);
  border: none;
  border-radius: 2rem;
  padding: var(--spacing-lg) var(--spacing-md);
  cursor: pointer;
  box-shadow: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1), 0 0.25rem 0.375rem -0.25rem rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 1000;
}

/* 768px以下：LINEボタンを非表示 */
@media (max-width: 768px) {
  .hero-section__line-button {
    display: none !important;
  }
}

.hero-section__line-button:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.9375rem 1.25rem -0.1875rem rgba(0, 0, 0, 0.15), 0 0.375rem 0.5rem -0.25rem rgba(0, 0, 0, 0.15);
}

.hero-section__line-icon {
  width: 4.25rem;
  height: 4.125rem;
}

.hero-section__line-text {
  font-size: 1.125rem;
  line-height: 1.875rem;
  font-weight: 600;
  text-align: center;
}

.hero-section__line-text--dark {
  color: var(--black);
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* Responsive Styles - 大 → 小 の順番 */

/* Wide Desktop ~ Desktop */
@media (max-width: 1200px) {
  .hero-section__heading {
    font-size: 3rem;
  }

  .hero-section__description {
    font-size: 1.25rem;
  }

  .hero-section__content {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero-section__heading {
    font-size: 2.5rem;
  }

  .hero-section__description {
    font-size: 1.125rem;
  }

  .hero-section__cta-text {
    font-size: 1rem;
  }

  .hero-section__stat-value,
  .hero-section__stat-label {
    font-size: 1.25rem;
  }
}

@media (max-width: 968px) {
  .hero-section__cta-icon {
    display: none;
  }
  .hero-section__cta-text {
    font-size: 0.9rem;
  }
}

/* 大型スマホ〜小型タブレット（Middle） */
@media (max-width: 768px) {
  .hero-section {
    /* height: auto; */
    /* min-height: 90vh; */
  }

  .hero-section__container {
    min-height: auto;
  }

  .hero-section__grid {
    grid-template-columns: 1fr;
    gap: 0;
    /* grid-template-rows: 1fr 1fr; */
  }

  .hero-section__content {
    padding: var(--spacing-xl) var(--spacing-md);
    order: 2;
  }

  .hero-section__heading {
    font-size: 2rem;
  }

  .hero-section__description {
    font-size: 1rem;
  }

  .hero-section__image {
    object-fit: contain;
  }

  .hero-section__image-wrapper {
    min-height: 18.75rem;
    order: 1;
    background: var(--hero-overlay);
  }

  .hero-section__cta {
    max-width: 100%;
  }

  .hero-section__stats {
    flex-wrap: wrap;
  }

  .hero-section__line-button {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .hero-section__line-icon {
    width: 3rem;
    height: 2.875rem;
  }

  .hero-section__line-text {
    font-size: 0.875rem;
  }
}

/* スマホ（Medium） */
@media (max-width: 600px) {
  .hero-section__heading {
    font-size: 1.75rem;
  }

  .hero-section__description {
    font-size: 0.875rem;
  }

  .hero-section__cta-text {
    font-size: 0.875rem;
  }

  .hero-section__stat-value,
  .hero-section__stat-label {
    font-size: 1rem;
  }

  .hero-section__stats {
    gap: var(--spacing-sm);
  }
}

/* スマホ（Small） */
@media (max-width: 480px) {
  .hero-section {
    padding: 0;
    max-height: auto;
  }

  .hero-section__content {
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-2xl) var(--spacing-md);
    gap: var(--spacing-md);
  }

  .hero-section__heading {
    font-size: 1.5rem;
  }

  .hero-section__description {
    font-size: 0.8125rem;
  }

  .hero-section__cta {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .hero-section__cta-text {
    font-size: 0.75rem;
  }

  .hero-section__cta-icon {
    width: 1.875rem;
    height: 1.875rem;
  }

  .hero-section__image-wrapper {
    min-height: 12.5rem;
  }

  .hero-section__line-button {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: var(--spacing-sm);
  }

  .hero-section__line-icon {
    width: 2.5rem;
    height: 2.375rem;
  }

  .hero-section__line-text {
    font-size: 0.75rem;
  }
}
