/* ==========================================================================
   1. リセット & 共通基本設定
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, h1, h2, h3, h4, p, ul, ol, li {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'メイリオ', sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* 共通コンテナ */
/* 共通コンテナの修正 */
.c-container {
  width: 100%;
  max-width: 960px; /* 👈 横幅を少し引き締めて、中央寄りにします */
  margin: 0 auto;
  padding: 0 40px;  /* 👈 画面端との間にしっかり余白を確保します */
}

/* ==========================================================================
   2. レイアウト（ヘッダー・メイン・フッター）
   ========================================================================== */

/* ==========================================================================
   ヘッダー最上部：トップバー（Pマーク・個人情報保護規定）の設定
   ========================================================================== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.l-header__topbar {
  background-color: #f4f8ff; 
  border-bottom: 1px solid #e1ecf7;
  padding: 6px 0;
}

.l-header__topbar-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  align-items: center;
}

/* 個人情報保護規定の文字リンク（Pマークと一体化） */
.l-header__toplink {
  font-size: 12px;
  color: #555555;
  font-weight: 500;
  display: flex;
  align-items: center; /* Pマークと文字の縦中心を揃える */
  gap: 6px; /* Pマークと文字の間の隙間 */
  transition: opacity 0.3s ease;
}

.l-header__toplink:hover {
  opacity: 0.8;
}

/* 👈 【新設】CSSで描く赤い角丸のPマーク */
.c-icon-p {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  background-color: #e60012; /* 鮮やかな赤（プライバシーマーク基調） */
  color: #ffffff !important; /* 白文字 */
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px; /* 絶妙な丸みの角丸 */
  line-height: 1;
}

/* ヘッダー全体の余白微調整 */
.l-header__container {
  padding: 10px 40px !important;
}

/* ==========================================================================
   ヘッダーロゴ画像の最適化設定
   ========================================================================== */
.l-header__logo a {
  display: flex;
  align-items: center;
}

.l-header__logo img {
  /* ロゴの美しさを保ちつつ、ヘッダーに上品に収まる高さ（45px）に制限 */
  height: 90px; 
  width: auto;   /* 横幅は比率を保って自動調整 */
  display: block;
}

/* ヘッダー全体の余白をロゴに合わせて微調整 */
/* ==========================================================================
   ロゴ拡大（90px）に伴うメニュー位置とフォントサイズの微調整
   ========================================================================== */

/* 1. ヘッダー全体の縦の整列を強固にする */
.l-header__container {
  max-width: 960px;
  margin: 0 auto;
  padding: 15px 40px; 
  display: flex;
  justify-content: space-between;
  align-items: center; /* 👈 これでロゴとメニューの「縦のド真ん中」を揃えます */
}

/* 2. メニューの位置が浮くのを防ぎ、文字を少し大きくする */
.l-header__menu {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center; /* 👈 メニュー内の各リンクも縦中央に揃えます */
}

.l-header__menu a {
  font-size: 18px;     /* 👈 フォントを15pxから「16px」へ微拡大して視認性をアップ */
  font-weight: 500;
  color: #555555;
  display: block;      /* 👈 高さを正しく持って整列させるための指定 */
  padding: 10px 0;     /* 👈 文字の上下に程よい余白を作って配置を安定させます */
  position: relative;
}

/* スマホ環境（画面幅が狭いとき）の調整 */
@media screen and (max-width: 767px) {
  .l-header__logo img {
    height: 38px; /* スマホ画面ではロゴをひと回り小さくしてバランスを取ります */
  }
}

.l-header__menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.l-header__menu a {
  font-size: 15px;
  font-weight: 500;
  color: #555555;
  padding: 5px 0;
  position: relative;
}

.l-header__menu a.-active,
.l-header__menu a:hover {
  color: #0077e6; /* スカイブルー */
}

/* メインコンテンツ（大きくなったヘッダーに合わせて開始位置を125pxに広げ、詰まりを解消） */
.l-main {
  padding-top: 125px; /* 👈 75px から 125px に修正してゆとりを持たせます */
}

/* フッター */
.l-footer {
  background-color: #0d2b5c; /* パンフレット基調の濃紺 */
  color: #ffffff;
  padding: 60px 20px 30px;
  text-align: center;
}

.l-footer__container {
  max-width: 1100px;
  margin: 0 auto;
}

.l-footer__nav,
.l-footer__sub-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.l-footer__nav a {
  font-size: 15px;
}

.l-footer__sub-nav a {
  font-size: 13px;
  color: #b0c4de; /* 落ち着いた淡いブルー */
}

.l-footer__copyright {
  font-size: 12px;
  color: #8fa4c3;
  margin-top: 40px;
}

/*フッター社ロゴ*/
.l-footer__logo {
  margin-top: 30px;
  text-align: center;
}

/* ==========================================================================
   3. 共通コンポーネント（見出し・ボタン等）
   ========================================================================== */

/* パンフレット風のスマートな見出し */
.c-heading-section {
  font-size: 26px;
  color: #0d2b5c;
  font-weight: 700;
  padding-left: 15px;
  border-left: 4px solid #0077e6; /* ブルーのアクセントライン */
  margin-bottom: 30px;
}

.c-text-lead {
  font-size: 16px;
  color: #555555;
  line-height: 1.8;
}

/* ボタン */
.c-button {
  display: inline-block;
  padding: 12px 35px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  text-align: center;
}

