/* ===================================================================
   Design Tokens（デザイントークン）
   ================================================================== */

:root {
  /* size */
  --font-size: 16px;

  /* Color */
  --c-white: #fff;
  --c-gray: #f7f7f7;
  --c-d-gray: #404040;
  --c-text: #333333;
  --c-border: #e5e5e5;
	
  --c-body-bg: #232323;

  --c-main: #232323;
  --c-sub: #0e77e1;
  --c-accent: #932e40;

  --c-header: #f7f7f7;
  --c-footer: #932e40;

  /* Layout */
  --w-inner: 1200px;
  --w-lg-inner: 1600px;

  --padding-x: min(5vw, 38px);
  --sec-y: clamp(45px, 9vw, 85px);

  --header-h: 80px;
  /* PCヘッダー高さ */
  --header-h-sp: 50px;
  /* SPヘッダー高さ */

  /* “幅広inner”の左右余白（旧 --padding-x-80 を置き換え） */
  --padding-x-wide: clamp(16px, 6vw, 80px);

  /* Image mask (共通マスク用カスタムプロパティ) */
  --mask-bg: #f7f7f7;
  --mask-dur: 1.4s;
}


/* ===================================================================
   Base
   ================================================================== */

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: var(--font-size);
  color: var(--c-text);
  background-color: var(--c-body-bg);
  line-height: 1.7;
}

/* スキップリンク（キーボード操作向け） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 10px;
  z-index: 999999;
}

/* ===================================================================
    Layout（レイアウト共通）
   ================================================================== */

/* コンテンツ幅 */
.inner {
  max-width: var(--w-inner);
  margin-inline: auto;
  padding-inline: var(--padding-x);
  box-sizing: border-box;
}

/* 幅広 inner（トップのNews/About/Contents等に使用） */
.inner--wide {
  max-width: var(--w-lg-inner);
  padding-inline: var(--padding-x-wide);
}

.main {
  /* padding-top: ヘッダー高さ分の余白を入れる場合ここで調整 */
}

/* 背景用（変数不整合を修正） */
.bg-gray {
  background: var(--c-gray);
  width: 100%;
}

/* セクション共通 */
.section {
  padding-block: var(--sec-y);
  color: var(--c-text);
}

/* セクションヘッダー */
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(20px, 4vw, 36px);
}

.section__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  font-weight: 700;
}

.section__title span {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin: 0.5rem;
  display: inline-block;
  position: relative;
  top: -2px;
}

/* ===================================================================
    Grid Card
   ================================================================== */

/* card01 */
.gridCard01 {
  display: grid;
  gap: clamp(16px, 3vw, 3rem);
}

@media (min-width: 900px) {
  .gridCard01 {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

/* 画像ブロック */
.gridCard01__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

/* 画像 */
.gridCard01__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* テキストブロック */
.gridCard01__headline {
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
  margin: 0 0 1em;
}

.gridCard01__text {
  margin: 0 0 2em;
}

/* card02 */
.gridCard02 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

@media (max-width: 900px) {
  .gridCard02 {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Card
   ========================= */
.gridCard02__item {
  position: relative;
  display: grid;
  /* ←カード内もgridで重ねる */
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  isolation: isolate;
  /* overlayの重なりを安全に */
}

/* 画像 */
.gridCard02__media {
  grid-area: 1 / 1;
  /* 1枚目に全部重ねる */
}

.gridCard02__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 600ms cubic-bezier(.2, .9, .2, 1);
}

/* オーバーレイ */
.gridCard02__overlay {
  grid-area: 1 / 1;
  background: rgba(0, 0, 0, .35);
  z-index: 1;
  transition: background 400ms ease;
}

/* タイトル＋矢印（上に乗せる） */
.gridCard02__content {
  grid-area: 1 / 1;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  /* タイトル｜アイコン */
  align-items: start;
  gap: 14px;
  padding: clamp(14px, 2vw, 22px);
}

/* タイトル（左上） */
.gridCard02__title {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* 丸アイコン（右上） */
.gridCard02__icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .85);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}

/* 矢印（2本重ねて、入れ替え） */
.gridCard02__arrow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 800ms cubic-bezier(.2, .9, .2, 1), opacity 420ms ease;
}

/* 右に抜ける矢印（通常表示） */
.gridCard02__arrow--out {
  transform: translateX(0);
  opacity: 1;
}

/* 左から入ってくる矢印（最初は待機） */
.gridCard02__arrow--in {
  transform: translateX(-140%);
  opacity: 0;
}

/* =========================
   Hover
   ========================= */
.gridCard02__item:hover .gridCard02__media img,
.gridCard02__item:focus-visible .gridCard02__media img {
  transform: scale(1.06);
}

.gridCard02__item:hover .gridCard02__overlay,
.gridCard02__item:focus-visible .gridCard02__overlay {
  background: rgba(0, 0, 0, .25);
}

/* 矢印：右へ抜けて消える＋左から現れる */
.gridCard02__item:hover .gridCard02__arrow--out,
.gridCard02__item:focus-visible .gridCard02__arrow--out {
  transform: translateX(140%);
  opacity: 0;
}

.gridCard02__item:hover .gridCard02__arrow--in,
.gridCard02__item:focus-visible .gridCard02__arrow--in {
  transform: translateX(0);
  opacity: 1;
}

/* キーボードフォーカス見やすく */
.gridCard02__item:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .85);
  outline-offset: 4px;
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {

  .gridCard02__media img,
  .gridCard02__overlay,
  .gridCard02__arrow {
    transition: none !important;
  }
}


