/* ==========================================================
   2026 リニューアル（創立30周年）追加スタイル  2026-11-26
   - 既存の style.css は変更せず、このファイルで上書きする
   - 元に戻す場合は functions.php の enqueue を外すだけでよい
   ========================================================== */

:root {
  --mm-accent: var(--color-site-accent, #6323BC);
  --mm-main: var(--color-site-main, #26247B);
  --mm-black: var(--color-site-black, #191919);
  --mm-accent-soft: #f3edfb;
  --mm-sp-header-h: 56px;
}

/* ----------------------------------------------------------
   I-04 ヘッダー（SP：スリム化・コンテンツに重ねない）
   ---------------------------------------------------------- */
@media (max-width: 1000px) {
  body:has(> #js-header) {
    padding-top: var(--mm-sp-header-h);
  }

  .l-header,
  .l-header.l-header--fixed,
  .l-header--fixed.is-active {
    top: 0 !important;
    height: var(--mm-sp-header-h) !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .05);
    animation: none !important;
    line-height: normal !important;
  }

  .sp-header {
    height: var(--mm-sp-header-h);
  }

  .sp-header-logo {
    display: flex;
    align-items: center;
    height: var(--mm-sp-header-h);
    margin-left: 16px;
  }

  .sp-header-logo img {
    height: 40px !important;
    min-height: 0 !important;
    max-height: 40px !important;
    width: auto !important;
  }

  .sp-header-btn {
    margin-right: 16px;
  }

  /* 言語切替はメニュー内へ移動（JS で移動できた場合のみ隠す） */
  html.mm-lang-in-menu .sp-header-btn .language-switch {
    display: none !important;
  }

  /* MENU ボタン：横長のピル型（アイコン＋MENU） */
  #js-menu-btn {
    position: relative;
    width: 88px;
    height: 40px;
    min-width: 88px;
    min-height: 40px;
    border-radius: 20px !important;
  }

  #js-menu-btn span {
    left: 13px;
    width: 18px;
  }

  #js-menu-btn span:nth-child(1) { top: 13px; }
  #js-menu-btn span:nth-child(2) { top: 19px; }
  #js-menu-btn span:nth-child(3) { top: 25px; }

  .responsive-menu-open #js-menu-btn span:nth-child(1),
  .responsive-menu-open #js-menu-btn span:nth-child(2),
  .responsive-menu-open #js-menu-btn span:nth-child(3) {
    top: 19px;
  }

  #js-menu-btn p {
    top: 50%;
    right: 12px;
    bottom: auto;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1 !important;
    letter-spacing: .06em;
  }

  /* Responsive Menu の透明トリガーを MENU ボタンの位置に合わせる */
  button.rmp_menu_trigger {
    top: 8px !important;
    right: 16px !important;
    width: 88px !important;
    height: 40px !important;
  }

  .rmp-container {
    top: calc(var(--mm-sp-header-h) + 8px) !important;
    max-height: calc(100dvh - var(--mm-sp-header-h) - 24px) !important;
    margin: 0 16px !important;
    width: calc(100% - 32px) !important;
    padding: 28px 28px 32px !important;
    border-radius: 28px;
  }

  /* 下層ページ見出し：ヘッダーと重ならなくなった分、上余白を詰める */
  .p-cover__inner .p-cover__title {
    margin-top: 40px;
  }
}

/* メニュー内の言語切替 */
.mm-menu-lang {
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mm-menu-lang__label {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.mm-menu-lang .language-switch {
  width: 220px !important;
  max-width: 220px !important;
  height: 48px !important;
}

.mm-menu-lang .gt_selector {
  width: 220px;
  max-width: 220px;
  font-size: 16px;
  padding: 10px 56px 10px 24px;
}

/* ----------------------------------------------------------
   I-05 トップ ファーストビュー
   ---------------------------------------------------------- */
.mm-nw {
  white-space: nowrap;
}

.p-fv__catch {
  text-wrap: balance;
}

/* 創立30周年リボン */
.mm-30th-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 3px 12px 3px 3px;
  border-radius: 999px;
  background: var(--mm-accent-soft);
  color: var(--mm-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
}

.mm-30th-ribbon__label {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--mm-accent);
  color: #fff;
}

.mm-30th-ribbon__years {
  font-variant-numeric: tabular-nums;
}

/* SP用リード・CTA（PCでは非表示） */
.mm-fv-lead,
.mm-fv-cta {
  display: none;
}

/* PC：ヘッダーと重ならないよう見出しカードを少し下げる */
@media (min-width: 768px) {
  .p-fv__overlay {
    padding-top: 130px;
  }

  .mm-30th-ribbon {
    margin-bottom: 10px;
    font-size: 12px;
  }
}

/* PC：AIの取り組みチップ */
.mm-fv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -24px 0 22px;
  padding: 0;
  list-style: none;
  opacity: 0;
  transition: opacity .5s ease 1.2s;
}

