/* ===== CSS Variables ===== */
:root {
  /* Color */
  /* メインカラー：ポイント色 */
  --color-primary: #008cff;
  /* セカンドカラー：コンテンツ背景 */
  --color-second: #eaf5ff;
  /* その他固定色 */
  --color-white: #fff;
  --color-gray: #3e3e3e;
  --color-red: #f07070;
  --color-bg: #efefef;
  --color-border: #d0d0d0;

  /* Font Size */
  --fs-xs: 12px;
  --fs-ms: 14px;
  --fs-base: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 22px;
  --fs-3xl: 24px;
  --fs-4xl: 28px;

  /* Line Height */
  --lh-tight: 1.4;
  --lh-base: 1.6;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-gray);
  line-height: var(--lh-base);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

/* ===== Utility ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: var(--fs-ms);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-gray);
  border-radius: 50%;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gray);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.is-open span { border-radius: 0; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Mobile Menu ===== */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

/* ===== Hero ===== */
/* Hero */
.hero-img {
  display: block;
  width: 100%;
}

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

/* ===== Common Section ===== */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: var(--fs-4xl);
  font-weight: 800;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-gray);
}

/* ===== About (ラリーについて) ===== */
.about {
  background: var(--color-second);
  padding: 72px 150px;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.about-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  text-align: center;
  justify-content: right;
}

.webp .about {
  background-image: url('../image/about_bg.webp');
}

.no-webp .about {
  background-image: url('../image/about_bg.png');
}

.webp .about,
.no-webp .about {
  background-repeat: no-repeat;
  background-position: 20% bottom;
  background-size: auto 490px;
}

.about-body {
  width: 100%;
}

.about-lead {
  font-size: var(--fs-4xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: var(--lh-tight);
  margin-bottom: 20px;
}

.about-lead br:nth-of-type(1),
.about-lead br:nth-of-type(3) {
  display: none;
}

.about-text br:nth-of-type(3),
.about-text br:nth-of-type(5),
.about-text br:nth-of-type(7),
.about-text br:nth-of-type(11) {
  display: none;
}

/* ===== How to (参加方法) ===== */
.how {
  background: var(--color-bg);
}

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.how-step {
  flex: 1;
  text-align: center;
  padding: 0 12px 0 24px;
}

.how-step:first-child {
  padding-left: 0;
}

.how-step:last-child {
  padding-right: 0;
}

.how-step-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 1px solid var(--color-border);
}

.how-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-step-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin-bottom: 12px;
}

.how-step-text {
  font-size: var(--fs-ms);
  line-height: 1.6;
  text-align: left;
}

.how-step:not(:last-child)::after {
  content: '';
  display: block;
  position: absolute;
  top: 100px;
  right: -16px;
  width: 14px;
  height: 20px;
  background: var(--color-gray);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.how-step {
  position: relative;
}

/* ===== Gift (特典情報) ===== */
.gift {
  background: var(--color-white);
}

.gift .section-head h2 {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-gray);
}

.gift-wrap {
  padding: 40px;
  background: var(--color-bg);
  border-radius: 16px;
}

.gift-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.gift-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 40px;
}

.gift-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.gift-img {
  flex-shrink: 0;
  width: 250px;
  height: 180px;
  overflow: hidden;
}

.gift-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gift-body {
  flex: 1;
}

.gift-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: 4px;
}

.gift-condition {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-ms);
  margin-bottom: 20px;
}

.gift-condition-label {
  flex-shrink: 0;
}

.gift-condition-text {
  flex: 1;
}

/* クーポン利用店舗一覧 */
.gift-shops {
  margin-top: 72px;
}

.gift-shops-title {
  font-weight: 600;
  margin-bottom: 16px;
}

.gift-shops-list {
  list-style: none;
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px;
  max-height: 320px;
  border: 10px solid var(--color-white);
  overflow: auto;
}

.gift-shops-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.gift-shops-list li:first-child {
  padding-top: 0;
}

.gift-shops-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* ===== Checkpoints (チェックポイント) ===== */
.checkpoint {
  background: var(--color-second);
}

.map-area {
  width: calc(100% + 48px);
  height: 590px;
  margin: 0 -24px 100px;
  overflow: hidden;
}

.map-area iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.checkpoint-container {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  padding: 40px;
}

.checkpoint-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.checkpoint-card {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 40px;
}

.checkpoint-card:nth-child(3n) {
  border-right: none;
}

.checkpoint-card:nth-last-child(-n+3) {
  border-bottom: none;
}