/* ===================================================================
    Button（ボタン共通）
   ================================================================== */

.btn a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 230px;
  padding: 10px 0 10px 25px;
  font-family: "Noto Sans JP";
  line-height: 1.8;
  text-decoration: none;
  color: var(--c-text);
  transition: 0.3s ease-in-out;
  font-weight: 500;
}

.btn a::before,
.btn a::after {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
}

.btn a::before {
  width: 0.5rem;
  height: 0.5rem;
  left: 1.1rem;
  border-top: solid 2px #333;
  border-right: solid 2px #333;
  z-index: 2;
  transform: translateY(-50%) rotate(45deg);
  transition: all 0.3s;
}

.btn a::after {
  left: 0;
  background: #eeeeee;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 4rem;
  transform: translateY(-50%);
  transition: all 0.5s;
}

.btn a span {
  position: relative;
  transition: all 0.3s;
  z-index: 3;
}

.btn a:hover span {
  color: #ffffff;
}

.btn a:hover::before {
  left: 2.5rem;
  border-top: solid 2px #ffffff;
  border-right: solid 2px #ffffff;
}

.btn a:hover::after {
  right: 0;
  width: 100%;
  background: var(--c-main);
}


/* ===================================================================
   Image Mask（幕アニメ用・共通コンポーネント）
   ================================================================== */

/* 共通マスククラス：新規実装時はこちら推奨 */
.c-img-mask,
.img-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* 幕アニメーション本体 */
.c-img-mask::before,
.img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--mask-bg, #f7f7f7);
  transform: translateX(0);
  animation: img-mask-slide var(--mask-dur, 1.4s) cubic-bezier(0.4, 0, 0.2, 1) forwards paused;
}

/* 表示トリガー：IntersectionObserver などで .is-show を付与 */
.c-img-mask.is-show::before,
.img-wrap.is-show::before,
.gridCard01__media.is-visible .img-wrap::before {
  animation-play-state: running;
}

/* マスクアニメーション */
@keyframes img-mask-slide {
  100% {
    transform: translateX(100%);
  }
}


/* ===================================================================
   Site Loader
   ================================================================== */

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* 幕（下から上へ） */
.site-loader__panel {
  position: absolute;
  inset: 0;
  background: var(--c-gray);
  transform: translateY(0);
  will-change: transform;
}

/* 中央コンテンツ */
.site-loader__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #232323;
}

.site-loader__logo {
  font-weight: 700;
  letter-spacing: .12em;
  font-size: clamp(18px, 2vw, 24px);
}

.site-loader__bar {
  margin-top: 14px;
  width: min(260px, 70vw);
  height: 2px;
  background: rgba(0, 0, 0, .25);
  overflow: hidden;
}

.site-loader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: rgba(0, 0, 0, .95);
  transform: translateX(-120%);
  animation: loader-bar 1.2s ease-in-out infinite;
}

@keyframes loader-bar {
  0% {
    transform: translateX(-120%);
  }

  60% {
    transform: translateX(260%);
  }

  100% {
    transform: translateX(260%);
  }
}

/* 幕が下→上に開く */
.site-loader.is-open .site-loader__panel {
  transform: translateY(-110%);
  transition: transform 1800ms cubic-bezier(.2, .9, .2, 1);
}

