/*
Theme Name: Raiza
Theme URI: https://raiza-official.com/
Author: 変数と文学
Author URI: https://var-lit.com/
Description: 株式会社ライザのサイト用ブロックテーマ。汎用スターター corporate-starter をベースに本案件用へ改変。らくらくナイス LP・商品ページ・コーポレートを格納。FSE 対応。
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: raiza
Tags: block-styles, full-site-editing, blog, corporate, custom-colors, custom-logo, custom-menu, featured-images
*/


@import url('https://cdn.jsdelivr.net/npm/yakuhanjp@4.1.1/dist/css/yakuhanjp.css');
@import url('https://cdn.jsdelivr.net/npm/yakuhanjp@4.1.1/dist/css/yakuhanmp.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Noto+Sans+JP:wght@300;400;500;600&family=Noto+Serif+JP:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

/* ----- 数字 (0-9) のみ Libre Caslon Display で表示するための合成フォント。
   Google Fonts の woff2 を直接読み込み、unicode-range で 0-9 だけに絞る。
   text-display を使う全箇所（Pillars 番号 / Strengths 番号 / STEP 01 等）で
   自動適用。英字・記号は unicode-range が外れるため Cormorant にフォールバック。 */
@font-face {
  font-family: "CaslonNumeric";
  src: url("https://fonts.gstatic.com/s/librecaslondisplay/v18/TuGOUUFxWphYQ6YI6q9Xp61FQzxDRKmzr2lUdR5tCQ.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0030-0039;
}

:root {
  --color--bg: #fefefe;
  --color--surface: #f0eee9;
  --color--ink: #474747;
  --color--ink-dark: #2a2a2a;
  --color--ink--light: #737373;
  --color--accent: #1B6EBC;
  --color--accent-light: #44B6D7;
  --gradient--accent: linear-gradient(to right, var(--color--accent), var(--color--accent-light));

  --font--sans: "YakuHanJP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font--serif: "YakuHanMP", "Noto Serif JP", serif;
  --font--display: "CaslonNumeric", "Cormorant Garamond", serif;
  --font--mono: "JetBrains Mono", monospace;

  /* 各ページ最終セクションの padding-bottom 共通トークン。
     フッター上の余白を一括調整したい場合はここを書き換える。 */
  --space-section-bottom: 8rem;
}

@media (min-width: 768px) {
  :root {
    --space-section-bottom: 12rem;
  }
}

html {
  scroll-behavior: smooth;
  /* 横揺れ防止: hidden を fallback にしつつ、clip 対応ブラウザでは sticky を壊さない clip を採用
     （ハンバーガー nav の transform: translateX(100%) が html 側に横スクロールを発生させるのを抑止） */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color--bg);
  color: var(--color--ink);
  font-family: var(--font--sans);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol, dl, dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

p {
  margin: 0;
  margin-bottom: 1.5rem;
}

p:last-child {
  margin-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

* {
  box-sizing: border-box;
}

/* Common Layout */
.layout-main {
  flex-grow: 1;
}

/* [raiza-local] Loading Screen は削除済み */

.container-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 768px) {
  .container-inner {
    padding: 0 3rem;
  }
}

/* Section Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 5rem;
  }
}

.section-title {
  font-size: 1.875rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
}

.section-subtitle {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  line-height: 2;
  width: fit-content;
  margin-inline: auto;
  text-align: left;
  margin-bottom: 1.5rem;
}

.section-lead {
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* Message Page（404 / contact-thanks 共通の中央寄せメッセージレイアウト） */
.message-page {
  padding: 4rem 0 var(--space-section-bottom);
}

@media (min-width: 768px) {
  .message-page {
    padding-top: 6rem;
  }
}

.message-page__inner {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.message-page__lead {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--color--ink);
  margin: 0 0 1.5rem;
}

.message-page__desc {
  font-size: 0.9375rem;
  line-height: 2;
  text-align: left;
  margin: 0 auto 1.25rem;
  max-width: 32rem;
}

.message-page__desc:last-of-type {
  margin-bottom: 3rem;
}

.message-page__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .message-page__lead {
    font-size: 1.5rem;
  }
}

/* Profile Section（index と overview で共有） */
.profile-section {
  padding: 6rem 0 var(--space-section-bottom);
  background-color: var(--color--surface);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .profile-section { padding-top: 10rem; }
}

.profile-section__watermark {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: -10;
  transform: translateY(-50%);
}

.profile-section__watermark-text {
  font-size: 15vw;
  opacity: 0.25;
}

.profile-section__inner {
  max-width: 56rem;
  margin: 0 auto;
}

.profile-section__dl {
  border-top: 1px solid rgba(42, 42, 42, 0.15);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.profile-section__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(42, 42, 42, 0.15);
}

@media (min-width: 768px) {
  .profile-section__row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-section__dt {
  color: var(--color--ink--light);
}

.profile-section__dd {
  line-height: 2;
}

@media (min-width: 768px) {
  .profile-section__dd {
    grid-column: span 2;
  }
}

/* 名前画像（プライバシー配慮: フルネームを画像化）
   dd 内に <img class="profile-section__dd-image"> を埋め込み、
   フォントサイズに追従させるため height: 1em。 */
.profile-section__dd-image {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: middle;
}

.profile-section__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-section__list li {
  position: relative;
  padding-left: 1.5rem;
}

.profile-section__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color--ink-dark);
  opacity: 0.5;
}

