/* ===========================
   Variables & Reset
   =========================== */
:root {
  --color-primary: #274233;
  --color-primary-dark: #264233;
  --color-beige: #f1f0ec;
  --color-orange: #e88000;
  --color-accent: #f39a00;
  --color-white: #ffffff;
  --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: 1100px;
  --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: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary-dark);
  letter-spacing: 0.04em;
}

.section-title--white {
  color: var(--color-white);
}

.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: 18px;
  font-weight: 800;
  padding: 20px 56px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.cta-button:hover {
  background: #d67400;
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

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

/* ===========================
   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;
  padding: 0 var(--section-pad-x);
}

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

/* ===========================
   Hero / KV
   =========================== */
.hero {
  position: relative;
  height: clamp(480px, 56vw, 720px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

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

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  font-size: clamp(15px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--color-white);
  margin-top: 16px;
  line-height: 1.6;
  opacity: 0.92;
}

.hero .cta-button {
  margin-top: 40px;
  align-self: flex-start;
}

/* ===========================
   Features (OLCAの特徴)
   =========================== */
.features {
  background: var(--color-beige);
  padding: 80px 0 96px;
}

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

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

.feature-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.feature-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-card__number {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  flex-shrink: 0;
}

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

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

.feature-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.6;
  padding-top: 2px;
}

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

.feature-card__icon img {
  max-height: 90px;
  max-width: 160px;
  object-fit: contain;
}

.feature-card__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.9;
  letter-spacing: -0.01em;
  margin-top: auto;
}

/* ===========================
   Concept
   =========================== */
.concept {
  background: var(--color-white);
  padding: 100px 0;
}

.concept__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: center;
  gap: 56px;
}

.concept__text {
  flex: 1;
  min-width: 0;
}

.concept__label {
  font-family: var(--font-number);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-primary-dark);
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.concept__title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin-bottom: 28px;
}

.concept__desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 2;
  letter-spacing: -0.01em;
}

.concept__image {
  flex-shrink: 0;
  width: 42%;
  max-width: 440px;
}

.concept__image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
  background: var(--color-primary);
  padding: 72px 0;
}

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

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

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

/* ===========================
   App Section
   =========================== */
.app-section {
  background: var(--color-beige);
  padding: 96px 0;
  overflow: hidden;
}

.app-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: center;
  gap: 48px;
}

.app-section__text {
  flex: 1;
  min-width: 0;
}

.app-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.app-section__badges {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 40px;
}

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

.app-section__desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 2;
  letter-spacing: -0.01em;
}

.app-section__image {
  flex-shrink: 0;
  width: 46%;
  max-width: 520px;
}

.app-section__image img {
  width: 100%;
  height: auto;
}

/* ===========================
   Testimonials (購入者の声)
   =========================== */
.testimonials {
  background: var(--color-primary);
  padding: 80px 0 96px;
}

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

.testimonials__cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px 44px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.testimonial-card__image {
  flex-shrink: 0;
  width: 220px;
  text-align: center;
}

.testimonial-card__image img {
  width: 200px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto;
}

.testimonial-card__image-placeholder {
  width: 200px;
  height: 112px;
  border-radius: 12px;
  background: var(--color-beige);
  margin: 0 auto;
}

.testimonial-card__profile {
  margin-top: 16px;
  text-align: center;
}

.testimonial-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
}

.testimonial-card__car {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  opacity: 0.8;
}

.testimonial-card__content {
  flex: 1;
  min-width: 0;
}

.testimonial-card__heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
  line-height: 1.5;
}

.testimonial-card__underline {
  display: block;
  height: 4px;
  background: var(--color-accent);
  width: 50%;
  margin-top: 6px;
  border-radius: 2px;
}

.testimonial-card__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 2;
  letter-spacing: -0.01em;
}

/* ===========================
   Steps (お問い合わせの流れ)
   =========================== */
.steps {
  background: var(--color-beige);
  padding: 80px 0 96px;
}

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

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

.step-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s;
}

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

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

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

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

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

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

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

.step-card__icon img,
.step-card__icon svg {
  max-height: 90px;
  max-width: 160px;
  object-fit: contain;
}

.step-card__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.9;
  letter-spacing: -0.01em;
  margin-top: auto;
}

/* ===========================
   FAQ
   =========================== */
.faq {
  background: var(--color-white);
  padding: 80px 0 96px;
  border-top: 1px solid var(--color-beige);
}

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

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

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

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

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

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

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

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

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

.faq__answer {
  padding: 0 28px 24px;
}

.faq__answer p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 2;
  opacity: 0.85;
}

