/* ===========================
   Variables & Reset
   =========================== */
:root {
  --color-primary: #274233;
  --color-primary-dark: #264233;
  --color-beige: #f1f0ec;
  --color-orange: #e88000;
  --color-white: #ffffff;
  --color-green-light: #d9e8af;
  --color-blue-light: #a0bbe2;
  --color-price-blue: #008cff;
  --color-faq-bg: rgba(241, 240, 236, 0.85);
  --font-main: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-number: "Unbounded", sans-serif;
  --max-width: 1200px;
  --section-pad-x: 40px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ===========================
   Shared Components
   =========================== */
.section-title {
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary-dark);
  letter-spacing: 0.04em;
}

/* ===========================
   Header
   =========================== */
.header {
  background: var(--color-primary);
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-pad-x);
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__ctas {
  display: flex;
  gap: 12px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s, transform 0.2s;
  white-space: nowrap;
}

.header__cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.header__cta--blue {
  background: #008cff;
}

.header__cta--black {
  background: #000000;
}

/* ===========================
   Driver Hero / KV
   =========================== */
.drv-hero {
  position: relative;
  background: var(--color-beige);
  overflow: hidden;
  height: 720px;
}

.drv-hero__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  overflow: hidden;
}

.drv-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* --- PC用KV --- */
.drv-hero__content--pc {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: flex-start;
  height: 100%;
  gap: 40px;
}

.drv-hero__content--pc .drv-hero__left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 88px;
  max-width: 480px;
  gap: 12px;
}

.drv-hero__content--pc .drv-hero__left .drv-hero__title {
  margin: 0;
}

.drv-hero__content--pc .drv-hero__phone {
  flex: 1;
  min-width: 0;
}

.drv-hero__title {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.drv-hero__title--large {
  font-size: 48px;
  display: inline;
}

.drv-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(232, 128, 0, 0.3);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  letter-spacing: 0.04em;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  flex-shrink: 0;
}

.drv-cta-button:hover {
  background: #d67400;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 128, 0, 0.4);
}

.drv-cta-button:active {
  transform: translateY(0);
}

.drv-hero__content--pc .drv-hero__phone {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.drv-hero__content--pc .drv-hero__phone img {
  width: 100%;
  max-width: 780px;
  height: auto;
  margin-top: 24px;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.15));
}

/* --- SP用KV（768px以下で表示）--- */
.drv-hero__content--sp {
  display: none;
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 24px;
}

.drv-hero__content--sp .drv-hero__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.drv-hero__content--sp .drv-hero__title--large {
  font-size: 28px;
}

.drv-hero__content--sp .drv-hero__phone {
  max-width: 320px;
  display: flex;
  justify-content: center;
}

.drv-hero__content--sp .drv-hero__phone img {
  width: 100%;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
}

.drv-hero__content--sp .drv-cta-button {
  font-size: 14px;
  padding: 14px 20px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  align-self: center;
}

/* ===========================
   Driver Features
   =========================== */
.drv-features {
  overflow: hidden;
}

.drv-feature {
  padding: 80px 0;
}

.drv-feature--green {
  background: var(--color-green-light);
}

.drv-feature--blue {
  background: var(--color-blue-light);
}

.drv-feature__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.drv-feature__inner--reverse {
  flex-direction: row-reverse;
}

.drv-feature__text {
  flex: 0 1 500px;
  min-width: 0;
}

.drv-feature__label {
  font-family: var(--font-number);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-primary);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.drv-feature__title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.drv-feature__desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 2;
}

.drv-feature__phone {
  flex-shrink: 0;
  width: 240px;
}

.drv-feature__phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* ===========================
   Cars Section (乗れるクルマの例)
   =========================== */
.drv-cars {
  background: var(--color-beige);
  padding: 80px 0 96px;
}

.drv-cars__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.drv-cars__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.drv-car-card {
  background: var(--color-white);
  border: 4px solid var(--color-primary);
  border-radius: 25px;
  padding: 28px 20px 20px;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.2s;
}

.drv-car-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.drv-car-card__image {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.drv-car-card__image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.drv-car-card__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.drv-car-card__price {
  background: rgba(143, 203, 255, 0.53);
  padding: 8px 16px;
  text-align: center;
}

.drv-car-card__price-main {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-price-blue);
}

