:root {
  --primary-color: #08488C;
  --secondary-color: #FE5E27;
  --accent-color: #eaf4ff;
  --text-color: #333;
  --light-text: #666;
  --white: #fff;
  --background-light: #f9f9f9;
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-base);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul {
  list-style: none;
}

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

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 0;
  /* Define header height for mobile calc */
  --header-height: 82px;
}

@media (max-width: 768px) {
  header {
    --header-height: 70px;
  }
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo img {
  height: 50px;
  width: auto;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tel-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tel-caption {
  font-size: 0.8rem;
  color: var(--light-text);
  white-space: nowrap;
}

.tel-link {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Navigation */
.main-nav {
  background-color: var(--primary-color);
  color: var(--white);
  margin-bottom: 0;
}

.nav-list {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  padding: 0 20px;
  justify-content: space-between;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 15px 20px;
  color: var(--white);
  font-weight: bold;
  font-size: 0.95rem;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown .nav-link::after {
  content: '▾';
  margin-left: 8px;
  font-size: 0.8em;
  opacity: 0.8;
  position: relative;
  top: -2px;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background-color: rgba(8, 72, 140, 0.85);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  display: none;
  z-index: 1200;
}

.dropdown-right .dropdown {
  right: 0;
  left: auto;
}

.dropdown li a {
  display: block;
  padding: 10px 16px;
  color: var(--white);
  font-size: 0.9rem;
  white-space: nowrap;
}

.dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown {
  display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  background-color: #05162b;
  line-height: 0;
  margin-top: 0;
}

.hero-media {
  display: block;
  line-height: 0;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Mobile Content (Default) */
.hero-content-sp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 1rem;
  width: 92%;
  max-width: 800px;
  line-height: 1.6;
}

.hero-content-pc {
  display: none;
  /* Hidden on mobile */
}

.hero-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  min-width: 200px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(5, 22, 43, 0.24);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, #0b5aa8 0%, #08488c 100%);
}

.hero-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #0d67bf 0%, #0a4f99 100%);
}

.hero-buttons .btn-secondary {
  background: linear-gradient(135deg, #ff7a3e 0%, #fe5e27 100%);
}

.hero-buttons .btn-secondary:hover {
  background: linear-gradient(135deg, #ff8b58 0%, #f56c39 100%);
}

/* PC Content (Desktop) */
@media (min-width: 992px) {
  .hero {
    height: auto;
    background:
      linear-gradient(180deg, #0a1e37 0%, #0f2744 52%, #163559 100%);
  }

  .hero-media {
    width: 100%;
    height: auto;
  }

  .hero-img {
    width: 100%;
    height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 22, 43, 0.12) 0%, rgba(5, 22, 43, 0.08) 52%, rgba(5, 22, 43, 0.32) 100%);
  }

  .hero-content-sp {
    display: none;
  }

  .hero-content-pc {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: var(--white);
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    line-height: 1.6;
  }

  .hero-content-pc .hero-title {
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    margin-bottom: 1.25rem;
  }

  .hero-content-pc .hero-text {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    margin-bottom: 2rem;
  }

  .hero-content-pc .hero-buttons {
    pointer-events: auto;
    gap: 24px;
  }
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s;
  text-shadow: none;
  /* Reset shadow for button text */
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #063a70;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #d84e1f;
}

/* Products Section */
.section {
  padding: 80px 20px 0;
}

.section-links {
  margin-bottom: 80px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

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

.product-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 0.3s ease;
  /* border-top: 5px solid transparent; */
}

.product-card.tabines {
  border-color: var(--primary-color);
}

.product-card.buskaidou {
  border-color: var(--secondary-color);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.product-info {
  padding: 25px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}

.product-card.buskaidou .product-info {
  background: linear-gradient(180deg, #ffffff 0%, #fff1e9 100%);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.tabines .product-title {
  color: var(--primary-color);
}

.buskaidou .product-title {
  color: var(--secondary-color);
}

/* Product Features */
.product-features-block {
  background-color: var(--background-light);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  flex: auto;
}

.product-feature-title {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.product-feature-title.tabines-title {
  color: var(--primary-color);
}

.product-feature-title.bus-title {
  color: var(--secondary-color);
}

.feature-list li {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.check-icon {
  color: var(--secondary-color);
  font-weight: bold;
  line-height: 1.2;
}

.feature-list strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-color);
}

.feature-list div {
  font-size: 0.85rem;
  color: var(--light-text);
  line-height: 1.6;
}

.news-list {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.85rem;
  color: var(--light-text);
  margin-bottom: 5px;
}

.news-center {
  max-width: 720px;
  margin: 0 auto;
}

.news-more {
  border-bottom: none;
  padding-bottom: 0;
  text-align: right;
}

/* Banner/Links Section */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.banner-item img {
  width: 100%;
  border-radius: 5px;
  transition: opacity 0.3s;
}

.banner-item:hover img {
  opacity: 0.8;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding-top: 40px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  padding: 0 20px 40px;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

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

.footer-links a {
  color: #ccc;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

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

.footer-links-root {
  display: flex;
  flex-direction: column;
}

.footer-sub {
  margin-bottom: 0;
}

.footer-sub-title {
  display: inline-block;
  color: #ccc;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.footer-sub-title:hover {
  color: var(--white);
  opacity: 1;
  transition: color 0.2s ease;
}

.footer-sub-links {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  /* gap: 6px; */
  padding-left: 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-sub-links a {
  color: #cfd8e3;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

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

.footer-sub-heading {
  margin-top: 14px;
}

.footer-address li {
  font-size: 0.8rem;
}

.footer-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.footer-products-col .footer-sub-title {
  display: block;
  margin-bottom: 6px;
}

@media (min-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }

  .products-span {
    grid-column: span 2;
  }
}

.footer-bottom {
  background-color: #053160;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    padding-right: 8px;
  }

  .header-inner {
    padding: 10px;
  }

  .header-info {
    align-items: center;
    flex-direction: row;
    gap: 20px;
  }

  .tel-link {
    font-size: 1rem;
  }

  .tel-caption {
    font-size: 0.7rem;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100dvh - var(--header-height));
    background-color: var(--primary-color);
    padding: 10px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

  .nav-list.active {
    display: flex;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: none;
  }

  .nav-item.has-dropdown:hover .dropdown,
  .nav-item.has-dropdown:focus-within .dropdown {
    display: none;
  }

  .nav-item.has-dropdown.open .dropdown {
    display: flex;
    flex-direction: column;
    padding-left: 16px;
  }

  .product-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title {
    font-size: 1.6rem;
  }
}
