@charset "UTF-8";
/* stylelint-disable color-function-alias-notation, color-function-notation, comment-empty-line-before, declaration-no-important, media-feature-range-notation, order/order, order/properties-order, property-no-vendor-prefix, selector-class-pattern -- Retain legacy layout rules; typography is centralized in legacy/typography.scss. */
/* Page-specific selectors are emitted at their original positions in legacy/common.scss. */
/* セクション間のみ共通化。部品内の余白は支給デザインの値を維持する。 */
:root {
  --ct-space-section: 80px;
}

@media (width <= 767px) {
  :root {
    --ct-space-section: 64px;
  }
}
/* stylelint-disable selector-class-pattern -- 冒頭パーツの既存テンプレートクラスを共有する。 */
.about-grid,
.sub-about-grid {
  display: flex;
  width: 100%;
}

.sub-about-tree {
  width: 100%;
}

.sub-about-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.section-about {
  overflow-x: hidden;
  background: var(--c-paper);
}

/* スマホを基準（縦積み）として設計 */
.about-grid {
  flex-direction: column;
  gap: 48px;
}

.about-body {
  width: 100%;
}

.about-body p {
  margin: 0 0 20px;
  text-align: justify;
  word-break: break-all;
}

.about-body p:last-child {
  margin: 0;
}

.about-poem {
  width: 100%;
  margin: 0;
}

/* 画面幅900px以上で横並びにする */
@media (width >= 900px) {
  .about-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .about-body {
    flex: 1;
    max-width: 45%;
  }
  .about-poem {
    flex: 1;
    max-width: 50%;
  }
}
.sub-section-about {
  padding: 0;
  overflow-x: hidden;
  background: var(--c-paper);
}

