@charset "UTF-8";

/* ==========================================================================
   main.css / 共通スタイル
   外国人介護福祉士match Webサイト
   ========================================================================== */

/* ===== Webフォント ======================================================= */

/* D-DIN Bold（実績数値・料金・フロー番号など、数字まわりの欧文に使用）
   配布元: https://github.com/amcchord/datto-d-din
   ライセンス: SIL Open Font License 1.1（商用利用可 / assets/fonts/LICENSE-D-DIN.txt）
   Google Fonts 等のCDNは提供されていないため、テーマ内にファイルを同梱して読み込む。
   同梱しているのは Bold のみ。--font-en は font-weight: 700 と組で使用すること。 */
@font-face {
  font-family: "D-DIN";
  src: url("../fonts/D-DIN-Bold.woff2") format("woff2"),
       url("../fonts/D-DIN-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== 変数 ============================================================== */

:root {
  /* フォント */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "D-DIN", "Noto Sans JP", sans-serif; /* Bold のみ同梱。font-weight: 700 で使用 */

  /* カラー */
  --color-primary: #e65736;
  --color-green: #5bb043;
  --color-text: #000000;
  --color-text-body: #333333;
  --color-text-mid: #4d4d4d;
  --color-text-sub: #666666;
  --color-bg-soft: #fffbf8;
  --color-nav: #222426;
  --color-tel: #333333;
  --color-white: #ffffff;
  --color-bg-footer: #f8f8f8;
  --color-bg-cta: #d46132;
  --color-line: #dadada;
  --color-line-cta: #edcbbb;
  --color-border-btn: #e8b6a0;
  --color-rule: #000000;

  /* グラデーション（ページヘッド） */
  --gradient-page-head: linear-gradient(90deg, #d5363f 0%, #e17d3e 100%);

  /* レイアウト
     画面幅に応じて可変。--gutter はコンテンツ帯の左右余白、
     --gutter-wide はヘッダー／CTA／フッターなど画面いっぱいに敷く帯の左右余白。

     ■拡大率の基準
     原案（横幅950pxアートボード）の比率・密度感を保つため、
     文字／写真／余白の可変値はすべて「表示幅1440px 相当」で頭打ちにしている。
     1440px を超える画面では拡大を止め、余った幅は左右のアキとして逃がす。
     --page-max も 1440px から左右の余白ぶんを引いた 1344px を上限とする。 */
  --header-height: clamp(64px, 5.2vw, 75px);
  --page-max: 1344px;
  /* 中幅コンテナ（.l-container-md）の頭打ち幅 */
  --page-md: 1200px;
  --gutter: clamp(16px, 3.2vw, 48px);
  /* ヘッダー／CTA／フッターの帯は背景を画面いっぱいに敷きつつ、
     中身の左右基準線はコンテンツ帯（.l-container）とぴったり揃える。
     コンテンツ帯の外に余白が出ない幅では --gutter と同じ値になる */
  --gutter-wide: max(var(--gutter), calc((100vw - var(--page-max)) / 2));

  /* セクションの上下余白（8pxグリッド基準の可変値） */
  --section-space: clamp(56px, 5.5vw, 80px);
}

/* SPはカンプ（375px基準）に合わせ、ヘッダーを 56px に詰める */
@media (max-width: 600px) {
  :root {
    --header-height: 56px;
  }
}

/* ===== リセット ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  /* 画面外に待機している SPナビ（translateX(100%)）で
     横スクロールが出るのを防ぐ。clip 非対応ブラウザは hidden にフォールバック */
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

button {
  font: inherit;
  color: inherit;
}

/* ===== レイアウト ======================================================== */

/* コンテンツ帯の基準コンテナ。
   狭い画面では --gutter 分の左右余白、広い画面では --page-max で頭打ちにする */
.l-container {
  width: min(100% - var(--gutter) * 2, var(--page-max));
  margin: 0 auto;
  padding: 0;
}

/* 基準コンテナより一段狭い中幅コンテナ */
.l-container-md {
  width: min(100% - var(--gutter) * 2, var(--page-md));
  margin: 0 auto;
  padding: 0;
}

/* 画面いっぱいに敷く帯（ヘッダー／CTA／フッター）の内側コンテナ */
.l-container-wide {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter-wide);
}

.l-main {
  padding-top: var(--header-height);
}

/* 固定ヘッダーに隠れないよう、アンカーの着地位置を下げる */
#service,
#reason,
#flow,
#faq {
  scroll-margin-top: var(--header-height);
}

/* FVが背景を頭まで敷くページはmain側の余白を持たせない */
.l-main--top {
  padding-top: 0;
}

/* ===== ユーティリティ ==================================================== */

.u-center {
  text-align: center;
}

.u-pc-only {
  display: block;
}

@media (max-width: 899px) {
  .u-pc-only {
    display: none;
  }
}

.u-sp-only {
  display: none;
}

@media (max-width: 899px) {
  .u-sp-only {
    display: block;
  }
}

/* ===== m-arrow / 矢印（CSSで実装） ======================================= */

.m-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.m-arrow--lg {
  width: 9px;
  height: 9px;
  border-width: 2.5px;
}

/* 塗りの小三角（ヘッダーの問い合わせボタン） */
.m-arrow-tri {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 3.5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* 長い矢印（もっと見る等） */
.m-arrow-long {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
}

.m-arrow-long::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* ===== m-eyebrow / セクション上部の小見出し（•—— テキスト ——•） ========= */

.m-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.9;
}

.m-eyebrow::before,
.m-eyebrow::after {
  content: "";
  position: relative;
  width: 61px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.m-eyebrow::before {
  background:
    radial-gradient(circle 3px at 3px 3px, var(--color-primary) 99%, transparent 100%) left center / 6px 6px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) right center / 54px 2px no-repeat;
}

.m-eyebrow::after {
  background:
    radial-gradient(circle 3px at 3px 3px, var(--color-primary) 99%, transparent 100%) right center / 6px 6px no-repeat,
    linear-gradient(var(--color-primary), var(--color-primary)) left center / 54px 2px no-repeat;
}

@media (max-width: 600px) {
  .m-eyebrow {
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .m-eyebrow::before,
  .m-eyebrow::after {
    width: 24px;
    flex-shrink: 0;
  }

  .m-eyebrow::before {
    background-size: 6px 6px, 18px 2px;
  }

  .m-eyebrow::after {
    background-size: 6px 6px, 18px 2px;
  }
}

/* ===== m-scale-change / カード画像ホバー拡大 ============================= */

.m-scale-change {
  overflow: hidden;
  width: 100%;
}

.m-scale-change img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
}

/* ===== c-btn-fill / オレンジ塗りのピルボタン ============================= */

.c-btn-fill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 288px;
  padding: 14px 40px;
  background: var(--color-primary);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  color: var(--color-white);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.c-btn-fill:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .c-btn-fill {
    gap: 16px;
    min-width: 0;
    width: 100%;
    max-width: 320px;
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* ===== c-column-card / お役立ち情報カード（TOP・一覧・関連記事で共用） === */

.c-column-card {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.c-column-card__link {
  display: block;
  height: 100%;
  padding: 11px 11px 20px;
  color: inherit;
}

.c-column-card__photo {
  border-radius: 6px;
}

.c-column-card__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 266 / 130;
  object-fit: cover;
}

.c-column-card__link:hover .c-column-card__photo img {
  transform: scale(1.08);
}

.c-column-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.c-column-card__cat {
  display: inline-block;
  padding: 2px 14px;
  background: var(--color-green);
  border-radius: 999px;
  color: var(--color-white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

/* カテゴリ単体で置く場合は上アキを自前で持つ */
.c-column-card__link > .c-column-card__cat {
  margin-top: 14px;
}

.c-column-card__date {
  color: var(--color-text-sub);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.c-column-card__ttl {
  margin: 10px 0 0;
  color: var(--color-text-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .c-column-card__ttl {
    font-size: 17px;
  }

  .c-column-card__ttl br {
    display: none;
  }
}

.c-column-card__text {
  margin-top: 10px;
  color: var(--color-text-sub);
  font-size: 13px;
  line-height: 1.9;
  /* 3行でクランプ（カード高さを揃える） */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.c-column-card__more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.9;
}

.c-column-card__link:hover .c-column-card__more {
  opacity: 0.7;
}

/* ===== m-back-home / HOMEに戻る ========================================== */

.m-back-home {
  text-align: center;
}

.m-back-home__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--color-primary);
  font-size: 15.7px;
  font-weight: 600;
  letter-spacing: 0.118em;
  line-height: 1.8;
}

.m-back-home__link:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .m-back-home__link {
    font-size: 15px;
    gap: 12px;
  }
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: var(--color-white);
}

/* 幅は常に画面いっぱい（最大幅の頭打ちなし）。左右は --gutter の可変余白でとる */
.l-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.l-header__logo {
  flex-shrink: 0;
  width: clamp(200px, 15vw, 216px);
}

@media (max-width: 1080px) {
  .l-header__logo {
    width: clamp(190px, 21vw, 224px);
  }
}

/* カンプ（375px時にロゴ幅219px）の比率で持つ */
@media (max-width: 600px) {
  .l-header__logo {
    width: min(219px, 58.4vw);
  }
}

.l-header__logo a {
  display: block;
}

.l-header__logo a:hover {
  opacity: 0.7;
}

/* ロゴ以外は右寄せ。幅が詰まっても折り返さず、アキだけが縮む */
.l-header__nav {
  margin-left: auto;
  min-width: 0;
}

.l-header__nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(20px, 2.6vw, 38px);
}

.l-header__nav-list a {
  color: var(--color-nav);
  font-size: clamp(13px, 0.95vw, 14px);
  font-weight: 500;
  line-height: 1.9;
  white-space: nowrap;
}

.l-header__nav-list a:hover {
  color: var(--color-primary);
}

.l-header__contact {
  flex-shrink: 0;
  margin-left: clamp(24px, 3vw, 43px);
}

/* 問い合わせボタン（オレンジ／内側に白の細線） */
.c-btn-contact {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  height: clamp(40px, 3vw, 43px);
  white-space: nowrap;
  padding: 0 clamp(12px, 1vw, 14px) 0 clamp(15px, 1.2vw, 17px);
  background: var(--color-primary);
  border-radius: 999px;
  color: var(--color-white);
}

.c-btn-contact::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid var(--color-white);
  border-radius: 999px;
  pointer-events: none;
}

.c-btn-contact:hover {
  opacity: 0.85;
}

.c-btn-contact__icon {
  width: 20px;
  flex-shrink: 0;
}

.c-btn-contact__label {
  margin-left: 6px;
  font-size: clamp(12.3px, 0.9vw, 13px);
  font-weight: 600;
  letter-spacing: 0.064em;
  line-height: 1.9;
}

.c-btn-contact .m-arrow-tri {
  margin-left: 9px;
}

/* PCではナビゲーション一式を右寄せにしつつ、ロゴとの間に
   必要な最小余白を確保する。画面が広い場合の余白は auto 側へ逃がし、
   ナビゲーション自体は下層ページ基準の上限以上に拡大しない。 */
@media (min-width: 900px) {
  .l-header__logo {
    width: clamp(200px, calc(200px + (100vw - 900px) * 0.38), 520px);
    margin-right: clamp(40px, 3.4vw, 52px);
  }

  .l-header__nav {
    margin-left: auto;
  }

  .l-header__nav-list a {
    font-size: clamp(13.5px, 1.15vw, 14.5px);
  }
}

@media (min-width: 1300px) {
  :root {
    --header-height: clamp(68px, calc(68px + (100vw - 1300px) * 0.08), 96px);
  }

  .l-header__logo {
    width: clamp(352px, 27.08vw, 520px);
  }

  .l-header__nav-list {
    gap: clamp(28px, 2.25vw, 34px);
  }

  .l-header__nav-list a {
    font-size: clamp(14.5px, 1.05vw, 16px);
  }

  .l-header__contact {
    margin-left: clamp(28px, 2.25vw, 34px);
  }

  .c-btn-contact {
    height: clamp(43px, 3.2vw, 48px);
    padding-right: clamp(14px, 1.15vw, 17px);
    padding-left: clamp(17px, 1.35vw, 20px);
  }

  .c-btn-contact__icon {
    width: clamp(20px, 1.5vw, 22px);
  }

  .c-btn-contact__label {
    margin-left: clamp(6px, 0.55vw, 8px);
    font-size: clamp(13px, 0.95vw, 14.5px);
  }

  .c-btn-contact .m-arrow-tri {
    margin-left: clamp(9px, 0.7vw, 11px);
  }
}

/* ===== ハンバーガー ====================================================== */

.l-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

@media (max-width: 899px) {
  .l-header__hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .l-header__hamburger {
    width: 26px;
  }
}

.l-header__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-nav);
  transition: 0.3s;
}

