/* トップページモック（libaract_mock）準拠 — body.p-index-mock 専用 */

body.p-index-mock {
  scroll-padding-top: 80px;
  --im-navy: #0d1b2a;
  --im-navy-mid: #152236;
  --im-gold: #c8a064;
  --im-gold-light: #dcc598;
  --im-cream: #ecdfcc;
  --im-warm-gray: #8b8480;
  --im-text: #2a1f18;
  --im-text-light: #5c4f40;
  font-family: "Noto Sans JP", sans-serif;
  background: #0d1b2a;
  color: #ecdfcc;
  overflow-x: hidden;
}

body.p-index-mock .l-main {
  padding-top: 0;
  background-color: #ecdfcc;
  color: var(--im-text);
}

/* 下層ページ：固定ヘッダー（64px）分。トップ .p-index はヒーロー全画面のため 0 のまま */
body.p-index-mock:not(.p-index) .l-main {
  padding-top: 64px;
}

/* ----- Contact ----- */
.im-contact-intro {
  background: #fff;
  border: 1px solid rgba(200, 160, 100, 0.35);
  padding: clamp(20px, 4vw, 32px);
}

.im-contact-lead {
  margin: 0;
  color: var(--im-text);
  line-height: 1.9;
  font-size: 1rem;
}

.im-contact-card {
  background: #fff;
  border: 1px solid rgba(200, 160, 100, 0.35);
  padding: clamp(20px, 4vw, 36px);
  text-align: center;
}

.im-contact-card-title {
  margin: 0;
  color: var(--im-navy);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
}

.im-contact-card-note {
  margin: 14px 0 0;
  color: var(--im-text-light);
  font-size: 0.92rem;
  line-height: 1.8;
}

.im-contact-form {
  margin-top: 22px;
  text-align: left;
}

.im-contact-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 901px) {
  .im-contact-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.im-contact-field {
  margin-bottom: 16px;
}

.im-contact-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--im-navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.im-contact-required,
.im-contact-optional {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.im-contact-required {
  background: rgba(202, 53, 53, 0.12);
  color: #9f1c1c;
}

.im-contact-optional {
  background: rgba(13, 27, 42, 0.08);
  color: rgba(13, 27, 42, 0.72);
}

.im-contact-input,
.im-contact-textarea {
  width: 100%;
  border: 1px solid rgba(13, 27, 42, 0.2);
  background: #fff;
  color: var(--im-text);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 11px 12px;
  font-family: inherit;
}

.im-contact-input:focus,
.im-contact-textarea:focus {
  outline: none;
  border-color: var(--im-gold);
  box-shadow: 0 0 0 3px rgba(200, 160, 100, 0.15);
}

.im-contact-textarea {
  resize: vertical;
  min-height: 140px;
}

.im-contact-checkbox-wrap {
  margin-top: 6px;
}

.im-contact-checkbox-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--im-text-light);
}

.im-contact-checkbox-label input {
  margin-top: 2px;
}

.im-contact-inline-link {
  color: #0f4fb4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.im-contact-category-group {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.im-contact-category-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 901px) {
  .im-contact-category-options {
    grid-template-columns: 1fr 1fr;
  }
}

.im-contact-category-option {
  display: block;
  cursor: pointer;
  /* タップ領域を広くするため min-height を確保 */
  min-height: 44px;
}

.im-contact-category-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.im-contact-category-option span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid rgba(13, 27, 42, 0.2);
  background: #fff;
  color: var(--im-text);
  font-size: 0.92rem;
  line-height: 1.6;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.im-contact-category-option input:checked + span {
  border-color: var(--im-gold);
  border-width: 2px;
  background: rgba(200, 160, 100, 0.2);
  color: var(--im-navy);
  font-weight: 700;
}

.im-contact-category-option input:focus + span {
  outline: 2px solid var(--im-gold);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(200, 160, 100, 0.18);
}

.im-contact-form-message {
  margin: 10px 0 0;
  min-height: 1.4em;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--im-text-light);
}

.im-contact-form-message.is-error {
  color: #9f1c1c;
}

.im-contact-form-message.is-success {
  color: #0a6e36;
}

.im-contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.im-contact-form-button {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  background: var(--im-gold);
  color: var(--im-navy);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  padding: 14px 24px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.im-contact-form-button:hover {
  background: var(--im-gold-light);
  transform: translateY(-1px);
}

.im-contact-form-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ----- Contact: 送信完了ブロック ----- */
.im-contact-success {
  text-align: center;
  padding: clamp(32px, 8vw, 60px) clamp(16px, 4vw, 32px);
}

.im-contact-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 110, 54, 0.1);
  color: #0a6e36;
  font-size: 2rem;
  margin-bottom: 20px;
}