.sub-about-grid {
  position: relative;
  box-sizing: border-box;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.sub-about-left-content {
  width: 65%;
}

.sub-about-poem {
  margin-bottom: 20px;
}

/* stylelint-disable selector-class-pattern -- 全ページ共通フッターの既存クラスを維持する。 */
.site-footer a {
  text-underline-offset: 0.2em;
}

.footer-nav-container {
  position: relative;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  padding: 20px 20px 60px;
  margin-inline: auto;
}

.footer-nav .footer-col {
  flex: 1;
  min-width: 0;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.footer-col-accent,
.menu-links a:hover {
  color: var(--c-ink-green);
}

.footer-address {
  margin-top: 24px;
}

.footer-address h4,
.related-site h4 {
  margin: 0 0 8px;
}

.footer-address p {
  margin: 0;
}

.menu-links a,
.related-site a {
  text-decoration: none;
}

.footer-nav .menu-links ul {
  width: fit-content;
  max-width: 100%;
  padding-inline-start: 1.5em;
  margin: 0 auto;
  text-align: left;
}

.footer-nav .menu-links a {
  display: inline-block;
  padding-block: 4px;
}

.related-site {
  padding-top: 3px;
}

.footer-bottom {
  position: absolute;
  bottom: 15px;
  left: 50%;
  z-index: 10;
  max-width: calc(100% - 2.5rem);
  overflow-wrap: anywhere;
  transform: translateX(-50%);
}

.footer-bottom p {
  margin: 0;
  color: #ffffff;
  text-align: center;
  white-space: normal;
}

@media (width <= 992px) {
  .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 24px;
  }
  .footer-bottom {
    position: static;
    max-width: 100%;
    padding: 0 0 20px;
    transform: none;
  }
}
@media (width > 992px) {
  .footer-nav .brand-info {
    container-type: inline-size;
  }
}
@media (width <= 767px) {
  .footer-nav .footer-col {
    width: 100%;
  }
  .footer-nav .menu-links ul {
    margin-inline: 0;
  }
  .ct-has-mobile-toc .footer-bottom {
    max-width: calc(100% - 84px);
  }
}
/* ====== カラートークン ====== */
:root {
  /* --- ベース --- */
  --c-paper: #f7f3ec;
  --c-paper-black: #222222;
  --c-gray: #d9d9d9;
  --c-white: #ffffff;
  --c-yellow: #e8a87c;
  --c-green: #dbf1ed;
  --c-orange: #f9ece4;
  --c-kakeru-ikou: #EAF4FC;
  --c-support: #FDF1EF;
  /* --- テキスト（クライアント明記色） --- */
  --c-ink: #222222;
  --c-ink-body: #222222;
  --c-ink-strong: #555555;
  --c-ink-sub: #7A7A7A;
  --c-ink-mute: #A69B92;
  --c-ink-title: #222222;
  --c-ink-green: #00b48f;
  --c-ink-orange: #d67a47;
  /* --- アクセント --- */
  --c-line-green: var(--c-ink-green);
  /* --- サービステーマ色 --- */
  --c-theme-kakeru-ikou: #A3D1F0;
  --c-theme-kakeru-bgata: #F7E08D;
  --c-theme-kakeru-teicyaku: #A3D1F0;
  --c-theme-kakeru-sentaku: #CCBBE8;
  --c-theme-support: #F5A89A;
  --c-theme-kotonone: #B2E0C8;
  /* --- 機能色 --- */
  --c-area-north: #A1BE95;
  --c-area-north-text: #8E6228;
  --c-area-east: #92AAC7;
  --c-area-east-text: #3F6A93;
  --c-area-south: #E1B16A;
  /* --- プロ補完 --- */
  --c-line: #222222;
  --c-focus: #2B8FB5;
  --shadow-smooth: 0 4px 12px rgba(0, 0, 0, 0.02);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Arkhe standard JS owns anchor animation. */
}

/* サイト全体：Montserrat と Noto Sans JP（ゴシック体）で統一 */
body {
  margin: 0;
  /* 確実にゴシック体で統一 */
  color: var(--c-ink-body);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

/* body側でゴシック体が統一されたため、ここのフォントファミリーの重複記述は削除可能ですが、
将来的に個別にウェイトなどを変える可能性があるため、セレクタの構造はそのまま残しています */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ====== Material Symbols 設定 ====== */
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  font-size: 24px;
  /* 基準サイズをpxで明示的に定義しておくとバグりません */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  user-select: none;
}

/* 各サイズ調整クラス */
.msi-20 {
  font-size: 20px;
}

.msi-18 {
  font-size: 18px;
}

.msi-16 {
  font-size: 16px;
}

.msi-14 {
  font-size: 14px;
}

/* v3: 電話アイコンは線のみだと歪んで見えるため FILL 1（塗りつぶし）に */
.material-symbols-outlined.msi-call-fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* 02: 見出しあしらい色は01同様、各セクションのコンテンツテーマ色に合わせる */
.section-about .heading-jp-sub {
  color: var(--c-ink-title);
}

/* ====== コンテナ ====== */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--ct-space-section) 20px 0;
  /* 左右余白20pxはスマホからPCまで共通のため、メディアクエリは削除 */
}

/* ライン画像を包む箱のスタイル */
.ct-p-top-line-area {
  width: 100%;
  line-height: 0;
  /* 画像の下に勝手に生まれる数ピクセルの隙間を消す */
  margin-top: 40px;
}

/* ライン画像自体のサイズ調整 */
.ct-p-top-line-image {
  width: 100%;
  height: auto;
  display: block;
  /* 余計な隙間を排除するブロック要素化 */
}

/* Shared component tokens. Only the section palette changes by page. */
body {
  --ct-branch-accent: var(--c-ink-green);
  --ct-branch-tint: var(--c-green);
}

body.ct-theme-recruit {
  --ct-branch-accent: var(--c-ink-orange);
  --ct-branch-tint: var(--c-orange);
}