/* Typography Utilities */
.text-display {
  font-family: var(--font--display);
  letter-spacing: 0.1em;
}

.text-serif {
  font-family: var(--font--serif);
  letter-spacing: 0.1em;
}

.text-sans {
  font-family: var(--font--sans);
}

.text-mono {
  font-family: var(--font--mono);
  letter-spacing: 0.05em;
}

.text-accent {
  background: var(--gradient--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-light {
  color: var(--color--ink--light);
}

.br-mobile {
  display: block;
}

@media (min-width: 768px) {
  .br-mobile {
    display: none;
  }
}

/* Header */
.header-main {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  /* GPU レイヤーに分離して fixed + backdrop-filter のスクロール再描画コストを軽減 */
  will-change: transform;
  /* transition: all は backdrop-filter まで毎回計算しに行って重いので、
     アニメさせる対象を限定する */
  transition: padding 0.7s ease, background-color 0.7s ease, box-shadow 0.7s ease;
  padding: 1rem 0;
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  color: var(--color--ink);
}

.header-main--scrolled {
  padding: 0.5rem 0;
  background-color: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-main__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 60;
}

.header-main__contact-btn {
  display: none;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  border-radius: 8px;
  background: var(--gradient--accent);
  color: var(--color--bg);
  border: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-main__contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0.9;
}

.header-main__contact-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

@media (min-width: 768px) {
  .header-main__contact-btn {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

.header-main__logo {
  display: flex;
  align-items: center;
}

.header-main__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .header-main__logo-img {
    height: 50px;
  }
}

.header-main__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
}

.header-main__hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--color--ink-dark);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s ease;
  border-radius: 2px;
}

.header-main__hamburger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header-main__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.header-main__hamburger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



.header-main__nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color--bg);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 40;
  overflow-y: auto;
}

.header-main__nav.is-active {
  transform: translateX(0);
  opacity: 1;
}

.header-main__nav-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  min-height: 100%;
  position: relative;
  z-index: 2;
}

.header-main__nav-header,
.header-main__nav-footer {
  opacity: 0;
}