.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.l-header__hamburger.is-active .l-header__hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* SPナビ */
.l-sp-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  /* ヘッダー(1000)の直下・本文より前面に重ねる。
     指定がないと本文側の z-index 付き要素にドロワーが隠れてしまう */
  z-index: 999;
  width: 100%;
  height: calc(100vh - var(--header-height));
  padding: 24px;
  background: var(--color-white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
}

@media (max-width: 899px) {
  .l-sp-nav {
    display: block;
  }
}

.l-sp-nav.is-open {
  transform: translateX(0);
}

.l-sp-nav__item {
  border-bottom: 1px solid var(--color-line);
}

.l-sp-nav__item a {
  display: block;
  padding: 16px 0;
  color: var(--color-nav);
  font-size: 15px;
  font-weight: 500;
}

.l-sp-nav__contact {
  margin-top: 32px;
  text-align: center;
}

/* ==========================================================================
   ページヘッド（下層タイトル帯）
   ========================================================================== */

.l-page-head {
  display: flex;
  align-items: center;
  height: 179px;
  background: var(--gradient-page-head);
}

@media (max-width: 768px) {
  .l-page-head {
    height: 128px;
  }
}

.l-page-head__inner {
  width: min(100% - var(--gutter) * 2, var(--page-max));
  margin: 0 auto;
  padding: 0;
}