/* ====== Hero（02：現場ドキュメンタリー型） ====== */
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
  margin-top: -130px;
  /* z-index: -1; はクリックが効かなくなるバグの原因になるため削除。
  重ね順は背面の背景ではなく、前面の要素の z-index でコントロールします */
  background-color: var(--c-paper-black);
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
  /* グラデーションと画像を結合（パスを相対パスに変更） */
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.35) 80%, rgba(0, 0, 0, 0.65) 100%), url("../media/main_img_001-DILMzh2p.png");
  /* ⬅️ ローカルの絶対パスから相対パスへ修正 */
  background-size: cover;
  background-position: 90% bottom;
  background-repeat: no-repeat;
  background-color: transparent !important;
}

@media (min-width: 768px) {
  .hero-photo {
    aspect-ratio: 21/10;
    min-height: 560px;
  }
}
@media (min-width: 1024px) {
  .hero-photo {
    aspect-ratio: 21/9;
    min-height: 640px;
  }
}
/* コピー overlay（写真の左下に白文字） */
.hero-overlay {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-overlay {
    left: 48px;
    bottom: 56px;
    right: auto;
    max-width: 780px;
  }
}
@media (min-width: 1024px) {
  .hero-overlay {
    left: 72px;
    bottom: 72px;
  }
}
.hero-heading {
  /* 1通目の修正と連動し、重複するフォントファミリー記述を削除（シンプル化） */
  color: #FFFFFF;
  margin: 0;
  background: transparent;
  padding: 0;
  display: block;
}

.hero-heading .hero-line {
  display: block;
}

/* 1通目で定義した正しいカラー変数名に修正 */
.hero-heading .hero-acc-work {
  font-style: normal;
  color: var(--c-theme-kakeru-ikou);
  /*  変数名を修正 */
}

.hero-heading .hero-acc-live {
  font-style: normal;
  color: var(--c-theme-support);
  /* 変数名を修正 */
}

.hero-heading .hero-acc-kotonone {
  font-style: normal;
  color: var(--c-theme-kotonone);
  /* 変数名を修正 */
}

.hero-caption {
  display: none;
}

/* ====== タイトル（共通） ====== */
/* メインの英語タイトル */
.heading-en {
  color: var(--c-ink);
  margin: 0;
  padding: 0;
}

/* 横に添える日本語タイトル */
.heading-jp-sub {
  color: var(--c-ink);
  margin: 0px;
  padding: 0;
}

/* ====== News ====== */
.section-news {
  background: var(--c-paper);
}

/* importantをすべて排除し、詳細度をスマートに整理 */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 0 0 25px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.section-head .svc-cta-wrap {
  position: absolute;
  right: 0;
  bottom: -5px;
  margin: 0;
  padding: 0;
}

.section-head .svc-cta {
  white-space: nowrap;
}

/* 📱 スマホ対応 */
@media (max-width: 767px) {
  .section-head {
    gap: 12px;
    margin-bottom: 24px;
    margin-left: -10px;
    width: calc(100% + 10px);
  }
}
.news-list {
  container: news-list/inline-size;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

@media (max-width: 767px) {
  .section-head,
  .news-list,
  .news-title {
    padding-left: 0;
    margin-left: 0;
    width: 100%;
  }
}
.news-item {
  border-bottom: 1px solid var(--c-line);
}

.news-item:first-child {
  border-top: 1px solid var(--c-line);
}

.ct-c-news-row {
  display: grid;
  gap: 6px 12px;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  padding: 24px 8px;
  text-decoration: none;
  color: var(--c-ink);
  transition: background 0.2s;
}

.news-link:hover {
  background: var(--c-green);
}

.news-date {
  color: var(--c-ink-body);
  white-space: nowrap;
}

.news-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 20px;
  border-radius: 100px;
  color: var(--c-ink-body);
  /* パステル背景に対して視認性の高い文字色 */
  text-align: center;
  white-space: nowrap;
}

.news-cat.ct-p-top-kakeru-ikou {
  background-color: var(--c-theme-kakeru-ikou);
}

.news-cat.ct-p-top-kakeru-bgata {
  background-color: var(--c-theme-kakeru-bgata);
}

