/* ==========================================================================
   RidePhone Renewal Design — style.css
   Methodology: FLOCSS-inspired (Foundation / Layout / Component / Utility)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Foundation — Variables / Reset / Base
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #0B5CAD;
  --color-primary-dark: #084a86;
  --color-secondary: #0077CC;
  --color-accent: #FF8C00;
  --color-bg: #F7F9FC;
  --color-bg-alt: #EDF1F7;
  --color-bg-gray: #F1F2F4;
  --color-text: #222222;
  --color-text-sub: #56606B;
  --color-success: #38A169;
  --color-white: #FFFFFF;
  --color-border: #E3E8EF;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0B5CAD 0%, #0077CC 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(11,92,173,0.75) 0%, rgba(8,50,94,0.85) 100%);

  /* Typography */
  --font-jp: "Noto Sans JP", "BIZ UDPGothic", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;

  /* Layout */
  --max-width: 1320px;
  --content-width: 1200px;
  --section-padding: 120px;
  --section-padding-mobile: 72px;
  --radius-lg: 16px;
  --radius-btn: 12px;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 16px 48px rgba(11, 92, 173, 0.12);

  /* Motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-base: 0.4s;
  --dur-slow: 0.8s;
}

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

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

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Focus visibility for keyboard users (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   2. Layout — Container / Section
   -------------------------------------------------------------------------- */
.l-container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.l-section {
  padding-block: var(--section-padding);
}

.l-section--alt {
  background-color: var(--color-bg-alt);
}

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

.l-section--brand {
  background: var(--gradient-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .l-section {
    padding-block: var(--section-padding-mobile);
  }
}

/* --------------------------------------------------------------------------
   3. Component — Common
   -------------------------------------------------------------------------- */

/* Section heading */
.c-heading {
  text-align: center;
  margin-bottom: 64px;
}

.c-heading__eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: rgba(11, 92, 173, 0.08);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.c-heading__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
}

.c-heading__title--white {
  color: #fff;
}

.c-heading__lead {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--color-text-sub);
  line-height: 1.9;
}

.c-heading--left {
  text-align: left;
  margin-bottom: 40px;
}

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding-inline: 36px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  transition: transform var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.c-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.c-btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.c-btn--primary:hover {
  background: #e87e00;
}

.c-btn--outline {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.c-btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.c-btn--white {
  background: #fff;
  color: var(--color-primary);
}

.c-btn--ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.c-btn--ghost-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

.c-btn--full {
  width: 100%;
}

/* Card base */
.c-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}

/* Scroll reveal animations (JS toggles .is-visible) */
.js-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-standard), transform 0.8s var(--ease-standard);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s var(--ease-standard), transform 0.7s var(--ease-standard);
}
.js-reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}
.js-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-standard), transform 0.6s var(--ease-standard);
}
.js-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.js-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.js-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.js-stagger.is-visible > *:nth-child(3) { transition-delay: 0.18s; }
.js-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.js-stagger.is-visible > *:nth-child(5) { transition-delay: 0.34s; }
.js-stagger.is-visible > *:nth-child(6) { transition-delay: 0.42s; }
.js-stagger.is-visible > *:nth-child(7) { transition-delay: 0.5s; }
.js-stagger.is-visible > *:nth-child(8) { transition-delay: 0.58s; }
.js-stagger.is-visible > *:nth-child(9) { transition-delay: 0.66s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal, .js-reveal-zoom, .js-stagger > * {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(247, 249, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--dur-base) var(--ease-standard);
}

.l-header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.l-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.l-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.l-header__logo-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  font-family: var(--font-jp);
}

.l-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.l-header__nav-list {
  display: flex;
  gap: 32px;
}

.l-header__nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}
.l-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--dur-fast) var(--ease-standard);
}
.l-header__nav-link:hover::after {
  width: 100%;
}

.l-header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.l-header__cta .c-btn {
  height: 48px;
  padding-inline: 22px;
  font-size: 0.9rem;
}

.l-header__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.l-header__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-primary);
  transition: transform var(--dur-fast) var(--ease-standard), opacity var(--dur-fast);
}
.l-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.l-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.l-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .l-header__nav-list { gap: 20px; }
  .l-header__cta .c-btn--outline { display: none; }
}

@media (max-width: 900px) {
  .l-header__nav-list {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--dur-base) var(--ease-standard), opacity var(--dur-base);
    box-shadow: var(--shadow-soft);
  }
  .l-header__nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
  }
  .l-header__nav-list li {
    border-bottom: 1px solid var(--color-border);
  }
  .l-header__nav-link {
    display: block;
    padding: 16px 4px;
  }
  .l-header__cta { display: none; }
  .l-header__toggle { display: flex; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.p-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 84px;
  overflow: hidden;
  color: #fff;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.p-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  z-index: -1;
}

.p-hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.p-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 28px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.p-hero__catch {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.p-hero__sub {
  margin-top: 28px;
  font-size: 1.1rem;
  line-height: 2;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.95);
}

.p-hero__sub strong {
  color: #FFD199;
}

.p-hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.p-hero__product {
  position: relative;
  display: flex;
  justify-content: center;
}