.im-contact-success-title {
  margin: 0 0 12px;
  color: var(--im-navy);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
}

.im-contact-success-body {
  margin: 0;
  color: var(--im-text-light);
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ----- Contact: フォールバックブロック ----- */
.im-contact-fallback {
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(159, 28, 28, 0.25);
  background: rgba(202, 53, 53, 0.04);
  text-align: center;
}

.im-contact-fallback-title {
  margin: 0 0 8px;
  color: #9f1c1c;
  font-size: 0.9rem;
  font-weight: 700;
}

.im-contact-fallback-body {
  margin: 0 0 14px;
  color: var(--im-text-light);
  font-size: 0.88rem;
  line-height: 1.7;
}

.im-contact-fallback-link {
  display: inline-block;
  padding: 10px 24px;
  border: 1.5px solid var(--im-navy);
  color: var(--im-navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.im-contact-fallback-link:hover {
  background: var(--im-navy);
  color: #fff;
}

/* ----- Header / Nav ----- */
.im-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.im-nav {
  position: relative;
  background: rgba(13, 27, 42, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0 clamp(20px, 4vw, 40px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(200, 160, 100, 0.3);
}

/* 会社概要・プライバシー：ナビ中央に AllLights */
.im-nav-tagline {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "DM Serif Display", serif;
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

body.p-company .im-nav-tagline,
body.p-privacy .im-nav-tagline {
  display: block;
}

body.p-company .im-nav-logo,
body.p-privacy .im-nav-logo {
  position: relative;
  z-index: 1;
}

body.p-company .im-nav-toggle,
body.p-privacy .im-nav-toggle,
body.p-company .im-nav-links,
body.p-privacy .im-nav-links {
  position: relative;
  z-index: 1;
}

/* 上記ページではロゴをやや大きく */
body.p-company .im-nav-logo-img,
body.p-privacy .im-nav-logo-img {
  height: 34px;
  max-width: min(58vw, 248px);
}

@media (min-width: 751px) {
  body.p-company .im-nav-logo-img,
  body.p-privacy .im-nav-logo-img {
    height: 40px;
    max-width: min(52vw, 300px);
  }
}

.im-nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.im-nav-logo-img {
  display: block;
  height: 30px;
  width: auto;
  max-width: min(52vw, 220px);
  object-fit: contain;
}

@media (min-width: 751px) {
  .im-nav-logo-img {
    height: 34px;
    max-width: 260px;
  }
}

.im-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.im-nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 400;
  transition: color 0.2s;
}

.im-nav-links a:hover {
  color: var(--im-gold-light);
}

.im-nav-links .im-nav-cta {
  background: var(--im-gold);
  color: var(--im-navy) !important;
  padding: 8px 20px;
  font-weight: 700 !important;
  border-radius: 2px;
}

/* サービス ドロップダウン（PC: ホバー / キーボード: focus-within） */
.im-nav-item--has-service {
  position: relative;
}

.im-nav-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.im-nav-chevron {
  display: inline-flex;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.im-nav-item--has-service:hover .im-nav-chevron,
.im-nav-item--has-service:focus-within .im-nav-chevron {
  transform: rotate(180deg);
}

.im-nav-sub {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 280px;
  background: rgba(21, 34, 54, 0.98);
  border: 1px solid rgba(200, 160, 100, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.im-nav-item--has-service:hover .im-nav-sub,
.im-nav-item--has-service:focus-within .im-nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.im-nav-sub a {
  display: block;
  padding: 10px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.im-nav-sub li:last-child a {
  border-bottom: none;
}

.im-nav-sub a:hover {
  color: var(--im-gold-light) !important;
  background: rgba(255, 255, 255, 0.04);
}

.im-nav-sub-career {
  white-space: nowrap;
}

.im-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.im-nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: #fff;
  margin: 0 auto;
}

/* スクリーンリーダー向け補助（視覚的には非表示） */
.im-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 会社概要・プライバシー：AllLights の一文説明 */
.im-alllights-note {
  max-width: 40rem;
  margin: 0 auto 1.25rem;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--im-warm-gray);
}

@media (min-width: 751px) {
  .im-alllights-note {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
  }
}

/* ----- Hero（背景：HP_トップ画.mp4 /assets/video に配置） ----- */
.im-hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(
    168deg,
    #0e3a4a 0%,
    #0d1b2a 42%,
    #050a10 100%
  );
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.im-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.im-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字を読めるよう動画の上に紺系スクリム */
.im-hero-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 22, 35, 0.45) 0%,
    rgba(13, 27, 42, 0.58) 42%,
    rgba(4, 8, 14, 0.78) 100%
  );
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .im-hero-video-wrap {
    display: none;
  }
}

.im-hero-gold-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  z-index: 2;
  background: linear-gradient(180deg, transparent, var(--im-gold), transparent);
}

.im-hero-content {
  position: relative;
  z-index: 3;
  padding: 120px clamp(24px, 6vw, 80px) 80px;
  max-width: 900px;
}

.im-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  opacity: 0;
  animation: im-fade-up 0.8s ease 0.2s forwards;
}

.im-hero-eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--im-gold);
}