.drv-car-card__price-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-price-blue);
}

/* ===========================
   CTA Section (ドライバー)
   =========================== */
.drv-cta-section {
  background: var(--color-primary);
  padding: 72px 0;
}

.drv-cta-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--section-pad-x);
}

.drv-cta-section__title {
  font-size: 25px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.drv-cta-section__text {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 36px;
  line-height: 1.8;
  opacity: 0.92;
}

.drv-cta-section__badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.drv-app-badge img {
  height: 54px;
  width: auto;
}

/* ===========================
   Steps (ご利用の流れ)
   =========================== */
.drv-steps {
  background: var(--color-beige);
  padding: 80px 0 96px;
}

.drv-steps__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.drv-steps__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
  margin-top: 56px;
}

@supports (grid-template-rows: subgrid) {
  .drv-steps__cards {
    grid-template-rows: repeat(3, auto);
  }

  .drv-step-card {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
}

.drv-step-card {
  background: var(--color-white);
  border-radius: 25px;
  padding: 32px 20px 24px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  transition: box-shadow 0.3s;
}

.drv-step-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.drv-step-card__header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.drv-step-card__number {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  flex-shrink: 0;
}

.drv-step-card__label {
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.drv-step-card__num {
  font-family: var(--font-number);
  font-size: 25px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
}

.drv-step-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.6;
  padding-top: 8px;
}

.drv-step-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  margin: 20px 0 16px;
}

.drv-step-card__icon img {
  max-height: 100%;
  max-width: 140px;
  object-fit: contain;
}

.drv-step-card__text {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.9;
  letter-spacing: -0.02em;
  align-self: start;
}

.drv-step-card__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drv-step-card__text a:hover {
  opacity: 0.7;
}

/* ===========================
   FAQ (ドライバー)
   =========================== */
.drv-faq {
  background: var(--color-white);
  padding: 80px 0 96px;
}

.drv-faq__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.drv-faq__list {
  max-width: 652px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drv-faq__item {
  background: var(--color-faq-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.drv-faq__item:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.drv-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.drv-faq__question::-webkit-details-marker {
  display: none;
}

.drv-faq__q-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.6;
}

.drv-faq__arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  transform: rotate(180deg);
}

details[open] .drv-faq__arrow {
  transform: rotate(0deg);
}

.drv-faq__answer {
  padding: 0 24px 20px;
}

.drv-faq__answer p {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 2;
  letter-spacing: -0.02em;
}

.drv-faq__answer ul {
  padding-left: 20px;
  margin-top: 4px;
}

.drv-faq__answer li {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 2;
  letter-spacing: -0.02em;
}

.drv-faq__answer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drv-faq__answer a:hover {
  opacity: 0.7;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--color-primary);
  padding: 48px 0;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s;
  letter-spacing: -0.02em;
}

.footer__links a:hover {
  opacity: 0.7;
}

/* ===========================
   Animations
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.drv-step-card:nth-child(2).fade-in { transition-delay: 0.08s; }
.drv-step-card:nth-child(3).fade-in { transition-delay: 0.16s; }
.drv-step-card:nth-child(4).fade-in { transition-delay: 0.24s; }
.drv-car-card:nth-child(2).fade-in { transition-delay: 0.12s; }
.drv-car-card:nth-child(3).fade-in { transition-delay: 0.24s; }

/* ===========================
   Tablet (768px - 1024px)
   =========================== */
@media (max-width: 1024px) {
  :root {
    --section-pad-x: 32px;
  }

  .header__ctas {
    gap: 8px;
  }

  .header__cta {
    font-size: 12px;
    padding: 8px 16px;
  }

  .drv-hero {
    height: auto;
    min-height: 600px;
  }

  .drv-hero__content--pc {
    min-height: 600px;
  }

  .drv-hero__content--pc .drv-hero__left {
    padding-top: 40px;
  }

  .drv-hero__content--pc .drv-hero__title {
    font-size: 30px;
  }

  .drv-hero__content--pc .drv-hero__title--large {
    font-size: 38px;
  }

  .drv-hero__content--pc .drv-hero__phone {
    max-width: 440px;
  }

  .drv-hero__bg {
    height: 45%;
  }

  .drv-feature__inner {
    gap: 40px;
  }

  .drv-feature__phone {
    width: 200px;
  }

  .drv-feature__title {
    font-size: 22px;
  }

  .drv-feature__desc {
    font-size: 15px;
  }

  .drv-steps__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .drv-cars__cards {
    gap: 20px;
  }
}

