/* ==========================================================
   TOMOKURA  サイト全体のスタイル
   ========================================================== */

:root {
  --gold: #e2ba6a;
  --gold-light: #f4e9cf;
  --red: #990000;
  --ink: #1d1b18;
  --bg-dark: #0a0a0c;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Cormorant Garamond", "Noto Serif JP", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 6.5rem;           /* スクロール前のヘッダー高さ */
	--font-size42:clamp(1.45rem, 4.2vw, 2.6rem);
}

html { scroll-padding-top: 70px; }   /* アンカーリンク移動時に固定ヘッダーで隠れないように */

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

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

body {
  margin: 0;
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.tmk-is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.center{text-align:center;}

/* ==========================================================
   ヘッダー
   ========================================================== */
.tmk-header {
  position: fixed;                     /* ページに固定 */
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  padding: 0 4vw;
  transition: height .5s var(--ease);
}

/* 背景は疑似要素で重ね、opacityで滑らかに切り替える
   （※ header自体に backdrop-filter / transform を付けると、スマホメニュー(position:fixed)が崩れるため付けない） */
.tmk-header::before,
.tmk-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
/* 通常時：MV上に薄い暗幕 */
.tmk-header::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 100%);
}
/* スクロール後：濃い背景 + 下に細いゴールドのライン */
.tmk-header::after {
  background: rgba(8, 8, 12, .92);
  border-bottom: 1px solid rgba(226, 186, 106, .28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
}

/* ---- スクロール時：高さ70pxに縮小 ---- */
.tmk-header.tmk-is-scrolled { height: 70px; }
.tmk-header.tmk-is-scrolled::before { opacity: 0; }
.tmk-header.tmk-is-scrolled::after { opacity: 1; }

/* ロゴ（テキスト版） */
.tmk-logo {
  position: relative;
  z-index: 120;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-family: var(--font-serif);
  transform-origin: left center;
  transition: transform .5s var(--ease);
}
.tmk-header.tmk-is-scrolled .tmk-logo { transform: scale(.68); }
.tmk-logo img { display: block; width: clamp(10rem, 22vw, 17rem); }
.tmk-logo__copy {
  padding-left: 3.6rem;
  font-size: clamp(.8rem, 1.5vw, 1.15rem);
  letter-spacing: .12em;
  color: var(--gold-light);
}
.tmk-logo__name {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .12em;
  color: var(--gold-light);
}

/* ---------- グローバルナビ ---------- */
.tmk-gnav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}
.tmk-gnav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.8rem);
}

.tmk-gnav__link {
  position: relative;
  display: inline-block;
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(.8rem, 1.1vw, .95rem);
  letter-spacing: .1em;
  line-height: 1.5;
  color: var(--gold-light);
  white-space: nowrap;
  transition: font-size .5s var(--ease);
}
.tmk-header.tmk-is-scrolled .tmk-gnav__link { font-size: clamp(.75rem, 1vw, .86rem); }

/* hover時：テキストの0.5rem下に、右から左へ下線がふわっと現れる
   （左端を起点に scaleX で右へ伸ばす。外すときは右端へ縮む） */
.tmk-gnav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.5rem;
  border-bottom: 1px solid #e2ba6a;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.tmk-gnav__link:hover::after,
.tmk-gnav__link:focus-visible::after,
.tmk-gnav__link.tmk-is-current::after {
  opacity: 1;
  transform: scaleX(1);
}
.tmk-gnav__link:focus-visible { outline: none; }

/* ---------- お問い合わせボタン ---------- */
.tmk-btn-contact {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 11rem;
  padding: 1.1rem 2rem;
  border: 1px solid var(--gold);
  background-color: #990000;          /* hover時に現れる背景色 */
  color: #2a1f0a;
  font-family: var(--font-serif);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  transition: color .4s var(--ease), border-color .4s var(--ease),
              padding .5s var(--ease), min-width .5s var(--ease), font-size .5s var(--ease);
}
.tmk-header.tmk-is-scrolled .tmk-btn-contact {
  min-width: 9.5rem;
  padding: .75rem 1.5rem;
  font-size: .85rem;
}
/* 通常時のゴールド背景（グラデーションは直接transitionできないため、opacityで切り替え） */
.tmk-btn-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #e8cc85 0%, #c39a47 50%, #ecd391 100%);
  transition: opacity .4s var(--ease);
}
.tmk-btn-contact:hover,
.tmk-btn-contact:focus-visible {
  background-color: #990000;
  color: #fff;
  border-color: #990000;
  outline: none;
}
.tmk-btn-contact:hover::before,
.tmk-btn-contact:focus-visible::before { opacity: 0; }

/* ---------- ハンバーガー（タブレット・スマホ） ---------- */
.tmk-menu-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(226, 186, 106, .6);
  background: rgba(0, 0, 0, .35);
  cursor: pointer;
}
.tmk-menu-toggle span {
  position: absolute;
  left: 50%;
  width: 1.3rem;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: transform .4s var(--ease), opacity .3s;
}
.tmk-menu-toggle span:nth-child(1) { top: calc(50% - .4rem); }
.tmk-menu-toggle span:nth-child(2) { top: 50%; }
.tmk-menu-toggle span:nth-child(3) { top: calc(50% + .4rem); }
.tmk-menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: translateX(-50%) rotate(45deg); }
.tmk-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tmk-menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 50%; transform: translateX(-50%) rotate(-45deg); }

/* ==========================================================
   メインビジュアル
   ========================================================== */
.tmk-mv {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(36rem, 92svh, 58rem);
  padding: 9rem 6vw 6rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 65%),
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55) 100%),
    url("../images/mv_pc.webp") center / cover no-repeat,
    linear-gradient(180deg, #0a1226 0%, #16213f 45%, #2a2217 75%, #0b0a09 100%);
}

@media (max-width: 600px) {
	.tmk-mv {background:url("../images/mv_sp.webp") center / cover no-repeat;}
}

.tmk-mv__inner { position: relative; z-index: 1; max-width: 60rem; }