.l-page-head__title {
  color: var(--color-white);
  font-size: 38.7px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .l-page-head__title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .l-page-head__title {
    font-size: 24px;
  }
}

/* ===== パンくず ========================================================== */

.breadcrumb {
  margin-top: 48px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}

@media (max-width: 768px) {
  .breadcrumb {
    margin-top: 32px;
    font-size: 13px;
  }
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--color-text-sub);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

/* 区切りの矢印は文字を使わず border で作図 */
.breadcrumb__item + .breadcrumb__item::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 8px;
  border-top: 1px solid var(--color-text-sub);
  border-right: 1px solid var(--color-text-sub);
  transform: rotate(45deg);
}

.breadcrumb__link {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb__link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.l-cta {
  position: relative;
  background-color: var(--color-bg-cta);
  border-bottom: 4px solid var(--color-line-cta);
  overflow: hidden;
}

/* 右側の写真。画面幅に対して大きく取り、左端はオレンジへなじませる */
.l-cta::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(360px, 42%, 605px);
  height: 100%;
  background: url("../img/common/cta-photo.jpg") center center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 26%, #000 62%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.55) 26%, #000 62%);
  pointer-events: none;
}

/* SPは背景写真を完全に透過させ、単色の背景色のみで見せる */
@media (max-width: 767px) {
  .l-cta::after {
    opacity: 0;
  }
}