.news-cat.ct-p-top-kakeru-teicyaku {
  background-color: var(--c-theme-kakeru-ikou);
}

.news-cat.ct-p-top-kakeru-sentaku {
  background-color: var(--c-theme-kakeru-sentaku);
}

.news-cat.support {
  background-color: var(--c-theme-support);
}

.news-cat.kotonone {
  background-color: var(--c-theme-kotonone);
}

.news-cat.ct-p-top-etc {
  background-color: var(--c-gray);
}

.news-cat small {
  color: var(--c-ink-sub);
  margin-left: 4px;
}

.news-title {
  grid-column: 1/-1;
  color: var(--c-ink);
}

.ct-c-news-row .p-postList__category {
  justify-self: start;
}

.ct-c-news-row .news-cat {
  padding-inline: 12px;
}

/* サイドバーがある一覧も、リスト自体の幅で横並びを判断する。 */
@media (min-width: 900px) {
  @container news-list (width >= 832px) {
    .ct-c-news-row {
      grid-template-columns: 120px minmax(200px, max-content) minmax(0, 1fr);
      padding: 24px 16px;
      gap: 0 32px;
    }
    .ct-c-news-row .news-cat {
      padding-inline: 20px;
    }
    .news-title {
      grid-column: 3;
      padding-inline-start: 15px;
    }
  }
}
.news-link:hover .news-title {
  color: var(--c-ink-green);
}

.news-chev {
  color: var(--c-ink-sub);
  display: none;
}

@media (min-width: 768px) {
  .news-chev {
    display: inline-flex;
  }
}
/* ==========================================
全体を包むコンテナ（Services セクション）
========================================== */
.ct-p-top-services {
  background: var(--c-paper);
  margin: 0;
  overflow-x: hidden;
}

.ct-p-top-service-band {
  width: 100%;
  margin-block: 0;
  background-color: var(--c-paper);
}

/* ==========================================
 3カラム横並びのグリッド設定（PC時）
 ========================================== */
.ct-p-top-service-grid {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding-inline: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-ink-body);
  border-bottom: 1px solid var(--c-ink-body);
}

/* 画面幅が900px未満のスマホ・タブレット環境 */
@media (max-width: 899px) {
  .ct-p-top-service-grid {
    grid-template-columns: 1fr;
    gap: 0;
    /* 余白による分離を無くし、エディトリアルな線を維持 */
    border-top: 1px solid var(--c-ink-body);
    border-bottom: none;
  }
}
/* ==========================================
 カード単体のスタイル（縦並び・ホバー演出）
 ========================================== */
.ct-p-top-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  width: 100%;
  padding: 40px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

/* スマホ表示の時は、各カードの下側に境界線を引いて区切る */
@media (max-width: 899px) {
  .ct-p-top-service-grid .ct-p-top-service-card {
    border-bottom: 1px solid var(--c-ink-body);
  }
}
@media (min-width: 900px) {
  .ct-p-top-service-grid .ct-p-top-service-card:not(:last-child) {
    border-right: 1px solid var(--c-line-green);
  }
}
@media (900px <= width < 960px) {
  .ct-p-top-service-card {
    padding-inline: 28px;
  }
}
.ct-p-top-service-card:hover {
  background-color: var(--c-green);
}

/* ==========================================
 写真エリアのスタイル
 ========================================== */
.ct-p-top-service-photo {
  position: relative;
  overflow: hidden;
  background: var(--c-paper-black);
  width: 100%;
  height: 200px;
}

.ct-p-top-service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--c-paper);
}

.ct-p-top-service-photo--kakeru img {
  object-position: center 12%;
}

/* ==========================================
 テキスト・ボタン周りのレイアウト
 ========================================== */
.ct-p-top-service-body {
  display: flex;
  flex-direction: column;
  margin-top: 35px;
  width: 100%;
  flex-grow: 1;
}

.ct-p-top-service-name,
.ct-p-top-service-lead {
  color: var(--c-ink-body);
  transition: color 0.3s ease;
}