.tmk-mv__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8.2vw, 6.4rem);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.25;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.tmk-mv__title-small { font-size: .78em; }

.tmk-mv__lead {
  margin-top: clamp(1rem, 2.4vw, 2rem);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.7vw, 2.1rem);
  letter-spacing: .1em;
  line-height: 1.75;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.tmk-mv__en {
  margin-top: clamp(1.5rem, 3.5vw, 3rem);
  font-family: var(--font-en);
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  font-weight: 500;
  letter-spacing: .22em;
  line-height: 1.5;
  color: var(--gold);
}

/* MVのテキスト：透明 → 左から右へ滑らかに表示（読み込み時に自動再生） */
.tmk-mv-anim {
  opacity: 0;
  clip-path: inset(-10% 100% -10% -2%);
  animation: mvReveal 1.6s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes mvReveal {
  0%   { opacity: 0; clip-path: inset(-10% 100% -10% -2%); }
  25%  { opacity: 1; }
  100% { opacity: 1; clip-path: inset(-10% -4% -10% -2%); }
}

/* ==========================================================
   事業内容（5分割）
   ========================================================== */
.tmk-services { background: #000; }

.tmk-services__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.tmk-service { position: relative; overflow: hidden; background: #000; }

.tmk-service__link {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(19rem, 26vw, 23rem);
}

.tmk-service__bg {
  position: absolute;
  inset: 0;
  background-image: var(--img), var(--fallback);
  background-position: center;
  background-size: cover;
  transition: transform 1.2s var(--ease);
}
.tmk-service__link::before {            /* 文字を読みやすくする暗いグラデーション */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .78) 72%, rgba(0, 0, 0, .94) 100%);
}
.tmk-service__link:hover .tmk-service__bg { transform: scale(1.06); }

.tmk-service__body {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.5rem 1.25rem 1.75rem;
}
.tmk-service__title {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
}
.tmk-service__text {
  margin-top: .6rem;
  font-size: clamp(.78rem, 1.05vw, .88rem);
  letter-spacing: .06em;
  line-height: 1.8;
  color: rgba(255, 255, 255, .82);
}

/* 画像（images フォルダ内。無い場合は代替グラデーション） */
.tmk-service--ev {
  --img: url("../images/thum_ev.jpg");
  --fallback: linear-gradient(160deg, #8dbbdc 0%, #3b5f7c 100%);
}
.tmk-service--lock {
  --img: url("../images/thum_smartrock.jpg");
  --fallback: linear-gradient(160deg, #9a9791 0%, #3a3835 100%);
}
.tmk-service--solar {
  --img: url("../images/thum_solar.jpg");
  --fallback: linear-gradient(160deg, #2a52a8 0%, #0a1a45 100%);
}
.tmk-service--material {
  --img: url("../images/thum_material.jpg");
  --fallback: linear-gradient(160deg, #8a6a40 0%, #2c2013 100%);
}
.tmk-service--construction {
  --img: url("../images/thum_const.jpg");
  --fallback: linear-gradient(160deg, #b4bcc2 0%, #4a5258 100%);
}

/* ==========================================================
   コンセプト
   ========================================================== */
.tmk-concept {
	position: relative;
	padding: clamp(5rem, 9vw, 7.5rem) 1.5rem clamp(10rem, 18vw, 14rem);
	text-align: center;
	color: var(--ink);
	background:
	linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 16%),
	linear-gradient(0deg, rgba(8, 8, 10, .75) 0%, rgba(8, 8, 10, 0) 35%),
	url("../images/bg_concept.webp") center bottom / cover no-repeat,
	linear-gradient(180deg, #0a0a0a 0%, #8a6a3a 9%, #f1d9a6 24%, #e7b873 46%, #6b4a30 76%, #0a0a0c 100%);
}

@media (max-width: 600px) {
	.tmk-concept {
	background-image: url("../images/bg_concept_sp.webp") center center;
	}
}

.tmk-concept__inner { max-width: 60rem; margin: 0 auto; }

.tmk-concept__en {
  font-family: var(--font-en);
  font-size: clamp(.95rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .24em;
  color: #6b5320;
}
.tmk-concept__title {
  margin-top: .9rem;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 4.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  color: #1a1816;
}
.tmk-concept__text {
  margin-top: 1.5rem;
  font-size: clamp(.82rem, 1.7vw, 1rem);
  letter-spacing: .08em;
  line-height: 2;
  color: #2e2820;
}
.tmk-concept__action { margin-top: clamp(3rem, 7vw, 5.5rem); }

/* 「TOMOKURAについて」ボタン */
.tmk-btn-about {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, 28rem);
  padding: 1.3rem 2.2rem;
  border: 1px solid var(--gold);
  background: rgba(10, 8, 5, .88);
  color: var(--gold-light);
  font-family: var(--font-serif);
  letter-spacing: .1em;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.tmk-btn-about__arrow {
  position: relative;
  flex-shrink: 0;
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.tmk-btn-about__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -.28rem;
  width: .55rem;
  height: .55rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}
.tmk-btn-about:hover,
.tmk-btn-about:focus-visible {
  background: var(--gold);
  color: #1a1408;
  outline: none;
}
.tmk-btn-about:hover .tmk-btn-about__arrow,
.tmk-btn-about:focus-visible .tmk-btn-about__arrow { transform: translateX(.4rem); }

/* ==========================================================
   スクロール時の表示アニメーション
   （JSが有効な場合のみ非表示→表示。script.tmk-js が .tmk-is-visible を付与）
   ========================================================== */
.tmk-js .tmk-reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.tmk-js .tmk-reveal.tmk-is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   レスポンシブ
   ========================================================== */

/* ---- タブレット：ハンバーガーメニュー + 事業内容を3+2列に ---- */
@media (max-width: 1024px) {
  :root { --header-h: 5rem; }
  .tmk-header { padding: 0 5vw; }
  .tmk-menu-toggle { display: block; }

  .tmk-gnav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 6rem 2rem 3rem;
    background: rgba(8, 8, 12, .96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .tmk-gnav.tmk-is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .tmk-gnav__list {
    flex-direction: column;
    gap: 1.8rem;
    text-align: center;
  }
  .tmk-gnav__link { font-size: 1.1rem; }
  .tmk-btn-contact,
  .tmk-header.tmk-is-scrolled .tmk-btn-contact { min-width: 14rem; padding: 1.1rem 2rem; font-size: .95rem; }
  .tmk-header.tmk-is-scrolled .tmk-gnav__link { font-size: 1.1rem; }   /* メニュー展開時は縮小しない */

  .tmk-services__list { grid-template-columns: repeat(6, 1fr); }
  .tmk-service { grid-column: span 2; }
  .tmk-service:nth-child(n+4) { grid-column: span 3; }
  .tmk-service__link { min-height: 22rem; }
}

/* ---- スマホ ---- */
@media (max-width: 600px) {
  .tmk-mv {
    min-height: 34rem;
    padding: 8rem 6vw 4rem;
  }

  .tmk-services__list { grid-template-columns: repeat(2, 1fr); }
  .tmk-service,
  /*.tmk-service:nth-child(n+4) { grid-column: auto; }*/
  .tmk-service:last-child { grid-column: span 2; }
  .tmk-service__link { min-height: 15rem; }
  .tmk-service:last-child .tmk-service__link { min-height: 13rem; }
  .tmk-service__body { padding: 1rem .9rem 1.2rem; }

  /* スマホでは改行位置をテキストの流れに任せる */
  .tmk-concept__text br { display: none; }
}

/* ---- 動きを減らす設定のユーザー向け ---- */
@media (prefers-reduced-motion: reduce) {
  .tmk-mv-anim { animation: none; opacity: 1; clip-path: none; }
  .tmk-js .tmk-reveal { opacity: 1; transform: none; transition: none; }
  .tmk-service__bg, .tmk-gnav__link::after { transition: none; }
}

/* ---------- WordPress管理バー表示中（ログイン時） ---------- */
.admin-bar .tmk-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .tmk-header { top: 46px; }
}

/* ==========================================================
   共通：コンテナ・見出し
   ========================================================== */
[hidden] { display: none !important; }

.tmk-container { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.tmk-container--narrow { width: min(100% - 3rem, 52rem); }

.tmk-section-en {
  font-family: var(--font-en);
  font-size: clamp(.95rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: .28em;
  color: var(--gold);
  text-align: center;
}
.tmk-section-title {
  margin-top: .4rem;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: center;
}
.tmk-block-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .26em;
  color: var(--gold);
}
.tmk-block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(226, 186, 106, .3);
}
.tmk-empty {
  margin-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}

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

/* ==========================================================
   カード一覧（施工実績・ブログ共通）
   ========================================================== */
.tmk-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 3.5vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.tmk-card__link { display: block; color: inherit; }

.tmk-card__thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(160deg, #2a2217 0%, #0b0a09 100%);
  border: 1px solid rgba(226, 186, 106, .25);
}
.tmk-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tmk-card__link:hover .tmk-card__thumb img { transform: scale(1.06); }

.tmk-card__noimage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: .32em;
  color: rgba(226, 186, 106, .5);
}

.tmk-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: .25rem .9rem;
  background: var(--gold);
  color: #1a1408;
  font-family: var(--font-en);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.6;
}

.tmk-card__title {
  margin: 1rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.6;
  transition: color .4s var(--ease);
}
.tmk-card__link:hover .tmk-card__title { color: var(--gold); }

.tmk-card__loc {
  margin: .5rem 0 0;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--crumb-gray);;
}
.tmk-card__loc-label {
  display: inline-block;
  margin-right: .7rem;
  padding: 0 .6rem;
	background-color: var(--gold);
	color: #fff;
  font-size: .72rem;
  letter-spacing: .1em;
}
.tmk-card__date {
  display: block;
  margin-top: .9rem;
  font-family: var(--font-en);
  font-size: .95rem;
  letter-spacing: .14em;
  color: var(--gold);
}
.tmk-card__date + .tmk-card__title { margin-top: .3rem; }
.tmk-card__excerpt {
  margin: .6rem 0 0;
  font-size: .85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, .7);
}

/* ==========================================================
   トップページ：施工実績
   ========================================================== */
.tmk-works {
	padding: clamp(4.5rem, 9vw, 7.5rem) 0;
	background: #fff;
	color:#000;
}
.tmk-works__inner { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.tmk-works__action { margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }


/* ==========================================================
   下層ページ共通
   ========================================================== */
.tmk-sub {
  min-height: 60vh;
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  background: linear-gradient(180deg, #17120c 0, var(--bg-dark) 24rem);
}
.tmk-sub-head {
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 1.5rem clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.tmk-sub-title {
  margin: .4rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 4.6vw, 2.8rem);
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.6;
}
.tmk-sub-lead {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .75);
  letter-spacing: .06em;
}

/* ---------- ピックアップ ---------- */
.tmk-pickup { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.tmk-pickup .tmk-card-grid { margin-top: 1.5rem; }

/* ---------- タブ（すべて／タグ別） ---------- */
.tmk-tabs__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(226, 186, 106, .3);
}
.tmk-tabs__link {
  position: relative;
  display: block;
  padding: .9rem .2rem 1rem;
  font-family: var(--font-serif);
  font-size: clamp(.85rem, 1.5vw, 1rem);
  letter-spacing: .08em;
  line-height: 1.5;
  white-space: nowrap;
  color: rgba(244, 233, 207, .65);
  transition: color .4s var(--ease);
}
.tmk-tabs__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  border-bottom: 1px solid var(--gold);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;     /* 左端を起点に、右へ伸びる */
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tmk-tabs__link:hover,
.tmk-tabs__link:focus-visible,
.tmk-tabs__link.tmk-is-active { color: var(--gold-light); outline: none; }
.tmk-tabs__link:hover::after,
.tmk-tabs__link:focus-visible::after,
.tmk-tabs__link.tmk-is-active::after { opacity: 1; transform: scaleX(1); }

/* ---------- 詳細ページ（施工実績・ブログ共通） ---------- */
.tmk-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.4rem;
}
.tmk-tags a {
  display: block;
  padding: .15rem 1rem;
  border: 1px solid rgba(226, 186, 106, .6);
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .1em;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.tmk-tags a:hover,
.tmk-tags a:focus-visible { background: var(--gold); color: #1a1408; outline: none; }

.tmk-article__meta {
  margin-top: 1rem;
  font-family: var(--font-en);
  letter-spacing: .14em;
  color: var(--gold);
}
.tmk-article__cats { margin-left: 1rem; font-family: var(--font-sans); font-size: .85rem; letter-spacing: .06em; }
.tmk-article__cats a { color: rgba(255, 255, 255, .8); }

.tmk-article__thumb {
  margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid rgba(226, 186, 106, .25);
}
.tmk-article__thumb img { display: block; width: 100%; height: auto; }

.tmk-article__back { margin-top: clamp(3rem, 7vw, 5rem); text-align: center; }

/* 本文（ブロックエディタで入力した内容） */
.tmk-entry {
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  line-height: 2;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
}
.tmk-entry > * + * { margin-top: 1.4em; }
.tmk-entry h2,
.tmk-entry h3,
.tmk-entry h4 { font-family: var(--font-serif); font-weight: 500; letter-spacing: .08em; line-height: 1.6; margin: 2.2em 0 0; }
.tmk-entry h2 { padding-left: 1rem; border-left: 3px solid var(--gold); font-size: 1.4em; }
.tmk-entry h3 { font-size: 1.2em; color: var(--gold-light); }
.tmk-entry a:not(.tmk-btn-about){ color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.tmk-entry ul { list-style: disc; padding-left: 1.5em; }
.tmk-entry ol { list-style: decimal; padding-left: 1.5em; }
.tmk-entry img { height: auto; }
.tmk-entry figure { margin-left: 0; margin-right: 0; }
.tmk-entry figcaption { margin-top: .5em; font-size: .85em; color: rgba(255, 255, 255, .6); }
.tmk-entry blockquote { margin-left: 0; padding: .2em 0 .2em 1.2em; border-left: 2px solid rgba(226, 186, 106, .6); color: rgba(255, 255, 255, .8); }

/* ---------- 施工概要テーブル ---------- */
.tmk-spec { margin-top: clamp(2.5rem, 6vw, 4rem); }
.tmk-spec__title {
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.5;
}
.tmk-spec__table {
  width: 100%;
  margin-top: 1.2rem;
  border-collapse: collapse;
  border-top: 1px solid rgba(226, 186, 106, .45);
}
.tmk-spec__table th,
.tmk-spec__table td {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(226, 186, 106, .3);
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}
.tmk-spec__table th {
  width: 9.5rem;
  background: rgba(226, 186, 106, .07);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .1em;
  white-space: nowrap;
}
.tmk-spec__table td { color: rgba(255, 255, 255, .9); }

/* ---------- 前後の記事 ---------- */
.tmk-postnav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 186, 106, .3);
  font-size: .9rem;
}
.tmk-postnav a { color: var(--gold-light); transition: color .4s var(--ease); }
.tmk-postnav a:hover { color: var(--gold); }
.tmk-postnav__next { text-align: right; }

/* ---------- ページ送り ---------- */
.tmk-pagination { margin-top: clamp(2.5rem, 6vw, 4rem); }
.tmk-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.tmk-pagination .page-numbers {
  min-width: 2.6rem;
  padding: .45rem .8rem;
  border: 1px solid rgba(226, 186, 106, .4);
  color: var(--gold-light);
  text-align: center;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.tmk-pagination a.page-numbers:hover { background: rgba(226, 186, 106, .18); }
.tmk-pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: #1a1408; }

/* ==========================================================
   フッター
   ========================================================== */
.tmk-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem 2rem;
  border-top: 1px solid rgba(226, 186, 106, .25);
  background: #050506;
  text-align: center;
}
.tmk-footer img{
	width:300px;
}
/*.tmk-footer__logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: .14em;
  color: var(--gold-light);
}*/
.tmk-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2rem;
  margin-top: 1.4rem;
}
.tmk-footer__nav a {
  font-size: .9rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .8);
  transition: color .4s var(--ease);
}
.tmk-footer__nav a:hover { color: var(--gold); }
.tmk-footer__copy {
  display: block;
  margin-top: 2rem;
  font-size: .75rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
}

/* ==========================================================
   レスポンシブ（追加分）
   ========================================================== */
@media (max-width: 1024px) {
  .tmk-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .tmk-card-grid { grid-template-columns: 1fr; }

  /* タブは横スクロール */
  .tmk-tabs__list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* テーブルは項目名と内容を縦に並べる */
  .tmk-spec__table th,
  .tmk-spec__table td { display: block; width: 100%; }
  .tmk-spec__table th { padding: .8rem 1rem .3rem; border-bottom: 0; white-space: normal; }
  .tmk-spec__table td { padding: .3rem 1rem 1rem; }

  .tmk-postnav { flex-direction: column; }
  .tmk-postnav__next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .tmk-card__thumb img,
  .tmk-tabs__link::after { transition: none; }
}

/* ==========================================================
   トップページ：施工実績の2ブロック（PICK UP / LATEST WORKS）
   ========================================================== */
.tmk-works__block { margin-top: clamp(3rem, 7vw, 5rem); }
.tmk-works__block .tmk-card-grid { margin-top: 1.5rem; }

/* PICK UP バッジ：#990000 の赤＋白文字（暗い背景でも白い背景でも視認できる） */
.tmk-badge { background: var(--red); color: #fff; }

/* ==========================================================
   下層ページ（main.tmk-sub）：背景を白に変更
   配色：文字=黒 / 見出し・線=gold / 強調・hover=#990000
   ※ 白背景でも読めるよう、文字用のgoldは濃いめ(--gold-deep)を使用
   ========================================================== */
:root {
  --gold-deep: #8a6a1f;   /* 白背景上の gold 文字（コントラスト比 約5:1） */
  --line-gold: #dcc58d;   /* 白背景上の薄い gold 罫線 */
  --text-main: #1a1a1a;
  --text-sub: #555;
}

/* 白背景では、ヘッダーを常に濃色の帯にする（トップページ以外） */
body:not(.home) .tmk-header::before { opacity: 0; }
body:not(.home) .tmk-header::after { opacity: 1; }

.tmk-sub {
  background: #fff;
  color: var(--text-main);
}

/* ---- 見出し ---- */
.tmk-sub .tmk-section-en { color: var(--gold-deep); }
.tmk-sub .tmk-sub-title { color: #111; }
.tmk-sub .tmk-sub-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin: 1.1rem auto 0;
  background: var(--gold);
}
.tmk-sub .tmk-sub-lead { color: var(--text-sub); }
.tmk-sub .tmk-block-title { color: var(--gold-deep); }
.tmk-sub .tmk-block-title::after { background: var(--line-gold); }
.tmk-sub .tmk-empty { color: var(--text-sub); }

/* ---- カード ---- */
.tmk-sub .tmk-card__thumb { border-color: var(--line-gold); }
.tmk-sub .tmk-card__title { color: #111; }
.tmk-sub .tmk-card__link:hover .tmk-card__title,
.tmk-sub .tmk-card__link:focus-visible .tmk-card__title { color: var(--red); }
.tmk-sub .tmk-card__link:focus-visible { outline: none; }
.tmk-sub .tmk-card__loc { color: #444; }
.tmk-sub .tmk-card__loc-label { background-color: var(--gold); color: #fff; }
.tmk-sub .tmk-card__date { color: var(--gold-deep); }
.tmk-sub .tmk-card__excerpt { color: var(--text-sub); }

/* ---- タブ ---- */
.tmk-sub .tmk-tabs__list { border-bottom-color: var(--line-gold); }
.tmk-sub .tmk-tabs__link { color: var(--text-sub); }
.tmk-sub .tmk-tabs__link::after { border-bottom: 2px solid var(--red); bottom: -1px; }
.tmk-sub .tmk-tabs__link:hover,
.tmk-sub .tmk-tabs__link:focus-visible,
.tmk-sub .tmk-tabs__link.tmk-is-active { color: var(--red); }

/* ---- タグ ---- */
.tmk-sub .tmk-tags a { border-color: var(--gold); color: var(--gold-deep); }
.tmk-sub .tmk-tags a:hover,
.tmk-sub .tmk-tags a:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- 記事情報・サムネイル ---- */
.tmk-sub .tmk-article__meta { color: var(--gold-deep); }
.tmk-sub .tmk-article__cats a { color: var(--text-sub); }
.tmk-sub .tmk-article__cats a:hover { color: var(--red); }
.tmk-sub .tmk-article__thumb { border-color: var(--line-gold); }

/* ---- 本文 ---- */
.tmk-sub .tmk-entry { color: var(--text-main); }
.tmk-sub .tmk-entry h3 { color: #111; }
.tmk-sub .tmk-entry a:not(.tmk-btn-about)  { color: var(--red); }
.tmk-sub .tmk-entry a:hover { text-decoration-thickness: 2px; }
.tmk-sub .tmk-entry figcaption { color: #666; }
.tmk-sub .tmk-entry blockquote { border-left-color: var(--gold); color: #444; }

/* ---- 施工概要テーブル ---- */
.tmk-sub .tmk-spec__title { color: #111; }
.tmk-sub .tmk-spec__table { border-top: 2px solid var(--gold); }
.tmk-sub .tmk-spec__table th,
.tmk-sub .tmk-spec__table td { border-bottom-color: var(--line-gold); }
.tmk-sub .tmk-spec__table th { background: #faf5e8; color: #6b5320; }
.tmk-sub .tmk-spec__table td { color: var(--text-main); }

/* ---- 前後の記事・ページ送り ---- */
.tmk-sub .tmk-postnav { border-top-color: var(--line-gold); }
.tmk-sub .tmk-postnav a { color: #333; }
.tmk-sub .tmk-postnav a:hover { color: var(--red); }
.tmk-sub .tmk-pagination .page-numbers { border-color: var(--line-gold); color: #333; }
.tmk-sub .tmk-pagination a.page-numbers:hover { background: rgba(153, 0, 0, .07); color: var(--red); }
.tmk-sub .tmk-pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }

/* ---- 「一覧へ」ボタン：黒地＋gold枠のまま、hoverで赤に ---- */
.tmk-sub .tmk-btn-about:hover,
.tmk-sub .tmk-btn-about:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

/* ==========================================================
   サムネイル未設定カード（.tmk-card__noimage）：hover時に文字を拡大
   サムネイル画像のhoverと同じ 1.06倍 / 1.2秒 / 同じイージング
   ========================================================== */
.tmk-card__noimage { transition: transform 1.2s var(--ease); }
.tmk-card__link:hover .tmk-card__noimage { transform: scale(1.06); }

/* ==========================================================
   ページ上部のタイトル部分（背景画像＋タイトル＋サブタイトル）
   固定ページ・施工実績・ブログ・404 共通（template-parts/page-hero.php）
   ========================================================== */
.tmk-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(18rem, 30vw, 26rem);
  padding: calc(var(--header-h) + 2rem) 0 clamp(2rem, 4.5vw, 3.25rem);
  overflow: hidden;
  /* 背景画像が未設定の場合は、暗い色の背景 */
  background: linear-gradient(135deg, #1c1610 0%, #0b0a09 55%, #1a140b 100%);
  color: #fff;
}

/* 背景画像（<img> を全面に敷く） */
.tmk-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 文字を読みやすくする暗い覆い（左側を濃く） */
.tmk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .42) 48%, rgba(0, 0, 0, .12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .35) 100%);
}

.tmk-hero__inner { width: min(100% - 3rem, 72rem); margin-inline: auto; }

/* タイトル：白・明朝・左寄せ */
.tmk-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}
/* 長いタイトル（14文字超）は少し小さく */
.tmk-hero__title--long {
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  letter-spacing: .08em;
  line-height: 1.5;
}

/* サブタイトル：金色・約20px・字間広め */
.tmk-hero__sub {
  margin-top: .7rem;
  font-family: var(--font-en);
  font-size: 1.25rem;                 /* 20px */
  font-weight: 600;
  letter-spacing: .24em;
  line-height: 1.6;
  color: var(--gold);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
}

/* タイトル部分の直後の要素との間隔 */
.tmk-hero + * { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* 施工実績の詳細：タグを本文側に配置（左寄せ） */
.tmk-tags--body { justify-content: flex-start; margin: 0 0 1.6rem; }

/* ブログ詳細：日付・カテゴリーを本文側の先頭に配置 */
.tmk-container > .tmk-article__meta:first-child { margin: 0 0 1.4rem; }

/* 404：説明文 */
.tmk-article__back .tmk-sub-lead { margin: 0 0 2rem; }

@media (max-width: 600px) {
  .tmk-hero {
    min-height: 18rem;
    padding-bottom: 1.75rem;
  }
  .tmk-hero__sub { font-size: 1.125rem; letter-spacing: .2em; }
  .tmk-hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .58) 100%);
  }
}


/* ==========================================================
   パンくずリスト（トップページ以外：template-parts/page-hero.php の直後に出力）
   文字サイズ12px／カレントページ=黒(#000)／それ以外=グレー（hoverで#990000）
   ========================================================== */
:root { --crumb-gray: #74706a; }   /* 白背景で約4.9:1（読みやすさの基準 4.5:1 以上） */

.tmk-breadcrumb {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--crumb-gray);
}
.tmk-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem 0;
}
.tmk-breadcrumb__item { display: inline-flex; align-items: center; min-width: 0; }

/* 区切り（›）：CSSで描画するため、読み上げには含まれない */
.tmk-breadcrumb__item + .tmk-breadcrumb__item::before {
  content: "";
  flex-shrink: 0;
  width: .45em;
  height: .45em;
  margin: 0 .95em 0 .7em;
  border-top: 1px solid #b9b4aa;
  border-right: 1px solid #b9b4aa;
  transform: rotate(45deg);
}

.tmk-breadcrumb__link { color: var(--crumb-gray); transition: color .4s var(--ease); }
.tmk-breadcrumb__link:hover,
.tmk-breadcrumb__link:focus-visible {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: .25em;
  outline: none;
}

/* カレントページ：黒 */
.tmk-breadcrumb__current { color: #000; overflow-wrap: anywhere; }

/* 前後の余白（タイトル部分の直後に置かれるため、本文との間隔をここで調整） */
.tmk-hero + .tmk-breadcrumb { margin-top: 1.1rem; }
.tmk-breadcrumb + * { margin-top: clamp(1.5rem, 4vw, 2.5rem); }


/* ==========================================================
   固定ページ各種設定
   ========================================================== */

#business-page h2,#contact h2{
	border-left: none;
	padding: 0 0 2rem;
	font-weight: bold;
	font-size: var(--font-size42);
}

#business-page .tmk-entry ul{
	grid-template-columns: repeat(2, 1fr);
}

#business-page.tmk-sub .tmk-entry h3{
	color: #fff;
}

#business-page .tmk-entry ul li a{
	text-decoration: none;
}

.tmk-entry ul{
	list-style: none;
	padding-left: 0;
}

.service .inner{
	width: min(100% - 3rem, 72rem);
	margin-inline: auto;
}

.service h2,.service h3,.service h4,.service h5{
	letter-spacing: .04em;
	font-weight: bold;
}

.service h2{
	margin-bottom: 2rem;
	font-size: clamp(1.5rem, 1.212vw + 1.258rem, 2rem);
}

.service h3{
	font-family: var(--font-sans);
}

.service h4{
	border-bottom: solid 1px var(--gold);
	font-size: clamp(1.375rem, 0.909vw + 1.193rem, 1.75rem);
	margin: 4rem 0;
}

.service h5{
	font-family: var(--font-sans);
	font-size: larger;
	margin-bottom: 0;
	padding-left: 1.5em;
	position: relative;
}

.service h5 + p{
	margin: 0;
}

.service h5::before {
	content: "■";
	position: absolute;
	left: 0;
	color:var(--gold);
}

.sv-point{
	padding:3rem 0;
}

.sv-point li{
	display:flex;
	align-items: center;
	padding-bottom: 2rem;
}

.sv-point li .point-icon{
	width: 30%;
	max-width: 120px;
	text-align: center;
}

.sv-point li .point-icon img{
	padding-right: 1rem;
}

.sv-point li h3{
	margin:0;
}

.brand-list{
	display:grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	gap: 1.4rem;
	margin-top: 3rem;
}

.brand-list li{
	text-align:center;
}

@media (max-width: 600px) {
	.sv-point li{
	flex-direction: column;
	}
	.sv-point li .point-icon img{
	padding-right: 0;
	}
	.brand-list{
	grid-template-columns: repeat(2, 1fr);
	}
}

.service .btn.tmk-reveal,#faq .btn.tmk-reveal{
	text-align: center;
	margin-top: 4rem;
}

#ev-charge{
	background-image: url(../images/bg_service_ev.png);
	background-position: right top 240px;
	background-size: auto 800px;
	transition: transform 1.2s var(--ease);
	background-repeat: no-repeat;
}
@media (max-width: 600px) {
	#ev-charge{
	background-position:right -400px top 280px;
	background-size: auto 600px;
	}
}

