@charset "UTF-8";
/****************************************
* common.css
* CSS変数（:root）・基本タグ・共通コンポーネント（c- / u-）
***************************************/

/* ── デザイントークン ── */
:root {
  /* brand */
  --primary-color  : #36563C;
  --secondary-color: #CC543A;
  --tertiary-color : #24ADE2;

  /* text */
  --color-text      : #584138;
  --color-text-light: #757575;
  --color-text-white: #ffffff;

  /* background */
  --color-bg      : #F2EEEB;
  --color-bg-beige: #EEE7DB;
  --color-bg-white: #ffffff;

  /* border */
  --color-line     : #371D03;
  --color-line-thin: #584138;

  /* category */
  --cat-law       : #CC543A;
  --cat-report    : #3368C5;
  --cat-life      : #24ADE2;
  --cat-renovation: #CBBA36;
  --cat-migration : #36563C;

  /* font */
  --font-main  : "Noto Sans JP", sans-serif;
  --font-mincho: "Shippori Mincho B1", serif;
  --font-en    : "Inter", sans-serif;

  /* layout */
  --inner-max   : 1300px;  /* デザインフレーム幅 */
  --inner-pad   : 100px;   /* SP: 24px にオーバーライド */
  --main-column : 1100px;  /* メインカラム幅（1300 − 100 × 2）*/
  --header-height: 80px;
}

/* ── 基本タグ ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  display: block;
  color: currentcolor;
  cursor: pointer;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

h1, h2, h3, section, [id] {
  scroll-margin-top: var(--header-height);
}

/* ── セクション見出し（英字ラベル＋和文タイトル） ── */
.c-heading {
  text-align: center;
}

.c-heading__eyebrow {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.4px;
  color: var(--secondary-color);
}

.c-heading__title {
  margin-top: 17px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 1.6px;
  color: var(--color-text);
}

.c-heading--tight .c-heading__title {
  margin-top: 6px;
}

/* ── ボタン ── */
.c-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 56px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.92px;
  color: var(--color-text-white);
  text-align: center;
  transition: opacity .3s ease;
}

.c-btn:hover {
  opacity: .8;
}

.c-btn--primary { background: var(--primary-color); }
.c-btn--accent  { background: var(--secondary-color); }
.c-btn--teal    { background: var(--tertiary-color); }

/* 矢印つき（幅194px / 高さ59px が基本サイズ）*/
.c-btn--arrow {
  width: 194px;
  height: 59px;
  font-weight: 500;
}

.c-btn--arrow::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.c-btn--arrow.-back::after {
  content: "←";
  right: auto;
  left: 13px;
}

.c-btn--arrow.-back {
  padding-left: 24px;
}

.c-btn--window::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 21px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url(../img/common/link_window.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── バッジ（カテゴリピル） ── */
.c-badge {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 23px;
  padding: 0 19px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-white);
}

.c-badge--primary {
  background: var(--primary-color);
}

.c-badge--accent {
  background: var(--secondary-color);
}

/* ── カテゴリバッジ：ブログ（blog_category） ── */
.c-badge--akiya-manabi {
  background: #c05a3f;
}

.c-badge--akiya-kurashi {
  background: #c9b23c;
}

.c-badge--akiya-jirei {
  background: #3f6b4a;
}

.c-badge--akiya-katsudo {
  background: #3f6ea3;
}

/* ── カテゴリバッジ：お知らせ（標準カテゴリー） ── */
.c-badge--event {
  background: #24ADE2;
}

.c-badge--oshirase {
  background: #CD5494;
}

.c-badge--kiji-koushin {
  background: #36563C;
}

.c-badge--soudan-madoguchi {
  background: #CC543A;
}

/* ── 背景パターン（青海波） ── */
.c-pattern {
  position: absolute;
  left: 50%;
  width: 1885.951px;
  height: 1414.463px;
  opacity: .4;
  pointer-events: none;
  user-select: none;
}

