@charset "UTF-8";

/* =========================================================================
   Fuku-Biz Renewal Site / top.css
   ---------------------------------------------------------------------
   TOP (index.html) 固有のスタイル。common.css の後に読み込む前提。
   セクション目次:
     01. Hero (FV / 既存企業・創業の入口分岐)
     02. Message (フクビズの想い)
     03. Service (相談できること 6カテゴリ)
     05. Flow (相談の流れ)
     06. Team (アドバイザー紹介)
     07. Case List (最新サポート事例3件)
     08. News (お知らせ・ブログ)
     09. Track Record (累計実績数値)
     10. Partners (連携機関)
   ========================================================================= */


/* =========================================================================
   01. Hero (FV / 画面いっぱいのコラージュ メインビジュアル)
   ------------------------------------------------------------------------- */
.p-hero {
  position: relative;
  background: var(--rose-50);
  padding: 20px 20px 34px;
  overflow: hidden;
}

.p-hero__stage {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

/* コラージュ本体（PC：横に大きく使う） */
.p-hero__collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  gap: 12px;
  height: min(84vh, 760px);
}

.p-hero__cell {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .35);
}

.p-hero__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-hero__cell--booth  { grid-column: 5 / 13; grid-row: 1 / 8; }
.p-hero__cell--man    { grid-column: 1 / 6;  grid-row: 5 / 13; }
.p-hero__cell--office { grid-column: 6 / 13; grid-row: 8 / 13; }
.p-hero__cell--hands  { grid-column: 1 / 5;  grid-row: 1 / 5; }

/* 手書きコピー（そうじゃ！フクビズへ行こう！） */
.p-hero__catch {
  position: absolute;
  left: 5%;
  bottom: 8%;
  z-index: 5;
  width: min(42%, 560px);
  transform: rotate(-2deg);
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28));
}

.p-hero__catch img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================================================================
   01b. Intro (旧FVの情報を移設：見出し・入口分岐・写真カード)
   ------------------------------------------------------------------------- */
.p-intro {
  position: relative;
  padding: 64px 0 0;
  background: linear-gradient(180deg, var(--rose-50) 0%, #fff 100%);
  /* 写真カードの box-shadow（下方向のぼかし）を切らないよう縦方向は visible。
     .p-intro__quote の負値オフセットによる横スクロールだけ overflow-x: clip で抑止。 */
  overflow-x: clip;
}

.p-intro__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 64px;
}

.p-intro h1 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  color: var(--ink-100);
}

/* PC 専用改行（タブレット・SP では非表示） */
.p-intro h1 .br-pc { display: inline; }

.p-intro h1 .is-rose {
  color: var(--rose-400);
}

.p-intro__sub {
  font-size: 15px;
  color: var(--ink-80);
  line-height: 1.95;
  padding: 16px 24px;
  background: rgba(255, 255, 255, .7);
  border-left: 3px solid var(--rose-400);
  margin-bottom: 32px;
  border-radius: 0 8px 8px 0;
}

.p-intro__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.p-intro__ctas .pill {
  padding: 18px 30px;
}

.p-intro__contact-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-80);
  margin-top: 4px;
}

.p-intro__contact-mini a {
  color: var(--rose-500);
  font-weight: 700;
}

.p-intro__contact-mini a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- Intro photo card ----- */
.p-intro__photo-area {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1.1;
  justify-self: end;
}

.p-intro__photo {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: 0 32px 80px -28px rgba(0, 0, 0, .25);
  overflow: hidden;
}

.p-intro__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-intro__quote {
  position: absolute;
  bottom: -36px;
  right: -16px;
  max-width: 280px;
  background: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .18);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.85;
}

.p-intro__quote small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-60);
  font-family: var(--font-num);
  letter-spacing: 0.06em;
}

.p-intro__quote::before {
  content: "\201C";
  position: absolute;
  top: -24px;
  left: 12px;
  font-size: 36px;
  color: var(--rose-400);
  font-family: Georgia, serif;
}


/* =========================================================================
   02. Message (フクビズの想い)
   ------------------------------------------------------------------------- */
.p-message {
  padding: 120px 0;
}