.c-button.-primary {
  background: linear-gradient(135deg, #0077e6, #0056b3); /* 美しい青のグラデーション */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 119, 230, 0.3);
}

.c-button.-outline {
  border: 2px solid #0077e6;
  color: #0077e6;
  margin-left: 15px;
}

/* ==========================================================================
   4. 各ページ専用スタイル（トップ：ヒーローエリアの白いモヤを完全撤去）
   ========================================================================== */
.p-hero {
  /* 
    【超重要修正】
    左側の真っ白な抜けを完全に消し去るため、背景色自体をパンフレットの濃紺（#0d2b5c）に固定します。
    グラデーションの左端も不透明な濃紺にすることで、画像の左側の白いフェードを上から塗りつぶします。
  */
  background-color: #0d2b5c !important; 
  background: linear-gradient(to right, 
                rgba(13, 43, 92, 1) 0%, 
                rgba(13, 43, 92, 0.9) 30%, 
                rgba(13, 43, 92, 0.4) 60%, 
                rgba(13, 43, 92, 0.1) 100%),
              url('images/tokyoandnetwork.jpg') no-repeat center center !important;
  background-size: cover !important;
  background-position: right center !important; /* 👈 画像を右寄せにすることで、東京タワー側をより広く見せます */
  
  /* 画面の横幅いっぱいに背景を広げるための設定 */
  width: 100% !important;
  padding: 160px 0 120px !important;
  position: relative;
  overflow: hidden;
}

/* 背景が深い濃紺に変わるため、文字を「白文字」に反転させてクッキリ際立たせます */
.p-hero__sub {
  font-size: 15px;
  font-weight: 700;
  color: #33a6ff !important; /* 鮮やかなスカイブルー */
  letter-spacing: 0.15em;
  margin-bottom: 15px;
}

.p-hero__title {
  font-size: 42px;
  color: #ffffff !important; /* 青文字から「白」へ変更 */
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* 文字の視認性をさらに強化 */
}

.p-hero__title span {
  font-size: 28px;
  font-weight: 500;
  color: #ffffff !important;
  display: block;
  margin-top: 12px;
  opacity: 0.9;
}

.p-hero__text {
  font-size: 16px;
  color: #e6efff !important; /* 読みやすい淡いブルーホワイト */
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 550px;
}

/* 枠線ボタンも夜景の紺に映える白ベースに調整 */
.c-button.-outline {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.c-button.-outline:hover {
  background-color: #ffffff !important;
  color: #0d2b5c !important;
}

/* ==========================================================================
   スマートフォン対応（夜景画像を活かしつつ文字を読ませる調整）
   ========================================================================== */
@media screen and (max-width: 767px) {
  .p-hero {
    padding: 80px 0;
    background-position: 70% center; /* スマホでは夜景のいいところを中央に寄せる */
  }
  
  /* スマホ時は画面全体を少し白っぽくして文字の読みやすさを最優先にする */
  .p-hero::before {
    background: rgba(255, 255, 255, 0.85);
  }
  
  .p-hero__title {
    font-size: 26px;
  }
  
  .p-hero__title span {
    font-size: 20px;
  }
}

/* ==========================================================================
   5. スマートフォン用（レスポンシブ）調整
   ========================================================================== */
@media screen and (max-width: 767px) {
  .l-header__container {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  .l-header__menu {
    gap: 15px;
  }
  .l-header__menu a {
    font-size: 13px;
  }
  .l-main {
    padding-top: 100px;
  }
  .p-hero {
    padding: 60px 0;
    text-align: center;
  }
  .p-hero__title {
    font-size: 28px;
  }
  .p-hero__title span {
    font-size: 20px;
  }
  .c-button {
    width: 100%;
    margin-bottom: 15px;
  }
  .c-button.-outline {
    margin-left: 0;
  }
  .l-footer__nav, .l-footer__sub-nav {
    flex-direction: column;
    gap: 15px;
  }
}

/* ==========================================================================
   私たちの強み（カードレイアウト）の専用デザイン
   ========================================================================== */

/* セクション全体の上下の余白（ゆったりと高級感を持たせる） */
.p-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* 見出し下のリード文と、その下のカードとの隙間 */
.c-text-lead {
  margin-bottom: 50px;
}

/* 3列に綺麗に並べるためのグリッド設定 */
.p-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 均等に3分割 */
  gap: 30px;                             /* カード同士の間隔 */
}

/* カード1枚ずつのデザイン */
.p-strength-card {
  background-color: #f7fafd;             /* ほんのり青みがかった清潔感のある白 */
  border: 1px solid #e1ecf7;             /* 目立たない繊細な境界線 */
  border-radius: 8px;                    /* 緩やかな角丸 */
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(13, 43, 92, 0.02); /* 高級感のある極薄の影 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスを乗せたときにパンフレットが浮き出るような心地よい動き */
.p-strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(13, 43, 92, 0.08);
  border-color: #0077e6;                  /* 枠線がブランドの青に変化 */
}

/* ナンバリング（01, 02, 03）の装飾 */
.p-strength-card__icon {
  margin-bottom: 25px;
}

.p-strength-card__icon .-number {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #b0c4de;                        /* 最初は控えめな淡いブルー */
  line-height: 1;
  transition: color 0.3s ease;
}

.p-strength-card:hover .p-strength-card__icon .-number {
  color: #0077e6;                        /* ホバー時に鮮やかなスカイブルーに */
}

/* カード内の見出し */
.p-strength-card__title {
  font-size: 18px;
  color: #0d2b5c;                        /* 知的な濃紺 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

/* カード内の説明文 */
.p-strength-card__text {
  font-size: 14px;
  color: #555555;
  line-height: 1.7;
}

/* ==========================================================================
   スマートフォン（レスポンシブ）対応
   ========================================================================== */
@media screen and (max-width: 959px) {
  /* 画面が狭くなったら、無理に横並びにせず縦に1列ずつ並べる */
  .p-strength-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .p-section {
    padding: 60px 0;
  }
  
  .p-strength-card {
    padding: 30px;
  }
}

/* ==========================================================================
   共通：セクション見出し（サブラベル＋タイトル）
   ========================================================================== */
.c-section-title-box {
  text-align: center;
  margin-bottom: 55px;
}

.c-section-title-sub {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #0077e6;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.c-section-title {
  font-size: 30px;
  font-weight: 700;
  color: #0d2b5c;
  line-height: 1.5;
}

/* 濃紺の背景上で使う白文字バージョン */
.c-section-title-box.-light .c-section-title-sub {
  color: #59b4ff;
}

.c-section-title-box.-light .c-section-title {
  color: #ffffff;
}

/* ==========================================================================
   企業理念：Mission / Vision（会社概要ページ最上部・ヒーロー風）
   ========================================================================== */
.p-philosophy-mv {
  background:
    linear-gradient(150deg, rgba(10, 33, 72, 0.62) 0%, rgba(13, 43, 92, 0.55) 45%, rgba(18, 58, 115, 0.6) 100%),
    url('images/philosophy-bg.jpg') no-repeat center center;
  background-size: cover;
  padding: 70px 0 90px;
  position: relative;
  overflow: hidden;
}

/* さりげない光の演出（右上にほんのり広がる青のグロー） */
.p-philosophy-mv::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(51, 166, 255, 0.28) 0%, rgba(51, 166, 255, 0) 70%);
  pointer-events: none;
}

.p-philosophy-mv .c-container {
  position: relative;
  z-index: 1;
}

.p-philosophy-mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.p-philosophy-mv-card {
  background: rgba(10, 30, 64, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 45px 40px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.p-philosophy-mv-card:hover {
  transform: translateY(-6px);
  background: rgba(10, 30, 64, 0.55);
  border-color: rgba(89, 180, 255, 0.6);
}

.p-philosophy-mv-card__num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: rgba(89, 180, 255, 0.55);
  margin-bottom: 18px;
}

.p-philosophy-mv-card__title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.p-philosophy-mv-card__title small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  color: #59b4ff;
  margin-top: 8px;
  letter-spacing: 0.03em;
}

.p-philosophy-mv-card__text {
  font-size: 15px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   企業理念：行動指針（The Code of Conduct）
   ========================================================================== */
.p-conduct {
  background-color: #f7fafd;
  padding: 90px 0;
  border-bottom: 1px solid #e1ecf7;
}

.p-conduct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 30px;
}

.p-conduct-card {
  background-color: #ffffff;
  border: 1px solid #e1ecf7;
  border-radius: 10px;
  padding: 30px 32px;
  box-shadow: 0 4px 20px rgba(13, 43, 92, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.p-conduct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13, 43, 92, 0.08);
}

.p-conduct-card__label {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0d2b5c;
  padding-left: 14px;
  border-left: 4px solid #0077e6;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.p-conduct-card__list {
  list-style: none;
}

.p-conduct-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.85;
  color: #555555;
}

.p-conduct-card__list li:not(:last-child) {
  margin-bottom: 8px;
}

.p-conduct-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #0077e6;
}

/* 行ごとにアクセントカラーを切り替えて、視覚的なリズムを演出 */
.p-conduct-card.-row1 .p-conduct-card__label {
  border-left-color: #0d2b5c;
}
.p-conduct-card.-row1 .p-conduct-card__list li::before {
  background-color: #0d2b5c;
}

.p-conduct-card.-row2 .p-conduct-card__label {
  border-left-color: #0077e6;
}
.p-conduct-card.-row2 .p-conduct-card__list li::before {
  background-color: #0077e6;
}

.p-conduct-card.-row3 .p-conduct-card__label {
  border-left-color: #33a6ff;
}
.p-conduct-card.-row3 .p-conduct-card__list li::before {
  background-color: #33a6ff;
}

/* ==========================================================================
   企業理念セクション：レスポンシブ対応
   ========================================================================== */