.ct-p-top-service-card:hover .ct-p-top-service-name,
.ct-p-top-service-card:hover .ct-p-top-service-lead {
  color: var(--c-ink-green);
}

.ct-p-top-service-name {
  margin: 7px 0 0;
}

.ct-p-top-service-lead {
  margin: 10px 0 0;
}

.svc-cta-wrap {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* ==========================================
その他の装飾（吹き出しなど）
========================================== */
.ct-p-top-speech-balloon {
  position: relative;
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
  padding: 2px 12px;
  background: var(--c-theme-kakeru-bgata);
  border-radius: 4px;
  /* 角をほんの少し丸めるとより洗練されます */
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ホバー時：境界線エラーを防ぐため、エメラルド地に白文字へ反転（美しい対比） */
.ct-p-top-service-card:hover .ct-p-top-speech-balloon {
  background: var(--c-line-green);
  color: var(--white);
}

.ct-p-top-speech-balloon::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 30%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--c-theme-kakeru-bgata);
  transition: border-top-color 0.3s ease;
}

.ct-p-top-service-card:hover .ct-p-top-speech-balloon::after {
  border-top-color: var(--c-line-green);
}

.ct-p-top-service-eyebrow {
  display: block;
  color: var(--c-ink);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.ct-p-top-service-card:hover .ct-p-top-service-eyebrow {
  color: var(--c-white);
  /* 背景の黄緑と同化するのを防ぐため白に調整 */
}

/* ─── moreボタンを「採用情報」と完全に一致させる ─── */
.svc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 2px 2px;
  min-width: 120px;
  text-decoration: none;
  background: var(--c-theme-support);
  color: var(--c-white);
  border-radius: 100px;
  border: none;
  margin: 4px;
}

.svc-cta:hover,
.ct-p-top-service-card:hover .svc-cta {
  background: var(--c-white);
  color: var(--c-theme-support);
  box-shadow: inset 0 0 0 2px var(--c-theme-support);
}

/* ====== Recruit ====== */
.ct-p-top-recruit {
  padding-top: 60px;
  background-color: var(--c-paper);
}

.ct-p-top-recruit img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  filter: blur(4px);
  background: var(--c-paper-black);
}

