/* ------------------------------
ローカルフォント設定
※ style_character.css と同じ階層に fonts フォルダを置く
------------------------------ */
@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('./fonts/MPLUSRounded1c-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'M PLUS Rounded 1c';
  src: url('./fonts/MPLUSRounded1c-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   style_character.css
   index.html に合わせて整理した完成版
   - 未使用の .site-footer 系は削除
   - 重複していた .hero / .hero-inner / .cta-box / .concept-points を統合
   - hero::before の競合を解消
   ========================================================= */

/* ------------------------------
   変数・基本設定
------------------------------ */
body.cp-page {
  --color-navy: #0b296a;
  --color-blue: #1f67c6;
  --color-sky: #53b7f7;
  --color-light: #eef7ff;
  --color-white: #ffffff;
  --color-orange: #ff8a32;
  --color-yellow: #ffd14d;
  --color-text: #1d2a3a;
  --color-subtext: #5b6b80;
  --color-border: #d7e4f3;
  --shadow-soft: 0 14px 36px rgba(16, 57, 112, 0.12);
  --shadow-card: 0 8px 24px rgba(11, 41, 106, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;

  margin: 0;
  color: var(--color-text);
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.75;
  background:
    radial-gradient(circle at 15% 10%, rgba(83, 183, 247, 0.18), transparent 18%),
    radial-gradient(circle at 85% 15%, rgba(31, 103, 198, 0.10), transparent 18%),
    linear-gradient(180deg, #f9fcff 0%, #ffffff 35%, #f6fbff 100%);
}

html {
  scroll-behavior: smooth;
  font-size: 14px;
}

body.cp-page * {
  box-sizing: border-box;
}

body.cp-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.cp-page a {
  color: inherit;
  text-decoration: none;
}

body.cp-page .cp-container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

/* ------------------------------
   ヘッダー
------------------------------ */
body.cp-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 228, 243, 0.9);
}

body.cp-page .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

body.cp-page .site-logo {
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-navy);
}

body.cp-page .global-nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.cp-page .global-nav a {
  color: var(--color-subtext);
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

body.cp-page .global-nav a:hover {
  color: var(--color-blue);
}

/* ------------------------------
   ヒーロー
------------------------------ */
body.cp-page .hero {
  position: relative;
  overflow: clip;
  padding: 130px 0 56px;
  background: url('bg.png') center / cover no-repeat;
}

body.cp-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 0;
}

body.cp-page .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(83, 183, 247, 0.07) 0%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 30% 20%, rgba(31, 103, 198, 0.08), transparent 22%),
    radial-gradient(circle at 80% 12%, rgba(83, 183, 247, 0.14), transparent 18%);
}

body.cp-page .hero-bg::before,
body.cp-page .hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
}

body.cp-page .hero-bg::before {
  width: 440px;
  height: 440px;
  right: -140px;
  top: -80px;
  background: radial-gradient(circle, rgba(83, 183, 247, 0.25) 0%, rgba(83, 183, 247, 0) 70%);
}

body.cp-page .hero-bg::after {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(31, 103, 198, 0.16) 0%, rgba(31, 103, 198, 0) 70%);
}

body.cp-page .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
  min-height: auto;
  padding-bottom: 40px;
}

body.cp-page .hero-copy {
  align-self: center;
}

body.cp-page .hero-visual {
  position: relative;
  align-self: end;
}

body.cp-page .hero-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  filter: drop-shadow(0 18px 40px rgba(18, 44, 86, 0.15));
}

body.cp-page .eyebrow,
body.cp-page .section-kicker,
body.cp-page .name-en {
  margin: 0 0 10px;
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

body.cp-page .eyebrow {
  color: var(--color-blue);
  font-size: 0.88rem;
}

body.cp-page .section-kicker {
  color: var(--color-blue);
  font-size: 0.88rem;
  text-align: center;
}

body.cp-page .hero h1 {
  margin: 0 0 20px;
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;

  /* 修正ポイント */
  font-size: clamp(2.6rem, 4vw, 4.2rem); 

  line-height: 1.15;
  color: var(--color-navy);
  word-break: keep-all;
}

body.cp-page .lead {
  margin: 0 0 18px;
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-blue);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}

body.cp-page .hero-text {
  max-width: 42rem;  /* 38 → 42 に修正 */
  margin: 0;
  color: var(--color-subtext);
  font-size: 1.04rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.cp-page .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

body.cp-page .scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-subtext);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  z-index: 1;
}

body.cp-page .scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(91, 107, 128, 0), rgba(91, 107, 128, 1));
}

/* ------------------------------
   ボタン
------------------------------ */
body.cp-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.cp-page .btn:hover {
  transform: translateY(-2px);
}

body.cp-page .btn-primary {
  background: linear-gradient(135deg, var(--color-blue), var(--color-sky));
  color: var(--color-white);
  box-shadow: 0 8px 22px rgba(31, 103, 198, 0.25);
}

body.cp-page .btn-secondary {
  background: var(--color-white);
  color: var(--color-blue);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

/* ------------------------------
   セクション共通
------------------------------ */
body.cp-page .section {
  padding: 100px 0;
}

body.cp-page .section-heading {
  margin-bottom: 42px;
}

body.cp-page .section-heading.center {
  text-align: center;
}

body.cp-page .section-heading h2 {
  margin: 0;
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.3;
  color: var(--color-navy);
}

body.cp-page .section-description {
  max-width: 50rem;
  margin: 12px auto 0;
  color: var(--color-subtext);
}

/* ------------------------------
   共通カード
------------------------------ */
body.cp-page .concept-card,
body.cp-page .pair-card,
body.cp-page .cta-box,
body.cp-page .story-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 228, 243, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

body.cp-page .concept-card h3,
body.cp-page .pair-text h3,
body.cp-page .cta-copy h2 {
  margin: 0 0 14px;
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--color-navy);
  line-height: 1.45;
}