/* 768〜949px は縦積みにせず、写真を一回り小さくして横並びを維持する */
@media (min-width: 768px) and (max-width: 949px) {
  .l-cta::after {
    width: clamp(300px, 38%, 400px);
  }
}

.l-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  /* 画面を広げても左寄せにならないよう、写真を除いた領域の中央に置く */
  justify-content: center;
  gap: clamp(24px, 3.5vw, 50px);
  width: 100%;
  min-height: clamp(200px, 15vw, 216px);
  margin: 0 auto;
  /* 右側の写真に文字がかからないよう、写真の幅ぶんを空ける */
  padding: 24px calc(var(--gutter-wide) + clamp(360px, 42%, 605px) * 0.72) 24px var(--gutter-wide);
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-cta__inner {
    gap: 24px;
    min-height: 200px;
    padding: 24px calc(var(--gutter-wide) + clamp(300px, 38%, 400px) * 0.72) 24px var(--gutter-wide);
  }
}

@media (max-width: 767px) {
  .l-cta__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 48px var(--gutter-wide);
  }
}

@media (max-width: 600px) {
  .l-cta__inner {
    padding: 40px var(--gutter-wide);
  }
}

.l-cta__lead {
  flex-shrink: 0;
  color: var(--color-white);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-cta__lead {
    font-size: clamp(17px, 2.2vw, 20px);
  }
}

