/* ===================================
   レイアウトシステム
   =================================== */

/* コンテナ */
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--side-padding);
}

.container--narrow {
  max-width: var(--narrow-width);
}

/* セクション */
.section {
  padding-block: var(--space-xl);
}

.section--alt {
  background-color: var(--color-bg-sub);
}

@media (max-width: 767px) {
  .section {
    padding-block: var(--space-lg);
  }
}

/* グリッド */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-asymmetric {
    grid-template-columns: 1fr;
  }
}

/* Flexユーティリティ */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===================================
   セクション見出し
   =================================== */

.section-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-heading__en {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section-heading__ja {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ===================================
   ヘッダー
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__menu a {
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* ハンバーガー */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  position: absolute;
  left: 0;
  transition: transform 0.3s, opacity 0.3s;
}

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

.hamburger.is-active .hamburger__line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

@media (max-width: 1023px) {
  .hamburger { display: block; }

  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 400px);
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 100px var(--space-md) var(--space-md);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .header__menu li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .header__menu a {
    display: block;
    padding: var(--space-sm) 0;
    font-size: 1rem;
  }
}

/* ===================================
   ヒーロー
   =================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero__lead {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  50%  { top: 0; }
  100% { top: 100%; }
}

/* ===================================
   フッター
   =================================== */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-lg) var(--space-md);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}

.footer__address {
  font-size: 0.8125rem;
  line-height: 1.8;
}

.footer__menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__menu a {
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer__menu a:hover {
  color: #fff;
  opacity: 1;
}

.footer__copyright {
  text-align: center;
  font-size: 0.75rem;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .footer__inner {
    flex-direction: column;
  }
}