.p-fv__overlay-card.is-active .mm-fv-chips {
  opacity: 1;
}

.mm-fv-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 2px solid var(--mm-accent);
  border-radius: 999px;
  background: #fff;
  color: var(--mm-accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: auto;
  transition: background-color .2s, color .2s;
}

.mm-fv-chips a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.mm-fv-chips a:hover,
.mm-fv-chips a:focus-visible {
  background: var(--mm-accent);
  color: #fff;
}

@media (max-width: 1439px) {
  .mm-fv-chips {
    margin-top: -20px;
  }
}

/* SP：見出し＋リード＋CTA をイラストより上に表示 */
@media (max-width: 767px) {
  .p-fv {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    padding: 0 0 28px !important;
  }

  .p-fv__overlay {
    order: 1;
    position: relative !important;
    bottom: auto !important;
    padding: 14px 16px 0 !important;
  }

  .p-fv__overlay-card,
  .p-fv__overlay-card.is-active {
    width: 100% !important;
    min-height: 0 !important;
    padding: 18px 20px 20px !important;
    border-width: 3px;
    border-radius: 28px 28px 0 28px !important;
    transform: none !important;
  }

  .p-fv__overlay-card.is-scaling > * {
    height: auto !important;
    overflow: visible !important;
  }

  .p-fv__float {
    display: none;
  }

  .mm-30th-ribbon {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .p-fv__catch,
  html[lang="en"] .p-fv__overlay-card .p-fv__catch {
    font-size: clamp(1.625rem, 7.4vw, 2rem) !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding-right: 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .p-fv__desc,
  .mm-fv-chips {
    display: none;
  }

  .mm-fv-lead {
    display: block;
    margin: 10px 0 0;
    color: #333;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .mm-fv-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    margin-top: 14px;
    border: 2px solid var(--mm-black);
    border-radius: 999px;
    background: var(--mm-accent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 3px 0 var(--mm-black);
    pointer-events: auto;
  }

  .mm-fv-cta::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
  }

  .mm-fv-cta:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--mm-black);
  }

  .p-fv__bg {
    order: 2;
    position: relative !important;
    height: 300px !important;
    margin-top: -40px;
    z-index: 0;
  }

  .p-fv__slider-wrapper {
    order: 3;
    position: relative !important;
    bottom: auto !important;
    margin-top: -56px;
  }
}

/* ----------------------------------------------------------
   I-01 沿革（新しい順・月表記）
   ---------------------------------------------------------- */
.history-list > div > ul li:has(.mm-hist-month) {
  gap: .8em;
}