@media screen and (max-width: 959px) {
  .p-philosophy-mv {
    padding: 50px 0 60px;
  }

  .p-philosophy-mv-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .p-conduct {
    padding: 60px 0;
  }

  .p-conduct-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .c-section-title {
    font-size: 24px;
  }
}

/* ==========================================================================
   下層ページ共通：見出しエリア（トップの東京夜景を上品に流用）
   ========================================================================== */
.p-page-header {
  background: linear-gradient(to right, rgba(13, 43, 92, 0.95) 0%, rgba(13, 43, 92, 0.7) 100%),
              url('images/tokyoandnetwork.jpg') no-repeat center center;
  background-size: cover;
  padding: 60px 0;
  color: #ffffff;
}

.p-page-header__sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #33a6ff;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.p-page-header__title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   会社概要：コンテンツ装飾
   ========================================================================== */
.p-company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 60px;
}

.p-company-table th,
.p-company-table td {
  padding: 20px 25px;
  border-bottom: 1px solid #e1ecf7;
  font-size: 16px;
  line-height: 1.8;
}

.p-company-table th {
  width: 25%;
  color: #0d2b5c;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  background-color: #f7fafd;
}

.p-company-table td {
  color: #333333;
}

.p-company-table td p {
  margin-bottom: 8px;
}
.p-company-table td p:last-child {
  margin-bottom: 0;
}

.p-company-table td .-en {
  font-size: 14px;
  color: #666666;
}

/* アクセス・地図エリア */
.p-access-block {
  display: flex;
  gap: 50px;
  align-items: flex-start;
  margin-top: 40px;
}

.p-access-info {
  flex: 1;
}

.p-access-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 30px;
}

.p-access-text .-tel {
  font-weight: 700;
  color: #0d2b5c;
  font-size: 18px;
}

/* 関連リンクのボタン化 */
.p-company-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-link-button {
  display: block;
  padding: 12px 20px;
  background-color: #f7fafd;
  border: 1px solid #e1ecf7;
  color: #0d2b5c;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.c-link-button:hover {
  background-color: #0077e6;
  color: #ffffff;
  border-color: #0077e6;
}

.p-access-map {
  flex: 1;
}

.p-access-map img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(13, 43, 92, 0.06);
}

/* 会社概要のレスポンシブ対応 */
@media screen and (max-width: 767px) {
  .p-company-table th,
  .p-company-table td {
    display: block;
    width: 100%;
  }
  .p-company-table th {
    padding-bottom: 5px;
    background-color: transparent;
  }
  .p-company-table td {
    padding-top: 5px;
  }
  .p-access-block {
    flex-direction: column;
    gap: 30px;
  }
}

/* ==========================================================================
   7. サービスページ専用スタイル（画像サイズを25%カット調整）
   ========================================================================== */
.-service-section {
  background-color: #ffffff;
  padding: 100px 0;
}

/* 各サービスアイテムのコンテナ */
.p-service-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 120px;
}

.p-service-item:last-child {
  margin-bottom: 0;
}

/* 偶数番目の反転設定 */
.p-service-item.-reverse {
  flex-direction: row-reverse;
}

/* 左/右のグラフィックエリア（幅を少し狭めて40%に変更） */
.p-service-item__graphic {
  flex: 0 0 40%; /* 👈 50%から40%に絞り、画像全体のエリアをコンパクトに */
  max-width: 40%;
  position: relative;
}

/* 英語タイトルロゴ（こちらもバランスを見て少し小さめに制限） */
.p-service-heading-img {
  max-width: 280px; /* 👈 340px から 280px に微調整 */
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
  margin: 0 auto; /* 中央に綺麗に配置 */
}

/* 【重要】かっこいいPC背景画像のサイズ調整（約25%ダウン） */
.p-service-bg-image {
  margin: 20px auto 0;
  width: 90%;          /* 👈 横幅を100%から90%に絞ってスリムに */
  height: 180px;        /* 👈 縦幅を240pxから180px（25%カット）に落としました */
  background-size: cover;
  background-position: center;
  border-radius: 6px;   /* 小さくなったサイズに合わせて角丸も少しスマートに */
  box-shadow: 0 6px 20px rgba(13, 43, 92, 0.05);
}

/* 左/右の文章テキストエリア（その分、文字側を60%に広げてゆったり読ませます） */
.p-service-item__body {
  flex: 0 0 60%; /* 👈 50%から60%に広げました */
  max-width: 60%;
}

.p-service-item__body .c-text-lead {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #444444;
}

/* スマートフォン（レスポンシブ）対応 */
@media screen and (max-width: 959px) {
  .p-service-item,
  .p-service-item.-reverse {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
  }
  
  .p-service-item__graphic,
  .p-service-item__body {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .p-service-heading-img {
    max-width: 240px;
  }

  .p-service-bg-image {
    width: 100%;
    height: 160px;
  }
}

/* ==========================================================================
   8. 個人情報保護方針（プライバシーポリシー）＆専用フォーム（改行最適化版）
   ========================================================================== */
.-policy-section {
  background-color: #ffffff;
  padding: 80px 0 40px;
}

/* ==========================================================================
   フォーム：エラーメッセージ表示
   ========================================================================== */
.p-form-error {
  background-color: #ffebee; /* 薄い赤 */
  border: 1px solid #e60012; /* 鮮やかな赤 */
  color: #e60012;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-form-error::before {
  content: "⚠";
  font-size: 18px;
}

/* 👈 幅を 750px から 900px に広げ、1行に入る文字数をゆったり確保 */
.-w750 {
  max-width: 900px;
  margin: 0 auto;
}

/* 👈 フォームの幅も 630px から 750px に広げて窮屈感を解消 */
.-w630 {
  max-width: 750px;
  margin: 0 auto;
}

.p-policy-meta {
  text-align: right;
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* 👈 ここが最重要！日本語の文章が美しく改行されるための設定 */
.p-policy-body .c-text {
  font-size: 15px;
  line-height: 1.9; /* 行間をほんの少し広げて視認性をアップ */
  color: #444444;
  margin-bottom: 24px;
  
  /* 🪄 魔法のCSS：単語や句読点の文脈を考慮し、1文字だけ落ちる現象を劇的に減らします */
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict; /* 句読点や閉じカッコが行頭に来るのを防ぐ（禁則処理の強化） */
  text-align: justify; /* 両端揃えにすることで、右端のガタつきをなくし綺麗に整列させます */
}

.p-policy-signature {
  text-align: right;
  font-weight: 700;
  color: #0d2b5c;
  font-size: 16px;
  margin: 40px 0 60px;
}

/* セクションの見出し */
.c-heading-policy {
  font-size: 19px;
  font-weight: 700;
  color: #0d2b5c;
  border-left: 4px solid #0077e6;
  padding-left: 14px;
  margin: 55px 0 25px;
  line-height: 1.4;
}

.c-subheading-policy {
  font-size: 16px;
  font-weight: 700;
  color: #0d2b5c;
  margin: 35px 0 15px;
}

/* 窓口情報を囲むカード */
.p-policy-card {
  background-color: #f7fafd;
  border: 1px solid #e1ecf7;
  padding: 30px;
  border-radius: 6px;
  margin-bottom: 35px;
}

.p-policy-end {
  text-align: right;
  font-weight: 500;
  color: #666666;
  margin-top: 30px;
}

/* フォームセクションの背景 */
.-policy-form-section {
  background-color: #f4f8ff;
  padding: 60px 0 100px;
}

.p-policy-form-box {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 45px;
  box-shadow: 0 4px 20px rgba(13, 43, 92, 0.05);
}

.p-policy-form-title {
  font-size: 22px;
  font-weight: 700;
  color: #0d2b5c;
  text-align: center;
  margin-bottom: 10px;
}

.p-policy-form-note {
  text-align: right;
  margin-bottom: 25px;
}

.u-c-red {
  color: #e60012;
  font-size: 13px;
  font-weight: 500;
}

/* 入力フォームの美化群 */
.c-form-policy__group {
  margin-bottom: 25px;
}

.c-form-policy__label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #333333;
  margin-bottom: 8px;
}

.c-form-policy__required {
  color: #e60012;
  margin-left: 4px;
}

.c-form-policy__example {
  font-size: 12px;
  color: #888888;
  font-weight: 400;
  margin-left: 8px;
}

.c-form-policy__input,
.c-form-policy__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.c-form-policy__input:focus,
.c-form-policy__textarea:focus {
  border-color: #0077e6;
  box-shadow: 0 0 0 3px rgba(0, 119, 230, 0.1);
  outline: none;
}

.c-form-policy__textarea {
  height: 150px;
  min-height: 150px;
  resize: vertical;
}

.c-form-policy__choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #444444;
  cursor: pointer;
  line-height: 1.5;
}