body.cp-page .concept-card p,
body.cp-page .pair-text p,
body.cp-page .cta-copy p {
  margin: 0;
  color: var(--color-subtext);
}

/* ------------------------------
   CONCEPT
------------------------------ */
body.cp-page .concept-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding: 36px;
  align-items: center;
}

body.cp-page .concept-text {
  min-width: 0;
}

body.cp-page .concept-visual {
  position: relative;
}

body.cp-page .concept-visual img {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 10px);
}

body.cp-page .concept-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

body.cp-page .concept-points li {
  position: relative;
  min-width: 0;
  padding-left: 22px;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--color-navy);
  letter-spacing: 0.01em;
}

body.cp-page .concept-points li::before {
  content: '\25C6';
  position: absolute;
  left: 0;
  top: 0.2em;
  color: var(--color-blue);
  font-size: 0.72rem;
  line-height: 1;
}

/* ------------------------------
   PROFILE
------------------------------ */
body.cp-page .profile {
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.65) 0%, rgba(255, 255, 255, 0) 100%);
}

body.cp-page .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

body.cp-page .profile-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(215, 228, 243, 0.92);
  box-shadow: var(--shadow-soft);
}

body.cp-page .profile-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

body.cp-page .profile-card.nikku::before {
  background: linear-gradient(90deg, var(--color-navy), var(--color-blue));
}

body.cp-page .profile-card.shichan::before {
  background: linear-gradient(90deg, var(--color-sky), var(--color-orange));
}

body.cp-page .profile-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

body.cp-page .profile-image-wrap {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 30%, rgba(83, 183, 247, 0.15), rgba(255, 255, 255, 0) 70%);
}

body.cp-page .profile-image {
  max-height: 250px;
  object-fit: contain;
}

body.cp-page .name-en {
  margin-bottom: 6px;
  color: var(--color-blue);
  font-size: 0.85rem;
}

body.cp-page .profile-title h3 {
  margin: 0 0 10px;
  font-family: 'M PLUS Rounded 1c', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--color-navy);
}

body.cp-page .profile-catch {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

body.cp-page .profile-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

body.cp-page .profile-list div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px dashed var(--color-border);
}

body.cp-page .profile-list dt {
  color: var(--color-blue);
  font-weight: 700;
}

body.cp-page .profile-list dd {
  margin: 0;
}

/* ------------------------------
   PARTNERSHIP
------------------------------ */
body.cp-page .pair-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
}

body.cp-page .pair-visual img {
  width: 100%;
}

body.cp-page .pair-lead {
  margin-bottom: 12px !important;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-blue) !important;
}

body.cp-page .pair-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

body.cp-page .pair-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(83, 183, 247, 0.12);
  color: var(--color-blue);
  font-weight: 700;
}

/* ------------------------------
   STORY
------------------------------ */
body.cp-page .story-card {
  padding: 22px;
}

body.cp-page .story-image {
  width: 100%;
  border-radius: calc(var(--radius-xl) - 10px);
}

/* ------------------------------
   CTA
------------------------------ */
body.cp-page .cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 34px 36px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(83, 183, 247, 0.14), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.98));
}

body.cp-page .cta-copy {
  max-width: 720px;
  text-align: center;
}

body.cp-page .cta-copy h2 {
  margin-bottom: 12px;
}

body.cp-page .cta-copy p {
  margin-left: auto;
  margin-right: auto;
}

body.cp-page .cta-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

body.cp-page .cta-actions .btn {
  min-width: 240px;
}

/* ------------------------------
   既存共通フッター用の補助
------------------------------ */
.footer-inline-images {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-inline-images img {
  display: block;
  flex: 0 0 auto;
  max-width: none;
}

/* ------------------------------
   ユーティリティ
------------------------------ */
body.cp-page .sp-only {
  display: none;
}

/* ------------------------------
   レスポンシブ
------------------------------ */
@media (max-width: 1024px) {
  body.cp-page .hero,
  body.cp-page .hero-inner,
  body.cp-page .concept-card,
  body.cp-page .pair-card {
    grid-template-columns: 1fr;
  }

  body.cp-page .hero {
    padding: 48px 0 28px;
  }

  body.cp-page .hero-inner {
    gap: 28px;
    padding-bottom: 10px;
  }

  body.cp-page .hero-copy {
    order: 2;
  }

  body.cp-page .hero-visual {
    order: 1;
    max-width: 760px;
    margin: 0 auto;
    align-self: start;
  }

  body.cp-page .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.cp-page .site-header {
    position: static;
  }

  body.cp-page .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }

  body.cp-page .global-nav ul {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  body.cp-page .section {
    padding: 72px 0;
  }

  body.cp-page .hero {
    padding: 32px 0 20px;
  }

  body.cp-page .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.2rem);
  }

  body.cp-page .lead {
    font-size: 1.16rem;
  }

  body.cp-page .sp-only {
    display: inline;
  }

  body.cp-page .concept-card,
  body.cp-page .pair-card,
  body.cp-page .story-card,
  body.cp-page .cta-box,
  body.cp-page .profile-card {
    padding: 22px;
  }

  body.cp-page .profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.cp-page .profile-image {
    max-height: 200px;
  }

  body.cp-page .profile-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.cp-page .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body.cp-page .site-footer .footer-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  body.cp-page .cp-container {
    width: min(calc(100% - 24px), var(--max-width));
  }

  body.cp-page .hero-buttons {
    flex-direction: column;
  }

  body.cp-page .btn {
    width: 100%;
  }

  body.cp-page .scroll-indicator {
    display: none;
  }
}