.history-list > div > ul li span.mm-hist-month {
  flex: 0 0 auto;
  width: 4.4em !important;
  min-width: 4.4em;
  color: var(--mm-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.history-list > div > ul li span.mm-hist-text {
  flex: 1 1 auto;
  width: auto !important;
}

@media (max-width: 600px) {
  .history-list > div.mm-hist-latest > ul {
    width: calc(100% - 34px);
    margin-left: 34px;
    padding: 12px 14px;
  }
}

.history-list > div.mm-hist-latest > p {
  background-color: var(--mm-accent);
}

.history-list > div.mm-hist-latest > ul {
  background: var(--mm-accent-soft);
  border-radius: 12px;
  padding: 14px 18px;
  border: 0;
  gap: 4px;
}

.history-list > div.mm-hist-latest > ul li:first-child {
  font-weight: 700;
}

/* ----------------------------------------------------------
   I-02 ニュース一覧（タイトルを省略しない）
   ---------------------------------------------------------- */
.post-type-archive-news .p-article04__title,
.post-type-archive-news .p-article04:hover a .p-article04__title {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  line-height: 1.6 !important;
  overflow-wrap: anywhere;
}

.post-type-archive-news .mm-news-empty {
  padding: 32px 0;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* タブが6つになったため、SPは3列×2段で全て見えるようにする */
@media (max-width: 767px) {
  .post-type-archive-news .p-news-tab-list__tabs-wrapper {
    overflow: visible;
  }

  .post-type-archive-news .p-news-tab-list__tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 6px;
    width: 100% !important;
    max-width: none;
  }

  .post-type-archive-news .p-news-tab-list__tabs-item {
    width: auto !important;
  }

  .post-type-archive-news .p-news-tab-list__tabs-item a {
    padding: 8px 2px 6px !important;
    font-size: 13px !important;
    white-space: nowrap;
    text-align: center;
  }
}

/* ----------------------------------------------------------
   I-03 開発実績（ヘッダー画像 → タイトル帯）
   ---------------------------------------------------------- */
.post-type-archive-works .p-cover {
  height: auto !important;
  min-height: 0;
  padding: 120px 20px 48px;
  background: linear-gradient(120deg, var(--mm-main) 0%, var(--mm-accent) 100%) !important;
  background-image: linear-gradient(120deg, var(--mm-main) 0%, var(--mm-accent) 100%) !important;
}

.post-type-archive-works .p-cover::before,
.post-type-archive-works .p-cover::after {
  display: none !important;
}

.post-type-archive-works .p-cover__inner {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  text-align: center;
}

.post-type-archive-works .p-cover__inner .p-cover__title {
  margin: 0;
}

@media (max-width: 1000px) {
  .post-type-archive-works .p-cover {
    padding: 36px 16px 32px;
  }
}

.cat-refine-btn li.mm-cat-ai a {
  box-shadow: inset 0 0 0 2px var(--mm-accent);
  color: var(--mm-accent);
}

.cat-refine-btn li.mm-cat-ai.current-cat a {
  background: var(--mm-accent);
  color: #fff;
}

.mm-works-empty {
  width: 100%;
  padding: 40px 0;
  color: #666;
  font-size: 14px;
  text-align: center;
}

/* ----------------------------------------------------------
   F-10 リクルート（新卒の注記）
   ---------------------------------------------------------- */
.mm-job-note {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   I-12 AI活用支援：デモ表示の見出し帯
   ---------------------------------------------------------- */
.mm-demo-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 18px;
  padding: 10px 16px;
  border: 1px dashed rgba(196, 181, 253, .7);
  border-radius: 10px;
  background: rgba(167, 139, 250, .16);
  color: #ede9fe;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: .04em;
}

.mm-demo-band::before {
  content: "DEMO";
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 6px;
  background: #a78bfa;
  color: #1e1b4b;
  font-size: 11px;
  letter-spacing: .1em;
}

@media (max-width: 600px) {
  .mm-demo-band {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* ----------------------------------------------------------
   P-03 会社概要（創立30周年・認証）
   ---------------------------------------------------------- */
.company-profile .profile li.mm-profile-row {
  display: flex !important; /* style.css の li:nth-child(2) 非表示を、追加した行だけ解除 */
}

.company-profile .mm-profile-note {
  display: inline-block;
  margin-left: .5em;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--mm-accent-soft);
  color: var(--mm-accent);
  font-size: .85em;
  font-weight: 700;
}

/* ----------------------------------------------------------
   P-02 代表メッセージ（30周年の冒頭・次の10年）
   ---------------------------------------------------------- */
.top-message .message p.mm-msg-lead {
  margin-bottom: 2.4rem;
  padding: 18px 22px;
  border-left: 5px solid var(--mm-accent);
  border-radius: 0 12px 12px 0;
  background: var(--mm-accent-soft);
  color: var(--mm-black);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.top-message .message .mm-msg-next {
  position: relative;
  margin: 3rem 0 0;
  padding: 28px 28px 30px;
  border: 3px solid var(--mm-black);
  border-radius: 28px 28px 0 28px;
  background: #fff;
}

.top-message .message .mm-msg-next h3 {
  margin: 0 0 10px;
  color: var(--mm-accent);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .06em;
}

.top-message .message .mm-msg-next p {
  margin: 0 0 18px;
}

.top-message .message .mm-msg-next a.mm-msg-next__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 2px solid var(--mm-black);
  border-radius: 999px;
  background: var(--mm-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--mm-black);
}

.top-message .message .mm-msg-next a.mm-msg-next__btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.top-message .message .mm-msg-next a.mm-msg-next__btn:hover {
  opacity: .9;
}

@media (max-width: 600px) {
  .top-message .message p.mm-msg-lead {
    font-size: 15px;
    padding: 14px 16px;
  }

  .top-message .message .mm-msg-next {
    padding: 22px 18px 24px;
  }

  .top-message .message .mm-msg-next a.mm-msg-next__btn {
    display: flex;
    justify-content: center;
  }
}

/* ----------------------------------------------------------
   F-10/I-09 リクルート：カルチャー（猫・カレー）への導線  2026-11-26
   .recruit-link（オフィスツアー／社員インタビュー）と同じ見た目の言語で、
   通常フローの横並び2枚（SPは縦積み）。.recruit-link の下に置くので重ならない。
   ---------------------------------------------------------- */
.post-type-archive-recruit .mm-culture-link {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 96%;
  max-width: 1200px;
  margin: 60px auto 80px;
  filter: drop-shadow(8px 8px 24px rgba(0, 0, 0, .3));
  transform: translateZ(0);
}

.post-type-archive-recruit .mm-culture-link__item {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: #3a2a20;
  background-size: cover;
  background-repeat: no-repeat;
}

.post-type-archive-recruit .mm-culture-link__item--cat {
  background-image:
    linear-gradient(90deg, rgba(24, 14, 8, .78) 0%, rgba(24, 14, 8, .55) 55%, rgba(24, 14, 8, .2) 100%),
    url(../assets/renewal/photos/img_8461.jpg);
  background-position: center, 50% 40%;
}

.post-type-archive-recruit .mm-culture-link__item--curry {
  background-image:
    linear-gradient(90deg, rgba(30, 16, 4, .78) 0%, rgba(30, 16, 4, .55) 55%, rgba(30, 16, 4, .2) 100%),
    url(../assets/renewal/photos/img_1553.jpg);
  background-position: center, 50% 55%;
}

.post-type-archive-recruit .mm-culture-link__item a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 7%;
  transition: background-color .3s ease;
}

.post-type-archive-recruit .mm-culture-link__item a:hover,
.post-type-archive-recruit .mm-culture-link__item a:focus-visible {
  background-color: rgba(255, 255, 255, .08);
}

.post-type-archive-recruit .mm-culture-link .recruit-link-text {
  position: static;
  transform: none;
  align-items: center;
}

.post-type-archive-recruit .mm-culture-link .recruit-link-text div:nth-of-type(1) {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  margin: 0 20px 0 0;
}

.post-type-archive-recruit .mm-culture-link .recruit-link-text div:nth-of-type(1) img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post-type-archive-recruit .mm-culture-link .recruit-link-text div:nth-of-type(2) p:nth-of-type(1) {
  font-size: clamp(26px, 2.6vw, 36px);
  white-space: nowrap;
}

.post-type-archive-recruit .mm-culture-link .view-detail {
  margin-top: 28px;
}

@media (max-width: 600px) {
  .post-type-archive-recruit .mm-culture-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: calc(100% - 32px);
    margin: 40px auto 56px;
  }

  .post-type-archive-recruit .mm-culture-link__item {
    height: 170px;
  }

  .post-type-archive-recruit .mm-culture-link__item a {
    padding: 0 20px;
  }

  .post-type-archive-recruit .mm-culture-link .recruit-link-text {
    flex-direction: row;
  }

  .post-type-archive-recruit .mm-culture-link .recruit-link-text div:nth-of-type(1) {
    width: 56px;
    height: 56px;
    margin: 0 14px 0 0;
  }

  .post-type-archive-recruit .mm-culture-link .recruit-link-text div:nth-of-type(2) p:nth-of-type(1) {
    font-size: 20px;
  }

  .post-type-archive-recruit .mm-culture-link .recruit-link-text div:nth-of-type(2) p:nth-of-type(2) {
    font-size: 12px;
    margin-top: 4px;
  }

  .post-type-archive-recruit .mm-culture-link .view-detail {
    margin: 12px 0 0;
  }
}

/* ---------- /welfare (2026-11-26): key numbers band, culture links, job links ---------- */
.wf-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:1000px;margin:0 auto 56px;padding:0 16px}
@media (max-width:767px){.wf-nums{grid-template-columns:repeat(2,1fr);gap:10px}}
.wf-num{background:#fff;border:2px solid #6323bc;border-radius:16px;padding:16px 12px;text-align:center;box-shadow:0 10px 24px rgba(40,20,90,.08)}
.wf-num__k{display:block;font-size:13px;font-weight:700;color:#6323bc;letter-spacing:.04em}
.wf-num__v{display:block;margin-top:4px;font-size:15px;font-weight:700;color:#1d1f5e}
.wf-num__v b{font-size:40px;line-height:1.1;color:#6323bc;margin:0 2px;font-family:"Noto Sans JP",sans-serif}
.wf-more{margin-top:10px}
.wf-more a{color:#6323bc;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.wf-jobs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
.wf-jobs a{display:inline-block;padding:8px 16px;border-radius:999px;border:2px solid #6323bc;color:#6323bc;font-weight:700;font-size:14px;background:#fff}
.wf-jobs a:hover{background:#6323bc;color:#fff}