#face-lock{
	position: relative;
	background-image: url(../images/bg_service_lock.png);
	background-position: right top 240px;
	background-size: auto 800px;
	transition: transform 1.2s var(--ease);
	background-repeat: no-repeat;
}
@media (max-width: 600px) {
	#face-lock{
	background-position:right -200px top 280px;
	background-size: auto 600px;
	}
}

#solar{
	position: relative;
	background-image: url(../images/bg_service_solar.png);
	background-position: right top 240px;
	background-size: auto 800px;
	transition: transform 1.2s var(--ease);
	background-repeat: no-repeat;
}
@media (max-width: 600px) {
	#solar{
	background-position:right -200px top 280px;
	background-size: auto 600px;
	}
}

#material{
	position: relative;
	background-image: url(../images/bg_service_material.png);
	background-position: right top 240px;
	background-size: auto 800px;
	transition: transform 1.2s var(--ease);
	background-repeat: no-repeat;
}
@media (max-width: 600px) {
	#material{
	background-position:right -280px top 280px;
	background-size: auto 600px;
	}
}

#const{
	position: relative;
	background-image: url(../images/bg_service_construction.png);
	background-position: right top 240px;
	background-size: auto 800px;
	transition: transform 1.2s var(--ease);
	background-repeat: no-repeat;
}
@media (max-width: 600px) {
	#const{
	background-position:right -400px top 280px;
	background-size: auto 600px;
	}
}