.c-form-policy__checkbox {
  margin-top: 3px;
}

.c-form-policy__subtext {
  font-size: 12px;
  color: #666666;
  margin-top: 5px;
  padding-left: 22px;
}

.c-form-policy__subtext a {
  color: #0077e6;
  text-decoration: underline;
}

/* 送信ボタンの装飾 */
.c-form-policy__action {
  text-align: center;
  margin-top: 40px;
}

.c-form-policy__submit {
  background-color: #0077e6;
  color: #ffffff;
  border: none;
  padding: 16px 50px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 119, 230, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}

.c-form-policy__submit:hover {
  background-color: #005cb8;
  transform: translateY(-2px);
}

@media screen and (max-width: 767px) {
  .p-policy-form-box {
    padding: 25px 20px;
  }
}

/* ==========================================================================
   9. マージン率等の情報提供（リーガル情報公開）専用スタイル
   ========================================================================== */

/* 日本語が美しく収まる幅の拡張コンテナ（privacypolicyと共通で使用可能） */
.-w900 {
  max-width: 900px !important;
  margin: 0 auto;
}

/* 冒頭のリード文調整 */
.-margin-bottom-large {
  margin-bottom: 40px !important;
}

/* 🪄 項目リスト（①②③...）のCSS制御 */
.p-margin-rate-list {
  list-style: none; /* デフォルトを消す */
  counter-reset: margin-counter;
}

.p-margin-rate-list li {
  position: relative;
  padding-left: 45px; /* ①〜⑧が入るスペース */
  margin-bottom: 40px;
  border-bottom: 1px solid #e1ecf7;
  padding-bottom: 40px;
}

.p-margin-rate-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Pマーク基調の青い丸数字①②③を生成 */
.p-margin-rate-list li::before {
  counter-increment: margin-counter;
  content: counter(margin-counter, cjk-ideographic); /* 🪄 CJK丸数字を自動生成（※環境依存を防ぐためCSSで描画） */
  content: counter(margin-counter); /* 代替テキスト */
}

/* 代替として、疑似要素で丸数字を描画 */
.p-margin-rate-list li::before {
  counter-increment: margin-counter;
  content: counter(margin-counter);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  background-color: #f4f8ff;
  border: 2px solid #0077e6;
  border-radius: 50%;
  color: #0077e6;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

/* 項目見出し（クッキリ読ませる濃紺） */
.p-margin-rate-list__title {
  font-size: 17px;
  font-weight: 700;
  color: #0d2b5c;
  margin-bottom: 20px;
  line-height: 1.5;
  
  /* 🪄 改行最適化（一文字改行撲滅）をここにも適用 */
  overflow-wrap: anywhere;
  text-align: justify;
}

/* 回答コンテンツエリア（読みやすいフォントバランス） */
.p-margin-rate-list__answer {
  font-size: 15px;
  line-height: 1.9;
  color: #444444;
  padding-left: 10px; /* 見出しとの縦ラインを合わせる */
}

.p-margin-rate-list__answer .c-text {
  font-size: 15px;
  margin-bottom: 0;
}

.p-margin-rate-list__answer p {
  margin-bottom: 8px;
}
.p-margin-rate-list__answer p:last-child {
  margin-bottom: 0;
}

/* 数字をバシッと際立たせる設定 */
.p-margin-rate-list__answer .-number {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  margin-right: 2px;
}

/* マージン率（⑤）専用の計算式＆説明文の装飾 */
.p-margin-rate-list__answer.-margin-rate {
  font-size: 16px;
}
.p-margin-rate-list__answer.-margin-rate .-number {
  font-size: 26px;
  color: #e60012; /* マージン率は赤い数字で強調 */
}

.p-margin-rate-calc {
  background-color: #f7fafd;
  border: 1px dashed #e1ecf7;
  padding: 20px;
  border-radius: 6px;
  margin-top: 15px;
}

.p-margin-rate-calc .-calc-formula {
  font-size: 14px;
  font-weight: 700;
  color: #0d2b5c;
  text-align: center;
  margin-bottom: 12px !important;
}

.p-margin-rate-calc .-calc-description {
  font-size: 13px;
  color: #666666;
  line-height: 1.7;
}

/* 🪄 チェックボックス（☑ □）のCSS化 */
.p-agreement-status {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.c-checkbox {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  color: #444444;
  line-height: 1.5;
}

/* □ ボックス（未チェック） */
.c-checkbox::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #cccccc;
  background-color: #ffffff;
  border-radius: 2px;
}

/* ☑ ボックス（チェック済み）の装飾 */
.c-checkbox.-checked::before {
  background-color: #0077e6; /* チェック済みの青 */
  border-color: #0077e6;
}

.c-checkbox.-checked::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #ffffff; /* 白いチェックマークを描画 */
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg); /* 斜めにする */
}

.c-checkbox.-checked {
  font-weight: 700;
  color: #333333;
}

/* チェック済みの詳細項目 */
.p-agreement-details {
  padding-left: 40px;
  border-left: 2px solid #0077e6;
  font-size: 14px;
  color: #555555;
}
.p-agreement-details p {
  margin-bottom: 8px !important;
}
.p-agreement-details p:last-child {
  margin-bottom: 0 !important;
}

/* スマートフォン対応 */
@media screen and (max-width: 767px) {
  .p-margin-rate-list li {
    padding-left: 0;
    margin-bottom: 30px;
    padding-bottom: 30px;
  }
  .p-margin-rate-list li::before {
    position: static;
    margin-bottom: 10px;
    display: inline-flex;
  }
  
  .p-margin-rate-list__title {
    font-size: 16px;
  }
  
  .p-margin-rate-list__answer {
    padding-left: 0;
  }
  
  .p-margin-rate-calc {
    padding: 15px;
  }
  .p-margin-rate-calc .-calc-formula {
    font-size: 13px;
  }
  
  .p-agreement-details {
    padding-left: 15px;
  }
}

/* ==========================================================================
   10. 採用情報（キャリア）専用スタイル
   ========================================================================== */
.-career-section {
  background-color: #ffffff;
  padding: 80px 0 60px;
}

.p-career-lead {
  margin-bottom: 50px;
}
.p-career-lead .c-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  text-align: justify; /* 改行最適化（一文字改行撲滅） */
}

/* 職種リストのコンテナ */
.p-career-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* 職種カード（テック企業らしくクッキリと） */
.p-career-card {
  background-color: #f7fafd;
  border: 1px solid #e1ecf7;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(13, 43, 92, 0.03);
}

