@charset "utf-8";
/* ============================================================
   front-page.css — Vet360 トップページ専用スタイル
   Design concept: Near-future, premium, orbit-centric
============================================================ */

/* --------------------------------------------------------
   1. HERO SECTION — Light lavender gradient
-------------------------------------------------------- */
.p-hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 120px;
  background: linear-gradient(150deg, #f0f2fe 0%, #e7eafc 50%, #dce1f9 100%);
}
.p-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 80px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 1;
}

/* Subtle decorative rings */
.p-hero__deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.p-hero__deco--ring-lg {
  width: 700px;
  height: 700px;
  border: 1px solid rgba(75, 83, 212, 0.07);
  top: -200px;
  right: -80px;
}

.p-hero__deco--ring-sm {
  width: 460px;
  height: 460px;
  border: 1px solid rgba(75, 83, 212, 0.05);
  top: -100px;
  right: 80px;
}

.p-hero__deco--glow-tl {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(133, 138, 227, 0.15) 0%, transparent 70%);
  top: -180px;
  left: -100px;
}

.p-hero__deco--glow-br {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 110, 220, 0.08) 0%, transparent 70%);
  bottom: 0;
  right: 10%;
}

.p-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 40px;
}

/* Text content */
.p-hero__content {
  flex: 0 0 auto;
  max-width: 540px;
}

.p-hero__sub {
  display: none;
}

.p-hero__title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  color: #1a1d3a;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.p-hero__em {
  font-style: normal;
  color: var(--color-primary);
  background: none;
  -webkit-text-fill-color: initial;
}

.p-hero__desc {
  font-size: 16px;
  line-height: 1.85;
  color: #555d6e;
  margin-bottom: 44px;
}

/* Hero buttons */
.p-hero__buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Text link button (replaces ghost on light bg) */
.c-btn--text-link {
  align-items: center;
  gap: 6px;
  padding: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-main);
  background: transparent;
  border: none;
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
  cursor: pointer;
}

.c-btn--text-link:hover {
  gap: 10px;
  color: var(--color-primary);
  opacity: 1;
  transform: none;
}

.c-btn--text-link .material-icons {
  font-size: 18px;
  transition: transform 0.2s;
}

.c-btn--text-link:hover .material-icons {
  transform: translateX(3px);
}

/* Hero image block */
.p-hero__image {
  flex: 1 1 0;
  position: relative;
  max-width: 900px;
  min-height: 520px;
  align-self: stretch;
  overflow: visible;
}

/* Gear: large, top-center of image area, full color */
.p-hero__image-gear {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 58%;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 20px 40px rgba(100, 80, 200, 0.18));
}

/* Background object: sits behind the device mockup */
.p-hero__image-obj {
  position: absolute;
  top: -4%;
  left: 2%;
  width: 58%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

/* Device mockup: bottom, right bleed OK */
.p-hero__image-main {
  position: absolute;
  right: -60px;
  bottom: 0;
  z-index: 1;
  height: 80%;
  width: auto;
  filter: drop-shadow(0 16px 48px rgba(75, 83, 212, 0.14)) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.09));
}

/* Responsive hero */
@media screen and (max-width: 1100px) {
  .p-hero {
    padding: 150px 0 60px;
  }
  .p-hero__content {
    max-width: 480px;
  }
}

@media screen and (max-width: 900px) {
  .p-hero {
    padding: 110px 0 90px;
  }
  .p-hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .p-hero__content {
    max-width: 100%;
  }
  .p-hero__buttons {
    justify-content: center;
  }
  .p-hero__image {
    width: 100%;
    max-width: 420px;
    min-height: auto;
    margin: 0 auto;
  }
  .p-hero__image-main {
    width: 100%;
  }
  .p-hero__deco--ring-lg,
  .p-hero__deco--ring-sm {
    display: none;
  }
}

@media screen and (max-width: 540px) {
  .p-hero {
    padding: 100px 0 90px;
  }
  .p-hero__title {
    font-size: 30px;
  }
  .p-hero__buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .p-hero__buttons .c-btn {
    width: 100%;
    justify-content: center;
  }
}


/* --------------------------------------------------------
   2. LOGO SLIDER
-------------------------------------------------------- */
.p-logo-slider {
  overflow: hidden;
  padding: 48px 0 64px;
  background-color: #ffffff;
  position: relative;
  z-index: 3;
}