/* フェードアウト */
.site-loader.is-open .site-loader__content {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.site-loader.is-hidden {
  display: none;
}

/* motion配慮 */
@media (prefers-reduced-motion: reduce) {
  .site-loader__bar span {
    animation: none;
  }

  .site-loader__panel,
  .site-loader__content {
    transition: none !important;
  }
}


/* ===================================================================
    Header（ヘッダー：透過タイプ＋スクロールで背景付与）
   ================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-top: 20px;
    overflow: visible;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        padding-top 0.3s ease;
}

.header--transparent {
    background: transparent;
    box-shadow: none;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: min(4vw, 24px);
    max-width: 1800px;
    margin-inline: auto;
    padding-inline: var(--padding-x);
    height: var(--header-h);
    box-sizing: border-box;
}

.header__logo {
    align-self: flex-start;
    flex-shrink: 0;
}

.header__logo img,
.header__logo svg {
    display: block;
    width: auto;
    height: clamp(50px, 7vw, 85px);
    max-height: none;
    transition: height 0.3s ease;
}

/* 右側エリア */
.header__right {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    margin-left: auto;
}

/* ナビ */
.header__nav-list {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 1.6vw, 1.6rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav-list>li>a {
    display: inline-block;
    position: relative;
    padding: 6px 4px;
    color: #fff;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header__nav-list>li>a:hover,
.header__nav-list>li>a:focus {
    color: var(--c-main);
}

.header__nav-list>li>a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.header__nav-list>li>a:hover::after,
.header__nav-list>li>a:focus::after {
    transform: translateX(-50%) scaleX(1);
}

/* 電話ボックス */
.header__tel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    padding: 10px clamp(18px, 2vw, 28px);
    background: var(--c-accent);
    color: #fff;
    text-align: center;
    border-radius: 4px;
    line-height: 1.2;
}

.header__tel-label {
    margin: 0 0 4px;
    font-size: 10px;
    line-height: 1.2;
}

.header__tel-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.header__tel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header__tel-icon svg {
    width: 1em;
    height: 1em;
    color: #fff;
    display: block;
}

/* PCではリンク版を非表示 */
.header__tel-number--sp {
    display: none;
}

/* スクロール後 */
body.scrolled .header {
    padding-top: 10px;
    background: var(--c-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.scrolled .header__logo img {
    height: clamp(40px, 4vw, 70px);
}

body.scrolled .header__nav-list>li>a {
    color: var(--c-text);
}

body.scrolled .header__nav-list>li>a:hover,
body.scrolled .header__nav-list>li>a:focus {
    color: var(--c-main);
}


/* =========================
   Simple Dropdown Menu
   ========================= */

.header__nav-list>li {
  position: relative;
}

.header__nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;

  position: absolute;
  top: calc(100% + 7px);
  left: 0;

  min-width: 220px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;

  z-index: 2000;
}

/* 親にホバー/フォーカスで表示（キーボードもOK） */
.header__nav-list>li.menu-item-has-children:hover>.sub-menu,
.header__nav-list>li.menu-item-has-children:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* 「親→子へ移動」で消えるのを防ぐ透明ブリッジ */
.header__nav-list>li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  background: transparent;
}

/* 子メニューのリンク */
.header__nav-list .sub-menu a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
}

/* ホバー */
.header__nav-list .sub-menu a:hover,
.header__nav-list .sub-menu a:focus-visible {
  background: rgba(0, 0, 0, .04);
  color: var(--c-main);
}

/* 親メニューに + を表示（任意） */
.header__nav-list>li.menu-item-has-children>a {
  padding-right: 18px;
}

.header__nav-list>li.menu-item-has-children>a::before {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: .65;
}


/* ===================================================================
   Hamburger Button（SP only）
   ================================================================== */

.header__toggle {
  display: none;
  /* PCでは表示しない */
  width: 42px;
  height: 26px;
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  z-index: 1100;
  /* ナビより前 */
}

.header__toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #333;
  border-radius: 3px;
  transition: 0.3s ease;
}

.header__toggle.is-open span {
  background: #232323;
}

.header__toggle span:nth-child(1) {
  top: 10%;
}

.header__toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.header__toggle span:nth-child(3) {
  bottom: 10%;
}

/* 開いたときの × アニメーション */
.header__toggle.is-open span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-open span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ===================================================================
   SP Navigation（スライドインメニュー）
   ================================================================== */

@media (max-width: 991px) {
  .header__toggle {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--c-gray);
    padding: 80px 24px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transition: right 0.35s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .header__nav-list>li>a {
    color: var(--c-text);
    font-size: 1.05rem;
    padding: 10px 0;
  }

  .header__inner {
    padding-block: 12px;
  }

  .header__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 900;
  }

  .header__overlay.is-show {
    display: block;
  }
}


