:root {
  --primary-color: #ffffff;
  --secondary-color: #f8f9fa;
  --accent-color: #279c27;
  /* Dark Goldenrod for a premium feel */
  --text-color: #333333;
  --text-light: #666666;
  --border-color: #eeeeee;
  --transition-speed: 0.3s;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text-color);
  background-color: var(--primary-color);
  line-height: 1.8;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-speed);
}

ul {
  list-style: none;
}

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

.nav-tel {
  display: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  width: auto;
  height: 52px;
}

@media (max-width: 768px) {
  .logo-image {
    height: 42px;
  }
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition-speed);
}

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

/* Hero Section */
.hero {
  height: 90vh;
  /* 元の高さ */
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('img/imgtwl1.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.4;
}

.hero-title span {
  display: block;
}

/* Banner Section */
.banner-section {
  padding: 40px 0;
  background: #fff;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.banner-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 992px) {
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    /* スマホでは間隔を少し狭く調整 */
  }
}

/* Main Two Routes */
.routes-section {
  padding: 0px 0;
}

@media (max-width: 992px) {
  .routes-section {
    padding: 60px 0;
  }
}

.routes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.route-card {
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  color: white;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.route-card:hover {
  transform: translateY(-10px);
}

.route-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
  z-index: 1;
}

.route-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.route-card:hover img {
  transform: scale(1.05);
}

.route-info {
  position: relative;
  z-index: 2;
}

.route-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.route-desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.7;
}

.route-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  border-radius: 5px;
  transition: var(--transition-speed);
}

.route-btn:hover {
  background-color: #8b6508;
}

/* Featured Section */
.featured {
  padding: 80px 0;
  background-color: var(--secondary-color);
  text-align: center;
}

@media (max-width: 992px) {
  .featured {
    padding: 50px 0;
  }
}

.section-title {
  font-size: 2rem;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.featured-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.featured-item {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-speed);
}

.featured-item:hover {
  transform: translateY(-5px);
}

.featured-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent-color);
}

.footer-text {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Utilities */
.text-accent {
  color: var(--accent-color);
}

/* PCではボタンを非表示（メディアクエリより前に記述して上書きを許容） */
.menu-toggle {
  display: none;
}

@media (max-width: 992px) {
  .routes-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* ハンバーガーボタンのスタイル */
  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
    margin-left: auto;
  }


  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition-speed);
  }

  /* モバイルナビゲーションのスタイル */
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: var(--transition-speed);
    z-index: 1000;
    gap: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
  }

  /* ハンバーガーボタンのアニメーション */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
  }

  .nav-tel {
    display: block;
    width: 100%;
    margin-top: auto;
    padding-bottom: 40px;
    text-align: center;
  }

  .nav-tel img {
    width: 60px;
    height: auto;
    display: inline-block;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .route-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .route-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* Image Placeholder */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #999;
  text-align: center;
  padding: 20px;
}

.img-placeholder::before {
  content: 'NO IMAGE';
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  opacity: 0.5;
}

.img-placeholder span {
  font-size: 0.85rem;
}

/* Card Image Styles (Detail Cards) */
.card-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f0f0f0;
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.size-card:hover .card-img-wrapper img,
.method-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}