@charset "UTF-8";

:root {
  --brand-primary: #0A84FF;
  --brand-primary-hover: #007AFF;
  --text-primary: #222222;
  --text-secondary: #333333;
  --surface-base: #F9FAFB;
  --surface-muted: #F3F4F6;
  --card-background: rgba(255, 255, 255, 0.7);
  --card-background-hover: rgba(255, 255, 255, 0.9);
  --border-light: #E5E7EB;
  --accent-primary: #005E98; /* gridタグとinfoボタンで共用 */
  --accent-primary-hover: #1978b3;
}

/* 基本設定 */
body {
  background-color: var(--surface-base);
  color: var(--text-primary);
}

/* レイアウト */
.hero-video-container {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background-color: #FFF;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#bg-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content-wrapper {
  position: relative;
  z-index: 2;
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem;
  align-content: center;
}

.podea-section {
  padding: 60px 20px;
}

.podea-section--light-gray {
  background-color: var(--surface-base);
}

/* コンポーネント */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropbtn {
  display: inline-block;
  padding: 8px 12px;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: color 0.3s;
}

.dropdown .dropbtn:hover {
  color: var(--brand-primary) !important;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background: rgba(10, 132, 255, 0.1);
  color: var(--brand-primary);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: flex;
}

.grid-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 2rem;
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #a3c5de;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.grid-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: var(--text-primary);
}

.grid-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-weight: bold;
  color: var(--text-primary);
  border-bottom: 1px solid #a3c5de;
}

.grid-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.grid-card .tags {
  margin-top: 1.5rem;
}

.grid-card .tag {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background-color: var(--accent-primary);
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.grid-card .tag:hover {
  background-color: #007ac5;
}

/* 見出し */
.section-title {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-title__sub {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.section-title__main {
  display: block;
}

/* 見出しの重複指定を共通化 */
.section-title__main,
.section-title h2,
.products-section > h2 {
  margin: 32px auto 40px;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--text-primary);
}

/* サポート情報 */
.support-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
}

.info-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 280px;
  max-width: 350px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.8rem 0;
}

.info-row span {
  font-size: 0.95rem;
  text-align: left;
  color: var(--text-secondary);
}

.info-btn {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: #fff;
  background: var(--accent-primary);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.info-btn:hover {
  background: var(--accent-primary-hover);
  color: #fff;
  text-decoration: none;
}

/* 768px以下の調整を統合 */
@media (max-width: 768px) {
  .support-info {
    flex-direction: column;
    align-items: center;
  }

  .info-card {
    width: 100%;
    max-width: 400px;
  }

  .podea-section {
    padding: 40px 20px;
  }
}

/* 重複していた600px以下の見出し調整を統合 */
@media (max-width: 600px) {
  .section-title__main,
  .section-title h2,
  .products-section > h2 {
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    margin: 20px auto 28px !important;
    display: block !important;
  }
}

/* === ガスリフィルセクション === */
.refill-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 16px;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #000; /* ← 読み込み前に真っ黒背景（ちらつき防止） */
}

/* 背景動画 */
.refill-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.refill-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 1;
}

/* 黒半透明オーバーレイ（動画上に敷く） */
.refill-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* コンテンツ（テキスト＋ボタン） */
.refill-overlay {
  position: absolute;
  inset: 0;
  z-index: 3; /* ← オーバーレイよりも上 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3vw 2vw;
  color: #fff;
  background: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  max-width: 80%;
  margin: 0 auto;
}

/* タイトル */
.refill-overlay h2 {
  color: #fff !important;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  z-index: 3;
}

/* 本文 */
.refill-overlay p {
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 90%;
  z-index: 3;
}

/* ボタン */
.refill-btn {
  display: inline-block;
  padding: 0.6rem 1.8rem;
  font-size: clamp(0.9rem, 1vw, 1rem);
  background-color: #ffffff;
  color: #007a58;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 3;
}

.refill-btn:hover {
  background-color: #f3f3f3;
  color: #005c42;
}

/* スマホ */
@media (max-width: 768px) {
  .refill-card {
    width: 92%;
    aspect-ratio: 4 / 3;
    min-height: 260px;
    margin: 24px auto;
  }

  .refill-overlay {
    padding: 6vw 4vw;
    max-width: 90%;
  }

  .refill-overlay p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}
/* === CTAセクション === */
#contact.cta-section {
  /* === margin: clamp(48px, 6vw, 96px) auto clamp(40px, 6vw, 96px); === */
  padding: clamp(48px, 6vw, 96px) clamp(16px, 5vw, 72px);
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.12), rgba(0, 94, 152, 0.25));
  /* === border-radius: clamp(18px, 4vw, 36px); === */
  overflow: hidden;
}

#contact .section-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px);
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(10, 132, 255, 0.15);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(10px);
}

#contact .section-container::after {
  content: none;
}

#contact p {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.9;
  color: var(--text-secondary);
}

#contact .cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

#contact .cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(180px, 26vw, 260px);
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  background-color: #fff;
  color: var(--text-primary);
  border: 1px solid transparent;
  box-shadow: 0 15px 30px rgba(9, 26, 60, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#contact .cta-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(9, 26, 60, 0.16);
}

#contact .cta-buttons .btn:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.5);
  outline-offset: 4px;
}

#contact .cta-buttons .btn-cta-main,
#contact .cta-buttons .btn-dark {
  background: linear-gradient(145deg, var(--primary-color, #398bb1), var(--primary-color, #398bb1));
  color: #fff;
  border: none;

}

#contact .cta-buttons .btn-cta-main:hover,
#contact .cta-buttons .btn-dark:hover {
  background: linear-gradient(145deg, #3f7fc4, #3949b1);
  border: none;
}

@media (max-width: 640px) {
  #contact.cta-section {
    padding: clamp(36px, 12vw, 56px) clamp(12px, 6vw, 32px);
  }

  #contact .section-container {
    padding: clamp(28px, 10vw, 44px);
  }

  #contact .section-container::after {
    inset: 10px;
  }

  #contact .cta-buttons {
    flex-direction: column;
  }

  #contact .cta-buttons .btn {
    width: 100%;
  }
}