/* ===========================
   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: 14px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s;
}

.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);
}

.feature-card:nth-child(2).fade-in { transition-delay: 0.12s; }
.feature-card:nth-child(3).fade-in { transition-delay: 0.24s; }
.step-card:nth-child(2).fade-in { transition-delay: 0.12s; }
.step-card:nth-child(3).fade-in { transition-delay: 0.24s; }
.testimonial-card:nth-child(2).fade-in { transition-delay: 0.12s; }

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

  .concept__inner {
    gap: 40px;
  }

  .concept__image {
    width: 38%;
  }

  .app-section__inner {
    gap: 32px;
  }

  .app-section__image {
    width: 42%;
  }

  .testimonial-card {
    padding: 32px;
    gap: 28px;
  }

  .testimonial-card__image {
    width: 180px;
  }

  .testimonial-card__image img {
    width: 160px;
    height: 90px;
  }

  .testimonial-card__image-placeholder {
    width: 160px;
    height: 90px;
  }
}

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

  /* Common */
  .section-title {
    font-size: 22px;
  }

  .cta-button {
    font-size: 15px;
    padding: 16px 36px;
    width: 100%;
    max-width: 320px;
    border-radius: 6px;
  }

  /* Header */
  .header__inner {
    padding: 0 20px;
  }

  .header__logo img {
    height: 24px;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 440px;
  }

  .hero__content {
    padding: 56px 20px 60px;
    justify-content: flex-start;
  }

  .hero__title {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.9;
    opacity: 0.88;
  }

  .hero .cta-button {
    margin-top: 40px;
    align-self: center;
  }

  /* Features */
  .features {
    padding: 56px 0 64px;
  }

  .features__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-card {
    padding: 28px 24px 24px;
  }

  .feature-card__icon {
    height: 90px;
    margin: 16px 0 12px;
  }

  /* Concept */
  .concept {
    padding: 64px 0;
  }

  .concept__inner {
    flex-direction: column;
    gap: 32px;
  }

  .concept__label {
    font-size: 18px;
  }

  .concept__title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .concept__desc {
    font-size: 14px;
    line-height: 2;
  }

  .concept__image {
    width: 100%;
    max-width: 100%;
  }

  /* CTA Section */
  .cta-section {
    padding: 56px 0;
  }

  .cta-section__title {
    font-size: 20px;
  }

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

  /* App Section */
  .app-section {
    padding: 56px 0 64px;
  }

  .app-section__inner {
    flex-direction: column;
    gap: 24px;
  }

  .app-section__title {
    font-size: 22px;
    text-align: center;
    margin-bottom: 16px;
  }

  .app-section__badges {
    justify-content: center;
    margin-bottom: 0;
  }

  .app-badge img {
    height: 36px;
  }

  .app-section__image {
    width: calc(100% + 20px);
    max-width: none;
    margin-left: -10px;
  }

  .app-section__desc {
    font-size: 13px;
    line-height: 2;
  }

  /* Testimonials */
  .testimonials {
    padding: 56px 0 64px;
  }

  .testimonials__cards {
    gap: 16px;
    margin-top: 36px;
  }

  .testimonial-card {
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    max-width: 400px;
  }

  .testimonial-card__image {
    width: 100%;
  }

  .testimonial-card__image img {
    width: 160px;
    height: 90px;
  }

  .testimonial-card__image-placeholder {
    width: 160px;
    height: 90px;
  }

  .testimonial-card__name {
    font-size: 14px;
  }

  .testimonial-card__car {
    font-size: 13px;
  }

  .testimonial-card__heading {
    font-size: 17px;
  }

  .testimonial-card__text {
    font-size: 13px;
  }

  /* Steps */
  .steps {
    padding: 56px 0 64px;
  }

  .steps__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .step-card {
    padding: 28px 24px 24px;
  }

  .step-card__icon {
    height: 90px;
    margin: 16px 0 12px;
  }

  /* FAQ */
  .faq {
    padding: 56px 0 64px;
  }

  .faq__list {
    margin-top: 32px;
    max-width: 100%;
    gap: 10px;
  }

  .faq__question {
    padding: 18px 20px;
  }

  .faq__q-text {
    font-size: 14px;
  }

  .faq__answer {
    padding: 0 20px 18px;
  }

  .faq__answer p {
    font-size: 13px;
  }

  /* Footer */
  .footer {
    padding: 32px 0;
  }

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

  .footer__logo img {
    height: 24px;
  }

  .footer__links {
    gap: 20px;
    flex-wrap: wrap;
  }

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

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

  .hero__subtitle {
    font-size: 13px;
  }

  .features__cards,
  .steps__cards {
    max-width: 100%;
  }

  .testimonial-card {
    max-width: 100%;
  }

  .concept__title {
    font-size: 28px;
  }
}