@media (min-width: 768px) {
  .ct-p-top-recruit img {
    height: 380px;
  }
}
.section-head.centered {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 20px !important;
  margin-bottom: 25px !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.ct-p-top-recruit-grid {
  display: grid;
  gap: 32px;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 20px;
  border-radius: 15px;
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

@media (width < 768px) {
  .ct-p-top-recruit > .container {
    padding-block-start: 0;
  }
  .ct-p-top-recruit-grid {
    padding-block-start: 24px;
  }
}
@media (min-width: 768px) {
  .ct-p-top-recruit-grid {
    padding: 80px;
    margin-top: -130px;
  }
}
.ct-p-top-recruit-grid > .ct-p-top-recruit-text,
.ct-p-top-recruit-grid > .ct-p-top-recruit-buttons {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .ct-p-top-recruit-grid {
    grid-template-columns: 100%;
    gap: 40px;
  }
  .ct-p-top-recruit-grid > .ct-p-top-recruit-text {
    grid-column: 1;
    padding-inline: 0;
  }
  .ct-p-top-recruit-grid > .ct-p-top-recruit-buttons {
    grid-column: 1;
    padding-inline: 0;
    max-width: 320px;
    margin-left: auto;
    margin-right: 0;
  }
}
.ct-p-top-recruit-text {
  max-width: none;
  text-align: left;
}

.ct-p-top-recruit-heading {
  margin: 0 0 20px;
  color: var(--c-ink);
}

.ct-p-top-recruit-heading > span {
  display: block;
  text-wrap: balance;
}

.ct-p-top-recruit-heading > span > span {
  display: inline-block;
}

.ct-p-top-recruit-lead {
  color: var(--c-ink-body);
  margin: 0;
}

.ct-p-top-recruit-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-top: 0;
}

/* ★ ボタンの共通スタイル（通常時：白背景 ＋ #222枠線） */
.ct-p-top-recruit-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: 50px;
  box-sizing: border-box;
  background: #ffffff;
  /* 白背景 */
  border: 2px solid #222222;
  /* #222枠線 */
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ★ 通常時の矢印とテキストの色を #222 に統一 */
.ct-p-top-recruit-button .arrow {
  font-size: 16px;
  margin-right: 24px;
  font-weight: bold;
  color: #222222;
  transition: color 0.3s ease;
}

.ct-p-top-recruit-button .ct-p-top-text {
  color: #222222;
  transition: color 0.3s ease;
}

/* ★ ホバー時のスタイル（#222背景 ＋ 白文字に反転） */
.ct-p-top-recruit-button:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.ct-p-top-recruit-button:hover .ct-p-top-text,
.ct-p-top-recruit-button:hover .arrow {
  color: #ffffff !important;
}

/* ====== Contact（02: 各カードに建物外観写真を添付）====== */
.site-footer {
  background: var(--c-paper);
}

.contact-lead-text {
  text-align: center;
  margin: 0 auto !important;
  max-width: 700px !important;
  /* ★最大の横幅を指定する設定を追加 */
  color: var(--c-ink-body);
}

/* お問い合わせエリア全体の横幅 */
.footer-info-block {
  width: 100%;
  margin: 40px 0 var(--ct-space-section);
}

/* 3つのカラム（縦の列）を横並びにする設定 */
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 各カラム（文字とカードのセット）の並び */
.contact-column-item {
  display: flex;
  flex-direction: column;
  color: var(--c-ink-body);
}

/* カードの「上」にある事業所名 */
.card-branch-name {
  margin: 0;
  text-align: center;
}

/* 枠内の白いミニカード単体のデザイン（時間とTELのみを包む） */
.contact-mini-card {
  text-align: left;
  background-color: #ffffff;
  border-radius: 100px;
  /* 元の綺麗な楕円を維持 */
  width: 100%;
  /* 追加：上下の余白を保ちつつ、中身をブロックとして配置するベース設定 */
  padding: 5px 0 !important;
  box-sizing: border-box !important;
}

/* 電話番号と受付時間は、電話番号の自然な幅で左端を揃える。 */
.contact-mini-card-content {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.card-tel {
  color: var(--c-ink-body);
  margin: 5px 0 0;
}

.card-time {
  color: var(--c-ink-body);
  margin: 0 0 5px;
}

/* 24pxの電話番号と楕円内の余白を確保できる幅から3列にする。 */
@media (max-width: 999px) {
  .contact-card-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* ==========================================================================
全ページ共通フッター（これまでの修正をすべて反映した完成版）
========================================================================== */
/* ====== A11y helpers ====== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WCAG 2.4.1 Bypass Blocks: skip link はキーボードフォーカス時に画面表示 */
.sr-only:focus,
.sr-only:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 20px;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--c-ink);
  color: #FFFFFF;
  text-decoration: none;
  z-index: 100;
}

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}