.checkpoint-card-name {
  font-size: var(--fs-lg);
  font-weight: 800;
  align-self: start;
  margin-bottom: 8px;
}

.checkpoint-card-address {
  align-self: start;
}

.gift-more-wrap {
  text-align: center;
  padding: 40px 40px 0;
}


.gift-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.gift-modal.is-open {
  display: flex;
}

.gift-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(239, 239, 239, 0.9);
}

.gift-modal-wrap {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 800px;
  margin-top: 24px;
}

.gift-modal-inner {
  background: var(--color-white);
  border-radius: 16px;
  max-height: 80vh;
  overflow-y: auto;
  border: 40px solid var(--color-white);
}

.gift-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-gray);
  font-family: 'Noto Sans JP', sans-serif;
}

.gift-modal-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.gift-modal-list .gift-card {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.gift-modal-list .gift-title {
  font-size: var(--fs-lg);
}

.gift-modal-list .gift-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.checkpoint-more-wrap {
  text-align: center;
  padding: 40px 40px 0;
}

/* ===== Button Common ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  line-height: 54px;
  border: 2px solid;
  border-radius: 50px;
  font-size: var(--fs-base);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.checkpoint-more-btn,
.gift-more-btn {
  border-color: var(--color-primary);
  background: var(--color-white);
  color: var(--color-primary);
}

/* Modal */
.is-modal-open {
  overflow: hidden;
}

.checkpoint-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.checkpoint-modal.is-open {
  display: flex;
}

.checkpoint-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(239, 239, 239, 0.9);
}

.checkpoint-modal-wrap {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 800px;
  margin-top: 24px;
}

.checkpoint-modal-inner {
  background: var(--color-white);
  border-radius: 16px;
  max-height: 82vh;
  overflow-y: auto;
  border: 40px solid var(--color-white);
}

.checkpoint-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-gray);
  font-family: 'Noto Sans JP', sans-serif;
}

.checkpoint-modal-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
}

.checkpoint-modal-list {
  list-style: none;
}

.checkpoint-modal-item {
  display: grid;
  gap: 0;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.checkpoint-modal-item:first-child {
  border-top: 1px solid var(--color-border);
}

.checkpoint-modal-name {
  font-size: var(--fs-lg);
  font-weight: 800;
  margin-bottom: 8px;
}

/* Pagination */
.checkpoint-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.checkpoint-page-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
  font-size: var(--fs-base);
  font-family: 'Noto Sans JP', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.checkpoint-page-btn.is-active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== FAQ (よくある質問) ===== */
.faq {
  background: var(--color-white);
}

.faq-category {
  font-weight: 600;
  margin-bottom: 16px;
}

.faq-list {
  margin-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.faq-list:last-of-type {
  margin-bottom: 0;
}

.faq-item {
  background: var(--color-bg);
  border-radius: 16px;
}

.faq-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 30px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-gray);
  line-height: var(--lh-tight);
  font-family: 'Noto Sans JP', sans-serif;
}

.faq-q-badge,
.faq-a-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 0;
}

.faq-q-badge {
  background: var(--color-white);
  color: var(--color-primary);
}

.faq-a-badge {
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-q-text {
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--color-gray);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.faq-icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: none;
  align-items: flex-start;
  gap: 16px;
  padding: 30px;
  background: var(--color-white);
  border-radius: 8px;
  margin: 0 30px 30px;
  font-size: var(--fs-base);
}

.faq-item.is-open .faq-answer {
  display: flex;
}

.faq-a-text {
  flex: 1;
  font-size: var(--fs-ms);
}

.faq-more-wrap {
  text-align: center;
  margin: 40px;
}

.faq-more-btn {
  border-color: var(--color-gray);
  background: transparent;
  color: var(--color-gray);
}

/* ===== Legal (注意事項) ===== */
.legal {
  background: var(--color-bg);
  font-size: var(--fs-xs);
}

.legal-block {
  margin-bottom: 30px;
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-heading {
  font-size: var(--fs-xs);
  font-weight: 600;
}

.legal-text {
  margin-bottom: 10px;
}

.legal-list {
  list-style: none;
  padding: 0;
}

.legal-list li {
  padding-left: 1em;
  text-indent: -1em;
}

.legal-list li::before {
  content: "・";
}

.legal-placeholder {
  word-break: break-all;
}

/* ===== Contact (お問い合わせ) ===== */
.contact {
  background: var(--color-second);
}

/* Form wrap */
.form-wrap {
  max-width: 800px;
  margin: 0 auto;
}


/* Form rows */
.form-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 15px 0;
}