.p-logo-slider__wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p-logo-slider__track {
  display: flex;
  align-items: center;
  width: max-content;
}

.p-logo-slider__track--left  { animation: logoScrollLeft  40s linear infinite; }
.p-logo-slider__track--right {
  animation: logoScrollRight 40s linear infinite;
  transform: translateX(-50%);
}

.p-logo-slider__img {
  height: 48px;
  width: 200px;
  object-fit: contain;
  padding: 0 30px;
  flex-shrink: 0;
  filter: none;
  transition: opacity 0.3s ease;
  opacity: 0.85;
}

.p-logo-slider__img:hover {
  opacity: 1;
}

@keyframes logoScrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes logoScrollRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


/* --------------------------------------------------------
   3. FUNCTIONS — VERTICAL TAB STACK
-------------------------------------------------------- */
.p-functions {
  background: #ffffff;
  padding-top: 48px;
  padding-bottom: 48px;
  position: relative;
  z-index: 2;
}

.p-functions .l-container {
  position: relative;
  z-index: 3;
}
.p-functions .c-sec-header { margin-bottom: 24px; }
.p-functions .c-sec-header__sub { color: #9398d8; }

/* Layout: left-col (ring + tabs) + panels */
.p-func-layout {
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: center;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Left column: 360° ring + vertical tabs ── */
.p-func-left-col {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  /* カルーセルのはみ出しでページ幅が変わらないよう封じる */
  overflow: hidden;
}

/* ── Vertical Carousel with Progress Ring ── */
.p-func-carousel {
  position: relative;
  width: 190px;
  height: 660px;
  flex-shrink: 0;
  /* paint まで封じてアニメ中の描画がページ幅に影響しないようにする */
  contain: layout style paint;
}

/* Items wrapper — gradient mask fades top/bottom edges */
.p-func-carousel__items {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, black 5%, black 95%, transparent 100%);
}

/* Each feature icon circle */
.p-func-car-item {
  position: absolute;
  width: 148px; height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, rgba(255,255,255,0.20) 0%, transparent 58%),
              var(--car-color, #858ae3);
  display: flex; align-items: center; justify-content: center;
  /* centered within the wrapper */
  left: 50%; top: 50%;
  margin-left: -74px; margin-top: -74px;
  opacity: 0;
  transform: translateY(0) scale(0.1);
  transition: transform 0.60s cubic-bezier(0.16,1,0.3,1),
              opacity    0.60s ease,
              box-shadow 0.60s ease;
  will-change: transform, opacity;
}

.p-func-car-item.is-front {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow:
    0 8px 28px color-mix(in srgb, var(--car-color, #858ae3) 30%, transparent),
    0 2px 10px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.p-func-car-icon {
  width: 52px; height: 52px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* Progress ring — sits above items, always crisp */
.p-func-car-ring-svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  width: 176px; height: 176px;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 6px var(--ring-color, #858ae3));
  transition: filter 0.5s ease;
}

.p-func-car-ring-track {
  stroke: transparent;
  stroke-width: 3;
  fill: none;
}

.p-func-car-ring-fill {
  stroke: var(--ring-color, #858ae3);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 490 490;
  stroke-dashoffset: 490;
  transition: stroke 0.5s ease;
}

@keyframes carRingFill {
  from { stroke-dashoffset: 490; }
  to   { stroke-dashoffset: 0; }
}

.p-func-car-ring-fill.is-animating {
  animation: carRingFill 4s linear forwards;
}

/* Reduce motion: skip fill animation */
@media (prefers-reduced-motion: reduce) {
  .p-func-car-ring-fill.is-animating { animation: none; stroke-dashoffset: 0; }
}

.p-func-car-item:not(.is-front) {
  cursor: pointer;
}

/* Feature name label — overlaid inside the front circle, white */
.p-func-car-label {
  position: absolute;
  top: calc(50% + 42px);
  left: 0; right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: opacity 0.4s ease;
  z-index: 25;
  pointer-events: none;
}

/* ── Vertical tab list ── */
.p-func-vert {
  width: 100%;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.p-func-vert__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(75,83,212,0.10);
  background: #f8f9fb;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  width: 100%;
  text-align: left;
  transition: all 0.38s cubic-bezier(0.16,1,0.3,1);
  opacity: 0.42;
  transform: scale(0.93);
  transform-origin: left center;
  position: relative;
  overflow: hidden;
}
.p-func-vert__item.is-near {
  opacity: 0.63;
  transform: scale(0.96);
}
.p-func-vert__item.is-adjacent {
  opacity: 0.82;
  transform: scale(0.98);
}
.p-func-vert__item.is-active {
  opacity: 1;
  transform: scale(1);
  background: #fff;
  border-color: var(--tab-color, #4b53d4);
  border-left-width: 3px;
  box-shadow: 0 8px 28px rgba(75,83,212,0.13);
}
.p-func-vert__item.is-active::before {
  content: none;
}

.p-func-vert__icon-wrap {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(75,83,212,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.28s ease;
}
.p-func-vert__item.is-active .p-func-vert__icon-wrap {
  background: color-mix(in srgb, var(--tab-color, #4b53d4) 18%, transparent);
}

.p-func-vert__icon {
  width: 20px; height: 20px;
  object-fit: contain;
}

.p-func-vert__label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #525878;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.28s ease;
}
.p-func-vert__item.is-active .p-func-vert__label {
  color: #1a1d3a;
  font-weight: 700;
}

.p-func-vert__arrow {
  color: #c8ccee;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: color 0.28s ease, transform 0.28s ease;
}
.p-func-vert__arrow .material-icons { font-size: 18px; }
.p-func-vert__item.is-active .p-func-vert__arrow {
  color: var(--tab-color, #4b53d4);
  transform: translateX(3px);
}

/* Hover boost for non-active items */
.p-func-vert__item:hover:not(.is-active) {
  opacity: 0.75;
  background: #f0f1fa;
}

/* Reduce motion: disable progress bar animation */
@media (prefers-reduced-motion: reduce) {
  .p-func-vert__item.is-active::before { animation: none; transform: scaleX(1); }
}

/* Right: description panels */
.p-func-panels {
  flex: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.p-func-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  animation: funcPanelIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
.p-func-panel.is-active { display: flex; }

.p-func-panel__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

@keyframes funcPanelIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.p-func-panel__badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px;
  border-radius: 30px; font-size: 13px; font-weight: 700; border: 1px solid transparent; align-self: flex-start;
}
.p-func-panel__badge-icon { width: 1em; height: 1em; object-fit: contain; flex-shrink: 0; }

.p-func-panel__title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700; line-height: 1.42; color: #1a1d3a;
}

.p-func-panel__desc {
  font-size: 14px;
  color: #525878;
  line-height: 1.75;
}

.p-func-panel__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #4b53d4; transition: gap 0.2s;
  text-decoration: none;
}
.p-func-panel__link:hover { gap: 10px; }
.p-func-panel__link .material-icons { font-size: 17px; }

.p-func-panel__image {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  border-radius: 16px;
  border: 1px solid rgba(75,83,212,0.10);
  overflow: hidden;
  flex-shrink: 0;
  background: transparent;
  box-shadow: 0 4px 24px rgba(75,83,212,0.08);
}
.p-func-panel__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* モバイル用タブストリップ */
.p-func-tabs-mobile { display: none; }
.p-func-mob-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0; border: none; border-radius: 0;
  background: transparent; cursor: pointer; min-width: 52px;
  font-family: 'Noto Sans JP', sans-serif; transition: all 0.25s; flex-shrink: 0;
}
.p-func-mob-btn__circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in srgb, var(--tab-color, #4b53d4) 14%, #f0f1fa);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, box-shadow 0.25s;
}
.p-func-mob-btn__circle img { width: 22px; height: 22px; object-fit: contain; }
.p-func-mob-btn span { font-size: 10px; font-weight: 700; color: #9aa0bf; }
.p-func-mob-btn.is-active .p-func-mob-btn__circle {
  background: var(--tab-color, #4b53d4);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--tab-color, #4b53d4) 40%, transparent);
}
.p-func-mob-btn.is-active span { color: var(--tab-color, #4b53d4); }

@media (max-width: 900px) {
  .p-functions { padding: 48px 0 60px; }
  .p-func-layout { flex-direction: column; gap: 0; width: 100%; }
  .p-func-left-col { display: none; }
  .p-func-panels {
    padding: 0 24px;
    min-height: auto;
    width: 100%;
  }
  .p-func-panel { gap: 16px; }
  .p-func-panel__title { font-size: clamp(22px, 5.5vw, 30px); }
  .p-func-panel__image { max-height: none; }
  .p-func-panel__image img { height: auto; object-fit: contain; }
  .p-func-panel__desc { font-size: 14px; }
  .p-func-tabs-mobile {
    display: flex; overflow-x: auto; gap: 8px;
    padding: 24px 24px 20px; margin-top: 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; width: 100%; box-sizing: border-box;
  }
  .p-func-tabs-mobile::-webkit-scrollbar { display: none; }
}


/* --------------------------------------------------------
   4. FEATURES — SPLIT CARDS (課題 ↔ 解決 2カラム)
-------------------------------------------------------- */
.p-features {
  padding: 80px 0 100px;
  background: #fafbfe;
}

.p-features__cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 56px;
}

.p-feature-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(200, 206, 240, 0.6);
  box-shadow: 0 4px 24px rgba(26, 29, 58, 0.05);
  min-height: 300px;
}

/* ── 左パネル：課題 ── */
.p-feature-card__issue {
  background: linear-gradient(160deg, #f0f2fc 0%, #e8ecf8 100%);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* コーナーデコレーション（左上・右下） */
.p-feature-card__issue-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
}
.p-feature-card__issue-deco--tl {
  top: -8px;
  left: -8px;
  width: 44%;
  opacity: 0.70;
}
.p-feature-card__issue-deco--br {
  bottom: -8px;
  right: -8px;
  width: 38%;
  opacity: 0.55;
  transform: rotate(180deg);
}

/* 画像がない場合の浮遊アイコン CSS 代替 */
.p-feature-card__bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.p-feature-card__bubble {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(75, 83, 212, 0.08);
}

.p-feature-card__bubble .material-icons {
  font-size: 22px;
  color: rgba(75, 83, 212, 0.45);
}

.p-feature-card__issue-content {
  position: relative;
  z-index: 1;
}

.p-feature-card__issue-title {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1d3a;
  line-height: 1.45;
}

.p-feature-card__issue-desc {
  font-size: 14px;
  color: #626064;
  line-height: 1.75;
}

/* ── 右パネル：解決 ── */
.p-feature-card__solution {
  padding: 52px 52px 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: #fff;
}

.p-feature-card__solution-text { flex: 1; }

.p-feature-card__solution-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.45;
  color: #1a1d3a;
}

.p-feature-card__solution-title .u-color-primary { color: var(--color-primary); }

.p-feature-card__solution-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 28px;
}

.p-feature-card__solution-image {
  flex: 0 0 auto;
  text-align: right;
  align-self: flex-end;
}

.p-feature-card__solution-image img {
  max-width: 132px;
  height: auto;
  display: block;
  margin-left: auto;
  filter: drop-shadow(0 8px 24px rgba(75, 83, 212, 0.1));
}

@media screen and (max-width: 960px) {
  .p-feature-card { grid-template-columns: 1fr; }
  /* 課題パネル: 縦に圧縮してすっきりさせる */
  .p-feature-card__issue {
    padding: 32px 28px;
    min-height: 0;
    justify-content: flex-end;
  }
  /* 解決パネル: テキスト縦積み、イラストは右下固定 */
  .p-feature-card__solution {
    padding: 28px 28px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .p-feature-card__solution-text { margin-bottom: 0; }
  .p-feature-card__solution-desc { margin-bottom: 20px; }
  /* イラストを右下に固定 */
  .p-feature-card__solution-image {
    align-self: flex-end;
    text-align: right;
    margin-top: -8px; /* テキストとの隙間を詰める */
  }
  .p-feature-card__solution-image img {
    max-width: 100px;
    margin: 0 0 0 auto;
  }
}

@media screen and (max-width: 600px) {
  .p-feature-card__issue { padding: 24px 20px; }
  .p-feature-card__solution { padding: 24px 20px 20px; }
  .p-feature-card__solution-image img { max-width: 80px; }
  .p-feature-card__issue-title { font-size: 16px; }
  .p-feature-card__issue-desc { font-size: 13px; }
}


/* --------------------------------------------------------
   5. COLUMN CARDS
-------------------------------------------------------- */
.p-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .p-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .p-card-grid { grid-template-columns: 1fr; }
}

.c-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.c-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
}

.c-card__thumb {
  aspect-ratio: 16/9;
  background: #eef0f5;
  overflow: hidden;
}

.c-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.c-card:hover .c-card__thumb img {
  transform: scale(1.06);
}

.c-card__body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.c-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #1a1d3a;
}

.c-card__date {
  font-size: 12px;
  color: var(--color-text-sub, #666);
  margin-top: auto;
  font-family: 'Montserrat', sans-serif;
}


/* --------------------------------------------------------
   6. STORIES
-------------------------------------------------------- */
.p-stories {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.p-stories__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 88%;
  height: 100%;
  background: linear-gradient(160deg, #f7f8fd 0%, #eef0fa 100%);
  border-radius: 0 80px 80px 0;
  z-index: -1;
}

/* Stories Slider */
.p-stories__slider {
  position: relative;
  margin-top: 40px;
}

.p-stories__viewport {
  overflow: hidden;
  border-radius: 4px;
}

.p-stories__track {
  display: flex;
  gap: 28px;
  padding: 12px 2px 20px;
  transition: transform 0.65s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
}

.p-stories__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 16px));
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #e4e8f4;
  box-shadow: 0 4px 20px rgba(26,29,58,0.10);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
  z-index: 10;
  color: #4b53d4;
  padding: 0;
}
.p-stories__arrow:hover {
  background: #4b53d4;
  border-color: #4b53d4;
  box-shadow: 0 6px 24px rgba(75,83,212,0.30);
  color: #fff;
}
.p-stories__arrow .material-icons { font-size: 24px; color: inherit; }
.p-stories__arrow--prev { left: -24px; }
.p-stories__arrow--next { right: -24px; }

.p-stories__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}
.p-stories__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d4d8ee;
  border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
}
.p-stories__dot.is-active {
  background: #4b53d4;
  width: 28px;
  border-radius: 4px;
}

.p-stories__action {
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  .p-stories__arrow { display: none; }
}

/* Story cards — aligned with main.css for consistency with archive page */
.p-story-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: 1px solid #f0f2f8;
}

.p-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(75, 83, 212, 0.11), 0 4px 16px rgba(0,0,0,0.06);
}

.p-story-card__thumb {
  position: relative;
  background: #eef0f5;
  overflow: visible;
}

.p-story-card__logo-wrap {
  position: absolute;
  bottom: -20px;
  right: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 2px 12px rgba(75, 83, 212, 0.10);
  border: 1px solid rgba(75, 83, 212, 0.08);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.p-story-card__logo {
  max-width: 80px;
  max-height: 30px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.p-story-card__no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  background: #eef0f5;
}

.p-story-card__no-image i { font-size: 56px; }

.p-story-card__body {
  padding: 30px 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.p-story-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1d3a;
  line-height: 1.5;
  margin-bottom: 14px;
}

.p-story-card__excerpt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.p-story-card__meta-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px dashed #eef0f8;
  padding-top: 14px;
}

.p-story-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #555;
}

