/* ===========================
   ReGRIP - 共通スタイル
   =========================== */

/* --- リセット・ベース --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-red: #D32B1E;
  --color-black: #1c1c1c;
  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-gray-mid: #cccccc;
  --color-gray-dark: #888888;
  --font-main: 'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.7;
}

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

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

.is-release-hidden {
  display: none !important;
}

/* --- ダミー画像ボックス --- */
.dummy-img {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.22) 0 10%, transparent 11%),
    radial-gradient(circle at 74% 36%, rgba(211, 43, 30, 0.22) 0 9%, transparent 10%),
    linear-gradient(120deg, #b9b9b9, #d7d7d7 44%, #9f9f9f);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(28, 28, 28, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  isolation: isolate;
}

.dummy-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(155deg, transparent 0 42%, rgba(28, 28, 28, 0.16) 43% 45%, transparent 46%),
    linear-gradient(25deg, transparent 0 56%, rgba(255, 255, 255, 0.2) 57% 59%, transparent 60%);
  opacity: 0.8;
  z-index: -1;
}

.dummy-img::after {
  content: 'DUMMY';
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(28, 28, 28, 0.72);
  color: var(--color-white);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* --- セクション共通 --- */
.section {
  padding: 80px 24px;
}

.section--gray {
  background: var(--color-gray-light);
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section__subtitle {
  text-align: center;
  color: var(--color-gray-dark);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn--line {
  background: #06C755;
  color: var(--color-white);
}

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

.btn--outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

/* ===========================
   ヘッダー
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-black);
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.header__inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.header__logo span {
  color: var(--color-red);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.header__nav a {
  color: var(--color-gray-mid);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--color-white);
}

.header__nav .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ===========================
   ヒーロー
   =========================== */
.hero {
  position: relative;
  /* 下のコンテンツが約1/4見えるよう75vh */
  height: 75vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
}

/* ダミー状態：グレーボックスで動画エリアを表現 */
.hero__video-dummy {
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.9rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
  width: 100%;
  max-width: 760px;
}

.hero__label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-gray-mid);
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero__title em {
  color: var(--color-red);
  font-style: normal;
}

.hero__desc {
  font-size: 1rem;
  color: var(--color-gray-mid);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero__desc span {
  display: block;
}

/* ===========================
   AboutセクションReGRIPとは
   =========================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__img {
  width: 100%;
  aspect-ratio: 4/3;
}

.about__text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about__text p {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ===========================
   サービスカード
   =========================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-mid);
  border-radius: 8px;
  overflow: hidden;
}

.service-card__img {
  width: 100%;
  aspect-ratio: 16/9;
}

.service-card__body {
  padding: 24px;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__text {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 16px;
}

.service-card__link {
  font-size: 0.85rem;
  color: var(--color-red);
  font-weight: 700;
}

/* ===========================
   利用の流れ
   =========================== */
.flow__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.flow__step {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.flow__step:last-child {
  padding-bottom: 0;
}

.flow__step-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.flow__step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow__step-line {
  width: 2px;
  flex: 1;
  background: var(--color-gray-mid);
  margin-top: 8px;
}

.flow__step:last-child .flow__step-line {
  display: none;
}

.flow__step-body {
  padding-top: 8px;
}

.flow__step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.flow__step-text {
  font-size: 0.875rem;
  color: #555;
}

/* ===========================
   FAQ（アコーディオン）
   =========================== */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--color-gray-mid);
  border-radius: 4px;
  overflow: hidden;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq__question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-red);
  flex-shrink: 0;
}

.faq__item.is-open .faq__question::after {
  content: '−';
}

.faq__answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.875rem;
  color: #555;
}

.faq__item.is-open .faq__answer {
  display: block;
}

/* ===========================
   CTA バナー
   =========================== */
.cta {
  background: var(--color-black);
  padding: 80px 24px;
  text-align: center;
  color: var(--color-white);
}

.cta__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta__text {
  color: var(--color-gray-mid);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ===========================
   フッター
   =========================== */
.footer {
  background: #111;
  color: var(--color-gray-dark);
  padding: 32px 24px;
  text-align: center;
  font-size: 0.8rem;
}

.footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--color-gray-mid);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--color-white);
}

/* ===========================
   メニューページ
   =========================== */
.page-hero {
  background: var(--color-black);
  padding: 120px 24px 60px;
  text-align: center;
  color: var(--color-white);
}