/* ==========================================================================
Page top（ページトップへ戻るボタン）
========================================================================== */
.pagetop {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #404040;
  border: 2px solid #404040;
  color: #fff;
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  /* スマホ時は下部固定CTA（高さ約68px前後）を避けるために位置を高く調整 */
  bottom: 84px;
  right: 16px;
  /* スマホ画面の端に寄り添うように少し内側へ調整 */
  z-index: 100;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* タブレット・PC環境（固定CTAが消える画面）では通常の使いやすい位置に戻す */
@media (min-width: 768px) {
  .pagetop {
    bottom: 24px;
    right: 24px;
  }
}
/* アイコン自体の調整（Material Symbols） */
.pagetop .material-symbols-outlined {
  font-size: 22px;
  font-weight: 700;
  display: block;
}

/* マウスを乗せたとき（ホバー）の演出 */
@media (hover: hover) {
  .pagetop:hover {
    background-color: #fff;
    border-color: #404040;
    color: #404040;
    transform: translateY(-4px);
  }
}
/* ==========================================
右上のフローティングメニュー（メールボタン修正版）
========================================== */
/* 全体を括るコンテナ（不要な important を排除し、詳細度で安全に制御） */
.floating-menu-wrap {
  position: fixed;
  right: 20px;
  /* スマホ時は画面端に寄り添う適正距離に調整 */
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  width: auto;
  flex-shrink: 0;
  /* ページ表示時から追従ボタンを表示 */
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(0);
  will-change: transform, opacity;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

/* PC以上の環境では、当初の設計通り広めの余白をキープ */
@media (min-width: 768px) {
  .floating-menu-wrap {
    right: 40px;
    top: 40px;
    gap: 16px;
  }
}
/* スクロールしてJavaScriptでこのクラスがついたら、ふわっと表示 */
.floating-menu-wrap.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) translateZ(0);
}

/* メインの「MENU」丸ボタン（スマホ時はスマートなサイズに自動縮小） */
.btn-main-menu {
  width: 76px;
  height: 76px;
  padding: 0;
  font: inherit;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.9);
  /* 透過率を明示し、ぼかしを美しく連動 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02), 0 0 1px transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s, box-shadow 0.2s;
}

/* タブレット・PCの共通サイズ。 */
@media (min-width: 768px) {
  .btn-main-menu {
    width: 120px;
    height: 120px;
  }
}
/* MENUボタンのホバー時：エメラルドグリーンの枠線を表示 */
.btn-main-menu:hover {
  border-color: var(--c-line-green);
}