/* ===========================
   Mobile (< 768px)
   =========================== */
@media (max-width: 768px) {
  :root {
    --section-pad-x: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .header {
    height: 56px;
  }

  .header__inner {
    padding: 0 20px;
  }

  .header__logo img {
    height: 22px;
  }

  .header__ctas {
    display: none;
  }

  /* --- KV（SP用表示・PC用非表示）--- */
  .drv-hero {
    height: auto;
    min-height: auto;
  }

  .drv-hero__content--pc {
    display: none !important;
  }

  .drv-hero__content--sp {
    display: flex !important;
    padding: 32px 20px 24px;
  }

  .drv-hero__bg {
    height: 40%;
  }

  /* --- POINT --- */
  .drv-feature {
    padding: 48px 0;
  }

  .drv-feature__inner,
  .drv-feature__inner--reverse {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }

  .drv-feature__text {
    flex: none;
    max-width: 100%;
  }

  .drv-feature__label {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .drv-feature__title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .drv-feature__desc {
    font-size: 14px;
    line-height: 1.9;
  }

  .drv-feature__phone {
    width: 180px;
    margin: 0 auto;
  }

  /* --- 乗れるクルマの例 --- */
  .drv-cars {
    padding: 48px 0 56px;
  }

  .drv-cars__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .drv-car-card {
    padding: 20px 16px 16px;
    border-width: 3px;
    border-radius: 20px;
  }

  .drv-car-card__image {
    height: 120px;
    margin-bottom: 12px;
  }

  /* --- CTA --- */
  .drv-cta-section {
    padding: 48px 0;
  }

  .drv-cta-section__title {
    font-size: 18px;
  }

  .drv-cta-section__text {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .drv-cta-section__badges {
    flex-direction: row;
    gap: 12px;
    justify-content: center;
  }

  .drv-app-badge img {
    height: 40px;
  }

  /* --- ご利用の流れ --- */
  .drv-steps {
    padding: 48px 0 56px;
  }

  .drv-steps__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
  }

  .drv-step-card {
    padding: 20px 14px 18px;
    border-radius: 18px;
  }

  .drv-step-card__header {
    gap: 6px;
  }

  .drv-step-card__label {
    font-size: 11px;
  }

  .drv-step-card__num {
    font-size: 20px;
  }

  .drv-step-card__title {
    font-size: 12px;
    padding-top: 4px;
  }

  .drv-step-card__icon {
    height: 64px;
    margin: 12px 0 10px;
  }

  .drv-step-card__icon img {
    max-width: 100px;
  }

  .drv-step-card__text {
    font-size: 10px;
    line-height: 1.7;
  }

  /* --- よくある質問 --- */
  .drv-faq {
    padding: 48px 0 56px;
  }

  .drv-faq__list {
    margin-top: 28px;
    max-width: 100%;
    gap: 8px;
  }

  .drv-faq__question {
    padding: 14px 16px;
    gap: 12px;
  }

  .drv-faq__q-text {
    font-size: 13px;
  }

  .drv-faq__answer {
    padding: 0 16px 14px;
  }

  .drv-faq__answer p,
  .drv-faq__answer li {
    font-size: 12px;
    line-height: 1.8;
  }

  /* --- フッター --- */
  .footer {
    padding: 32px 0;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer__logo img {
    height: 24px;
  }

  .footer__links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer__links a {
    font-size: 12px;
  }
}

/* ===========================
   Small Mobile (< 400px)
   =========================== */
@media (max-width: 400px) {
  .drv-hero__title {
    font-size: 20px;
  }

  .drv-hero__title--large {
    font-size: 26px;
  }

  .drv-steps__cards {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}
