@charset "utf-8";

*, *::before, *::after {
  box-sizing: border-box;
  user-select: none;
}

:root {
  --black: 0, 0, 0;
  --white: 255, 255, 255;
  --brown: 53, 34, 12;
  --yellow1: 255, 227, 20;
  --yellow2: 188, 133, 20;
  --green: 6, 199, 85;
}

html, body, h1, h2, h3, h4, h5, h6, p,
ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

table th {
  vertical-align: top;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: bottom;
}

a {
  color: rgba(var(--yellow1), 1);
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: rgba(var(--white), 1);
}

a img {
  border-style: none;
}

html,
body {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  color: rgba(var(--white), 1);
  background-color: rgba(var(--black), 1);
  background-image: url("../../images/frontier/bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(14px, 3.5vw, 18px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

#wrapper {
  overflow: hidden;
  width: 100%;
  max-width: 768px;
  min-height: 100vh;
  margin: 0 auto;
  padding-top: 60px;
}

#wrapper::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 768px;
  height: 100vh;
  background-image: url("../../images/frontier/bg-fixed.webp"); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; 
}

@media screen and (min-width: 769px) {
  #wrapper {
    box-shadow:
      0 0 0 1px rgba(var(--yellow2), 0.35),
      0 0 24px rgba(var(--yellow1), 0.14),
      0 0 72px rgba(var(--yellow2), 0.18),
      0 0 180px rgba(0, 0, 0, 0.95);
  }
}

/* =========================================
   Header
========================================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  max-width: 768px;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 16px; 
  background-color: rgba(var(--black), 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 60px;
}

#header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-image: url("../../images/frontier/header.png");
  background-position: center bottom;
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.header-logo {
  width: 25%; 
  max-width: 100px;
}

.header-btn {
  width: 30%; 
  max-width: 140px;
 filter: drop-shadow(0 0 6px rgba(var(--green), 0.7));
}

/* =========================================
   MV (Main Visual)
========================================= */
.mv {
  position: relative;
  width: 100%;
}

.mv-video {
  width: 100%;
  height: auto;
  display: block;
}

.mv-btn {
  position: absolute;
  bottom: 4%; 
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
}

.mv-btn img{
  width: 100%;
}

.mv-btn a {
  display: block;
  animation: pulse-glow 1.5s infinite alternate ease-in-out;
}


@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 12px rgba(var(--green), 0.3));
  }
  100% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 35px rgba(var(--green), 0.9));
  }
}

/* =========================================
   的中実績 (Hit Section)
========================================= */
.hit-section {
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
}

.hit-swiper {
  width: 100%;
  padding: 0 10px; 
}

.hit-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.hit-card {
  position: relative;
  width: 100%;
  background-image: url("../../images/frontier/hit.png");
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 12% 5% 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 30px rgba(var(--brown), 0.15);
}

.hit-date {
  background: linear-gradient(to bottom, #3a3a3a, #111111);
  color: rgba(var(--white), 1);
  font-size: clamp(14px, 3vw, 24px);
  padding: 4px 15%;
  clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
  margin-bottom: 8%;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 2px rgba(var(--black), 1); 
  filter: drop-shadow(0 4px 4px rgba(var(--black), 0.6));
}

.hit-image-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 8%;
}

.hit-base-img {
  width: 100%;
  display: block;
  background-color: #1a1a1a;
  padding: 4px;
  border: 1px solid rgba(var(--yellow2), 0.8);
  box-shadow: 0 6px 12px rgba(var(--black), 0.6);
}

.hit-clear-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  z-index: 2;    
  animation: clear-glow-pulse 2s infinite alternate ease-in-out;
}

@keyframes clear-glow-pulse {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.0);
    filter: drop-shadow(0 0 8px rgba(var(--yellow1), 0.3));
  }
  100% {
    opacity: 1.0;
    transform: translate(-50%, -50%) scale(1.05);
    filter: drop-shadow(0 0 25px rgba(var(--yellow1), 0.8));
  }
}

.hit-info {
  text-align: center;
  width: 100%;
}

.hit-plan-name,
.hit-race-name {
  color: rgba(var(--brown), 1);
  font-weight: 900;
  line-height: 1.6;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.6);
}