.header-main__nav.is-active .header-main__nav-header {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

.header-main__nav.is-active .header-main__nav-footer {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

.header-main__nav-header {
  margin-bottom: 1.25rem;
}

.header-main__nav-links {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}

.header-main__nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  padding: 0.2rem 0;
  min-height: 2.75rem;
  line-height: inherit;
  transition: color 0.3s ease, transform 0.3s ease;
  width: fit-content;
}

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



.header-main__nav-links > * { opacity: 0; }
.header-main__nav.is-active .header-main__nav-links > * { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(1) { animation-delay: 0.2s; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(2) { animation-delay: 0.25s; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(3) { animation-delay: 0.3s; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(4) { animation-delay: 0.35s; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(5) { animation-delay: 0.4s; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(6) { animation-delay: 0.45s; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(7) { animation-delay: 0.5s; }
.header-main__nav.is-active .header-main__nav-links > :nth-child(8) { animation-delay: 0.55s; }

.header-main__nav-link:hover {
  color: var(--color--accent);
  transform: translateX(10px);
}

.nav-link__en {
  font-family: var(--font--display);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.nav-link__ja {
  font-family: var(--font--sans);
  font-size: 0.6875rem;
  opacity: 0.6;
}

.header-main__nav-footer {
  margin-top: 1rem;
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: center;
}

.header-main__nav-contact {
  width: 100%;
  max-width: 300px;
}

/* Tagline Block (logo と links の間) */
.nav-tagline {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(42, 42, 42, 0.1);
}
.nav-tagline__en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9375rem;
  letter-spacing: 0.15em;
  background: var(--gradient--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.25rem;
}
.nav-tagline__ja {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--color--ink);
  margin: 0;
}

/* Mini Info Block (links と footer の間) */
.nav-info--mini {
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px dashed rgba(42, 42, 42, 0.12);
}
.nav-info--mini .nav-info__line {
  font-size: 0.6875rem;
  color: var(--color--ink--light);
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .header-main__nav-inner {
    padding: 1.5rem 3rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
  }
  .nav-link__en {
    font-size: 1.625rem;
  }
  .nav-link__ja {
    font-size: 0.8125rem;
  }
  .nav-tagline__ja {
    font-size: 1.375rem;
  }
  .nav-info--mini .nav-info__line {
    font-size: 0.8125rem;
    text-align: left;
  }
  .header-main__nav-footer {
    justify-content: flex-start;
  }
  .header-main__nav-bg-text {
    font-size: 12vw;
  }
}



/* Footer */
.footer-main {
  background-color: var(--color--ink-dark);
  color: var(--color--bg);
  padding: 6rem 0 4rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  margin-bottom: 6rem;
}

@media (min-width: 768px) {
  .footer-contact {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-contact__header {
  flex: 1;
}

.footer-contact__title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: var(--color--surface);
}

@media (min-width: 768px) {
  .footer-contact__title {
    font-size: 2.25rem;
  }
}

.footer-contact__subtitle {
  color: rgba(240, 238, 233, 0.8);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.1em;
  width: fit-content;
  margin-inline: auto;
  text-align: left;
}

.footer-contact__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-contact__subtitle {
    margin-inline: 0;
  }
  .footer-contact__content {
    align-items: flex-start;
  }
}

.footer-contact__desc {
  color: rgba(240, 238, 233, 0.8);
  font-size: 0.875rem;
  line-height: 2;
  letter-spacing: 0.05em;
  width: fit-content;
  margin-inline: auto;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-contact__desc {
    margin-inline: 0;
  }
}

.footer-contact__button {
  margin-top: 1rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(250, 249, 247, 0.1);
  margin-bottom: 4rem;
}

.footer-main__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-main__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-main__brand {
  text-align: center;
}

@media (min-width: 768px) {
  .footer-main__brand {
    text-align: left;
  }
}

.footer-main__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .footer-main__logo {
    justify-content: flex-start;
  }
}

.footer-main__logo-img {
  height: 60px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .footer-main__logo-img {
    height: 80px;
  }
}

.footer-main__subtitle {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: rgba(250, 249, 247, 0.6);
}

.footer-main__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(250, 249, 247, 0.6);
}

.footer-main__nav-link {
  transition: color 0.3s ease;
}

.footer-main__nav-link:hover {
  color: var(--color--bg);
}

.footer-main__bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 249, 247, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(250, 249, 247, 0.4);
}

@media (min-width: 768px) {
  .footer-main__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-main__bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-main__bottom-link {
  transition: color 0.3s ease;
}

.footer-main__bottom-link:hover {
  color: var(--color--bg);
}

/* Button */
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--color--ink-dark);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: all 0.5s ease;
  background-color: transparent;
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .button-primary {
    padding: 1rem 2.5rem;
  }
}

.button-primary:hover {
  background-color: var(--color--ink-dark);
  color: var(--color--bg);
}

/* ヘッダーのハンバーガー内お問い合わせボタン：全ページで Gothic + 青グラデで統一
   .button-primary より後に定義することで cascade で勝つ */
.header-main__nav-contact {
  font-family: var(--font--sans);
  background: var(--gradient--accent);
  color: #ffffff;
  border: none;
}
.header-main__nav-contact:hover {
  background: var(--gradient--accent);
  color: #ffffff;
  opacity: 0.9;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--color--ink-dark);
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: all 0.5s ease;
  background-color: var(--color--ink-dark);
  color: var(--color--bg);
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .button-secondary {
    padding: 1rem 2.5rem;
  }
}

.button-secondary:hover {
  background-color: transparent;
  color: var(--color--ink);
}

.button-primary--white {
  border-color: #ffffff;
  color: #ffffff;
}

.button-primary--white:hover {
  background-color: #ffffff;
  color: var(--color--ink);
}

.button-primary__icon {
  transition: transform 0.3s ease;
}

.button-primary:hover .button-primary__icon,
.button-secondary:hover .button-primary__icon,
.button-primary--white:hover .button-primary__icon {
  transform: translateX(5px);
}

/* =========================================================
   トピックスのカテゴリーピル群 / アイキャッチ未設定プレースホルダー
   [topics_term_pills] と画像フィルターが出力する要素。
   TOP・一覧・詳細など全ページに出るため style.css（全ページ共通）に置く。
   ========================================================= */
.topics-term-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  vertical-align: middle;
}
.topics-image-placeholder {
  position: relative;
}
.topics-image-placeholder .topics-image-placeholder__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  max-width: 150px;
  height: auto;
  opacity: 0.16;
}

/* Watermark */
.watermark-text {
  font-family: var(--font--display);
  color: var(--color--ink);
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.watermark-jp {
  font-family: var(--font--serif);
  color: var(--color--ink);
  opacity: 0.03;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Vertical Text */
.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Nav */
.nav-dropdown {
  display: flex;
  flex-direction: column;
}

.nav-dropdown__toggle {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.nav-dropdown__icon {
  width: 1rem;
  height: 1rem;
  align-self: center;
  transition: transform 0.3s ease;
}

.nav-dropdown__toggle[aria-expanded="true"] .nav-dropdown__icon {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  padding-left: 1rem;
}

.nav-dropdown__toggle[aria-expanded="true"] + .nav-dropdown__menu {
  grid-template-rows: 1fr;
  margin-top: 0.5rem;
}

.nav-dropdown__menu > div {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-dropdown__link {
  font-size: 0.875rem;
  color: var(--color--ink--light);
  transition: color 0.3s ease, transform 0.3s ease;
  display: block;
  padding: 0.25rem 0;
}

.nav-dropdown__link:hover {
  color: var(--color--accent);
  transform: translateX(5px);
}

@media (min-width: 768px) {
  .nav-dropdown__menu {
    padding-left: 2rem;
  }
  .nav-dropdown__link {
    font-size: 1rem;
  }
}

/* Footer Dropdown */
.footer-nav__dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-dropdown__toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-dropdown__icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.footer-dropdown__toggle[aria-expanded="true"] .footer-dropdown__icon {
  transform: rotate(180deg);
}

.footer-dropdown__menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 10;
  width: max-content;
  text-align: center;
  background-color: var(--color--ink-dark);
  border: 1px solid rgba(250, 249, 247, 0.1);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.footer-dropdown__toggle[aria-expanded="true"] + .footer-dropdown__menu {
  transform: translate(-50%, -0.5rem);
  opacity: 1;
  visibility: visible;
}

.footer-dropdown__menu > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-dropdown__link {
  font-size: 0.75rem;
  white-space: nowrap;
  color: rgba(250, 249, 247, 0.6);
  transition: color 0.3s ease;
  display: block;
}

.footer-dropdown__link:hover {
  color: var(--color--bg);
}

/* Utility classes for responsive line breaks */
.inline-desktop {
  display: none;
}

.text-genka-subtitle {
  font-size: 0.6em;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .inline-desktop {
    display: inline;
  }
  .text-genka-subtitle {
    font-size: 0.75em;
  }
}

/* PC Hover Effects */
@media (min-width: 768px) {
  /* Header Hover Effects */
  .header-main__nav-link {
    position: relative;
  }

  .nav-dropdown__link {
    position: relative;
    width: fit-content;
  }
  
  .header-main__nav-link {
    position: relative;
  }

  .header-main__nav-link::after,
  .nav-dropdown__link::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .header-main__nav-link::after {
    bottom: -4px;
  }

  .nav-dropdown__link::after {
    bottom: 0;
  }

  .header-main__nav-link:hover::after,
  .nav-dropdown__link:hover::after {
    transform: scaleX(1);
  }

  /* Remove translateX on PC for a cleaner underline effect */
  .header-main__nav-link:hover,
  .nav-dropdown__link:hover {
    transform: none;
  }

  /* Footer Hover Effects */
  .footer-main__nav-link,
  .footer-main__bottom-link {
    position: relative;
    width: fit-content;
  }

  .footer-dropdown__link {
    position: relative;
    width: fit-content;
    margin: 0 auto;
  }
  
  .footer-main__nav-link::after,
  .footer-dropdown__link::after,
  .footer-main__bottom-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  
  .footer-main__nav-link:hover::after,
  .footer-dropdown__link:hover::after,
  .footer-main__bottom-link:hover::after {
    transform: scaleX(1);
  }
}


/* =========================================================
   Works Section
   works / works-interview 両ページ共通の section ラッパー
   ※ ヒーローを持つ works.html では .page-hero + section が padding-top を上書きする。
     ヒーローのない interview 詳細などでは、固定ヘッダー（PC ~82px）を逃がす余白を確保する。
   ========================================================= */
.works-section {
  padding: 7rem 0 var(--space-section-bottom);
}

@media (min-width: 768px) {
  .works-section {
    padding-top: 9rem;
  }
}

.works-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  margin-bottom: 2.5rem;
}
.works-breadcrumb__link,
.works-breadcrumb__separator {
  flex-shrink: 0;
  white-space: nowrap;
}
.works-breadcrumb__current {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .works-breadcrumb {
    margin-bottom: 3rem;
  }
}


/* =========================================================
   代表挨拶（Pull-Quote Led）
   members / overview ページ共通の代表メッセージブロック
   ========================================================= */
.greeting-quote {
  background: #ffffff;
  padding: 2.5rem 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .greeting-quote {
    padding: 4rem 5rem;
    margin-bottom: 5rem;
  }
}

.greeting-quote::before {
  content: "MESSAGE";
  position: absolute;
  top: -0.5rem;
  left: 0.25rem;
  font-size: 3rem;
  font-family: var(--font--display);
  font-style: italic;
  color: var(--color--accent);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .greeting-quote::before {
    font-size: 12rem;
    top: -2rem;
    left: -0.5rem;
  }
}

.greeting-quote__pull,
.greeting-quote__head,
.greeting-quote__body,
.greeting-quote__sign {
  position: relative;
  z-index: 1;
}

.greeting-quote__pull {
  padding: 0 0 1.75rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .greeting-quote__pull {
    padding: 0 0 2.5rem;
    margin-bottom: 0;
  }
}

.greeting-quote__text {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--color--ink);
  position: relative;
}

@media (min-width: 768px) {
  .greeting-quote__text {
    font-size: 2rem;
    line-height: 1.65;
  }
}

.greeting-quote__accent {
  background: var(--gradient--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.greeting-quote__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .greeting-quote__head {
    margin-bottom: 2.5rem;
    gap: 1.25rem;
  }
}

.greeting-quote__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.12);
}

.greeting-quote__kicker {
  flex-shrink: 0;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color--ink--light);
  font-style: italic;
}

@media (min-width: 768px) {
  .greeting-quote__kicker {
    font-size: 1rem;
  }
}

.greeting-quote__body {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color--ink);
}