.im-hero-eyebrow span:last-child {
  font-size: 0.78rem;
  color: var(--im-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}

.im-hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.4;
  font-weight: 300;
  margin: 0 0 32px;
  opacity: 0;
  animation: im-fade-up 0.8s ease 0.4s forwards;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.im-hero-title em,
.im-hero-title-em {
  font-style: normal;
  color: var(--im-gold-light);
  font-weight: 700;
}

/* 金の見出しが「わからなくなっていませ」と「んか？」に分かれないように */
.im-hero-title-question {
  display: inline-block;
  max-width: 100%;
}

@media (min-width: 901px) {
  .im-hero-title-question {
    white-space: nowrap;
  }
}

.im-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 0 56px;
  font-weight: 300;
  opacity: 0;
  animation: im-fade-up 0.8s ease 0.6s forwards;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* デスクトップ：ヒーロー内の改行を消して1続きの文として表示 */
@media (min-width: 901px) {
  br.im-br-sp {
    display: none;
  }
}

.im-hero-offers {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.im-hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  opacity: 0;
  animation: im-fade-up 0.8s ease 0.8s forwards;
}

.im-hero-proof-link {
  display: block;
  width: 100%;
  max-width: none;
  text-decoration: none;
  color: inherit;
}

.im-hero-proof-block {
  margin: 18px 0 0;
  padding: 14px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(13, 27, 42, 0.58);
  border: 1px solid rgba(200, 160, 100, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(3px);
  opacity: 0;
  animation: im-fade-up 0.8s ease 0.95s forwards;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.im-hero-proof-link:hover .im-hero-proof-block {
  transform: translateY(-2px);
  border-color: rgba(220, 197, 152, 0.9);
}

.im-hero-proof-cover {
  width: 68px;
  flex: 0 0 68px;
}

.im-hero-proof-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.im-hero-proof-body {
  min-width: 0;
}

.im-hero-proof-label {
  margin: 0 0 3px;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.im-hero-proof-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.im-hero-proof-text {
  margin: 3px 0 0;
  font-size: 0.88rem;
  color: var(--im-gold-light);
  letter-spacing: 0.03em;
}

.im-btn-primary {
  background: var(--im-gold);
  color: var(--im-navy);
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
}

.im-btn-primary:hover {
  background: var(--im-gold-light);
  transform: translateY(-2px);
}

.im-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 16px 36px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.25s;
}

.im-btn-secondary:hover {
  border-color: var(--im-gold);
  color: var(--im-gold);
}

.im-hero-stats {
  position: absolute;
  bottom: 60px;
  right: clamp(24px, 6vw, 80px);
  z-index: 3;
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  opacity: 0;
  animation: im-fade-up 0.8s ease 1s forwards;
}

.im-stat-item {
  text-align: right;
  border-right: 1px solid rgba(200, 160, 100, 0.3);
  padding-right: clamp(24px, 4vw, 48px);
}

.im-stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.im-stat-num {
  font-family: "DM Serif Display", serif;
  font-size: 2.8rem;
  color: var(--im-gold-light);
  line-height: 1;
  display: block;
}

.im-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}

/* デスクトップ：数値・ラベルが途中で折り返されないように */
@media (min-width: 901px) {
  .im-stat-num,
  .im-stat-label {
    white-space: nowrap;
  }
}

@keyframes im-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Pain ----- */
.im-section-pain {
  background: #fff;
  padding: 100px clamp(24px, 6vw, 80px);
}

.im-section-header {
  text-align: center;
  margin-bottom: 72px;
}

.im-section-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--im-gold);
  font-weight: 500;
}