.hit-plan-name {
  font-size: clamp(16px, 3.5vw, 26px);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.hit-race-name {
  font-size: clamp(13px, 3.5vw, 24px);
  margin-bottom: 5px;
}

.hit-price {
  font-size: clamp(24px, 5.5vw, 50px);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(to top, rgba(var(--yellow2), 1) 0%, rgba(var(--yellow1), 1) 50%, #fffacd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(1px 1px 0 rgba(var(--black), 1))
          drop-shadow(-1px -1px 0 rgba(var(--black), 1))
          drop-shadow(1px -1px 0 rgba(var(--black), 1))
          drop-shadow(-1px 1px 0 rgba(var(--black), 1))
          drop-shadow(2px 2px 2px rgba(var(--black), 0.9));
}

.record-section {
  position: relative;
  width: 100%;
}

.hit-section.hit-section-absolute {
  position: absolute;
  bottom: 2%; 
  left: 0;
  width: 100%;
  padding: 0; 
  z-index: 2;
}

.bottom-section {
  position: relative;
  width: 100%;
}


/* =========================================
   Page Content
========================================= */
.page-content {
  padding: 5% 3%; 
  width: 100%;
}

.page-title {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 15px;
  text-align: center;
}

.page-body {
  background-color: rgba(var(--black), 0.4);
  border: 1px solid rgba(var(--yellow2), 0.5);
  box-shadow: 0 0 20px rgba(var(--black), 0.9) inset, 0 10px 20px rgba(var(--black), 0.8);
  padding: 8% 6%;
  border-radius: 4px;
}

.page-lead {
  font-size: clamp(14px, 3.5vw, 16px);
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-heading {
  position: relative;
  font-size: clamp(16px, 4.5vw, 20px);
  color: rgba(var(--yellow1), 1);
  padding-left: 24px;
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(var(--yellow2), 0.6);
}

.page-heading::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 44%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background-color: rgba(var(--yellow1), 1);
  box-shadow: 0 0 6px rgba(var(--yellow1), 0.8);
}

.page-notes {
  font-size: clamp(12px, 3.5vw, 15px);
}

.page-notes p {
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.page-notes p:last-child {
  margin-bottom: 0;
}

.law-list {
  width: 100%;
}

.law-item {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(var(--yellow2), 0.4);
  padding: 16px 0;
}

.law-item dt {
  width: 35%;
  color: rgba(var(--yellow1), 1);
  font-weight: 700;
  font-size: clamp(13px, 3.5vw, 15px);
  padding-right: 15px;
}

.law-item dd {
  width: 65%;
  color: rgba(var(--white), 1);
  font-size: clamp(13px, 3.5vw, 15px);
  line-height: 1.6;
}

.law-note {
  font-size: 0.85em;
  color: #ccc;
  display: inline-block;
  margin-top: 4px;
}

@media screen and (max-width: 480px) {
  .law-item {
    padding: 12px 0;
  }
  .law-item dt {
    width: 100%;
    margin-bottom: 4px;
  }
  .law-item dd {
    width: 100%;
  }
}

/* =========================================
   お問い合わせフォーム
========================================= */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  align-items: center;
  font-size: clamp(14px, 4vw, 16px);
  color: rgba(var(--yellow1), 1);
  font-weight: 700;
  margin-bottom: 8px;
}

.required {
  background-color: #b52020;
  color: rgba(var(--white), 1);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 10px;
  font-weight: 500;
}

.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(var(--yellow2), 0.6);
  color: rgba(var(--white), 1);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(var(--yellow1), 1);
  box-shadow: 0 0 8px rgba(var(--yellow1), 0.4);
}

.form-group textarea {
  resize: vertical;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(var(--yellow2), 1);
  pointer-events: none;
  font-size: 12px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-group input.is-error,
.form-group select.is-error,
.form-group textarea.is-error {
  border-color: #ff4c4c;
  background-color: rgba(255, 76, 76, 0.1);
}

.error-text {
  color: #ff4c4c;
  font-size: 13px;
  margin-top: 6px;
  min-height: 1.5em;
}

.form-group select option {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* =========================================
   画像背景ボタン 
========================================= */
.form-submit {
  margin-top: 40px;
  text-align: center;
}

.bg-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 10 / 3; 
  background-image: url("../../images/frontier/btn.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: filter 0.3s ease;
}

.bg-btn:hover {
  filter: brightness(1.2);
}

.bg-btn span {
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 700;
  color: rgba(var(--white), 1);
  letter-spacing: 0.1em;
  filter: drop-shadow(0 2px 4px rgba(var(--black), 0.9));
}

/* =========================================
   完了メッセージ
========================================= */
.complete-msg {
  text-align: center;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.8;
  color: rgba(var(--white), 1);
  padding: 40px 0;
}

/* =========================================
   Footer
========================================= */
.footer {
  position: relative;
  width: 100%;
  background-image: url("../../images/frontier/bottom.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 18% 10% 12%; 
  text-align: center;
  color: rgba(var(--white), 1);
}

.footer-links {
  margin-bottom: 10%;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(var(--white), 1);
  text-decoration: none;
  font-size: clamp(14px, 2.5vw, 22px);
  font-weight: 700;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.footer-notes {
  text-align: left;
  margin-bottom: 10%;
}

.footer-notes p {
  font-size: clamp(10px, 2.5vw, 13px);
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 1em;
  text-indent: -1em;
}

.footer-notes p:last-child {
  margin-bottom: 0;
}

.footer-copy {
  font-size: clamp(11px, 3vw, 15px);
  font-weight: 500;
}