/* 固定ページのタブ */
.tmk-tabset { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.tmk-tabset .tmk-tabs { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.tmk-tabpanel { outline: none; }
.tmk-tabpanel > :first-child { margin-top: 0; }


/* ==========================================================
   追加リンク要素
   ========================================================== */

.tmk-link__arrow {
  position: absolute;
  right: 1.2rem;
  bottom: 2.6rem;
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  transition: transform .4s var(--ease);
}
.tmk-link__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -.28rem;
  width: .55rem;
  height: .55rem;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
  transform-origin: center;
}
@media (max-width: 600px) {
	.tmk-link__arrow {
	width: 1.6rem;
	bottom: 2rem;
	}
	.tmk-link__arrow::after {
	top: -.24rem;
	width: .5rem;
	height: .5rem;
	}
}
a:hover .tmk-link__arrow,
a:focus-visible .tmk-link__arrow { transform: translateX(.4rem); }

/*電話番号リンク*/
@media (min-width: 751px) {
a[href*="tel:"] {
pointer-events: none;
cursor: default;
text-decoration: none;
}
}



/* ==========================================================
   アコーディオン
   ========================================================== */


.accordion-list {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	width: 100%;
	max-width: 800px;
}

.accordion-item {
	border-top: 2px solid var(--gold);
	border-bottom: 1px solid var(--line-gold);
	margin-bottom: -1px; /* 枠線の重複防止 */
	position: relative;
}

/* チェックボックス本体は画面から隠す */
.accordion-toggle {
	display: none;
}

.accordion-header {
	cursor: pointer;
	padding: 15px 20px;
	background-color: #faf5e8;
	color: #6b5320;
	font-weight: bold;
	display: flex;
	justify-content: space-between;
	align-items: center;
	user-select: none;
	transition: background-color 0.2s ease;
}

.accordion-header:hover {
	background-color: var(--line-gold);
}

.accordion-header .icon::before {
	content: "+";
	font-size: 1.2rem;
	font-weight: bold;
}

/* チェックが入った（開いた）時のアイコン切り替え */
.accordion-toggle:checked + .accordion-header .icon::before {
	content: "−";
}

/* ==========================================
   修正版：中身の開閉設定（Gridを使用）
   ========================================== */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr; 
  transition: grid-template-rows 0.6s ease-in-out;
}