.greeting-quote__body p {
  margin: 0 0 1.25em;
}

.greeting-quote__body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .greeting-quote__body {
    font-size: 1rem;
    line-height: 2.05;
  }
}

.greeting-quote__sign {
  display: block;
  text-align: right;
  margin-top: 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  font-style: italic;
  color: var(--color--ink--light);
}

@media (min-width: 768px) {
  .greeting-quote__sign {
    margin-top: 3rem;
  }
}

/* 署名の名前画像（明朝・擬似イタリックは画像側で再現）
   greeting-quote__sign 内に <img class="greeting-quote__sign-image"> を埋め込み、
   letter-spacing 込みのため少し大きめの height: 1.4em。 */
.greeting-quote__sign-image {
  display: inline-block;
  height: 1.4em;
  width: auto;
  vertical-align: middle;
  transform: skewX(-20deg);
}


/* =========================================================
   ページ共通：ヒーロー（下層ページ用、TOP と同じビジュアル言語の 70vh 版）
   - .page-hero（コンテナ）
   - .page-hero__inner > breadcrumb / content > kicker + h1 + （任意 desc）
   ※ raiza-local では装飾レイヤー（粒子・ビーム・グロウ・本など）と
     accent / scroll は削除済み
   ========================================================= */

.page-hero {
  position: relative;
  width: 100%;
  /* SP: 画面幅ベースで段階的に px を切替（URL バー連動を完全排除） */
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  color: #1a1a1a;
}
/* 標準 SP（iPhone 13/14 など 390px〜） */
@media (min-width: 390px) {
  .page-hero { min-height: 450px; }
}
/* 大型 SP（iPhone Pro Max 系 430px〜） */
@media (min-width: 430px) {
  .page-hero { min-height: 530px; }
}
/* タブレット・PC は従来通り viewport 単位 */
@media (min-width: 768px) {
  .page-hero { min-height: 70svh; }
}
@media (min-width: 1024px) {
  .page-hero {
    padding: 7rem 0 5rem;
  }
}