.c-pattern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 木版画イラスト（スプライトのクロップ用） ── */
.c-crop {
  position: relative;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.c-crop img {
  position: absolute;
  max-width: none;
}

/* ── パンくずリスト ── */
.c-breadcrumb {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 20px var(--inner-pad) 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: #584138;
  background-color: #F2EEEB;
}

.c-breadcrumb a { display: inline; color: #584138; }
.c-breadcrumb .c-breadcrumb__current {
  color: #36563C;
  font-weight: 700;
}

/* 現在地（記事タイトル）が長くて2行になっても、
   トップ／お知らせ などの親階層と区切りは折り返さず1行で表示する */
.c-breadcrumb > a,
.c-breadcrumb > span:not(.c-breadcrumb__current) {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {

  /* SPは横スクロールではなく折り返して表示する。
     トップ／お知らせ（記事）までが1行固定なのは上の共通ルールで担保している */
  .c-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 20px;
    font-size: 12px;
  }

}

.c-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.c-breadcrumb__item + .c-breadcrumb__item::before {
  content: "／";
  margin-right: 8px;
  color: var(--color-text-light);
}

.c-breadcrumb__item a {
  display: inline;
  color: var(--primary-color);
  transition: opacity .3s ease;
}

.c-breadcrumb__item a:hover {
  opacity: .7;
}

.c-breadcrumb__item--current {
  color: var(--color-text-light);
}

/* ── ページネーション ── */
.c-pagination {
  margin-top: 72px;
  display: flex;
  justify-content: center;
}

.c-pagination-inner,
.c-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.c-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: -1px 10px;
  border-radius: 4px;
  background: var(--color-bg-white);
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--color-text);
  transition: opacity .3s ease;
}

.c-pagination a.page-numbers:hover {
  opacity: .7;
}

.c-pagination .page-numbers.current {
  width: 36px;
  height: 36px;
  padding: 0;
  box-sizing: border-box;
  background: var(--primary-color);
  color: var(--color-text-white);
  font-weight: 700;
}

.c-pagination .page-numbers.dots {
  background: none;
}

.c-pagination .page-numbers.prev,
.c-pagination .page-numbers.next {
  background: none;
  color: var(--primary-color);
  font-weight: 700;
  width: auto;
}



/* ── ユーティリティ ── */
.u-pc-only { display: block; }
.u-sp-only { display: none; }

/* ── スクロールフェードイン ── */
.js-fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.16, 1, .3, 1),
              transform 1s cubic-bezier(.16, 1, .3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── 画像の拡大表示（js/main.js の .js-lightbox で使用） ── */
.is-lightbox-open {
  overflow: hidden;
}

.c-lightbox {
  box-sizing: border-box;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.c-lightbox::backdrop {
  background: rgba(0, 0, 0, .8);
}

/* 原寸の画像がはみ出す場合はスクロールで移動。
   収まる場合は margin: auto で中央に置く */
.c-lightbox__body {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 64px 24px 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.c-lightbox__img {
  display: block;
  flex: none;
  max-width: none;
  height: auto;
  margin: auto;
  border-radius: 8px;
}

.c-lightbox__close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg-white, #fff);
  cursor: pointer;
}

/* × 印 */
.c-lightbox__close::before,
.c-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--color-text);
}

.c-lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.c-lightbox__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.c-lightbox__close:focus-visible {
  outline: 2px solid var(--tertiary-color);
  outline-offset: 2px;
}

/* PC：画面内に収まるよう高さを制限（SPは原寸のままスクロールで移動） */
@media screen and (min-width: 961px) {
  .c-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    width: auto;
  }
}

/* ── reCAPTCHA バッジ（Contact Form 7 が全ページに表示する右下の丸いバッジ）──
   Google の規約上、バッジを隠す場合はフォームのそばに reCAPTCHA の表記が必要。
   表記は Contact Form 7 のフォーム本文（送信ボタンの上。原稿はテーマ内 memo.php）に記載済み。
   display: none にすると reCAPTCHA が動かなくなる場合があるため visibility で隠す */
.grecaptcha-badge {
  visibility: hidden;
}