/* MENUの文字デザイン */
.btn-main-menu .menu-text {
  color: var(--c-ink-body);
  /* スマホの円に合わせた文字サイズ */
  display: block;
  border-bottom: 2px solid var(--c-line-green);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

/* PC以上の環境では、大丸に負けない存在感ある極太文字（18px）へ自動切替 */
@media (min-width: 768px) {
  .btn-main-menu .menu-text {
    padding-bottom: 4px;
  }
}
/* ホバー時にMENUの文字色と下線をエメラルドに反転 */
.btn-main-menu:hover .menu-text {
  color: var(--c-ink-green);
  border-color: var(--c-line-green);
}

/* ==========================================
右上のフローティングメニュー（メールボタン修正版）
========================================== */
/* 小ボタン：「メール」（通常：エメラルド透過 ➔ ホバー：白） */
.btn-sub-mail {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: var(--ct-branch-accent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid transparent;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02), 0 0 1px transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.3s ease, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* メールボタンのホバーエフェクト（白に反転） */
.btn-sub-mail:hover {
  background-color: #ffffff;
  border-color: var(--c-line-green);
}

/* メールアイコンの色とサイズ */
.btn-sub-mail .material-symbols-outlined {
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  display: block;
  transition: color 0.2s;
}

/* ホバー時にアイコンの色をエメラルドグリーンに反転 */
.btn-sub-mail:hover .material-symbols-outlined {
  color: var(--ct-branch-accent);
}

/* 4. 共通ホバー演出：マウスを乗せたときに少しだけぷるっと大きくする */
.btn-main-menu:hover,
.btn-sub-mail:hover {
  transform: scale(1.05) translateZ(0);
}

/* ========================================================
   半分サイズオーバーレイメニュー（ボタン無傷・背景完全ぼかし決定版）
======================================================== */
/* ── 1. メニュー全体のベース設定 ── */
.overlay-menu {
  position: fixed;
  top: 0;
  right: 0;
  /* 💡左ではなく、右端を基準に固定します */
  width: 100%;
  /* スマホ時はこれまで通り横幅100% */
  height: 100vh;
  padding-inline: 20px;
  background-color: var(--c-theme-kakeru-bgata);
  z-index: 9999;
  /* 重ね順を安定させます */
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  /* ふわっと右から出る動き */
  transform: translateX(30px);
}

/* メニューが開いたときの状態（JavaScript連動） */
.overlay-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
  /* 元の位置に戻る */
}

/* 💡【最重要】PC以上の環境（画面横幅768px以上）の設定 */
@media (min-width: 768px) {
  .overlay-menu {
    width: var(--ct-drawer-width, 45%) !important;
    padding-inline: 40px;
    /* パネルが狭くなる分、中の余白を綺麗に調整 */
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    /* 境界線に綺麗な影を追加 */
    /* ── 💡【ここを調整：最重要の特効薬】──
       PC表示時のみ、縦スクロールを『完全に禁止』にします。
       これで、メニュー内をいくらマウスや指で引っ張っても、縦にぐにゃぐにゃ動いたり
       バウンドしたりするスクロール現象が100%完全に発生しなくなります。 */
    overflow: hidden !important;
  }
  /* 💡【解決の核心】右上ボタンの位置ズレを物理的に100%防ぎつつ、左半分をぼかすウイング */
  .overlay-menu::before {
    content: "";
    position: absolute;
    top: 0;
    /* メニューの左側に、横幅55%分の「完全に透明なすりガラスの板」をドッキング */
    left: -122.22%;
    /* 45%の幅を基準にして、左側に55%分のサイズ（55/45=1.2222）をぴったり配置 */
    width: 122.22% !important;
    height: 100vh;
    /* ── 💡【ここを調整】──
       ブラウザがぼかし処理をスキップしてしまうのを防ぐため、
       完全に透明（0）ではなく「ごくわずかに色がついた透明（0.01）」にすることで、
       元のホームページに悪影響を与えずに、ぼかしプログラムを100%強制起動させます。 */
    background-color: rgba(0, 0, 0, 0.01);
    pointer-events: auto;
    /* 💡この『メニューの一部として左側に飛び出させた透明な板』の中にだけぼかしをかけます。
       元のページ側（bodyや一番外の箱）には1文字もぼかしの命令がいかないため、
       右上にある丸型ボタンの配置ルールには物理的に1ミリも干渉しなくなり、絶対にズレません！ */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    /* iPhone・Safari対策 */
  }
}
/* ── 2. 内部コンテナ・レイアウト ── */
.menu-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .menu-container {
    flex-direction: row;
    min-height: auto !important;
    /* 💡PC時は縦スクロールを止めるため、100vhの高さ固定をリセットします */
  }
}
/* 右側：リンクエリア */
.menu-right {
  width: 100%;
  padding: 140px 40px 0;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .menu-right {
    width: 100%;
    /* 45%のパネル幅いっぱいに引き伸ばします */
    padding: 190px 0 40px 0;
    /* 💡PC時に右上の丸ボタンと文字が重ならないように上部余白を確保 */
  }
}
/* ── 3. リンクメニュー・導線 ── */
.menu-links-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 10px;
  margin-bottom: 40px;
}

li::marker {
  color: var(--c-ink-green);
}

.link-group {
  padding: 12px 20px;
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
}

@media (min-width: 768px) {
  .link-group {
    padding: 12px 40px;
    /* 左右の余白をなくし、線いっぱいに端正に整列 */
  }
}
.link-group h3 {
  margin: 0;
}

.link-group ul {
  margin: 5px 0;
}

.link-group a {
  text-decoration: none;
}

.link-group a:hover {
  color: var(--c-ink-green);
}

/* 下部の横並びリンク */
.menu-bottom-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid #222;
  border-bottom: 2px solid #222;
  padding: 20px 0;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .menu-bottom-links {
    flex-direction: row;
    gap: 24px;
    padding: 20px 0;
    /* 左右の余白をなくして端をピシッと揃えます */
  }
}
.menu-bottom-links a {
  width: 100%;
  text-decoration: none;
  color: #222222;
  transition: color 0.2s;
}

@media (min-width: 768px) {
  .menu-bottom-links a {
    min-width: 33%;
  }
}
.menu-bottom-links a:hover {
  color: var(--c-ink-green);
}