.p-career-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0d2b5c;
  margin-bottom: 25px;
  line-height: 1.4;
  overflow-wrap: anywhere; /* 一文字改行撲滅 */
  text-align: justify;
}

/* 職種テーブル（会社概要をスマートに踏襲） */
.p-career-table {
  width: 100%;
  border-collapse: collapse;
}

.p-career-table th,
.p-career-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e1ecf7;
  font-size: 15px;
  line-height: 1.7;
}

.p-career-table th {
  width: 25%;
  color: #0d2b5c;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  background-color: transparent;
  padding-left: 0;
}

.p-career-table td {
  color: #444444;
}

.p-career-table td p {
  margin-bottom: 8px;
  overflow-wrap: anywhere; /* 一文字改行撲滅 */
  text-align: justify;
}
.p-career-table td p:last-child {
  margin-bottom: 0;
}

.p-career-card__action {
  margin-top: 30px;
  text-align: center;
}

/* コンポーネント：ボタン */
.c-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
}

.c-button.-primary {
  background-color: #0077e6;
  color: #ffffff;
}

.c-button.-primary:hover {
  background-color: #005cb8;
  transform: translateY(-2px);
}

/* スマートフォン対応 */
@media screen and (max-width: 767px) {
  .p-career-card {
    padding: 20px;
  }
  
  .p-career-card__title {
    font-size: 18px;
  }
  
  .p-career-table th,
  .p-career-table td {
    display: block;
    width: 100%;
  }
  .p-career-table th {
    padding-bottom: 5px;
  }
  .p-career-table td {
    padding-top: 5px;
  }
}

/* ==========================================================================
   10. 採用情報（キャリア）専用スタイル
   ========================================================================== */
.-career-section {
  background-color: #ffffff;
  padding: 80px 0 60px;
}

.p-career-lead {
  margin-bottom: 50px;
}
.p-career-lead .c-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  text-align: justify; /* 改行最適化（一文字改行撲滅） */
}

/* 職種リストのコンテナ */
.p-career-list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* 職種カード（テック企業らしくクッキリと） */
.p-career-card {
  background-color: #f7fafd;
  border: 1px solid #e1ecf7;
  border-radius: 6px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(13, 43, 92, 0.03);
}

.p-career-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0d2b5c;
  margin-bottom: 25px;
  line-height: 1.4;
  overflow-wrap: anywhere; /* 一文字改行撲滅 */
  text-align: justify;
}

/* 職種テーブル（会社概要をスマートに踏襲） */
.p-career-table {
  width: 100%;
  border-collapse: collapse;
}

.p-career-table th,
.p-career-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e1ecf7;
  font-size: 15px;
  line-height: 1.7;
}

.p-career-table th {
  width: 25%;
  color: #0d2b5c;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
  background-color: transparent;
  padding-left: 0;
}

.p-career-table td {
  color: #444444;
}

.p-career-table td p {
  margin-bottom: 8px;
  overflow-wrap: anywhere; /* 一文字改行撲滅 */
  text-align: justify;
}
.p-career-table td p:last-child {
  margin-bottom: 0;
}

.p-career-card__action {
  margin-top: 30px;
  text-align: center;
}

/* コンポーネント：ボタン */
.c-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
}

.c-button.-primary {
  background-color: #0077e6;
  color: #ffffff;
}

.c-button.-primary:hover {
  background-color: #005cb8;
  transform: translateY(-2px);
}

/* スマートフォン対応 */
@media screen and (max-width: 767px) {
  .p-career-card {
    padding: 20px;
  }
  
  .p-career-card__title {
    font-size: 18px;
  }
  
  .p-career-table th,
  .p-career-table td {
    display: block;
    width: 100%;
  }
  .p-career-table th {
    padding-bottom: 5px;
  }
  .p-career-table td {
    padding-top: 5px;
  }
}

/* ==========================================================================
   【最新修正】ホームページ崩れの完全修復 ＆ 画像表示・フォント固定
   ========================================================================== */

/* 1. フォントを Meiryo UI のみに完全固定 */
body, h1, h2, h3, h4, p, ul, ol, li, a, th, td, span, div, section, header, footer {
  font-family: "Meiryo UI", sans-serif !important;
}

/* 2. トップのロゴが小さくなるのを防ぎ、綺麗に表示 */
.l-header__logo img {
  height: 60px !important;
  width: auto !important;
  min-height: 60px !important;
  object-fit: contain !important;
}