.p-hero__product-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  padding: 28px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  max-width: 360px;
}

.p-hero__product-card img {
  border-radius: 16px;
}

.p-hero__product-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.p-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
}

.p-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  position: relative;
}
.p-hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: #fff;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { top: -40px; }
  100% { top: 40px; }
}

@media (max-width: 900px) {
  .p-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .p-hero__sub { margin-inline: auto; }
  .p-hero__actions { justify-content: center; }
  .p-hero__product { margin-top: 20px; }
}

/* --------------------------------------------------------------------------
   6. 社会課題 Section (flow)
   -------------------------------------------------------------------------- */
.p-flow {
  position: relative;
}

.p-flow__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  position: relative;
}

.p-flow__item {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.p-flow__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 92, 173, 0.08);
  border-radius: 50%;
  color: var(--color-primary);
}

.p-flow__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.p-flow__desc {
  font-size: 0.88rem;
  color: var(--color-text-sub);
}

.p-flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.p-flow__svg-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: -1;
}

.p-flow__result {
  margin-top: 56px;
  text-align: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
}

.p-flow__result-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 12px;
}

.p-flow__result-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
}

.p-flow__result-title span {
  color: #FFD199;
}

@media (max-width: 900px) {
  .p-flow__grid {
    grid-template-columns: 1fr;
  }
  .p-flow__arrow {
    transform: rotate(90deg);
  }
}

/* --------------------------------------------------------------------------
   7. 課題→解決 Section
   -------------------------------------------------------------------------- */
.p-solution__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.p-solution__panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.p-solution__panel--problem {
  border-top: 6px solid #C4C9D1;
}

.p-solution__panel--solution {
  border-top: 6px solid var(--color-accent);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF7EE 100%);
}

.p-solution__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.p-solution__panel--problem .p-solution__label {
  background: #EEF0F3;
  color: var(--color-text-sub);
}

.p-solution__panel--solution .p-solution__label {
  background: rgba(255, 140, 0, 0.12);
  color: var(--color-accent);
}

.p-solution__illust {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 28px;
}

.p-solution__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-solution__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.7;
}

.p-solution__list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.p-solution__panel--problem .p-solution__list li::before {
  background-color: #E7E9ED;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356606B' stroke-width='3'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.p-solution__panel--solution .p-solution__list li::before {
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.p-solution__arrow {
  display: none;
}

@media (max-width: 900px) {
  .p-solution__grid {
    grid-template-columns: 1fr;
  }
  .p-solution__panel { padding: 32px 24px; }
}

/* --------------------------------------------------------------------------
   8. 特徴 (Features) 3x3 Cards
   -------------------------------------------------------------------------- */
.p-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.p-features__card {
  padding: 36px 28px;
  text-align: left;
}

.p-features__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.p-features__num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.p-features__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(11, 92, 173, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.p-features__title {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.p-features__desc {
  font-size: 0.92rem;
  color: var(--color-text-sub);
}

@media (max-width: 900px) {
  .p-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .p-features__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   9. 利用シーン (Scenes) Masonry-ish Grid
   -------------------------------------------------------------------------- */
.p-scenes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.p-scenes__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.p-scenes__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-standard);
}

.p-scenes__item:hover img {
  transform: scale(1.08);
}

.p-scenes__item--tall { grid-row: span 2; }

.p-scenes__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 18px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

@media (max-width: 1024px) {
  .p-scenes__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .p-scenes__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .p-scenes__item--tall { grid-row: span 2; }
}

/* --------------------------------------------------------------------------
   10. 最大6ボタン Section
   -------------------------------------------------------------------------- */
.p-buttons {
  position: relative;
  overflow: hidden;
}

.p-buttons__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.p-buttons__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-buttons__use {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.p-buttons__use-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-buttons__use-text {
  font-weight: 600;
  font-size: 0.98rem;
}

.p-buttons__center {
  text-align: center;
}

.p-buttons__center img {
  max-width: 380px;
  margin-inline: auto;
  border-radius: 20px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.25));
}

@media (max-width: 1024px) {
  .p-buttons__inner {
    grid-template-columns: 1fr;
  }
  .p-buttons__col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .p-buttons__use { flex: 1 1 260px; }
  .p-buttons__center { order: -1; }
}

/* --------------------------------------------------------------------------
   11. 技術力 (Tech Timeline)
   -------------------------------------------------------------------------- */
.p-tech__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
  position: relative;
}

.p-tech__step {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  position: relative;
}