@media (max-width: 767px) {
  .l-cta__lead {
    font-size: 21px;
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 600px) {
  .l-cta__lead {
    font-size: 18px;
  }
}

.l-cta__btns {
  flex-shrink: 0;
  width: clamp(211px, 17vw, 245px);
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-cta__btns {
    width: 190px;
  }
}

@media (max-width: 767px) {
  .l-cta__btns {
    width: 100%;
    max-width: 320px;
    margin: 24px auto 0;
  }
}

.l-cta__btns li + li {
  margin-top: 16px;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-cta__btns li + li {
    margin-top: 12px;
  }
}

/* 白いピルボタン */
.c-btn-white {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: clamp(48px, 3.6vw, 52px);
  padding: 0 32px;
  background: var(--color-white);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  color: var(--color-primary);
  font-size: clamp(17px, 1.35vw, 19px);
  font-weight: 600;
  letter-spacing: 0.008em;
  line-height: 1.4;
}

.c-btn-white:hover {
  opacity: 0.85;
}

.c-btn-white .m-arrow {
  position: absolute;
  right: 20px;
}

@media (min-width: 768px) and (max-width: 949px) {
  .c-btn-white {
    padding: 0 24px;
  }

  .c-btn-white .m-arrow {
    right: 14px;
  }
}

@media (max-width: 600px) {
  .c-btn-white {
    font-size: 17px;
  }
}

/* ==========================================================================
   フッター
   ========================================================================== */

.l-footer {
  padding: 32px 0 24px;
  background: var(--color-bg-footer);
}

@media (max-width: 767px) {
  .l-footer {
    padding: 40px 0;
  }
}

/* ヘッダーと左右の基準線を揃える（可変余白）。
   --gutter-wide がコンテンツ帯に追従するため、ここでの max-width 指定は不要 */
.l-footer__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 3.5vw, 50px);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter-wide);
}

/* 768〜949px は縦積みにせず、各カラムを詰めて横並びを維持する */
@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__inner {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .l-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    text-align: center;
  }
}

.l-footer__brand {
  flex: 1 1 280px;
  min-width: 0;
}

@media (max-width: 767px) {
  .l-footer__brand {
    flex: none;
  }

  .l-footer__logo {
    margin: 0 auto;
  }
}

.l-footer__logo {
  width: 238px;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__logo {
    width: 190px;
  }
}

.l-footer__logo a:hover {
  opacity: 0.7;
}

.l-footer__lead {
  margin-top: 18px;
  font-size: 12.1px;
  line-height: 21px;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__lead {
    margin-top: 12px;
    font-size: 11px;
    line-height: 19px;
  }
}

.l-footer__nav {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  flex: 1 1 320px;
  min-width: 0;
  padding-left: clamp(32px, 3.5vw, 50px);
  border-left: 1px solid var(--color-line);
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__nav {
    gap: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 767px) {
  .l-footer__nav {
    flex: none;
    justify-content: center;
    gap: 40px;
    padding: 24px 0 0;
    border-left: none;
    border-top: 1px solid var(--color-line);
  }
}

.l-footer__nav-list a {
  display: block;
  font-size: 13px;
  line-height: 31px;
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__nav-list a {
    font-size: 12px;
    line-height: 28px;
  }
}

.l-footer__nav-list a:hover {
  color: var(--color-primary);
}

.l-footer__contact {
  flex: 0 0 auto;
  padding-left: clamp(32px, 3.5vw, 50px);
  border-left: 1px solid var(--color-line);
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__contact {
    padding-left: 20px;
  }
}

@media (max-width: 767px) {
  .l-footer__contact {
    padding: 24px 0 0;
    border-left: none;
    border-top: 1px solid var(--color-line);
  }
}

.l-footer__tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-tel);
  font-family: var(--font-en);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.16;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__tel {
    gap: 4px;
    font-size: 21px;
  }
}

.l-footer__tel-icon {
  width: 21px;
  flex-shrink: 0;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__tel-icon {
    width: 18px;
  }
}

.l-footer__hours {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.9;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__hours {
    font-size: 10.5px;
    white-space: nowrap;
  }
}