.p-message__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.p-message__visual {
  order: 1;
}

.p-message__content {
  order: 2;
}

/* SP/tablet only: stack content vertically with heading→image→description order */
@media (max-width: 1024px) {
  .p-message__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  .p-message__visual {
    order: 2;
    max-width: 480px;
    margin: 0 auto;
  }
  .p-message__content {
    order: 1;
  }
}

/* 写真未着のためグレープレースホルダー（写真差し替え予定） */
.p-message__visual {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e0e0 0%, #9c9c9c 100%);
}

/* 実画像を枠いっぱいに表示（heroと同じ扱い） */
.p-message__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-message__visual-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
}

.p-message__visual-tag b {
  font-weight: 700;
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.p-message h2 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.65;
  margin: 18px 0 28px;
}

.p-message__body {
  font-size: 15px;
  line-height: 2.1;
  text-align: justify;
  color: var(--ink-80);
  margin-bottom: 32px;
  white-space: pre-line;
}

.p-message__body b {
  color: var(--rose-500);
  font-weight: 900;
}

.p-message__themes {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.p-message__themes .t {
  flex: 1;
  min-width: 100px;
  background: var(--rose-50);
  padding: 18px 14px;
  text-align: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 18px;
  color: var(--rose-600);
  position: relative;
}

.p-message__themes .t small {
  display: block;
  font-family: var(--font-num);
  font-size: 10px;
  color: var(--rose-400);
  font-weight: 500;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
  text-transform: uppercase;
}


/* =========================================================================
   03. Service (相談できること 6カテゴリ)
   ------------------------------------------------------------------------- */
.p-service {
  padding: 120px 0;
  background: var(--rose-50);
  position: relative;
}

.p-service::before,
.p-service::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
}

.p-service::before {
  top: 0;
  background: linear-gradient(180deg, #fff, transparent);
}

.p-service::after {
  bottom: 0;
  background: linear-gradient(0deg, #fff, transparent);
}

.p-service .wrap {
  position: relative;
  z-index: 1;
}

.p-service__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-service__card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 30px;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.p-service__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--rose-400);
  transition: width var(--dur-slow) var(--ease-out);
}

.p-service__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .18);
  text-decoration: none;   /* hover時に下線を出さない */
  color: inherit;          /* hover時に文字色を変えない */
}

.p-service__card:hover::before {
  width: 100%;
}

.p-service__card .num {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--rose-400);
  margin-bottom: 8px;
}

.p-service__card .ic {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--rose-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.p-service__card .ic svg {
  padding: 12px;
}

.p-service__card h3 {
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 14px;
  line-height: 1.5;
}

.p-service__card .lead {
  font-weight: 700;
  font-size: 14px;
  color: var(--rose-600);
  line-height: 1.75;
  text-align: justify;
  padding: 12px 14px;
  background: var(--rose-50);
  border-radius: 6px;
  margin-bottom: 16px;
  white-space: pre-line;
}

.p-service__card .desc {
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  color: var(--ink-80);
  margin-bottom: 18px;
  flex: 1;
}

.p-service__card .more {
  font-weight: 700;
  font-size: 14px;
  color: var(--rose-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-service__card .more::after {
  content: "→";
  transition: transform var(--dur-base);
}

.p-service__card:hover .more::after {
  transform: translateX(4px);
}

/* Seed (創業) 用カラーバリエーション */
.p-service__card.is-seed .num    { color: var(--seed-500); }
.p-service__card.is-seed .ic     { background: var(--seed-50); }
.p-service__card.is-seed .lead   { color: var(--seed-700); background: var(--seed-50); }
.p-service__card.is-seed .more   { color: var(--seed-500); }
.p-service__card.is-seed::before { background: var(--seed-500); }


/* =========================================================================
   05. Flow (相談の流れ)
   ------------------------------------------------------------------------- */
.p-flow {
  padding: 120px 0;
  background: #fff;
}

.p-flow__photo {
  max-width: 760px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .28);
}
.p-flow__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.p-flow__note {
  background: var(--cream-100);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink-80);
  text-align: center;
  margin-bottom: 40px;
  border: 1px dashed var(--rose-300);
}

.p-flow__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.p-flow__step {
  padding: 32px 24px 28px;
  background: #fff;
  position: relative;
  border-right: 1px solid var(--ink-10);
}

.p-flow__step:last-child {
  border-right: 0;
}

.p-flow__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-400);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 2;
}