.accordion-toggle:checked ~ .accordion-content {
  grid-template-rows: 1fr;
}

.accordion-content .inner {
  overflow: hidden;
  background-color: #fff;
}

.accordion-toggle:checked ~ .accordion-content .inner {
	border-top: 1px solid var(--line-gold);
}

.accordion-content dl{
	padding: 15px 20px;
	border-bottom: solid 1px var(--line-gold);
	margin-bottom: 2rem;
}

.accordion-content dl:last-child{
	border-bottom: none;
}

.accordion-content dt{
	color: var(--gold-deep);
	font-weight: bold;
	position:relative;
	margin-left: 40px;
}

.accordion-content dt::before{
	position:absolute;
	content: "Q";
	color:#fff;
	font-family: var(--font-serif);
	font-size: 1.2rem;
	left:-50px;
	text-align: center;
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 100px;
	background-color: var(--gold-deep);
}

.accordion-content dd{
	position:relative;
	padding: 1.6rem 0 1rem;
	margin-left: 40px;
	margin-bottom: 1rem;
}

.accordion-content dd::before{
	position:absolute;
	content: "A";
	color:#fff;
	font-family: var(--font-serif);
	font-size: 1.2rem;
	left:-50px;
	text-align: center;
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 100px;
	background-color: var(--red);
}