.im-section-label::before,
.im-section-label::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--im-gold);
}

.im-section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--im-navy);
  margin: 0;
}

.im-section-title strong {
  font-weight: 700;
}

.im-pain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.im-pain-card {
  background: var(--im-cream);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}

.im-pain-card:hover {
  transform: translateY(-4px);
}

.im-pain-number {
  font-family: "DM Serif Display", serif;
  font-size: 5rem;
  color: rgba(200, 160, 100, 0.15);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 24px;
}

.im-pain-icon {
  margin-bottom: 24px;
  color: var(--im-gold);
  line-height: 0;
}

.im-pain-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.im-pain-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  color: var(--im-navy);
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.5;
}

.im-pain-desc {
  font-size: 0.88rem;
  color: var(--im-text-light);
  line-height: 1.9;
  margin: 0;
}

/* ----- Why ----- */
.im-section-why {
  background: var(--im-navy);
  padding: 100px clamp(24px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.im-why-bg {
  display: none;
}

.im-why-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.im-why-text .im-section-label {
  justify-content: flex-start;
}

.im-why-text .im-section-label::before {
  display: none;
}

.im-why-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  color: #fff;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 32px;
}

.im-why-title em {
  font-style: normal;
  color: var(--im-gold-light);
  font-weight: 700;
}

.im-why-desc {
  color: rgba(255, 255, 255, 0.65);
  line-height: 2;
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0;
}

.im-why-member-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  color: var(--im-gold-light);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(220, 197, 152, 0.6);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.im-why-member-link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.im-why-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.im-why-point {
  border-left: 3px solid var(--im-gold);
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.04);
}