.p-flow__step .step-no {
  font-family: var(--font-num);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.p-flow__step .step-no small {
  display: block;
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--rose-400);
  margin-bottom: 4px;
}

.p-flow__step .step-no b {
  font-size: 32px;
  color: var(--ink-100);
}

.p-flow__step h3 {
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.5;
}

.p-flow__step p {
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  color: var(--ink-80);
  margin: 0;
  white-space: pre-line;
}


/* =========================================================================
   06. Team (アドバイザー紹介)
   ------------------------------------------------------------------------- */
.p-team {
  padding: 120px 0;
  background: var(--rose-50);
}

.p-team__lead {
  text-align: center;
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-80);
}

.p-team__block {
  margin-bottom: 36px;
}

.p-team__block h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 20px;
}

.p-team__block h3 small {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--rose-400);
  padding: 4px 12px;
  background: var(--rose-50);
  border-radius: var(--radius-pill);
}

.p-team__members-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.p-team__members-spec {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.p-team__card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px 16px;
  text-align: center;
  transition: transform var(--dur-base) var(--ease-out);
  border: 1px solid var(--ink-10);
}

.p-team__card:hover {
  transform: translateY(-3px);
  border-color: var(--rose-300);
}

.p-team__card .ava {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, #cbb8a4, #7e6849);
  border: 3px solid #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .2);
  overflow: hidden;
  position: relative;
}
.p-team__card .ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-team__members-main .p-team__card .ava {
  width: 148px;
  height: 148px;
}

.p-team__card .role {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--rose-500);
  text-transform: uppercase;
}

.p-team__card .name {
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 16px;
}

.p-team__card .name small {
  display: block;
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 2px;
  font-family: var(--font-num);
  letter-spacing: 0.04em;
}

.p-team__card .spec {
  font-size: 13px;
  color: var(--ink-80);
  line-height: 1.7;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--ink-20);
}