/* 3. 消えていたHero背景画像を100%確実に表示（絶対パス・相対パスの全網羅） */
.p-hero {
  background-image: 
    linear-gradient(135deg, rgba(13, 43, 92, 0.85) 0%, rgba(5, 20, 45, 0.75) 100%),
    url('images/hero-bg.jpg'),
    url('../images/hero-bg.jpg'),
    url('/jpn/new/images/hero-bg.jpg'),
    url('/images/hero-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* 4. 消えていた「tokyoandnetwork.jpg」を100%確実に表示 */
.p-network-image {
  background-image: 
    url('images/tokyoandnetwork.jpg'),
    url('../images/tokyoandnetwork.jpg'),
    url('/jpn/new/images/tokyoandnetwork.jpg'),
    url('/images/tokyoandnetwork.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* 5. 「M&Eの強み」カードの崩れを直し、綺麗な横並び白カードに復旧 */
.p-strength-grid {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 25px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}
.p-strength-card {
  display: block !important;
  background-color: #ffffff !important;
  padding: 40px 25px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(13, 43, 92, 0.05) !important;
  text-align: center !important;
  flex: 1 !important; /* 3枚均等 */
  width: 31% !important;
}

/* 6. 採用情報バナーのテキストとボタンの重なりを完全解消 */
.p-home-career-banner__box {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 40px !important;
}
.p-home-career-banner__content {
  flex: 1 !important;
  min-width: 0 !important;
  text-align: left !important;
}
.p-home-career-banner__action {
  flex-shrink: 0 !important;
}
.p-home-career-banner__action .c-button {
  white-space: nowrap !important;
  padding: 15px 40px !important;
}

/* 7. スマートフォン表示（画面幅960px以下）のときの自動縦並び最適化 */
@media screen and (max-width: 960px) {
  .p-strength-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .p-strength-card {
    width: 100% !important;
  }
  .p-home-career-banner__box {
    flex-direction: column !important;
    text-align: center !important;
    gap: 20px !important;
  }
  .p-home-career-banner__content {
    text-align: center !important;
  }
}

/* ==========================================================================
   追加設定：サブページのアクティブメニュー下線
   ========================================================================== */
.l-header__menu a.-active {
  position: relative;
}

.l-header__menu a.-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0077e6; /* ホームと同じM&Eブルーの下線 */
}

/* ==========================================================================
   追加設定：サブページのコンテンツ横幅をホーム（1140px）に統一
   ========================================================================== */
.c-container, 
.l-header__container, 
.l-footer__container {
  max-width: 1140px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   【完全版】2段組の新ロゴをヘッダーいっぱいに超大型化する設定
   ========================================================================== */
/* 💡 ロゴの大きさに合わせて、ヘッダー全体の高さをゆったり広げます */
.l-header__container {
  height: 110px !important; /* 元の高さから拡張して窮屈さを解消 */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 💡 ロゴを囲むエリア自体の制限を解除 */
.l-header__logo {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  padding: 10px 0 !important; /* 上下に上品な余白を確保 */
}

.l-header__logo a {
  display: block !important;
  height: 100% !important;
}

/* 💡 2段組ロゴが最高に引き立つジャストサイズに固定 */
.l-header__logo img {
  height: 90px !important; /* 👈 65pxから90pxへ大幅に引き上げ！ */
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transform: translateZ(0);
}

/* ナビゲーションメニューの縦位置も自動的に中央に揃えます */
.l-header__nav {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* ==========================================================================
   【完全修正版】新ロゴをはみ出させず、上下に美しい余白を作る設定
   ========================================================================== */
/* 💡 ロゴの巨大化に合わせて、ヘッダー自体の高さを140pxまで大胆に広げます */
.l-header__container {
  height: 140px !important; /* 👈 はみ出しを完全に防ぐ十分な高さを確保 */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* 💡 ロゴエリアのパディングを微調整し、完全に上下中央に配置 */
.l-header__logo {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  padding: 0 !important; 
}

.l-header__logo a {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* 💡 迫力のある90pxサイズを維持したまま、はみ出しを解消 */
.l-header__logo img {
  height: 90px !important; 
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transform: translateZ(0);
  margin-top: 0 !important; /* マイナス調整をリセット */
}

/* 右側のメニューも、広がったヘッダーの「完全な縦中央」に自動で同期させます */
.l-header__nav {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

/* ==========================================================================
   追加設定：サブページのメニュー文字サイズを強制的に大きくする
   ========================================================================== */
.l-header__menu a {
  font-size: 18px !important; /* 💡 !important をつけて、古い設定を強制的に上書きします */
}

/* ==========================================================================
   【完全修正版】PC版の不要チェックボックス排除 ＆ スマホ表示の最適化（サブページ用）
   ========================================================================== */

/* 1. PC版ではスマホ用のトグルスイッチを完全に隠す */
.l-header__toggle-input,
.l-header__toggle-button {
  display: none !important;
}

/* 2. スマートフォン環境（画面幅767px以下）での表示 */
@media screen and (max-width: 767px) {
  /* ヘッダー全体の高さをスマホ用にコンパクト化 */
  .l-header__container {
    height: 80px !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* スマホ版のロゴサイズ */
  .l-header__logo img {
    height: 50px !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  /* ハンバーガーメニュー用の3本線ボタンをスマホ版でのみ出現させる */
  .l-header__toggle-button {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 26px !important;
    height: 18px !important;
    cursor: pointer !important;
    z-index: 1010 !important;
  }

  .l-header__toggle-button span {
    display: block !important;
    width: 100% !important;
    height: 2px !important;
    background-color: #0d2b5c !important;
    transition: all 0.3s ease !important;
  }

  /* メニューを通常時は画面上部に隠す（被りを解決） */
  .l-header__nav {
    position: fixed !important;
    top: -100% !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    padding: 100px 20px 30px !important;
    box-shadow: 0 4px 15px rgba(13, 43, 92, 0.1) !important;
    transition: all 0.4s ease !important;
    z-index: 1005 !important;
    display: block !important;
  }

  /* メニュー項目を縦並びに */
  .l-header__menu {
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
  }

  .l-header__menu a {
    font-size: 16px !important;
    color: #0d2b5c !important;
    padding: 10px 0 !important;
    font-weight: bold !important;
    display: block !important;
  }

  /* 三本線がクリックされたら、隠れていたメニューをスライドして表示 */
  .l-header__toggle-input:checked ~ .l-header__nav {
    top: 0 !important;
  }

  /* 三本線ボタンを「×」アニメーションに変形 */
  .l-header__toggle-input:checked ~ .l-header__toggle-button span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }
  .l-header__toggle-input:checked ~ .l-header__toggle-button span:nth-child(2) {
    opacity: 0 !important;
  }
  .l-header__toggle-input:checked ~ .l-header__toggle-button span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }

  /* -----------------------------------------
     フッターの縦並び調整と美化
     ----------------------------------------- */
  .l-footer__container {
    padding: 30px 20px !important;
  }

  .l-footer__nav, 
  .l-footer__sub-nav {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  .l-footer__nav a,
  .l-footer__sub-nav a {
    font-size: 14px !important;
    text-align: center !important;
  }

  .l-footer__logo {
    margin: 20px 0 !important;
    text-align: center !important;
  }

  .l-footer__logo img {
    height: 40px !important;
    width: auto !important;
  }

  /* -----------------------------------------
     文章の1文字改行・文字の離れすぎをリペア
     ----------------------------------------- */
  .c-text, 
  .c-text-lead,
  .p-policy-body .c-text {
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    text-align: justify !important;
    letter-spacing: 0.01em !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important; /* 文字離れバグを防ぎ綺麗に均等割り */
  }

  .p-policy-card p {
    text-align: left !important; /* 住所等は左寄せ */
  }
}

/* ==========================================================================
   【完全決定版】HTML書き換え不要！スマホ専用スタイリッシュメニュー（サブページ用）
   ========================================================================== */

/* ── 1. PC表示では謎のチェックボックス等の露出を完全に消去 ── */
.l-header__toggle-input,
.l-header__toggle-button {
  display: none !important;
}

/* ── 2. スマホ環境（画面幅767px以下）での極上デザイン変形 ── */
@media screen and (max-width: 767px) {
  /* ヘッダーの白い帯をスマホ用にスマートな高さ（75px）に固定 */
  .l-header__container {
    height: 75px !important;
    padding: 0 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
  }

  /* ロゴサイズをスマホにジャストフィットさせ、下の夜景への食い込みを完全解消 */
  .l-header__logo img {
    height: 44px !important;
    width: auto !important;
    margin-top: 0 !important;
  }

  /* 💡 HTMLにボタンがなくても、CSSの力だけで右上に美しい「3本線（ハンバーガー）」を自動生成 */
  .l-header__nav {
    position: relative !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 元のダサい横並び・縦並び文字メニューを一度すべて非表示にし、スマートに格納 */
  .l-header__menu {
    position: fixed !important;
    top: 75px !important; /* ヘッダーのすぐ下から展開 */
    left: 0 !important;
    width: 100% !important;
    height: 0 !important; /* 通常時は高さを0にして完全に隠す */
    background-color: rgba(13, 43, 92, 0.98) !important; /* M&Eの高級感ある濃紺（少し透過） */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: cubic-bezier(0.4, 0, 0.2, 1) 0.35s !important; /* なめらかなアニメーション */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    z-index: 9999 !important;
  }

  /* メニュー内のリンク文字を、濃紺背景に美しく映える白文字にリデザイン */
  .l-header__menu li {
    width: 100% !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
  }

  .l-header__menu a {
    display: block !important;
    color: #ffffff !important; /* 洗練された白文字 */
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 18px 0 !important;
    letter-spacing: 0.1em !important;
    width: 100% !important;
  }

  /* 現在選択されているアクティブページの下線をスマホ版では左側のブルーラインに洗練化 */
  .l-header__menu a.-active {
    background-color: rgba(0, 119, 230, 0.15) !important;
    color: #0077e6 !important; /* M&Eブルー */
    border-left: 4px solid #0077e6 !important;
  }
  .l-header__menu a.-active::after { display: none !important; }

  /* 💡 ナビゲーションエリアに、タッチしやすいモダンな「MENU」ボタンを自動合成 */
  .l-header__nav::before {
    content: "MENU ☰" !important;
    display: inline-block !important;
    color: #0d2b5c !important;
    font-size: 14px !important;
    font-weight: bold !important;
    letter-spacing: 0.05em !important;
    border: 1.5px solid #0d2b5c !important;
    padding: 6px 14px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  /* 🪄 擬似的なクリック体験：指で触れている間だけ、メニューがシュッと下りてくる極上の挙動設定 */
  .l-header__nav:active .l-header__menu,
  .l-header__nav:hover .l-header__menu {
    height: 310px !important; /* メニュー5項目が美しく収まる高さ */
    padding: 10px 0 !important;
  }
  
  .l-header__nav:active .l-header__menu li,
  .l-header__nav:hover .l-header__menu li {
    opacity: 1 !important;
  }

  /* 固定されたヘッダーと、背後のメインビジュアル・コンテンツの被りを完全にブロック */
  .l-main {
    padding-top: 105px !important; /* 上部バー＋ヘッダーの高さ分の安全マージン */
  }

  /* ── 3. フッターの並びを海外一流ITサイトのように美しく整形 ── */
  .l-footer__container {
    padding: 40px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .l-footer__nav, 
  .l-footer__sub-nav {
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
  }

  .l-footer__nav a {
    font-size: 14.5px !important;
    color: #ffffff !important;
    display: block !important;
    padding: 6px 0 !important;
    width: 100% !important;
    max-width: 260px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: center !important;
  }

  .l-footer__sub-nav a {
    font-size: 12.5px !important;
    color: #b0c4de !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }

  .l-footer__logo {
    margin: 15px 0 25px 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .l-footer__logo img {
    height: 36px !important;
    width: auto !important;
  }

  /* ── 4. 文章の1文字改行・不自然な広がりを完全リペア ── */
  .c-text, 
  .c-text-lead,
  .p-policy-body .c-text {
    font-size: 14px !important;
    line-height: 1.8 !important;
    text-align: justify !important;
    letter-spacing: 0.02em !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important; /* 👈 iphoneprivacyの異常な隙間を完全に駆逐 */
  }
}

/* ==========================================================================
   【Anthropic風ミニマルデザイン】スマホ版完全最適化コード
   ========================================================================== */

/* ── PC版での不要ノイズ消去 ── */
.l-header__toggle-input,
.l-header__toggle-button {
  display: none !important;
}

@media screen and (max-width: 767px) {
  
  /* ── 1. ヘッダー：極限までシンプルに、背景に溶け込む白 ── */
  .l-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important; /* 線の主張を消し、ごく淡い境界線に */
    z-index: 1000 !important;
  }

  .l-header__container {
    height: 65px !important; /* よりスマートで引き締まった高さ */
    padding: 0 24px !important; /* 余白を広めに */
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .l-header__logo img {
    height: 36px !important; /* ロゴを小さく上品に配置 */
    width: auto !important;
    margin: 0 !important;
  }

  /* ── 2. MENUボタン：文字のみのモダンなタイポグラフィ ── */
  /* 枠線や三本線をあえて排除し、文字の美しさだけで見せるAnthropicスタイル */
  .l-header__nav {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  .l-header__nav::before {
    content: "Menu" !important; /* ☰マークすら消し、洗練されたフォントで魅せる */
    font-size: 15px !important;
    color: #191919 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
    padding: 4px 8px !important;
  }

  /* スマホメニュー：静かに、美しく全画面を覆うホワイトスクリーン */
  .l-header__menu {
    position: fixed !important;
    top: 65px !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    background-color: #ffffff !important; /* 圧迫感のない純白の背景 */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 24px !important; /* 左右に美しいマージン */
    overflow: hidden !important;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 9999 !important;
  }

  .l-header__menu li {
    width: 100% !important;
    list-style: none !important;
  }

  .l-header__menu a {
    display: block !important;
    color: #191919 !important;
    font-size: 22px !important; /* あえて文字を少し大きくし、海外サイトのような大胆な余白感を演出 */
    font-weight: 400 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important; /* ごく薄い線 */
    letter-spacing: -0.01em !important;
  }

  .l-header__menu a.-active {
    color: #0077e6 !important; /* M&Eブルーをアクセントに */
    font-weight: 500 !important;
  }

  /* タッチ（アクティブ）時のメニュー展開挙動 */
  .l-header__nav:active .l-header__menu,
  .l-header__nav:hover .l-header__menu {
    height: calc(100vh - 65px) !important; /* 画面いっぱいに広がる */
    padding-top: 20px !important;
  }

  /* メインコンテンツの開始位置調整 */
  .l-main {
    padding-top: 65px !important;
  }

  /* ── 3. フッター：これぞAnthropic。圧倒的な余白と静寂のミニマリズム ── */
  .l-footer {
    padding: 80px 24px 60px 24px !important; /* 上下の余白（アキ）をあえて激しく広く取り、高級感を演出 */
    background-color: #ffffff !important; /* 黒い帯を廃止し、サイト全体が白でつながる美しい世界観へ */
    border-top: 1px solid #f0f0f0 !important;
  }

  .l-footer__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* すべて左寄せに統一し、知的な雑誌のようなレイアウトに */
    gap: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* メインナビ：線を消し、静かに並ぶ美しい縦型テキストリンク */
  .l-footer__nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important; /* 窮屈さを完全に排除したゆったりとした間隔 */
    margin: 0 0 48px 0 !important; /* 次の要素との間に大きめのアキ */
    padding: 0 !important;
    list-style: none !important;
  }

  .l-footer__nav a {
    font-size: 15px !important;
    color: #191919 !important; /* 柔らかな黒 */
    font-weight: 400 !important;
    text-align: left !important;
    display: inline-block !important;
    opacity: 0.8 !important;
  }

  /* フッターロゴ：空間にポツンと佇むような上品な配置 */
  .l-footer__logo {
    margin: 0 0 40px 0 !important;
    text-align: left !important;
  }

  .l-footer__logo img {
    height: 30px !important; /* 控えめなサイズで知性を演出 */
    width: auto !important;
  }

  /* サブナビ（規約・マージン率）：目立たせない、極小の洗練テキスト */
  .l-footer__sub-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .l-footer__sub-nav a {
    font-size: 13px !important;
    color: #666666 !important; /* 薄めのグレー */
    text-align: left !important;
    display: inline-block !important;
    text-decoration: none !important;
    opacity: 0.8 !important;
  }

  /* コピーライト */
  .l-footer__copyright {
    font-size: 12px !important;
    color: #999999 !important;
    margin: 0 !important;
    letter-spacing: 0.02em !important;
    text-align: left !important;
  }

  /* ── 4. 本文テキストの徹底美化 ── */
  .c-text, 
  .c-text-lead,
  .p-policy-body .c-text {
    font-size: 15px !important;
    line-height: 1.85 !important; /* 行間をゆったり広げてラグジュアリーに */
    color: #191919 !important;
    text-align: justify !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    letter-spacing: 0.02em !important;
  }
}

/* ==========================================================================
   【完全決定版】モバイル版：洗練されたミニマル・ハンバーガーメニュー設定
   ========================================================================== */

/* ── 1. PC版での不要ノイズを完全消去 ── */
.l-header__toggle-input,
.l-header__toggle-button {
  display: none !important;
}

/* ── 2. iPad・スマホ環境（1024px以下）でハンバーガーに自動変形 ── */
@media screen and (max-width: 1024px) {
  
  /* ヘッダー全体をスマートな高さに固定 */
  .l-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important; /* 繊細で極薄の境界線 */
    z-index: 1000 !important;
  }

  .l-header__container {
    height: 70px !important; /* 潜り込みを防ぐスマートな高さ */
    padding: 0 24px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative !important;
  }

  /* モバイル環境でのロゴサイズを最適化 */
  .l-header__logo img {
    height: 40px !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* 💡 HTMLにボタンがなくても、CSSの力だけで右上に洗練された「三本線」を自動配置 */
  .l-header__nav {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
  }

  /* 3本線ボタン（ハンバーガー）の生成（極細・ミニマルデザイン） */
  .l-header__nav::before {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 12px !important;
    /* 3本線をシャープなグラデーションの境界線で美しく表現 */
    background: linear-gradient(
      to bottom,
      #191919 0%, #191919 15%,
      transparent 15%, transparent 42.5%,
      #191919 42.5%, #191919 57.5%,
      transparent 57.5%, transparent 85%,
      #191919 85%, #191919 100%
    ) !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
  }

  /* 💡 メニュー本体：文字が浮かないよう、純白の美しいスクリーンとして全画面展開 */
  .l-header__menu {
    position: fixed !important;
    top: 70px !important; /* ヘッダーのすぐ下から隙間なく展開 */
    left: 0 !important;
    width: 100% !important;
    height: 0 !important; /* 通常時は高さを完全にゼロにして隠す */
    background-color: #ffffff !important; /* 清潔感のある真っ白な背景 */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* 知的な左寄せ配置 */
    justify-content: flex-start !important;
    gap: 0 !important;
    padding: 0 24px !important;
    overflow: hidden !important;
    /* Anthropicのような滑らかで静かな展開アニメーション */
    transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 9999 !important;
  }

  .l-header__menu li {
    width: 100% !important;
    list-style: none !important;
  }

  /* メニューの文字リンク：余白を贅沢に取った海外IT企業クオリティ */
  .l-header__menu a {
    display: block !important;
    color: #191919 !important;
    font-size: 20px !important; /* 大きめで堂々とした文字サイズ */
    font-weight: 400 !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important; /* 極薄のセパレーター線 */
    letter-spacing: -0.01em !important;
    width: 100% !important;
    text-align: left !important;
  }

  /* 現在地（アクティブ）の文字をM&Eブルーにして特別感を演出 */
  .l-header__menu a.-active {
    color: #0077e6 !important;
    font-weight: 500 !important;
  }

  /* 🪄 タッチ（ホバー・アクティブ）した瞬間に、全画面メニューがスッと静かに下りてくる極上の連動挙動 */
  .l-header__nav:active .l-header__menu,
  .l-header__nav:hover .l-header__menu {
    height: calc(100vh - 70px) !important; /* 画面下端まで真っ白なスクリーンで覆う */
    padding-top: 15px !important;
  }

  /* メインコンテンツがヘッダーの裏に潜り込んで被るのを完全に防ぐ安全余白 */
  .l-main {
    padding-top: 70px !important;
  }

  /* ── 3. フッター：Anthropic風の静かで上品な左寄せミニマリズム ── */
  .l-footer {
    padding: 80px 24px 60px 24px !important; /* あえて広い余白（アキ）を設けて高級感を演出 */
    background-color: #ffffff !important; /* 醜い黒い帯を撤廃し、完全に白背景へ統合 */
    border-top: 1px solid #f0f0f0 !important;
  }

  .l-footer__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* すべて左寄せに統一して雑誌のような美しさに */
    gap: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* メインナビ：縦一列でも野暮ったく見えない、洗練された余白感 */
  .l-footer__nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 0 48px 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .l-footer__nav a {
    font-size: 15px !important;
    color: #191919 !important;
    font-weight: 400 !important;
    text-align: left !important;
    display: inline-block !important;
    opacity: 0.85 !important;
  }

  /* フッターロゴ：静かな空間に品よく佇む配置 */
  .l-footer__logo {
    margin: 0 0 40px 0 !important;
    text-align: left !important;
  }

  .l-footer__logo img {
    height: 28px !important; /* 小さく上品に */
    width: auto !important;
  }

  /* サブナビ（規約・マージン率等） */
  .l-footer__sub-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  .l-footer__sub-nav a {
    font-size: 13px !important;
    color: #666666 !important;
    text-align: left !important;
    display: inline-block !important;
    opacity: 0.85 !important;
  }

  /* コピーライト */
  .l-footer__copyright {
    font-size: 12px !important;
    color: #999999 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* ── 4. 本文の改行バグ・文字離れバグを根底からクリーンアップ ── */
  .c-text, 
  .c-text-lead,
  .p-policy-body .c-text {
    font-size: 15px !important;
    line-height: 1.85 !important;
    color: #191919 !important;
    text-align: justify !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important; /* 隙間が開くブラウザバグを完全消滅 */
    letter-spacing: 0.01em !important;
  }
}

/* ==========================================================================
   【最終解決】スマホメニューの浮き・重複を完全解消する修正コード
   ========================================================================== */

/* 1. PC環境（1025px以上）でのメニュー位置を右側に完全固定 */
@media screen and (min-width: 1025px) {
  .l-header__nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
  }

  .l-header__menu {
    display: flex !important;
    flex-direction: row !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    gap: 30px !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  .l-header__menu li {
    width: auto !important;
    opacity: 1 !important;
    border: none !important;
  }

  .l-header__menu a {
    color: #0d2b5c !important; /* M&Eブルーに戻す */
    font-size: 18px !important;
    padding: 8px 0 !important;
    background: transparent !important;
  }

  /* 不要な「MENU ☰」などの疑似テキストボタンをPC版では完全に消去 */
  .l-header__nav::before {
    display: none !important;
  }
}

/* 2. タブレット・スマホ環境（1024px以下）でメニューが浮き上がって常時表示されるバグを完全防止 */
@media screen and (max-width: 1024px) {
  /* ナビをクリック（またはホバー）していない通常時は、メニューの高さを「完全にゼロ」にして隠す */
  .l-header__menu {
    height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important; /* 完全に消す */
  }

  /* ユーザーがメニューボタンを触った（active/hover）時だけスッと浮き出さずに展開させる */
  .l-header__nav:active .l-header__menu,
  .l-header__nav:hover .l-header__menu {
    height: calc(100vh - 70px) !important; /* もしくは指定の高さ */
    opacity: 1 !important;
    padding: 24px !important;
  }
}

/* ==========================================================================
   【完全修正】ハンバーガーメニューの浮きを解消し、右端に正しく配置する
   ========================================================================== */

/* スマホ・タブレット環境（メニューが三本線になる画面幅） */
@media screen and (max-width: 1024px) {

  /* ヘッダー全体のコンテナ（ロゴとナビの親要素） */
  .l-header__inner, 
  .p-header__inner {
    display: flex !important;
    justify-content: space-between !important; /* ロゴを左、メニューを右に引き離す */
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 20px !important; /* 左右に程よい余白を作る */
    box-sizing: border-box !important;
  }

  /* 浮いてしまっているナビゲーション全体の箱 */
  .l-header__nav,
  .p-header__nav {
    position: static !important; /* absoluteによる浮遊を一度完全にリセット */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important; /* 右寄せにする */
    margin-left: auto !important; /* 確実に右側へ押し出す */
    
    /* 浮いている原因のサイズや影をリセット */
    width: auto !important;
    height: auto !important;
    box-shadow: none !important; 
    background: transparent !important;
    transform: none !important;
    top: auto !important;
    left: auto !important;
  }

  /* 三本線アイコンボタン（menu_2.pngで浮いている白い四角部分） */
  .c-button__menu,
  .l-header__btn,
  .p-header__btn,
  .l-header__nav::before {
    position: relative !important; /* 浮遊をやめさせる */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* デザインの微調整（必要に応じて） */
    background: #ffffff !important; /* 白背景 */
    border: 1px solid #e0e0e0 !important; /* 軽い枠線 */
    border-radius: 4px !important;
    padding: 8px 12px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important; /* 綺麗な軽い影に修正 */
  }

}