.im-why-point-title {
  font-size: 1rem;
  color: var(--im-gold-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.im-why-point-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  font-weight: 300;
}

/* ----- Services ----- */
.im-section-services {
  background: var(--im-cream);
  padding: 100px clamp(24px, 6vw, 80px);
}

.im-services-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

@media (min-width: 1000px) {
  .im-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.im-service-card {
  background: #fff;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.im-service-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.im-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--im-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.im-service-card:hover::before {
  transform: scaleX(1);
}

.im-service-tag {
  display: inline-block;
  background: var(--im-navy);
  color: var(--im-gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  margin-bottom: 28px;
  font-weight: 700;
}

.im-service-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  color: var(--im-navy);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 20px;
  word-break: keep-all;
  overflow-wrap: normal;
}

.im-service-desc {
  font-size: 0.9rem;
  color: var(--im-text-light);
  line-height: 1.9;
  margin: 0 0 28px;
  flex-grow: 1;
}

.im-service-features {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.im-service-features li {
  font-size: 0.85rem;
  color: var(--im-text-light);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.im-service-features li::before {
  content: "—";
  color: var(--im-gold);
  font-weight: 700;
  flex-shrink: 0;
}

.im-service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--im-navy);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--im-navy);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.im-service-link:hover {
  color: var(--im-gold);
  border-color: var(--im-gold);
}

/* ----- Flow ----- */
.im-section-flow {
  background: var(--im-navy-mid);
  padding: 80px clamp(24px, 6vw, 80px);
}

.im-section-flow .im-section-header {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}

.im-section-title--on-dark {
  color: #fff !important;
  font-weight: 300;
}

.im-section-title--on-dark strong {
  color: #fff !important;
}

.im-flow-steps {
  max-width: 900px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.im-flow-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(200, 160, 100, 0.4);
}

.im-flow-step {
  text-align: center;
  padding: 0 16px;
}

.im-flow-num {
  width: 72px;
  height: 72px;
  border: 1px solid var(--im-gold);
  background: var(--im-navy);
  color: var(--im-gold-light);
  font-family: "DM Serif Display", serif;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.im-flow-step-title {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.im-flow-step-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
}

/* ----- Individual ----- */
.im-section-individual {
  background: #fff;
  padding: 80px clamp(24px, 6vw, 80px);
}

.im-individual-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ecdfcc, #f4ebe3);
  border-left: 4px solid var(--im-gold);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.im-individual-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--im-gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.im-individual-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem;
  color: var(--im-navy);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}

.im-individual-desc {
  font-size: 0.9rem;
  color: var(--im-text-light);
  line-height: 1.9;
  margin: 0;
}

.im-individual-badge {
  background: var(--im-navy);
  color: var(--im-gold-light);
  padding: 20px 28px;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.im-individual-badge-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.im-individual-badge-status {
  font-family: "DM Serif Display", serif;
  font-size: 1.3rem;
  display: block;
}

/* ----- CTA ----- */
.im-section-cta {
  background: var(--im-navy);
  padding: 100px clamp(24px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.im-cta-bg-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(200, 160, 100, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.im-cta-bg-decor::before {
  content: "";
  position: absolute;
  inset: 40px;
  border: 1px solid rgba(200, 160, 100, 0.06);
  border-radius: 50%;
}

.im-cta-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff;
  font-weight: 300;
  line-height: 1.6;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.im-cta-title-sub {
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-top: 0.25em;
}

.im-cta-sub {
  color: #fff;
  font-size: clamp(1.2rem, 4.8vw, 1.6rem);
  font-family: "Noto Serif JP", serif;
  margin: 0 0 48px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  line-height: 1.75;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.im-cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ----- Footer ----- */
.im-footer {
  background: #080f18;
  padding: 48px clamp(24px, 6vw, 80px);
  border-top: 1px solid rgba(200, 160, 100, 0.2);
}

.im-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 16px;
}

.im-footer-logo {
  line-height: 0;
}

@media (min-width: 901px) {
  .im-footer-logo {
    margin-left: clamp(16px, 3vw, 32px);
  }
}

@media (max-width: 900px) {
  .im-footer-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-left: clamp(10px, 4vw, 24px);
    box-sizing: border-box;
  }
}

.im-footer-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(200px, 40vw);
  object-fit: contain;
}

.im-footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.im-footer-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.im-footer-links a:hover {
  color: var(--im-gold);
}

.im-footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
  margin: 0;
}

/* ----- Reveal ----- */
.im-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.im-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .im-hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding-bottom: 48px;
  }

  .im-nav-toggle {
    display: flex;
  }

  .im-nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(200, 160, 100, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .im-nav-links.is-open {
    max-height: min(90vh, 720px);
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
  }

  .im-nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .im-nav-links > li > a:not(.im-nav-cta) {
    display: block;
    padding: 14px 24px;
  }

  .im-nav-item--has-service .im-nav-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    width: 100%;
    box-sizing: border-box;
  }

  .im-nav-item--has-service .im-nav-sub {
    position: static;
    transform: none;
    left: auto;
    min-width: auto;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-left: 3px solid rgba(200, 160, 100, 0.45);
    margin: 0 16px 12px 24px;
    padding: 4px 0 8px;
    background: rgba(0, 0, 0, 0.2);
  }

  .im-nav-item--has-service .im-nav-sub a {
    padding: 10px 16px;
    font-size: 0.78rem;
  }

  .im-nav-item--has-service:hover .im-nav-chevron,
  .im-nav-item--has-service:focus-within .im-nav-chevron {
    transform: none;
  }

  .im-nav-links .im-nav-cta {
    display: block;
    margin: 8px 24px 0;
    text-align: center;
  }

  .im-hero-stats {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 48px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .im-stat-item {
    text-align: left;
    border-right: none;
    border-bottom: 1px solid rgba(200, 160, 100, 0.2);
    padding: 16px 0;
    flex: 1 1 100%;
  }

  .im-stat-item:last-child {
    border-bottom: none;
  }

  .im-section-pain,
  .im-section-why,
  .im-section-services,
  .im-section-flow,
  .im-section-individual,
  .im-section-cta {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .im-pain-cards,
  .im-services-grid {
    grid-template-columns: 1fr;
  }

  .im-why-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .im-flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .im-flow-steps::before {
    display: none;
  }

  .im-individual-inner {
    grid-template-columns: 1fr;
  }

  .im-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ----- 下層ページ：トップと配色・字体を揃える（index.css のコンポーネント上書き） ----- */
body.p-index-mock:not(.p-index) h1 .a-heading_text-one,
body.p-index-mock:not(.p-index) h2 .a-heading_text-two:not(.is-en) {
  font-family: "Noto Serif JP", serif;
}

body.p-index-mock:not(.p-index) .a-heading .is-en {
  font-family: "DM Serif Display", "Alegreya Sans", serif;
  letter-spacing: 0.06em;
}

@media (min-width: 750px) {
  body.p-index-mock:not(.p-index) .p-service_item {
    background: #fff;
    border-color: rgba(200, 160, 100, 0.35);
    box-shadow: 0 8px 28px rgba(13, 27, 42, 0.07);
  }
}

body.p-index-mock:not(.p-index) .tw-bg-gray-50 {
  background-color: rgba(236, 223, 204, 0.75) !important;
}

body.p-index-mock:not(.p-index) .tw-border-gray-200,
body.p-index-mock:not(.p-index) table th,
body.p-index-mock:not(.p-index) table td {
  border-color: rgba(200, 160, 100, 0.28) !important;
}

body.p-index-mock:not(.p-index) table th {
  color: var(--im-navy) !important;
}

/* 法人向け教育研修：アコーディオン（index.css の gray-dd 枠）を紺に */
body.p-index-mock:not(.p-index) .p-service-acd_box dt {
  border-color: var(--color-primary) !important;
}

/* ----- リバラクトとは：コンテンツブロック ----- */
body.p-about.p-index-mock .im-about-panel {
  background: #fff;
  border: 1px solid rgba(200, 160, 100, 0.28);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: 0 10px 36px rgba(13, 27, 42, 0.07);
  color: var(--im-text);
}

body.p-about.p-index-mock .im-about-lead {
  color: var(--im-navy);
  font-family: "Noto Sans JP", sans-serif;
}

/* リバラクトとは：見出しは明朝系、本文はゴシックで統一（h3 は下層 h2 ルール外のため明示） */
body.p-about.p-index-mock .im-about-panel h3 .a-heading_text-two {
  font-family: "Noto Serif JP", serif;
}

body.p-about.p-index-mock .im-about-panel h3 .a-heading_text-one {
  font-family: "Noto Serif JP", serif;
}

body.p-about.p-index-mock .im-about-panel h3 .a-heading_text-three.is-en {
  font-family: "DM Serif Display", "Alegreya Sans", serif;
  letter-spacing: 0.06em;
}

body.p-about.p-index-mock .im-about-panel .a-text {
  font-family: "Noto Sans JP", sans-serif;
}

body.p-about.p-index-mock .im-about-panel--libaract {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

body.p-about.p-index-mock .im-about-libaract-h2 {
  text-align: center;
  margin-bottom: clamp(1rem, 3vw, 1.35rem);
}

body.p-about.p-index-mock .im-about-libaract-lead {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 0;
  padding-bottom: clamp(1.75rem, 4.5vw, 2.5rem);
  border-bottom: 1px solid rgba(200, 160, 100, 0.35);
}

body.p-about.p-index-mock .im-about-pillar-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

@media (min-width: 750px) {
  body.p-about.p-index-mock .im-about-pillar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }
}

body.p-about.p-index-mock .im-about-pillar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: rgba(236, 223, 204, 0.45);
  border: 1px solid rgba(200, 160, 100, 0.25);
  border-radius: 12px;
  border-left: 4px solid var(--im-gold);
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(13, 27, 42, 0.04);
}

body.p-about.p-index-mock .im-about-pillar-h {
  margin-bottom: 0.85rem;
}

body.p-about.p-index-mock .im-about-pillar-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--im-navy);
}

body.p-about.p-index-mock .im-about-pillar-line-en {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--im-navy);
  line-height: 1.35;
}

