/* style.css */
/* コンポーネント以外のクラスはこのファイルに書く */

:root {
  --color-base: #f5f5dc;
  --color-main: #b05d3b;
  --color-accent: #2f3c4b;
  --reel-padding: 1rem;
  --reel-item-spacing: 0.5rem;
}

body {
  font-family: "Noto Serif JP", "Noto Sans JP", sans-serif;
  background-color: white;
  color: var(--color-accent);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.cta {
  font-family: "Lora", "Noto Serif JP", serif;
}

.pc-only {
  display: block;

  @media (max-width: 768px) {
    display: none;
  }
}

.sp-only {
  display: none;

  @media (max-width: 768px) {
    display: block;
  }
}

.content-area {
  max-width: 800px;
  margin: 0 auto;

  @media (max-width: 768px) {
    padding: 0 2rem;
  }
}

/* カスタムコンポーネント */
.card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-size: cover;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

/* カスタム要素 */
.cta-button {
  background-color: var(--color-main);
  color: var(--color-base) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--color-main) !important;
  border-color: var(--color-main);
}

.cta-button--white:hover {
  color: var(--color-base) !important;
}

.cta-button-outline {
  background-color: transparent;
  color: var(--color-main);
  border: 2px solid var(--color-main);
}

.cta-button-outline:hover {
  background-color: var(--color-main);
  color: var(--color-base);
}

/* ナビゲーション */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-main);
  text-decoration: none;
  margin-left: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links li {
  align-content: center;
}

.nav-links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-main);
}

.hamburger {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
  order: 2;
  margin-right: 0;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--color-main);
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
  top: 8px;
}

.hamburger span:nth-child(4) {
  top: 16px;
}

.hamburger.open span:nth-child(1) {
  top: 8px;
  width: 0%;
  left: 50%;
}

.hamburger.open span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger.open span:nth-child(4) {
  top: 8px;
  width: 0%;
  left: 50%;
}

.cluster-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

/* ヒーロー */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      rgba(47, 60, 75, 0.6),
      rgba(47, 60, 75, 0.6)
    ),
    url("../img/jalais-hill.jpg");
  background-size: cover;
  background-position: center;
  z-index: -1;
}

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

.grid-reverse {
  display: grid;
  direction: rtl;
}

.grid-reverse > * {
  direction: ltr;
}

/* 利用シーンのスティッキー画像 */
.scene-section {
  position: relative;
  min-height: 100vh;
}

.scene-image-container {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-radius: 3px;
}

.scene-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 60, 75, 0.3);
  z-index: 1;
  pointer-events: none;
}

.scene-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-cards {
  position: relative;
  z-index: 1;
}

.scene-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.scene-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.card-inner {
  padding: 1.5rem;
  height: 100%;
  align-content: end;
  color: var(--color-base);
}

.card-inner h3 {
  background-color: rgba(47, 60, 75, 0.8);
  padding: 0.25rem 0;
  display: inline-block;
}

.card-1 {
  background-image: url("../img/park.jpg");
  background-position: center;
}

.card-1 .card-inner,
.card-3 .card-inner {
  text-align: end;
}

.card-2 {
  background-image: url("../img/town.jpg");
  background-position: center;
}

.card-3 {
  background-image: url("../img/cafe.jpg");
  background-position: center;
}

.card-4 {
  background-image: url("../img/home.jpg");
  background-position: center;
}

.card-1 h3 {
  color: var(--color-base);
}

.scene-row > div:empty {
  /* 空欄はスペースのみ */
}

@media (max-width: 700px) {
  .scene-row {
    grid-template-columns: 1fr;
  }
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
    order: 2;
    margin-right: 0;
  }

  .header-inner {
    width: 100%;
  }

  .feature-section .sidebar {
    flex-direction: column;
  }

  .feature-section .sidebar:nth-child(odd) {
    flex-direction: column-reverse;
  }

  .feature-section .sidebar > * {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-200 {
  transition-delay: 0.2s;
}
.delay-400 {
  transition-delay: 0.4s;
}
.delay-600 {
  transition-delay: 0.6s;
}
.delay-800 {
  transition-delay: 0.8s;
}

.hidden {
  opacity: 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-main);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-main);
}

.section-title--scenes {
  color: var(--color-base);
}

.section-title--scenes::after {
  background-color: var(--color-base);
}

footer {
  background-color: var(--color-accent);
  color: var(--color-base);
  padding: 2rem 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-links a {
  color: var(--color-base);
  text-decoration: none;
}