/* ===================================================================
    Hero（トップページ：Splide版）
   ================================================================== */

.hero-wrap {
  padding: 110px 3% 0;
}

.hero {
  position: relative;
  width: 100%;
  height: 45vw;
  min-height: 600px;
  overflow: hidden;
}

/* Splide全体を背景として敷く */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ★重要：Splide内の高さを100%でつなぐ */
.hero__slider,
.hero__slider .splide__track,
.hero__slider .splide__list,
.hero__slider .splide__slide {
  height: 100%;
}

/* 画像をフルカバー */
.hero__slider .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*（フェード + ゆっくり拡大） */
.hero__slider .splide__slide img {
  transform: scale(1.05);
  transition: transform 6000ms linear;
  will-change: transform;
}

/* アクティブ時だけゆっくり拡大 */
.hero__slider .splide__slide.is-active img {
  transform: scale(1.12);
}

/* 暗幕（テキスト可読性） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none;
}

/* テキストオーバーレイ */
.hero__textBox {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-inline: min(6vw, 60px);
  color: #ffffff;
  text-align: center;
  pointer-events: none;
}

/* もし今後、Hero内にボタン/リンクを置くならここだけクリック復活 */
.hero__textBox a,
.hero__textBox button {
  pointer-events: auto;
}

.hero__title {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 700;
  margin: 0 0 0.3em;
}

.hero__text {
  font-size: clamp(16px, 2vw, 22px);
  margin: 0;
}

/* ★重要：SplideのUIは absolute 前提。relativeにしない */
.hero__slider .splide__arrows,
.hero__slider .splide__pagination {
  z-index: 4;
}

/* ドットを下に（Splide標準は absolute + bottom なのでそれを活かす） */
.hero__slider .splide__pagination {
  bottom: 16px;
}

/* モバイル調整 */
@media (max-width: 600px) {
  .hero {
    min-height: 520px;
  }

  .hero__textBox {
    padding-inline: 16px;
  }
}

/* motion配慮 */
@media (prefers-reduced-motion: reduce) {
  .hero__slider .splide__slide img {
    transform: none;
  }
}


/* ===================================================================
   Hero（下層ページ）
=================================================================== */

.hero-page {
  position: relative;
  width: 100%;
  min-height: clamp(220px, 40vh, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 文字読みやすくする薄い黒 */
.hero-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-page__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(60px, 12vh, 120px) 20px;
}

.hero-page__title {
  color: #fff;
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
}


/* ===================================================================
    News list（共通：News / Search / 404 recent で使用）
   ================================================================== */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.news-list__item {
  display: flex;
  align-items: baseline;
  gap: 25px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  padding: 20px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.news-list__date {
  flex: 0 0 auto;
  font-size: 14px;
  opacity: 0.8;
}

.news-list__link {
  flex: 1;
  text-decoration: none;
  color: inherit;
  line-height: 1.6;
  display: inline-block;
}

/* ホバー時にアニメーションを発火 */
.news-list__link:hover,
.news-list__link:focus {
  color: var(--c-sub);
  animation: jump-soft 0.45s ease-out;
}

@keyframes jump-soft {
  0% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-3px);
  }

  100% {
    transform: translateY(0);
  }
}


/* ===================================================================
    Section - About（トップ：About セクション）
   ================================================================== */

.p-frontAbout {
  background-color: var(--c-white);
}


/* ===================================================================
   Company（page-company.php）
   ================================================================== */

.p-cmpany__hero {
  background-image: url('../images/contact/contact-hero.jpg');
}

.p-company__lead {
  opacity: .9;
}

.p-company__subTitle {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  margin: 0 0 24px;
}

.p-company__card {}

/* ===== Company Table (dl) ===== */
.p-companyTable {
  margin: 0;
}

.p-companyTable__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.p-companyTable__row:last-child {
  border-bottom: none;
}

.p-companyTable__th {
  margin: 0;
  font-weight: 700;
  color: rgba(0, 0, 0, .7);
}

.p-companyTable__td {
  margin: 0;
}