/* ==========================================================
   共通：お問い合わせ
   ========================================================== */

#contact .contact-btn{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: 2rem 0;
}

@media (max-width: 600px) {
	#contact .contact-btn{
	grid-template-columns: 1fr;
	}
}

#contact .contact-btn a{
	border: solid 1px var(--line-gold);
	text-align: center;
	padding: 1rem;
	text-decoration: none;
	color: #000;
	font-weight: bold;
	transition: 0.3s ease-in-out;
}

.home #contact .contact-btn a{
	background: #fff;
}

#contact .contact-btn a:hover{
	background: var(--gold-light);
}

#contact .contact-btn a .phone .big{
	font-size: 2rem;
}

#contact .contact-btn a .mail .big{
	font-size: 1.4rem;
}

#contact .contact-btn a span{
	font-weight:normal;
}

#contact .btn{
	text-align: center;
}

.tmk-contact {
	padding: clamp(4.5rem, 9vw, 7.5rem) 0;
	background: #ac987e;
	color:#000;
}
.tmk-contact__inner { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.tmk-contact__action { margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }


/* ==========================================================
   グローバルメニュー：サブ項目のドロップダウン
   管理画面「外観 > メニュー」で、項目を右にドラッグして「サブ項目」にすると表示されます。
   ========================================================== */

.tmk-gnav__list > li { position: relative; }

/* サブ項目を持つ親項目：右に小さな「v」マーク */
.tmk-gnav__list > .menu-item-has-children > .tmk-gnav__link { padding-right: 1.1em; }
.tmk-gnav__list > .menu-item-has-children > .tmk-gnav__link::before {
  content: "";
  position: absolute;
  right: .1em;
  top: 50%;
  width: .4em;
  height: .4em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  transition: transform .4s var(--ease);
  pointer-events: none;
}
.tmk-gnav__list > .menu-item-has-children:hover > .tmk-gnav__link::before,
.tmk-gnav__list > .menu-item-has-children:focus-within > .tmk-gnav__link::before,
.tmk-gnav__list > .menu-item-has-children.tmk-is-sub-open > .tmk-gnav__link::before {
  transform: translateY(-25%) rotate(225deg);
}

/* サブ項目が現在のページのとき、親項目にも下線を表示 */
.tmk-gnav__list > .current-menu-ancestor > .tmk-gnav__link::after,
.tmk-gnav__list > .current-menu-parent > .tmk-gnav__link::after,
.tmk-gnav__list > .menu-item-has-children:hover > .tmk-gnav__link::after,
.tmk-gnav__list > .menu-item-has-children:focus-within > .tmk-gnav__link::after {
  opacity: 1;
  transform: scaleX(1);
}

/* ドロップダウン本体（初期は非表示） */
.tmk-gnav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 130;
  min-width: 14rem;
  margin-top: 1.4rem;
  padding: .5rem 0;
  background: rgba(8, 8, 12, .96);
  border: 1px solid rgba(226, 186, 106, .35);
  border-top: 2px solid var(--gold);
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, .5rem);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}
/* 親項目とドロップダウンの隙間（マウスが通っても閉じないための見えない橋） */
.tmk-gnav .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1.6rem;
  height: 1.6rem;
}