/* メンバー個別のアバター色（仮グラデ） */
.p-team__card.m1 .ava { background: linear-gradient(135deg, #d4baa8, #7E5949); }
.p-team__card.m2 .ava { background: linear-gradient(135deg, #c9d4b8, #495E37); }
.p-team__card.m3 .ava { background: linear-gradient(135deg, #c9b8d4, #5F4979); }
.p-team__card.m4 .ava { background: linear-gradient(135deg, #d4cdb8, #7B6B37); }
.p-team__card.s1 .ava { background: linear-gradient(135deg, #e8c0b0, #a06a55); }
.p-team__card.s2 .ava { background: linear-gradient(135deg, #b8c9d4, #4a6275); }
.p-team__card.s3 .ava { background: linear-gradient(135deg, #cfd4b8, #6e8348); }
.p-team__card.s4 .ava { background: linear-gradient(135deg, #d4c0b8, #886049); }
.p-team__card.s5 .ava { background: linear-gradient(135deg, #b8d4cf, #4a7873); }


/* =========================================================================
   07. Case List (最新サポート事例3件)
   ------------------------------------------------------------------------- */
.p-case-list {
  padding: 120px 0;
}

.p-case-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.p-case-list__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out);
  border: 1px solid var(--ink-10);
}

.p-case-list__card:hover {
  transform: translateY(-4px);
  border-color: var(--rose-300);
  text-decoration: none;   /* カード(a)自体の下線を打ち消し、h3への二重線を防ぐ */
}

/* hover時：h3 にのみ下線を付ける（.tg など他要素には出さない） */
.p-case-list__card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-case-list__card .ph {
  aspect-ratio: 16 / 10;
  /* サムネイルは常にカラー表示（他CSSのgrayscale等を打ち消す） */
  filter: none;
  -webkit-filter: none;
  background-blend-mode: normal;
}

.p-case-list__card.k1 .ph { background: linear-gradient(135deg, #B0B8B5, #4E5856); }
.p-case-list__card.k2 .ph { background: linear-gradient(135deg, #E8D0C0, #B68660); }
.p-case-list__card.k3 .ph { background: linear-gradient(135deg, #E5C9C5, #B0807B); }

.p-case-list__card .body {
  padding: 20px 22px 22px;
}

.p-case-list__card .tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.p-case-list__card .tg {
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  background: var(--rose-50);
  color: var(--rose-700);
  border-radius: 4px;
  font-weight: 700;
}

.p-case-list__card .tg.industry {
  background: var(--ink-10);
  color: var(--ink-80);
}

.p-case-list__card h3 {
  font-weight: 900;
  font-size: 18px;
  margin: 0;
  line-height: 1.65;
  text-align: justify;
}


/* =========================================================================
   08. News (お知らせ・ブログ)
   ------------------------------------------------------------------------- */
.p-news {
  padding: 120px 0;
  background: #fff;
  border-top: 1px solid var(--ink-10);
}

.p-news__tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.p-news__tabs .t {
  background: #fff;
  border: 1px solid var(--ink-20);
  color: var(--ink-80);
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.p-news__tabs .t.is-on {
  background: var(--rose-400);
  border-color: var(--rose-400);
  color: #fff;
}

.p-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.p-news__item {
  cursor: pointer;
}

.p-news__item .ph {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  margin-bottom: 12px;
  /* サムネイルは常にカラー表示（他CSSのgrayscale等を打ち消す） */
  filter: none;
  -webkit-filter: none;
  background-blend-mode: normal;
}

.p-news__item .meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.p-news__item .date {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink-60);
  letter-spacing: 0.06em;
}

.p-news__item .cat {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 3px;
  font-weight: 700;
  background: var(--ink-10); /* フォールバック：個別指定の無いスラッグはこの色 */
  color: var(--ink-80);
}

.p-news__item .cat.notice  { background: var(--ink-10); color: var(--ink-80); }
.p-news__item .cat.news    { background: var(--rose-400); color: #fff; }
.p-news__item .cat.seminar { background: var(--rose-50); color: var(--rose-700); }
.p-news__item .cat.blog    { background: var(--seed-50); color: var(--seed-700); }
.p-news__item .cat.all     { background: var(--ink-10); color: var(--ink-80); }

.p-news__item h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  line-height: 1.65;
  transition: color var(--dur-base);
}

.p-news__item:hover h3 {
  color: var(--rose-500);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================================================================
   09. Track Record (累計実績数値)
   ------------------------------------------------------------------------- */
.p-track {
  background: var(--rose-50);
  color: var(--ink-100);
  padding: 96px 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(216, 150, 164, .18), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(102, 153, 34, .08), transparent 40%);
  border-top: 1px solid var(--rose-100);
  border-bottom: 1px solid var(--rose-100);
}

.p-track__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.p-track__item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(31, 26, 23, .12);
}

.p-track__item:last-child {
  border-right: 0;
}

.p-track__item .n {
  font-family: var(--font-num);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rose-500);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.p-track__item .num-big {
  font-size: 64px;
}

.p-track__item .u {
  font-size: 28px;
  color: var(--ink-100);
  font-weight: 700;
}

.p-track__item .lbl {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-80);
  font-weight: 500;
}

.p-track__item .lbl small {
  display: block;
  color: var(--ink-60);
  font-size: 14px;
  margin-top: 4px;
}

.p-track__caption {
  text-align: center;
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 40px;
}


/* =========================================================================
   10. Partners (連携機関)
   ------------------------------------------------------------------------- */
.p-partners {
  padding: 96px 0;
}

.p-partners h3 {
  text-align: center;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 24px;
  letter-spacing: 0.06em;
  color: var(--ink-60);
}

.p-partners h3:not(:first-of-type) {
  margin-top: 56px;
}

.p-partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.p-partners__grid.is-fin {
  grid-template-columns: repeat(5, 1fr);
  max-width: 900px;
}

.p-partners__card {
  background: #fff;
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-80);
  text-align: center;
  padding: 8px;
  transition: border-color var(--dur-base);
}

.p-partners__card:hover {
  border-color: var(--rose-300);
}

/* ===== New: Logo-based structure for index.html partners ===== */
.p-partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--ink-20);
  border-radius: 8px;
  aspect-ratio: 16 / 7;
  padding: 8px;
  transition: border-color var(--dur-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.p-partners__logo:hover {
  border-color: var(--rose-300);
}

.p-partners__logo img {
  display: block;
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* Text-only logo variant (no image, just label) */
.p-partners__logo--text {
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-80);
  text-align: center;
  line-height: 1.45;
  padding: 12px 14px;
}
.p-partners__logo--text span {
  display: block;
}


/* =========================================================================
   Responsive: Tablet (max-width: 1024px)
   --------- -------------------------------------------------------------- */
@media (max-width: 1024px) {

  /* ----- 01. Hero (FV / コラージュ) ----- */
  .p-hero {
    padding: 16px 16px 28px;
  }

  .p-hero__collage {
    height: min(72vh, 620px);
    gap: 10px;
  }

  .p-hero__catch {
    width: min(50%, 480px);
  }

  /* ----- 01b. Intro ----- */
  .p-intro {
    padding: 40px 0 0;
  }

  .p-intro__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
  }

  .p-intro h1 {
    font-size: 36px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  /* タブレット以下では PC 専用改行を非表示 */
  .p-intro h1 .br-pc { display: none; }

  .p-intro__sub {
    padding: 12px 18px;
    margin-bottom: 24px;
  }

  .p-intro__ctas {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .p-intro__ctas .pill {
    padding: 16px 24px;
    width: 100%;
  }

  .p-intro__photo-area {
    max-width: 100%;
    aspect-ratio: 16 / 11;
    justify-self: auto;
  }

  .p-intro__quote {
    bottom: -28px;
    right: -12px;
    max-width: 240px;
    padding: 14px 18px;
    border-radius: 10px;
  }

  /* ----- 02. Message (ごあいさつ) ----- */
  .p-message {
    padding: 80px 0;
  }

  .p-message__grid {
    gap: 50px;
  }

  .p-message__visual {
    aspect-ratio: 16 / 10;
  }

  .p-message h2 {
    font-size: 28px;
    line-height: 1.6;
    margin: 14px 0 22px;
  }

  .p-message__body {
    line-height: 2;
    margin-bottom: 24px;
  }

  .p-message__themes {
    gap: 10px;
    margin-bottom: 24px;
  }

  .p-message__themes .t {
    padding: 14px 10px;
    font-size: 16px;
  }

  .p-message__themes .t small {
    font-size: 9px;
  }

  /* ----- 03. Service (相談できること) ----- */
  .p-service {
    padding: 80px 0;
  }

  .p-service .sub {
    text-align: justify;
  }

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

  .p-service__card .ic {
    width: 40px;
    height: 40px;
    font-size: 24px;
    margin-bottom: 14px;
  }

  .p-service__card .desc {
    line-height: 1.8;
    margin-bottom: 14px;
  }

  /* ----- 05. Flow (相談の流れ) ----- */
  .p-flow {
    padding: 80px 0;
  }

  .p-flow__note {
    margin-bottom: 32px;
  }

  .p-flow__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .p-flow__step {
    padding: 24px 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--ink-10);
  }

  .p-flow__step:nth-child(2n)::after,
  .p-flow__step:nth-child(2n+1)::after {
    display: none;
  }

  .p-flow__step .step-no b {
    font-size: 36px;
  }

  .p-flow__step h3 {
    margin-bottom: 10px;
  }

  .p-flow__step p {
    line-height: 1.8;
  }

  /* ----- 06. Team (アドバイザー) ----- */
  .p-team {
    padding: 80px 0;
  }

  .p-team__lead {
    margin-bottom: 36px;
  }

  .p-team__members-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
  }

  .p-team__members-spec {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .p-team__card {
    padding: 14px 12px 14px;
  }

  .p-team__card .ava {
    width: 108px;
    height: 108px;
    margin-bottom: 8px;
  }

  .p-team__members-main .p-team__card .ava {
    width: 124px;
    height: 124px;
  }

  .p-team__card .name {
    margin-bottom: 2px;
  }

  .p-team__card .spec {
    margin-top: 6px;
    padding-top: 6px;
  }

  /* ----- 07. Case List (事例3件) ----- */
  .p-case-list {
    padding: 80px 0;
  }

  .p-case-list__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .p-case-list__card .body {
    padding: 16px 18px 18px;
  }

  /* ----- 08. News (ニュース) ----- */
  .p-news {
    padding: 80px 0;
  }

  .p-news__grid {
    grid-template-columns: 1fr;
  }

  .p-news__item .ph {
    margin-bottom: 10px;
  }

  .p-news__item .meta {
    margin-bottom: 4px;
  }

  /* ----- 09. Track Record (実績) ----- */
  .p-track {
    padding: 64px 0;
  }

  .p-track__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .p-track__item:nth-child(2n) {
    border-right: 0;
  }

  .p-track__item:last-child {
    border-bottom: 0;
  }

  .p-track__item .lbl {
    margin-top: 12px;
  }

  /* ----- 10. Partners (連携機関) ----- */
  .p-partners {
    padding: 64px 0;
  }

  .p-partners h3 {
    margin-bottom: 18px;
  }

  .p-partners h3:not(:first-of-type) {
    margin-top: 40px;
  }

  .p-partners__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .p-partners__grid.is-fin {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-partners__card {
    font-size: 11px;
    padding: 6px;
  }

  /* New responsive styles for logo-based structure */
  .p-partners__logo {
    padding: 6px;
  }

  .p-partners__logo img {
    max-height: 40px;
  }

}


/* =========================================================================
   Responsive: SP (max-width: 640px)
   --------- -------------------------------------------------------------- */
@media (max-width: 640px) {

  /* ----- 01. Hero (FV / コラージュ：SPは縦長) ----- */
  .p-hero {
    padding: 12px 12px 22px;
  }

  .p-hero__collage {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(14, 1fr);
    gap: 8px;
    height: auto;
    aspect-ratio: 3 / 4;   /* SPは縦長 */
  }

  .p-hero__cell--booth  { grid-column: 1 / 7; grid-row: 1 / 7; }
  .p-hero__cell--man    { grid-column: 1 / 4; grid-row: 7 / 15; }
  .p-hero__cell--office { grid-column: 4 / 7; grid-row: 9 / 15; }
  .p-hero__cell--hands  { grid-column: 4 / 7; grid-row: 7 / 9; }

  .p-hero__catch {
    left: 5%;
    bottom: 8%;
    width: min(66%, 360px);
  }

  /* ----- 01b. Intro ----- */
  .p-intro {
    padding: 32px 0 0;
  }

  .p-intro__grid {
    gap: 32px;
    padding-bottom: 40px;
  }

  .p-intro h1 {
    font-size: 24px;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .p-intro h1 br {
    display: none;
  }

  .p-intro__sub {
    font-size: 14px;
    padding: 10px 16px;
    margin-bottom: 18px;
    line-height: 1.85;
  }

  .p-intro__ctas {
    gap: 12px;
    margin-bottom: 10px;
  }

  .p-intro__ctas .pill {
    padding: 14px 18px;
    font-size: 14px;
  }

  .p-intro__contact-mini {
    font-size: 13px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .p-intro__photo-area {
    aspect-ratio: 4 / 3;
  }

  .p-intro__quote {
    bottom: -20px;
    right: -8px;
    max-width: 200px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.7;
  }

  .p-intro__quote small {
    font-size: 12px;
  }

  .p-intro__quote::before {
    font-size: 28px;
    top: -16px;
  }

  /* ----- 02. Message ----- */
  .p-message {
    padding: 60px 0;
  }

  .p-message__grid {
    gap: 40px;
  }

  .p-message__visual {
    aspect-ratio: 4 / 5;
  }

  .p-message h2 {
    font-size: 22px;
    line-height: 1.5;
    margin: 12px 0 18px;
  }

  .p-message h2 br {
    display: none;
  }

  .p-message__body {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 18px;
  }

  .p-message__themes {
    gap: 8px;
    margin-bottom: 18px;
  }

  .p-message__themes .t {
    flex: 0 1 auto;
    padding: 12px 8px;
    font-size: 13px;
  }

  .p-message__themes .t small {
    font-size: 8px;
    margin-bottom: 2px;
  }

  .p-message__visual-tag {
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 10px 14px;
    font-size: 11px;
  }

  .p-message__visual-tag b {
    font-size: 12px;
    margin-bottom: 1px;
  }

  /* ----- 03. Service ----- */
  .p-service {
    padding: 60px 0;
  }

  .p-service::before,
  .p-service::after {
    height: 40px;
  }

  .p-service__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .p-service__card {
    padding: 28px;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-auto-flow: dense;
    align-items: start;
    gap: 12px 8px;
  }

  .p-service__card .num {
    font-size: 9px;
    margin-bottom: 0;
    grid-column: 1 / -1;
  }

  .p-service__card .ic {
    width: 32px;
    height: 32px;
    font-size: 20px;
    margin-bottom: 0;
    flex-shrink: 0;
    grid-column: 1;
  }

  .p-service__card h3 {
    font-size: 18px;
    margin-bottom: 0;
    line-height: 1.4;
    grid-column: 2;
    align-self: center;
  }

  .p-service__card .lead {
    padding: 8px 16px;
    margin-bottom: 4px;
    grid-column: 1 / -1;
  }

  .p-service__card .desc {
    line-height: 1.7;
    margin-bottom: 12px;
    grid-column: 1 / -1;
  }

  .p-service__card .more {
    grid-column: 1 / -1;
  }

  /* ----- 05. Flow ----- */
  .p-flow {
    padding: 60px 0;
  }

  .p-flow__photo {
    margin-bottom: 24px;
    border-radius: 10px;
  }

  .p-flow__note {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .p-flow__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .p-flow__step {
    padding: 20px 16px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--ink-10);
  }

  .p-flow__step:last-child {
    border-bottom: 0;
  }

  .p-flow__step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    top: auto;
    bottom: -18px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .p-flow__step .step-no b {
    font-size: 28px;
  }

  .p-flow__step h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .p-flow__step h3 br {
    display: none;
  }

  .p-flow__step p {
    line-height: 1.7;
  }

  /* ----- 06. Team ----- */
  .p-team {
    padding: 60px 0;
  }

  .p-team__lead {
    margin-bottom: 28px;
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
  }

  .p-team__block {
    margin-bottom: 28px;
  }

  .p-team__block h3 {
    font-size: 18px;
    margin-bottom: 16px;
    gap: 10px;
  }

  .p-team__block h3 small {
    font-size: 12px;
    padding: 2px 8px;
  }

  .p-team__members-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 18px;
  }

  .p-team__members-spec {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .p-team__card {
    padding: 12px 8px 12px;
  }

  .p-team__card .ava {
    width: 88px;
    height: 88px;
    margin-bottom: 6px;
  }

  .p-team__members-main .p-team__card .ava {
    width: 100px;
    height: 100px;
  }

  .p-team__card .name {
    font-size: 16px;
    margin-bottom: 1px;
  }

  .p-team__card .name small {
    font-size: 10px;
    margin: 0;
  }

  .p-team__card .spec {
    font-size: 12px;
    margin-top: 8px;
    padding-top: 4px;
  }

  /* ----- 07. Case List ----- */
  .p-case-list {
    padding: 60px 0;
  }

  .p-case-list__grid {
    gap: 14px;
  }

  .p-case-list__card .body {
    padding: 14px 14px 16px;
  }

  .p-case-list__card .tags {
    margin-bottom: 8px;
  }

  .p-case-list__card h3 {
    font-size: 15px;
  }

  /* ----- 08. News ----- */
  .p-news {
    padding: 60px 0;
    border-top: 0;
  }

  .p-news__tabs {
    margin-bottom: 28px;
    gap: 4px;
  }

  .p-news__tabs .t {
    padding: 7px 16px;
    font-size: 11px;
  }

  .p-news__grid {
    gap: 32px;
  }

  .p-news__item .ph {
    aspect-ratio: 16 / 10;
    margin-bottom: 8px;
  }

  .p-news__item .meta {
    gap: 8px;
    margin-bottom: 3px;
  }

  .p-news__item .cat {
    padding: 1px 8px;
  }

  .p-news__item h3 {
    font-size: 15px;
  }

  /* ----- 09. Track Record ----- */
  .p-track {
    padding: 48px 0;
  }

  .p-track__grid {
    grid-template-columns: 1fr;
  }

  .p-track__item {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 26, 23, .12);
  }

  .p-track__item:last-child {
    border-bottom: 0;
  }

  .p-track__item .num-big {
    font-size: 40px;
  }

  .p-track__item .lbl {
    margin-top: 10px;
  }

  .p-track__caption {
    font-size: 10px;
    margin: 0;
  }

  /* ----- 10. Partners ----- */
  .p-partners {
    padding: 48px 0;
  }

  .p-partners h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .p-partners h3:not(:first-of-type) {
    margin-top: 32px;
  }

  .p-partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .p-partners__grid.is-fin {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-partners__card {
    aspect-ratio: 16 / 6;
    font-size: 10px;
    padding: 4px;
    border-radius: 6px;
  }

  /* New responsive styles for logo-based structure */
  .p-partners__logo {
    aspect-ratio: 16 / 6;
    padding: 4px;
    border-radius: 6px;
  }

  .p-partners__logo img {
    max-height: 32px;
  }

}


/* =========================================================================
   v7: SP order — FV / Message
   --------- -------------------------------------------------------------- */
/* Reorder Hero and Message sections on SP (≤640px) to show image between
   text elements. Uses flex + order properties. */

@media (max-width: 640px) {

  /* Intro Section Reordering
     Grid becomes flex column to allow reordering of children:
     1. h1 (title)
     2. Photo area (image)
     3. Sub copy
     4. CTAs
     5. Contact mini
     ※NEWS strip はメインビジュアルと本セクションの間に独立配置（並べ替え対象外） */
  .p-intro {
    display: flex;
    flex-direction: column;
  }

  .p-intro__grid {
    display: flex;
    flex-direction: column;
    order: 1;
    gap: 0; /* 交互配置後は各要素の margin で余白を取る（gap との二重余白を回避） */
  }

  /* display:contents で .p-intro__text の箱を解除し、その子要素
     (h1 / sub / ctas / contact-mini) を .p-intro__grid の直下 flex 子要素へ昇格。
     これで .p-intro__photo-area と同一フレックス内に並び、order で交互配置が可能になる。
     ※DOM は不変のため PC / タブレットは影響なし。 */
  .p-intro__text {
    display: contents;
  }

  .p-intro h1 {
    order: 1;
  }

  .p-intro__sub {
    order: 3;
  }

  .p-intro__ctas {
    order: 4;
  }

  .p-intro__contact-mini {
    order: 5;
  }

  .p-intro__photo-area {
    order: 2;
    margin-bottom: 40px; /* 下にはみ出す .p-intro__quote(bottom:-20px) を逃がし、sub との間隔を確保 */
  }

  /* Message Section Reordering
     Grid becomes flex column to reorder:
     1. Eyebrow (Message / ごあいさつ)
     2. h2 (title)
     3. Visual (image)
     4. Body text
     5. Themes
     6. CTA link */
  .p-message__grid {
    display: flex;
    flex-direction: column;
    gap: 0; /* 交互配置後は各要素の margin で余白を取る（gap との二重余白を回避） */
  }

  /* display:contents で .p-message__content の箱を解除し、その子要素
     (.eyebrow / h2 / .p-message__body / .pill) を .p-message__grid 直下の flex 子要素へ昇格。
     .p-message__visual と同一フレックス内に並び、既存の order 値で交互配置される。
     ※.p-message__content > ... の子セレクタは DOM 不変のため引き続き有効。PC / タブレットは影響なし。 */
  .p-message__content {
    display: contents;
  }

  .p-message__content > .eyebrow {
    order: 1;
  }

  .p-message__content > h2 {
    order: 2;
  }

  .p-message__visual {
    order: 3;
    margin-bottom: 24px; /* 中段に来た画像と .p-message__body の間隔を確保（左右の中央寄せは維持） */
  }

  .p-message__body {
    order: 4;
  }

  .p-message__themes {
    order: 5;
  }

  .p-message__content > a {
    order: 6;
  }

}