@media (max-width: 700px) {
  .p-companyTable__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* list */
.p-companyList {
  margin: 0;
  padding-left: 1.2em;
}

/* ===== History ===== */
.p-company__history {
  background-color: var(--c-white);
}

.p-companyHistory {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-companyHistory__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.p-companyHistory__item:last-child {
  border-bottom: none;
}

.p-companyHistory__date {
  font-size: 14px;
  opacity: .8;
}

.p-companyHistory__body {
  margin: 0;
}

@media (max-width: 700px) {
  .p-companyHistory__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ===== Access ===== */
.p-companyAccess {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .p-companyAccess {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.p-companyAccess__name {
  font-weight: 800;
  margin: 0 0 8px;
}

.p-companyAccess__addr,
.p-companyAccess__tel,
.p-companyAccess__note {
  margin: 0 0 6px;
}

.p-companyMap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-gray);
  aspect-ratio: 16 / 10;
}

.p-companyMap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* ===================================================================
   Contact Form（hinagata style）
   ================================================================== */

.p-contact__hero {
  background-image: url('../images/contact/contact-hero.jpg');
}

.p-contact .c-form {
  width: 100%;
}

.p-contactIntro {
  margin-bottom: 40px;
}

/* 上テキスト */
.p-contactIntro__text p {
  margin: 0 0 1.2em;
}

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

/* 電話ボックス */
.p-contactIntro__telBox {
  margin: 30px 0;
  background: #0f7c45;
  color: #fff;
  text-align: center;
  padding: 32px 20px;
}

.p-contactIntro__telLead {
  font-size: 1.1rem;
  margin: 0;
  opacity: .95;
}

.p-contactIntro__telNumber {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: .05em;
}

.p-contactIntro__telLabel {
  font-size: 0.6em;
  font-weight: 600;
  margin-right: .3em;
}

.p-contactIntro__telNumber a {
  color: #fff;
  text-decoration: none;
}

/* PCではtelリンク無効 */
@media (min-width: 769px) {
  .p-contactIntro__telNumber a {
    pointer-events: none;
    cursor: default;
  }
}

.p-contactIntro__telNumber a:hover {
  opacity: .9;
}

/* 受付時間 */
.p-contactIntro__telTime {
  font-size: 1rem;
  margin: 0;
  opacity: .9;
}

/* 下テキスト */
.p-contactIntro__note {
  margin-top: clamp(20px, 4vw, 30px);
}

/* CF7が勝手に入れる <br> は、このページ内だけ無効化 */
.p-contact .wpcf7 br {
  display: none !important;
}

/* ===== グリッド（入力エリア） ===== */
.p-contact .c-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  background: var(--c-gray);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: clamp(16px, 2.2vw, 28px);
}

@media (min-width: 860px) {
  .p-contact .c-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
  }
}

.p-contact .c-form__group {
  margin: 0;
}

.p-contact .c-form__group--full {
  grid-column: 1 / -1;
}

/* 郵便番号：PCだけ左カラム固定 */
@media (min-width: 860px) {
  .p-contact .c-form__group--col1 {
    grid-column: 1 / 2;
  }
}

/* ===== ラベル ===== */
.p-contact .c-form__label {
  display: block;
  font-weight: 700;
  margin: 0 0 .35rem;
}

.p-contact .c-form__subLabel {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 .35rem;
  opacity: .7;
}

/* 必須 */
.p-contact .c-form__label.is-required::after,
.p-contact .c-form__label.is-required::after,
.p-contact .c-form__label.is-required::after {
  content: "必須";
  display: inline-block;
  margin-left: .6em;
  margin-bottom: 2.5px;
  padding: .18em .55em;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #e53935;
  border-radius: 6px;
  vertical-align: middle;
}

/* 「pタグ label」用（上でpにclass付けてる想定） */
.p-contact .c-form__label.is-required::after,
.p-contact .c-form__label.is-required::after {
  /* そのまま */
}

/* ===== 入力 ===== */
.p-contact .c-form__control,
.p-contact .c-form__group select {
  width: 100%;
  box-sizing: border-box;
  padding: 7px 14px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--c-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.p-contact .c-form__control:focus,
.p-contact .c-form__group select:focus {
  outline: none;
  border-color: rgba(14, 119, 225, .55);
  /* --c-sub */
  box-shadow: 0 0 0 4px rgba(14, 119, 225, .12);
}

.p-contact textarea.c-form__control {
  min-height: 190px;
  resize: vertical;
}

/* ===== 横並び（姓/名、メール2つ、TEL/FAX） ===== */
.p-contact .c-form__pair {
  display: flex;
  gap: 20px;
}

.p-contact .c-form__item {
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 768px) {
  .p-contact .c-form__pair {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== プライバシー枠 ===== */
.p-contact .c-privacyBox {
  margin: 18px 0;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: var(--c-white);
  height: 260px;
  overflow: auto;
}

.p-contact .c-privacyBox__inner {
  padding: 14px 16px;
}

.p-contact .c-privacyBox__title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}

.p-contact .c-privacyBox__item {
  margin-bottom: 28px;
}

.p-contact .c-privacyBox__item:last-child {
  margin-bottom: 0;
}

.p-contact .c-privacyBox__list {
  list-style: disc;
  padding-left: 1.4em;
  margin: 10px 0 0;
}

.p-contact .c-privacyBox__company p {
  margin: 0 0 4px;
}

.p-contact .c-privacyBox__company p:last-child {
  margin-bottom: 0;
}

.p-contact .c-privacyBox ul,
.p-contact .c-privacyBox ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

/* ===== 同意 ===== */
.p-contact .c-form__agree {
  margin-top: 10px;
}

/* ===== 送信ボタン（CF7 submit をhinagata寄せ） ===== */
.p-contact .c-form__actions {
  margin-top: 14px;
  text-align: center;
}

/* CF7はsubmitを input/ button で出すことがあるので両対応 */
.p-contact .c-btn.c-btn--submit,
.p-contact .wpcf7 input.c-btn.c-btn--submit {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  background: var(--c-main);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, opacity .2s ease;
  min-width: 200px;
}

.p-contact .c-btn.c-btn--submit:hover,
.p-contact .wpcf7 input.c-btn.c-btn--submit:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* ===== CF7 メッセージ ===== */
.p-contact .wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.p-contact .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #22c55e;
  background: #ecfdf5;
  color: #14532d;
}

.p-contact .wpcf7 form.invalid .wpcf7-response-output,
.p-contact .wpcf7 form.aborted .wpcf7-response-output {
  border: 1px solid #ef4444;
  background: #fef2f2;
  color: #7f1d1d;
}

.p-contact .wpcf7-not-valid-tip {
  margin-top: .35rem;
  font-size: .9rem;
  color: #b91c1c;
}


/* ===================================================================
   Footer
   ================================================================== */

.footer {
  background-color: var(--c-footer);
  color: var(--c-white);
  padding: 85px 0 24px;
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: 60px;
}

/* 左カラム：ロゴ＋住所 */
.footer__col--info {
  flex: 0 0 25%;
}

.footer__logo img {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.footer__siteName {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer__address p {
  margin: 0 0 4px;
}

/* 右カラム：ナビ */
.footer__col--nav {
  flex: 1;
}

.footer__nav {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

/* グループごと（メニュー1つ分） */
.footer__group {
  flex: 1;
}

/* メニューリスト（第1階層） */
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.footer__list>li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer__list>li>a {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 8px 0;
  color: var(--c-white);
  font-size: 0.9rem;
}

/* 行頭の「›」（第1階層） */
.footer__list>li>a::before {
  content: "›";
  display: inline-block;
  font-size: 0.9em;
}

/* hover */
.footer__list a:hover {
  opacity: 0.8;
}

/* 第2階層 UL */
.footer__list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1em;
  border-top: none;
}

/* 第2階層 LI：線は消す */
.footer__list .sub-menu li {
  border-bottom: none;
}

/* 第2階層リンク */
.footer__list .sub-menu a {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 6px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* 第2階層の「›」マーク */
.footer__list .sub-menu a::before {
  content: "›";
  display: inline-block;
  font-size: 0.8em;
  opacity: 0.7;
}

/* コピーライト */
.footer__copy {
  display: block;
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* SP / タブレット対応 */
@media (max-width: 991px) {
  .footer__inner {
    flex-direction: column;
  }

  .footer__col--info {
    flex: 1 1 auto;
  }

  .footer__nav {
    flex-direction: column;
    gap: 24px;
  }

  .footer__group {
    flex: 1 1 auto;
  }
}

@media (max-width: 599px) {
  .footer {
    padding: 32px 0 18px;
  }

  .footer__logo img {
    max-width: 180px;
  }
}


/* ===================================================================
   Error / Search / Index (ページ固有の最低限)
   ================================================================== */

.p-search__count {
  opacity: .8;
  margin: 0 0 12px;
}

.p-search__pagination {
  margin-top: 22px;
}

.p-404__actions {
  margin-top: 28px;
}

.p-404__recent {
  margin-top: clamp(24px, 5vw, 40px);
}

.p-index__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 0.6em;
}

.p-index__content {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 34px);
}

.p-index__pagination {
  margin-top: 22px;
}