.form-row:nth-last-child(3) {
  padding-bottom: 0;
}

.form-row:first-child {
  padding-top: 0;
}

.form-label {
  width: 220px;
  flex-shrink: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  padding-top: 10px;
}

.required {
  display: inline-block;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}


.form-field {
  flex: 1;
}

.form-field input[type="text"]::placeholder,
.form-field input[type="email"]::placeholder,
.form-field input[type="tel"]::placeholder,
.form-field textarea::placeholder {
  color: #C3C3C3;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-border);
  font-size: var(--fs-base);
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-field input.is-error,
.form-field textarea.is-error {
  border-color: var(--color-red);
}

.form-field textarea {
  min-height: 160px;
  resize: none;
  overflow: hidden;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: block;
  width: 14px;
  height: 8px;
  background: var(--color-gray);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.select-wrap select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-border);
  font-size: var(--fs-base);
  font-family: inherit;
  appearance: none;
  background: var(--color-white);
  cursor: pointer;
}

.select-wrap select.is-error { border-color: var(--color-red); }
.select-wrap select:focus { outline: none; border-color: var(--color-primary); }

/* Error messages */
.error-msg {
  display: none;
  font-size: var(--fs-xs);
  color: var(--color-red);
  margin-top: 6px;
}

.error-msg.is-visible { display: block; }

/* Checkbox */
.checkbox-single {
  margin-bottom: 8px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--fs-base);
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.optional {
  display: inline-block;
  background: #aaa;
  color: var(--color-white);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Submit area */
.form-privacy {
  margin-top: 40px;
}

.form-privacy-title {
  font-weight: 600;
  font-size: var(--fs-ms);
  margin-bottom: 8px;
}

.form-privacy-body {
  height: 200px;
  overflow-y: auto;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 16px;
  font-size: var(--fs-xs);
}

.form-privacy-body h2 {
  font-size: var(--fs-ms);
}

.form-privacy-body * + h2 {
  margin-top: 16px;
}

.form-privacy-body h3 {
  font-size: var(--fs-xs);
}

.form-privacy-body * + h3 {
  margin-top: 8px;
}

.form-privacy-body hr {
  margin: 16px 0;
  color: var(--color-border);
}

.form-privacy-body ul {
  padding-left: 1.5em;
  margin: 4px 0;
}

.form-privacy-body ul li {
  list-style: disc;
  margin-bottom: 4px;
}

.form-privacy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: var(--fs-sm);
}

.form-privacy-body th,
.form-privacy-body td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.form-privacy-body th {
  background: var(--color-bg);
  font-weight: 600;
}

.form-submit {
  margin-top: 40px;
  text-align: center;
}

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

.btn-submit:disabled {
  border-color: #ccc;
  color: #ccc;
  cursor: not-allowed;
}

/* ===== Fixed Bottom Bar ===== */
.fixedbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #2ececa;
  z-index: 900;
  padding: 0 24px;
}

.fixedbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 1280px;
  height: 100px;
  margin: 0 auto;
}

.fixedbar-text {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-white);
  white-space: nowrap;
  flex-shrink: 0;
}

/* PC：ストアボタン＋QR */
.fixedbar-pc {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fixedbar-store-btn img {
  height: 48px;
  width: auto;
  display: block;
}

.fixedbar-qr img {
  height: 78px;
  width: 78px;
  display: block;
}

/* SP：アクションボタン */
.fixedbar-sp {
  display: none;
}

.fixedbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: var(--fs-base);
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.fixedbar-btn--app {
  background: #3d8fd6;
  color: var(--color-white);
  border: 2px solid transparent;
}

.fixedbar-btn--web {
  background: var(--color-white);
  color: var(--color-red);
  border: 2px solid var(--color-red);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-gray);
  color: var(--color-white);
  padding: 56px 24px 156px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

/* お問い合わせ先 */
.footer-contact {
  text-align: center;
  margin-bottom: 40px;
}

.footer-contact-label {
  display: inline-block;
  font-size: var(--fs-ms);
  color: var(--color-white);
  border-bottom: 1px solid var(--color-white);
  padding-bottom: 4px;
  margin-bottom: 20px;
}

.footer-contact-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-contact-row--mail {
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.footer-org {
  font-size: var(--fs-3xl);
  font-weight: 600;
}

.footer-tel {
  display: block;
  font-size: 30px;
  font-weight: 600;
  color: var(--color-white);
  pointer-events: none;
  cursor: default;
}

.footer-mail-badge {
  display: inline-block;
  background: var(--color-white);
  line-height: 20px;
  border-radius: 999px;
  padding: 0 14px;
  font-size: var(--fs-xs);
  color: var(--color-gray);
}

.footer-mail-address {
  font-size: var(--fs-ms);
  color: var(--color-white);
  transition: opacity 0.2s;
  word-break: break-all;
}

/* クレジット */
.footer-credits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-xs);
  color: var(--color-white);
  border-top: 1px solid var(--color-white);
  padding-top: 32px;
}