.page-hero__title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.page-hero__sub {
  color: var(--color-gray-mid);
  font-size: 0.9rem;
  margin-top: 8px;
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.menu-tab {
  padding: 10px 24px;
  border: 2px solid var(--color-gray-mid);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: none;
  transition: all 0.2s;
}

.menu-tab.is-active,
.menu-tab:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 48px;
}

.menu-table th,
.menu-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-mid);
  font-size: 0.9rem;
}

.menu-table th {
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
}

.menu-table tr:nth-child(even) td {
  background: var(--color-gray-light);
}

.menu-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.menu-note {
  background: var(--color-gray-light);
  border-left: 4px solid var(--color-red);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 48px;
  border-radius: 0 4px 4px 0;
}

.price-link-box {
  border: 1px solid var(--color-gray-mid);
  border-radius: 4px;
  padding: 16px 20px;
  margin: -24px 0 24px;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.price-link-box p {
  color: #555;
}

.price-link-box a {
  color: var(--color-red);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===========================
   特商法ページ
   =========================== */
.tokushoho-table {
  width: 100%;
  border-collapse: collapse;
}

.tokushoho-table th,
.tokushoho-table td {
  padding: 16px;
  border: 1px solid var(--color-gray-mid);
  font-size: 0.9rem;
  vertical-align: top;
}

.tokushoho-table th {
  background: var(--color-gray-light);
  font-weight: 700;
  width: 200px;
  white-space: nowrap;
}

/* ===========================
   スクロールヒント
   =========================== */
.hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-gray-mid);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.hero__scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-gray-mid), transparent);
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ===========================
   ハンバーガーメニュー
   =========================== */
.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s;
}

.header__menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.header__menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: var(--color-black);
  padding: 24px;
  z-index: 99;
}

.header__drawer.is-open {
  display: block;
}

.header__drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header__drawer-nav a {
  color: var(--color-white);
  font-size: 1rem;
  display: block;
  padding: 4px 0;
}

/* ===========================
   納期バナー
   =========================== */
.delivery-banner {
  background: #fff8e1;
  border-left: 4px solid #f5a623;
  padding: 14px 20px;
  font-size: 0.95rem;
  margin-bottom: 40px;
  border-radius: 0 4px 4px 0;
}

.delivery-banner strong {
  color: var(--color-red);
  font-size: 1.1rem;
}

/* ===========================
   サービスカード4列
   =========================== */
.services__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===========================
   料金セクション見出し
   =========================== */
.price__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-red);
}

.price__heading:first-of-type {
  margin-top: 0;
}

.price__heading small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-gray-dark);
}

/* ===========================
   FAQ追記メモ
   =========================== */
.faq__note {
  text-align: center;
  color: var(--color-gray-dark);
  font-size: 0.8rem;
  margin-top: 24px;
}

/* ===========================
   ソールカード（sole.html）
   =========================== */
.sole__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sole-card {
  border: 1px solid var(--color-gray-mid);
  border-radius: 8px;
  overflow: hidden;
}

.sole-card__img {
  width: 100%;
  aspect-ratio: 4/3;
}

.sole-card__body {
  padding: 20px;
}

.sole-card__brand {
  font-size: 0.75rem;
  color: var(--color-gray-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sole-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.sole-card__text {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 14px;
}

.sole-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sole__note {
  color: var(--color-gray-dark);
  font-size: 0.85rem;
  margin-top: 24px;
  text-align: center;
}

.tag {
  background: var(--color-gray-light);
  border: 1px solid var(--color-gray-mid);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.75rem;
  color: #444;
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 768px) {
  .section {
    padding: 60px 16px;
  }

  .hero {
    min-height: 560px;
    height: 75vh;
  }

  .hero__content {
    padding: 0 20px;
  }

  .hero__label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    line-height: 1.8;
    max-width: 100%;
  }

  .hero__title {
    font-size: 2.35rem;
    letter-spacing: 0;
  }

  .hero__desc {
    font-size: 0.9rem;
  }

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

  .services__grid,
  .services__grid--4 {
    grid-template-columns: 1fr;
  }

  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .tokushoho-table th {
    width: 120px;
  }

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

  .price-link-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }
}

@media (min-width: 769px) {
  .hero__desc span:first-child,
  .hero__desc span:nth-child(2) {
    display: inline;
  }
}