body.p-about.p-index-mock .im-about-pillar-line-ja {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.05rem, 3.2vw, 1.2rem);
  font-weight: 700;
  color: var(--im-gold);
  line-height: 1.4;
  padding-top: 0.1rem;
}

body.p-about.p-index-mock .im-about-pillar-body {
  flex: 1;
  margin: 0;
}

body.p-about.p-index-mock .im-about-panel--brand {
  background: linear-gradient(165deg, #fff 0%, rgba(236, 223, 204, 0.5) 100%);
}

body.p-about.p-index-mock .im-about-logo-figure {
  background: transparent;
  border: none;
  border-radius: 0;
}

body.p-about.p-index-mock .im-about-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.25rem 0 0.5rem;
}

body.p-about.p-index-mock .im-about-logo-img {
  width: min(100%, 200px);
  height: auto;
  max-width: 220px;
  display: block;
}

@media (min-width: 750px) {
  body.p-about.p-index-mock .im-about-logo-img {
    width: min(100%, 220px);
    max-width: 240px;
  }
}

body.p-about.p-index-mock .im-about-member-card {
  background: #fff;
  border: 1px solid rgba(200, 160, 100, 0.22);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.06);
}

body.p-about.p-index-mock .im-about-section-members {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(200, 160, 100, 0.2);
  border-bottom: 1px solid rgba(200, 160, 100, 0.2);
}

body.p-about.p-index-mock .im-about-section-service {
  padding-bottom: 0.5rem;
}