/* ----- コンテンツ ----- */
.page-hero__inner {
  position: relative;
  z-index: 10;
  width: 100%;
}

.page-hero__breadcrumb {
  margin-bottom: 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.page-hero__breadcrumb::-webkit-scrollbar {
  display: none;
}
.page-hero__breadcrumb-link {
  transition: color 0.3s ease;
}
.page-hero__breadcrumb-link:hover {
  color: var(--color--ink);
}
.page-hero__breadcrumb-separator {
  color: var(--color--ink--light);
}
.page-hero__breadcrumb-current {
  color: var(--color--ink);
}

.page-hero__content {
  max-width: 820px;
  color: #1a1a1a;
}

.page-hero__title {
  font-family: var(--font--display);
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: #1a1a1a;
  opacity: 0;
  animation: pageHeroFadeUp 0.9s ease 0.5s forwards;
}
@media (min-width: 1024px) {
  .page-hero__title { font-size: 4rem; }
}

/* 日本語見出し版（Solution など、英小・日大の構成で h1 に併用） */
.page-hero__title--ja {
  font-family: 'YakuHanMP', 'Noto Serif JP', serif;
  font-size: 1.875rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
@media (min-width: 1024px) {
  .page-hero__title--ja { font-size: 3rem; }
}

/* 英字キッカー（タイトルの上に置く小さな英字ラベル） */
.page-hero__kicker {
  display: inline-block;
  font-family: var(--font--display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.18em;
  background: var(--gradient--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.75rem;
  opacity: 0;
  animation: pageHeroFadeUp 0.9s ease 0.4s forwards;
}
@media (min-width: 1024px) {
  .page-hero__kicker { font-size: 1.25rem; }
}

.page-hero__subtitle {
  font-family: 'YakuHanMP', 'Noto Serif JP', serif;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  margin: 0;
  color: var(--color--ink--light);
  opacity: 0;
  animation: pageHeroFadeUp 0.9s ease 0.7s forwards;
}

.page-hero__subtitle-accent {
  background: linear-gradient(135deg, #1B6EBC 0%, #44B6D7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  padding: 0 0.05em;
}

.page-hero__desc {
  font-size: clamp(0.875rem, 1.6vw, 1rem);
  line-height: 2;
  letter-spacing: 0.08em;
  color: #4a4a4a;
  max-width: 620px;
  margin: 1.5rem 0 0;
  opacity: 0;
  animation: pageHeroFadeUp 0.9s ease 1s forwards;
}

@keyframes pageHeroFadeUp {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   ページ共通：ヒーロー直下のメインビジュアル画像（任意）
   ========================================================= */
.page-mv {
  padding: 3rem 0 1.5rem;
}
@media (min-width: 1024px) {
  .page-mv {
    padding: 4rem 0 3rem;
  }
}
.page-mv__image {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.page-mv__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* =========================================================
   ヒーロー直後のセクション間隔（共通）
   各ページの page-section 個別 top padding を上書き
   ========================================================= */
.page-hero + section {
  padding-top: 6rem;
}
@media (min-width: 1024px) {
  .page-hero + section {
    padding-top: 9rem;
  }
}

/* =========================================================
   カテゴリー絞り込みボタン列
   ニュース／トピックスの一覧・カテゴリー別ページ共通。
   一覧上部に「すべて / カテゴリA / カテゴリB …」を並べ、
   現在表示中のものを青グラデ塗りで示す。
   ========================================================= */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.625rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .category-filter {
    gap: 0.625rem 0.75rem;
    margin-bottom: 3rem;
  }
}

.category-filter__btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  color: var(--color--ink--light);
  /* border の代わりに inset box-shadow で 1px のリング。
     is-current 時に border-color: transparent にすると外側に
     1px の透明枠が残り、グラデが pill 端まで届かず欠けるのを回避。 */
  border: none;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--color--ink--light);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .category-filter__btn:hover {
    color: var(--color--accent);
    box-shadow: inset 0 0 0 1px var(--color--accent);
  }
}

/* 現在表示中のカテゴリー（または「すべて」）= 青グラデ塗り */
.category-filter__btn.is-current {
  background: var(--gradient--accent);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px transparent;
}
@media (hover: hover) and (pointer: fine) {
  .category-filter__btn.is-current:hover {
    color: #ffffff;
    box-shadow: inset 0 0 0 1px transparent;
  }
}

/* =========================================================
   記事末 CTA（お問い合わせ誘導）— 罫線のみ・背景なし
   - 元は topics 専用だったが news 等でも同じパターンで使えるよう
     全ページ共通の style.css に移動。クラス名は歴史的経緯で
     .topics-cta のまま（同期パターン・既存記事との互換性のため）。
   - 同期パターンとして登録し、トピックス・ニュース両方の本文に挿入する
   - 見出しは h タグにしない（目次への混入を防ぐため p 要素）
   - 子要素は .topics-cta 起点の 2 クラスで本文 p の margin 等を上書き
   ========================================================= */
.topics-cta {
  margin: 3.5rem 0 0;
  padding: 2.25rem 1rem;
  border-top: 1px solid rgba(27, 110, 188, 0.22);
  border-bottom: 1px solid rgba(27, 110, 188, 0.22);
  text-align: center;
}

.topics-cta .topics-cta__title {
  font-family: var(--font--sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  color: var(--color--ink);
  margin: 0 0 0.625rem;
}

.topics-cta .topics-cta__text {
  font-size: 0.875rem;
  line-height: 1.9;
  color: var(--color--ink--light);
  margin: 0;
}

.topics-cta .topics-cta__button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 2.25rem;
  background: var(--gradient--accent);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .topics-cta .topics-cta__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 110, 188, 0.3);
  }
}

@media (min-width: 768px) {
  .topics-cta {
    margin-top: 4.5rem;
    padding: 2.75rem 1rem;
  }
  .topics-cta .topics-cta__title {
    font-size: 1.3rem;
  }
  .topics-cta .topics-cta__text {
    font-size: 0.9375rem;
  }
}