.l-footer__btn {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .l-footer__btn .c-btn-outline {
    margin: 0 auto;
  }
}

/* 白地・オレンジ枠のピルボタン */
.c-btn-outline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 207px;
  height: 41px;
  border: 2px solid var(--color-border-btn);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.c-btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.c-btn-outline .m-arrow {
  position: absolute;
  right: 20px;
}

@media (min-width: 768px) and (max-width: 949px) {
  .l-footer__btn .c-btn-outline {
    width: 176px;
    height: 38px;
    font-size: 15px;
  }

  .l-footer__btn .c-btn-outline .m-arrow {
    right: 14px;
  }
}

@media (max-width: 600px) {
  .c-btn-outline {
    width: 100%;
    max-width: 260px;
  }
}

/* ==========================================================================
   WordPress 用の追加スタイル
   ========================================================================== */

/* ===== 管理バー表示時の固定ヘッダー位置 ================================== */

.admin-bar .l-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .l-header {
    top: 46px;
  }
}

.admin-bar .l-sp-nav {
  top: calc(var(--header-height) + 32px);
  height: calc(100vh - var(--header-height) - 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .l-sp-nav {
    top: calc(var(--header-height) + 46px);
    height: calc(100vh - var(--header-height) - 46px);
  }
}

/* ===== 共通コンテナ（規約準拠・下層の汎用ページで使用） ================== */

.container-sm {
  width: 100%;
  max-width: calc(800px + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.container-md {
  width: 100%;
  max-width: calc(940px + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.container {
  width: 100%;
  max-width: calc(1080px + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 共通グリッド ====================================================== */

.m-grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .m-grid-3-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .m-grid-3-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.m-grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .m-grid-2-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== 汎用の下層ページ本文（page.php / single.php） ====================== */

.p-page {
  padding-bottom: 96px;
}

@media (max-width: 768px) {
  .p-page {
    padding-bottom: 64px;
  }
}

.p-page__body {
  margin-top: 48px;
}

@media (max-width: 768px) {
  .p-page__body {
    margin-top: 32px;
  }
}

.p-page__back {
  margin-top: 64px;
}

@media (max-width: 768px) {
  .p-page__back {
    margin-top: 48px;
  }
}

/* ===== 投稿本文の共通スタイル（エディタ入稿分） ========================== */

.m-post-main > * + * {
  margin-top: 24px;
}

.m-post-main h2 {
  margin-top: 56px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .m-post-main h2 {
    margin-top: 40px;
    font-size: 20px;
  }
}

.m-post-main h3 {
  margin-top: 40px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .m-post-main h3 {
    margin-top: 32px;
    font-size: 17px;
  }
}

.m-post-main p {
  color: var(--color-text-body);
  font-size: 16px;
  line-height: 2;
}

@media (max-width: 768px) {
  .m-post-main p {
    font-size: 15px;
  }
}

.m-post-main a {
  color: var(--color-primary);
  text-decoration: underline;
}

.m-post-main a:hover {
  opacity: 0.7;
}

.m-post-main img {
  height: auto;
  border-radius: 8px;
}

.m-post-main ul,
.m-post-main ol {
  padding-left: 1.5em;
  color: var(--color-text-body);
  font-size: 16px;
  line-height: 2;
  list-style: disc;
}

.m-post-main ol {
  list-style: decimal;
}

@media (max-width: 768px) {
  .m-post-main ul,
  .m-post-main ol {
    font-size: 15px;
  }
}

/* ===== 記事が0件のとき =================================================== */

.p-column-archive__empty {
  margin-top: 48px;
  color: var(--color-text-sub);
  font-size: 15px;
  line-height: 2;
  text-align: center;
}

@media (max-width: 768px) {
  .p-column-archive__empty {
    margin-top: 32px;
    font-size: 14px;
  }
}

/* ===== Ajax 読み込み中 =================================================== */

.is-loading {
  opacity: 0.4;
  pointer-events: none;
  transition: 0.3s;
}

/* ===== WordPress 標準クラス ============================================== */

.alignleft {
  float: left;
  margin: 0 24px 24px 0;
}

.alignright {
  float: right;
  margin: 0 0 24px 24px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption-text,
figcaption {
  color: var(--color-text-sub);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