.footer-credits p {
  display: flex;
  gap: 4px;
}

.footer-credits p span {
  flex-shrink: 0;
}

/* 主催／協力の本文部分は wrap 可能にする（type/ で text node だった部分） */
.footer-credits p ._lpbind_footer_sponsor,
.footer-credits p ._lpbind_footer_cooperators {
  flex-shrink: 1;
  min-width: 0;
  word-break: break-word;
}

/* ===== Responsive: SP (≤768px) ===== */
@media (max-width: 768px) {

  /* Fixed Bottom Bar */
  .fixedbar {
    padding: 0 20px;
  }

  .fixedbar-inner {
    flex-direction: column;
    height: 110px;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  .fixedbar-text {
    font-size: var(--fs-base);
    text-align: center;
  }

  .fixedbar-pc {
    display: none;
  }

  .fixedbar-sp {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
  }

  .fixedbar-btn {
    flex: 1;
    font-size: var(--fs-ms);
    padding: 0 16px;
    line-height: 44px;
  }

  /* Header */
  .logo img {
    max-height: 36px;
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .header-nav,
  .header-lang {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .mobile-menu {
    top: 56px;
  }

  /* Hero emblem */
  /* Sections */
  .section {
    padding: 56px 30px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .section-head h2 {
    font-size: var(--fs-3xl);
    display: inline-block;
    padding-bottom: 8px;
  }

  .about {
    padding: 40px 30px;
    min-height: auto;
    background-image: none !important;
  }

  .about-inner {
    min-height: auto;
  }

  .about-body {
    width: 100%;
  }

  .about-lead {
    font-size: var(--fs-3xl);
    margin-bottom: 16px;
  }

  .about-lead br:nth-of-type(1),
  .about-lead br:nth-of-type(3) {
    display: block;
}

  .about-text {
    font-size: var(--fs-ms);
    text-align: left;
  }

  .about-text br:nth-of-type(3),
  .about-text br:nth-of-type(5),
  .about-text br:nth-of-type(7),
  .about-text br:nth-of-type(11) {
    display: block;
}

  /* How Steps */
  .how-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .how-step {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 16px;
    width: 100%;
    padding: 0;
  }

  .how-step-img {
    grid-row: 1 / 3;
    width: 120px;
    height: 120px;
    margin: 0;
  }

  .how-step-title {
    align-self: end;
    text-align: left;
    font-size: var(--fs-lg);
    margin-bottom: 0;
  }

  .how-step-text {
    align-self: start;
  }

  .how-step:not(:last-child)::after {
    top: auto;
    bottom: -28px;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 14px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }

  /* Gift */
  .gift-wrap {
    padding: 20px;
  }

  .gift-title {
    text-align: center;
    font-size: var(--fs-xl);
  }

  .gift-condition {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
  }

  .gift-text {
    font-size: var(--fs-ms);
  }

  .gift-list {
    gap: 0;
  }

  .gift-card {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .gift-card:first-child {
    padding-top: 0;
  }

  .gift-card:last-child {
    padding-bottom: 0;
  }

  .gift-img {
    width: 100%;
  }

  .gift-shops {
    margin-top: 36px;
    padding: 0;
  }

  .gift-shops-list {
    padding: 16px;
    font-size: var(--fs-ms);
  }

  .map-area {
    width: calc(100% + 60px);
    height: 300px;
    margin: 0 -30px 30px;
    overflow: hidden;
  }

  /* Checkpoints */
  .checkpoint-container {
    padding: 20px;
  }

  .checkpoint-list {
    grid-template-columns: 1fr;
  }

  .checkpoint-card,
  .checkpoint-card:first-child,
  .checkpoint-card:last-child,
  .checkpoint-card:nth-last-child(-n+3) {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .checkpoint-card:first-child {
    padding-top: 0;
  }

  .checkpoint-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .checkpoint-card-img {
    width: 100%;
  }

  .checkpoint-card-body {
    padding: 16px 0 0;
  }

  .checkpoint-card-name,
  .checkpoint-modal-name {
    font-size: var(--fs-base);
  }

  .checkpoint-card-address,
  .checkpoint-modal-address,
  .checkpoint-modal-tel {
    font-size: var(--fs-ms);
  }

  .checkpoint-modal-inner {
    padding: 0;
    border-width: 40px 20px;
  }

  .checkpoint-modal-item {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 12px 0;
  }

  .checkpoint-more-wrap {
    padding: 40px 40px 20px;
  }

  /* Button */
  .btn {
    width: 200px;
    line-height: 44px;
    font-size: var(--fs-lg);
  }

  /* FAQ */
  .faq-btn {
    padding: 20px;
    gap: 12px;
  }

  .faq-answer {
    margin: 0 20px 20px;
    padding: 16px;
    gap: 12px;
  }

  /* Footer */
  .footer-tel {
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.2s;
  }

  /* Contact form SP */
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0;
  }

  .form-label {
    width: 100%;
    padding-top: 0;
  }

  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="tel"],
  .form-field textarea,
  .select-wrap select {
    font-size: var(--fs-ms);
  }

  .form-field textarea {
    min-height: 250px;
  }

  .footer-org {
    font-size: var(--fs-xl);
    line-height: var(--lh-tight);
  }

  .faq-q-text,
  .faq-a-text {
    font-size: var(--fs-ms);
  }

  .faq-q-badge,
  .faq-a-badge {
    font-size: var(--fs-base);
    width: 40px;
    height: 40px;
  }

  .faq-icon {
    width: 14px;
    height: 14px;
  }

  .faq-list {
    margin-bottom: 56px;
    gap: 16px;
  }

  .footer-contact-row--mail {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .checkpoint-modal-wrap {
    margin-top: 0;
  }

  .footer {
    padding: 56px 30px 166px;
  }

}

  /* Footer追加スタイル */

.line-btn-text{
  font-size: 18px;
  font-weight: 600;
  margin-right:5px;
  color:#fff;
}

.fixedbar-btn--line {
  background: #06C755;
  color: var(--color-white);
  border: 2px solid #fff; transparent;
}



/* ===== Responsive: Tablet (769px–1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-nav {
    gap: 16px;
  }

  .steps {
    gap: 16px;
  }

  .gift-grid {
    gap: 16px;
  }

  /* ラリーについて */
  .about {
    padding: 72px;
  }

  .about-body {
  }

  .webp .about,
  .no-webp .about {
    background-position: 10% bottom;
  }

  /* チェックポイント */
 .checkpoint-container {
    padding: 24px 8px;
  }

  .checkpoint-card,
  .checkpoint-card:first-child,
  .checkpoint-card:last-child {
    padding: 0 16px;
    border-right: 1px solid var(--color-border);
  }

  .checkpoint-card:last-child {
    border-right: none;
  }

  .checkpoint-card-img {
    width: 100%;
  }

  /* 参加方法 */
  .how-steps {
    gap: 0;
  }

  .how-step {
    padding: 0 8px;
  }

  .how-step-img {
    width: 160px;
    height: 160px;
  }

  .how-step-title {
    font-size: var(--fs-base);
  }

  .how-step-text {
    font-size: var(--fs-xs);
  }

  .how-step:not(:last-child)::after {
    top: 80px;
    right: -10px;
    width: 12px;
    height: 18px;
  }

  /* footer */
  .footer-btn-set{
    flex-direction: column;
  }
}

/* ===== Hover（ポインターデバイスのみ） ===== */
@media (hover: hover) {
  .header-nav a:hover {
    color: var(--color-primary);
  }

  .mobile-menu a:hover {
    background: var(--color-bg);
  }

  .checkpoint-more-btn:hover,
  .gift-more-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
  }

  .checkpoint-modal-close:hover {
    opacity: 0.6;
  }

  .checkpoint-page-btn:hover {
    background: var(--color-bg);
  }

  .faq-more-btn:hover {
    background: var(--color-gray);
    color: var(--color-white);
  }

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

  .btn-back-top:hover {
    background: #0080b0;
  }

  .fixedbar-btn:hover {
    opacity: 0.85;
  }

  .footer-mail-address:hover {
    opacity: 0.8;
  }

  .footer-tel:hover {
    opacity: 0.8;
  }
}