/* 表示：hover／キーボードフォーカス／タッチで開いたとき */
.tmk-gnav__list > li:hover > .sub-menu,
.tmk-gnav__list > li:focus-within > .sub-menu,
.tmk-gnav__list > li.tmk-is-sub-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s;
}

/* サブ項目のリンク */
.tmk-gnav .sub-menu li { display: block; }
.tmk-gnav .sub-menu .tmk-gnav__link,
.tmk-header.tmk-is-scrolled .tmk-gnav .sub-menu .tmk-gnav__link {
  display: block;
  padding: .8rem 1.5rem;
  font-size: .875rem;
  letter-spacing: .08em;
  line-height: 1.6;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.tmk-gnav .sub-menu .tmk-gnav__link::after { display: none; }
.tmk-gnav .sub-menu .tmk-gnav__link:hover,
.tmk-gnav .sub-menu .tmk-gnav__link:focus-visible,
.tmk-gnav .sub-menu .tmk-gnav__link.tmk-is-current {
  background: rgba(226, 186, 106, .16);
  color: #fff;
  outline: none;
}

/* ---- スマホ・タブレット（ハンバーガーメニュー）：サブ項目は最初から展開 ---- */
@media (max-width: 1024px) {
  .tmk-gnav { overflow-y: auto; justify-content: safe center; }

  .tmk-gnav__list > .menu-item-has-children > .tmk-gnav__link { padding-right: 0; }
  .tmk-gnav__list > .menu-item-has-children > .tmk-gnav__link::before { display: none; }

  .tmk-gnav .sub-menu,
  .tmk-gnav__list > li:hover > .sub-menu,
  .tmk-gnav__list > li:focus-within > .sub-menu,
  .tmk-gnav__list > li.tmk-is-sub-open > .sub-menu {
    position: static;
    min-width: 0;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .tmk-gnav .sub-menu::before { display: none; }

  .tmk-gnav .sub-menu .tmk-gnav__link,
  .tmk-header.tmk-is-scrolled .tmk-gnav .sub-menu .tmk-gnav__link {
	padding: 0 0 0 1rem;
	font-size: .95rem;
	color: rgba(244, 233, 207, .7);
	position:relative;
  }
  .tmk-gnav .sub-menu .tmk-gnav__link:hover,
  .tmk-gnav .sub-menu .tmk-gnav__link:focus-visible,
  .tmk-gnav .sub-menu .tmk-gnav__link.tmk-is-current {
    background: none;
    color: var(--gold-light);
  }
}

/* ---- スマホ・タブレット：メニュー内の文字を左寄せ ----
   ※ 「.tmk-is-open」（開いている間だけ付くクラス）に依存させない。
     依存させると、閉じる瞬間にクラスが外れて中央寄せに戻り、フェードアウト中に一瞬だけ中央寄せが見えてしまう。 */
@media (max-width: 1024px) {
	.tmk-gnav .tmk-gnav__list{
		text-align:left;
		align-items: flex-start;
		width:100%;
	}

	#tmk-gnav {
		align-items: flex-start;
		padding-left: 2rem;
	}

	.tmk-gnav .tmk-gnav__list li{
		width:100%;
	}

	.tmk-gnav .tmk-gnav__link::after{border:none;}

	.tmk-gnav .tmk-gnav__list li a{
		display: block;
	}

	.tmk-gnav .sub-menu li a::before{
		position: absolute;
		content: "";
		top: 50%;
		transform: translateY(-50%);
		left: 0;
		width: 10px;
		height: 1px;
		background: var(--gold);
		padding-right: 6px;
	}
}

/* 動きを減らす設定のユーザー向け */
@media (prefers-reduced-motion: reduce) {
  .tmk-gnav .sub-menu,
  .tmk-gnav__list > li:hover > .sub-menu,
  .tmk-gnav__list > li:focus-within > .sub-menu,
  .tmk-gnav__list > li.tmk-is-sub-open > .sub-menu { transition: none; }
}