.p-story-card__meta i {
  color: #4052d6;
  font-size: 16px;
}

.c-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 50px;
  border: 1px solid #dde0ee;
  background: #fff;
  color: #333;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.c-btn-pill:hover {
  background: #f4f5fc;
  border-color: var(--color-primary, #4b53d4);
  color: var(--color-primary, #4b53d4);
  transform: translateY(-2px);
  opacity: 1;
}

.c-btn-pill i { margin-left: 8px; }

@media screen and (max-width: 768px) {
  .p-stories__bg { width: 100%; border-radius: 0; }
  .p-story-card  { flex: 0 0 82vw; }
}


/* --------------------------------------------------------
   7. FAQ + NEWS (トップページ)
-------------------------------------------------------- */
.p-faq-news__inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.p-faq { flex: 1; }

.p-faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-faq__item {
  background: #fff;
  border: 1px solid #e8eaf4;
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.p-faq__item:hover {
  box-shadow: 0 6px 20px rgba(75, 83, 212, 0.06);
}

.p-faq__item summary {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 15px;
}

.p-faq__item summary::-webkit-details-marker { display: none; }

.p-faq__item .q-icon {
  color: var(--color-primary, #4b53d4);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 900;
  margin-right: 12px;
  flex-shrink: 0;
}

.p-faq__item .q-text { flex: 1; }

.p-faq__item .arrow {
  color: #aab0c8;
  transition: transform 0.3s ease;
}

.p-faq__item[open] .arrow {
  transform: rotate(180deg);
  color: var(--color-primary, #4b53d4);
}

.p-faq__answer {
  padding: 0 24px 24px 54px;
  font-size: 14px;
  line-height: 1.8;
  color: #666;
}

.p-news {
  width: 380px;
  flex-shrink: 0;
}

.p-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-news__list li {
  border-bottom: 1px solid #e8eaf4;
  padding: 18px 0;
}

.p-news__list li:first-child {
  border-top: 1px solid #e8eaf4;
}

.p-news__list .date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}

.p-news__list a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  display: block;
  color: #1a1d3a;
}

.p-news__list a:hover {
  color: var(--color-primary, #4b53d4);
}

@media screen and (max-width: 960px) {
  .p-faq-news__inner {
    flex-direction: column;
    gap: 60px;
  }
  .p-news { width: 100%; }
}

@media screen and (max-width: 600px) {
  /* Hero */
  .p-hero { padding: 110px 0 90px; }

  /* Logo slider */
  .p-logo-slider { padding: 32px 0 44px; }
  .p-logo-slider__img { height: 36px; width: 160px; padding: 0 20px; }

  /* Feature cards */
  .p-feature-card__issue { padding: 32px 22px; min-height: 180px; }
  .p-feature-card__solution { padding: 28px 22px; }
  .p-feature-card__issue-deco--tl { width: 40%; }
  .p-feature-card__issue-deco--br { width: 34%; }

  /* Column header flex */
  .c-sec-header--flex { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Stories */
  .p-stories { padding: 72px 0; }
  .p-stories__bg { width: 100%; border-radius: 0; }
  .p-story-card { flex: 0 0 82vw; }

  /* FAQ */
  .p-faq-news__inner { gap: 48px; }
  .p-faq__item summary { font-size: 13px; padding: 16px 18px; }
  .p-faq__answer { padding: 0 18px 20px 46px; }

  /* CTA pill */
  .c-btn-pill { padding: 14px 28px; font-size: 0.9rem; }
}

/* --------------------------------------------------------
   SECURITY SECTION
-------------------------------------------------------- */
.p-security {
  background: linear-gradient(160deg, #f7f8fd 0%, #eef0fa 100%);
}

.p-security__inner {
  display: flex;
  gap: 64px;
  align-items: center;
}

.p-security__content { flex: 1; min-width: 0; }

.p-security__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary, #4b53d4);
  margin-bottom: 12px;
}

.p-security__title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  color: #1a1d3a;
  margin-bottom: 20px;
  line-height: 1.4;
}

.p-security__desc {
  font-size: 15px;
  color: #525878;
  line-height: 1.9;
  margin-bottom: 28px;
}

.p-security__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-security__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #3a3f6e;
}

.p-security__list-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(75, 83, 212, 0.10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.p-security__list-icon .material-icons {
  font-size: 18px;
  color: var(--color-primary, #4b53d4);
}

.p-security__visual {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-security__cert-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(75, 83, 212, 0.10);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(75, 83, 212, 0.06);
  transition: box-shadow 0.3s ease;
}

.p-security__cert-card:hover {
  box-shadow: 0 8px 24px rgba(75, 83, 212, 0.12);
}

.p-security__cert-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(75, 83, 212, 0.10);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.p-security__cert-icon-wrap .material-icons { font-size: 22px; color: #4b53d4; }
.p-security__cert-icon-wrap--blue { background: rgba(0, 120, 212, 0.10); }
.p-security__cert-icon-wrap--blue .material-icons { color: #0078d4; }
.p-security__cert-icon-wrap--green { background: rgba(40, 160, 100, 0.10); }
.p-security__cert-icon-wrap--green .material-icons { color: #28a064; }

.p-security__cert-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1d3a;
  margin-bottom: 3px;
}

.p-security__cert-sub {
  font-size: 12px;
  color: #7880a0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .p-security__inner { flex-direction: column; gap: 40px; }
  .p-security__visual { flex: none; width: 100%; }
}

@media (max-width: 600px) {
  .p-security__cert-card { padding: 16px 18px; }
}

@media screen and (max-width: 480px) {
  /* FAQ — compact on narrow screens */
  .p-faq-news { padding: 56px 0; }
  .p-faq-news__inner { gap: 36px; }
  .p-faq__list { gap: 10px; }
  .p-faq__item { border-radius: 10px; }
  .p-faq__item summary { padding: 14px 16px; font-size: 12.5px; }
  .p-faq__answer { padding: 0 16px 16px 40px; font-size: 13px; line-height: 1.75; }
  .p-faq__item .q-icon { font-size: 16px; margin-right: 10px; }
}

@media screen and (max-width: 480px) {
  /* Functions mobile tabs */
  .p-func-mob-btn { padding: 10px 10px; min-width: 64px; }
  .p-func-mob-btn span { font-size: 9px; }
  .p-func-mob-btn .p-func-orbit__btn-icon { width: 20px; height: 20px; }

  /* Feature panel */
  .p-func-panel__title { font-size: 20px; }
  .p-func-panel__desc { font-size: 13px; }

  /* Dots */
  .p-stories__dots { margin-top: 20px; }
}


/* ============================================================
   MOBILE CVR REDESIGN
   - Hero image hidden so CTAs are visible above-the-fold
   - Sticky bottom CTA bar appears after hero scrolls away
============================================================ */

@media screen and (max-width: 600px) {
  /* Hide hero device mockup — prioritise title + CTA above fold */
  .p-hero__image { display: none; }
  .p-hero { padding: 100px 0 90px; }
  .p-hero__desc { font-size: 14px; margin-bottom: 32px; }
}

/* Sticky CTA bar (hidden on desktop, managed via JS on mobile) */
.p-mob-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(75, 83, 212, 0.12);
  padding: 12px 20px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(26, 29, 58, 0.10);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-mob-sticky.is-visible { transform: translateY(0); }

@media screen and (max-width: 768px) {
  .p-mob-sticky { display: block; }

  .p-mob-sticky__btn {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  /* Prevent sticky bar from covering bottom content */
  .p-front-page { padding-bottom: 80px; }
}


/* =============================================================
   RESPONSIVE OVERHAUL — トップページヒーロー
   クリスタル: 小さく・さりげなく / スクリーン画像: 大きく見やすく
============================================================= */

/* タブレット (≤900px): 縦スタック時のイメージブロック修正 */
@media screen and (max-width: 900px) {
  /* コンテナに最低高さを確保（absolute 子要素が消えないように） */
  .p-hero__image {
    min-height: 320px;
  }

  /* クリスタル: サイズダウン・少し控えめに */
  .p-hero__image-gear {
    width: 44%;
    opacity: 0.82;
    top: -4%;
  }

  /* スクリーン画像: コンテナ内でしっかり表示 */
  .p-hero__image-main {
    width: 95%;
    bottom: 0;
  }
}

/* スマホ (≤540px): さらに調整 */
@media screen and (max-width: 540px) {
  .p-hero__image {
    min-height: 260px;
    max-width: 360px;
  }

  /* クリスタル: 文字の背景にさりげなく */
  .p-hero__image-gear {
    width: 38%;
    opacity: 0.65;
    top: -2%;
  }

  /* スクリーン画像: 最大限に表示 */
  .p-hero__image-main {
    width: 98%;
  }
}

/* ① 特徴カード：矢頭（シェブロン）デザインの区切り
   overflow:hidden を clip-path で代替し、右端を矢頭形状にクリップ */
.p-feature-card__issue {
  overflow: visible;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 50%, calc(100% - 36px) 100%, 0 100%);
  padding-right: 68px; /* 元44px + 矢頭深さ36px - 余白8px */
}

@media screen and (max-width: 960px) {
  .p-feature-card__issue {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 50% 100%, 0 calc(100% - 24px));
    padding-right: 28px;
    padding-bottom: 52px;
  }
}