.p-tech__step-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.p-tech__icon {
  width: 52px;
  height: 52px;
  margin: 12px auto 16px;
  border-radius: 50%;
  background: rgba(11, 92, 173, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-tech__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.p-tech__desc {
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

@media (max-width: 900px) {
  .p-tech__timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .p-tech__timeline { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   12. 導入メリット (Benefits) Cards
   -------------------------------------------------------------------------- */
.p-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.p-benefits__card {
  padding: 34px 26px;
  text-align: center;
}

.p-benefits__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--gradient-primary);
}

.p-benefits__role {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

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

.p-benefits__desc {
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

@media (max-width: 900px) {
  .p-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .p-benefits__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   13. 製品比較 (Comparison Table)
   -------------------------------------------------------------------------- */
.p-compare__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.p-compare__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.p-compare__table caption {
  text-align: left;
  padding: 20px 24px 0;
  font-size: 0.9rem;
  color: var(--color-text-sub);
}

.p-compare__table th,
.p-compare__table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.p-compare__table thead th {
  background: var(--color-bg-alt);
  font-weight: 700;
  white-space: nowrap;
}

.p-compare__table thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}
.p-compare__table thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.p-compare__table tbody th {
  background: #FAFBFD;
  font-weight: 600;
  white-space: nowrap;
}

.p-compare__table td[data-highlight="true"] {
  color: var(--color-primary);
  font-weight: 700;
}

.p-compare__check {
  color: var(--color-success);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   14. FAQ Accordion
   -------------------------------------------------------------------------- */
.p-faq__list {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-faq__item {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.p-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 24px 28px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
}

.p-faq__q-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(11, 92, 173, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 0.9rem;
}

.p-faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}
.p-faq__icon::before,
.p-faq__icon::after {
  content: "";
  position: absolute;
  background: var(--color-primary);
  transition: transform var(--dur-base) var(--ease-standard);
}
.p-faq__icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}
.p-faq__icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}
.p-faq__question[aria-expanded="true"] .p-faq__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.p-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-standard);
}

.p-faq__answer-inner {
  padding: 0 28px 24px 78px;
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   15. CTA Section
   -------------------------------------------------------------------------- */
.p-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.p-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.p-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 40, 74, 0.55) 0%, rgba(8, 40, 74, 0.82) 100%);
  z-index: -1;
}

.p-cta__title {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.p-cta__lead {
  margin-top: 20px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.p-cta__actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.p-cta__phone {
  margin-top: 28px;
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
}
.p-cta__phone a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.l-footer {
  background: #0A2A4A;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 80px 32px;
}

.l-footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.l-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 16px;
}

.l-footer__desc {
  font-size: 0.9rem;
  line-height: 1.9;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.65);
}

.l-footer__heading {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 20px;
}

.l-footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.l-footer__list a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur-fast);
}
.l-footer__list a:hover {
  color: #fff;
}

.l-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 32px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .l-footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .l-footer__top {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   17. AI Operator Section
   -------------------------------------------------------------------------- */
.p-ai__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.p-ai__card {
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}

.p-ai__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.p-ai__icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,92,173,0.12) 0%, rgba(0,119,204,0.06) 100%);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.p-ai__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-text);
}

.p-ai__desc {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.85;
}

@media (max-width: 900px) {
  .p-ai__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .p-ai__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer: tagline & address
   -------------------------------------------------------------------------- */
.l-footer__tagline {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  margin-top: -10px;
}

.l-footer__address {
  font-style: normal;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.l-footer__address a {
  color: rgba(255,255,255,0.5);
  transition: color var(--dur-fast);
}
.l-footer__address a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   18. Responsive Enhancements
   -------------------------------------------------------------------------- */

/* Mobile nav CTA buttons (inside hamburger dropdown) */
.l-header__nav-mobile-cta {
  display: none;
  border-bottom: none !important;
}

@media (max-width: 900px) {
  .l-header__nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 8px;
  }
  .l-header__nav-mobile-cta .c-btn {
    height: 52px;
    font-size: 0.95rem;
    border-radius: 10px;
  }
}

/* Sticky mobile CTA bar */
.p-mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  .p-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  }
  .p-mobile-bar .c-btn {
    flex: 1;
    height: 50px;
    font-size: 0.9rem;
    padding-inline: 12px;
  }
  body {
    padding-bottom: 76px;
  }
}

/* FAQ: reduce left padding on mobile */
@media (max-width: 560px) {
  .p-faq__question {
    padding: 18px 20px;
    font-size: 0.93rem;
  }
  .p-faq__answer-inner {
    padding: 0 20px 20px;
  }
}

/* Hero: stack CTA buttons on small screens */
@media (max-width: 400px) {
  .p-hero__actions {
    flex-direction: column;
  }
  .p-hero__actions .c-btn {
    width: 100%;
  }
}

/* CTA section: stack buttons on mobile */
@media (max-width: 480px) {
  .p-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  .p-cta__actions .c-btn {
    width: 100%;
    max-width: 340px;
  }
  .p-cta__phone {
    font-size: 1.2rem;
  }
}

/* Flow result box: reduce padding on mobile */
@media (max-width: 560px) {
  .p-flow__result {
    padding: 28px 20px;
  }
}

/* Solution panels: reduce padding on very small screens */
@media (max-width: 400px) {
  .p-solution__panel {
    padding: 24px 16px;
  }
}

/* Footer bottom: center on small screens */
@media (max-width: 480px) {
  .l-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Container: tighten padding on very small screens */
@media (max-width: 375px) {
  .l-container {
    padding-inline: 16px;
  }
  .l-header__inner {
    padding-inline: 16px;
  }
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.u-en { font-family: var(--font-en); }
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
