/*
Theme Name: TC Transitions Child
Template: twentytwentyfive
Text Domain: tc-transitions-child
Version: 2.5.2
Description: luma-pet.com の設計手法（低彩度・影ゼロ・広い字間／行間・英日ペア見出し）を
             Transitions Canada 向けに翻案したデザイン。
*/

/* ==========================================================================
   書体
   欧文 Montserrat（LUMA と同じ）／和文 Noto Sans JP
   ※ LUMA は Adobe Fonts の source-han-sans-japanese を使用しているが、
     有料アカウントが必要なため、同系統で無償の Noto Sans JP を採用する。
   ========================================================================== */
/* 書体は functions.php で読み込む（@import はレンダリングを遅らせるため使わない） */

/* ==========================================================================
   デザイントークン
   ========================================================================== */
:root {
  /* 書体 */
  --tc-font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --tc-font-en: "Montserrat", "Noto Sans JP", sans-serif;

  /* 配色 — 彩度を捨てた青灰。LUMA の #7a8a93 を留学向けにやや青寄せ */
  --tc-text: #6b7d8a;          /* 本文（黒を使わないのが要） */
  --tc-text-strong: #45596a;   /* 少し濃い本文 */
  --tc-ink: #1a1f24;           /* 見出し。純黒 #000 は使わない */
  --tc-bg: #ffffff;
  --tc-bg-soft: #eef1f4;       /* 面の切り替え用のごく淡い灰青 */
  --tc-bg-tint: #f7f9fb;
  --tc-line: #dde3e8;
  --tc-line-strong: #c6d0d8;
  --tc-accent: #b0893c;        /* 差し色。ごく小面積のみ */
  --tc-on-dark: #ffffff;
  --tc-overlay: rgba(38, 50, 60, 0.42);

  /* 字送り・行送り — 「急いでいない」印象の中核 */
  --tc-track: 0.15em;
  --tc-track-wide: 0.22em;
  --tc-leading: 1.9;

  /* 寸法 */
  --tc-shell: 1260px;          /* LUMA と同じ 1259/1260px */
  --tc-gutter: 24px;
  --tc-section-y: 105px;       /* LUMA の最大セクション余白 */
  --tc-section-y-sm: 68px;

  /* 角丸 — 中途半端な丸みを使わず、ピルか直角の二択 */
  --tc-pill: 999px;

  /* 速度 — ゆっくり動かす */
  --tc-ease: 0.5s ease;
  --tc-ease-slow: 2.4s ease;

  /* Bootstrap 上書き */
  --bs-primary: #45596a;
  --bs-primary-rgb: 69, 89, 106;
  --bs-link-color: #45596a;
  --bs-link-hover-color: #1a1f24;
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-card-border-radius: 0;
  --bs-body-color: var(--tc-text);
  --bs-body-font-family: var(--tc-font-ja);
}

/* ==========================================================================
   基本
   ========================================================================== */
body,
.wp-site-blocks {
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: var(--tc-font-ja);
  font-weight: 400;
  font-size: 15px;
  line-height: var(--tc-leading);
  letter-spacing: var(--tc-track);
  -webkit-font-smoothing: antialiased;
}

/* 影を一切使わない — LUMA は PC 用 CSS 38,670 文字中 box-shadow が 0 回 */
.tc-card,
.tc-step-card,
.tc-priority-card,
.tc-quote-card,
.tc-stat-card,
.tc-school-focus-card,
.tc-feature-card,
.tc-value-card,
.tc-program-card,
.tc-post-card,
.tc-entry-card,
.tc-query-card,
.tc-contact-card,
.tc-social-card,
.tc-button,
.tc-site-header,
.tc-table,
img {
  box-shadow: none !important;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--tc-text-strong); text-decoration: none; transition: color var(--tc-ease); }
a:hover { color: var(--tc-ink); }

h1, h2, h3, h4, h5 {
  font-family: var(--tc-font-ja);
  color: var(--tc-ink);
  font-weight: 500;
  letter-spacing: var(--tc-track);
  line-height: 1.7;
}

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   英日ペア見出し — LUMA の「ABOUT US ／ 獣医師が見守るペットホテル」の型
   英語はリズムと装飾、日本語が意味を担う
   ========================================================================== */
.tc-kicker,
.tc-section-title > .tc-kicker {
  display: block;
  font-family: var(--tc-font-en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: var(--tc-track-wide);
  color: var(--tc-text);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tc-section-title {
  margin-bottom: 46px;
}
.tc-section-title h2,
.tc-section-title > h2 {
  font-size: 28px;
  margin: 0 0 18px;
}
.tc-section-title p,
.tc-section-note {
  color: var(--tc-text);
  font-size: 14px;
  margin: 0;
}
.tc-section-note { margin-top: 18px; }

.tc-lead {
  font-size: 16px;
  line-height: 2.05;
  color: var(--tc-text);
}

/* ==========================================================================
   レイアウトの器
   ========================================================================== */
.tc-shell,
.tc-page-shell {
  width: 100%;
  max-width: var(--tc-shell);
  margin-inline: auto;
  padding-inline: var(--tc-gutter);
}

.tc-section {
  padding-block: var(--tc-section-y);
  background: var(--tc-bg);
}
.tc-section.is-tinted { background: var(--tc-bg-soft); }
.tc-section.is-accent { background: var(--tc-bg-tint); }
.tc-section > .tc-shell,
.tc-section > .wp-block-group {
  max-width: var(--tc-shell);
  margin-inline: auto;
  padding-inline: var(--tc-gutter);
}

.tc-page { padding-block: 0; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.tc-site-header {
  background: var(--tc-bg);
  border-bottom: 1px solid var(--tc-line);
  padding-block: 20px;
  position: relative;
  z-index: 20;
}
.tc-site-header .wp-block-navigation {
  font-family: var(--tc-font-ja);
  font-size: 13px;
  letter-spacing: var(--tc-track);
  gap: 26px;
}
.tc-site-header .wp-block-navigation a {
  color: var(--tc-text);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color var(--tc-ease), border-color var(--tc-ease);
}
.tc-site-header .wp-block-navigation a:hover {
  color: var(--tc-ink);
  border-bottom-color: var(--tc-line-strong);
}
/* お問い合わせだけピル型（LUMA の RESERVE 相当） */
.tc-site-header .is-cta-link a,
.tc-site-header a.is-cta-link {
  border: 1px solid var(--tc-text-strong);
  border-radius: var(--tc-pill);
  padding: 11px 26px;
  color: var(--tc-text-strong);
}
.tc-site-header .is-cta-link a:hover,
.tc-site-header a.is-cta-link:hover {
  background: var(--tc-text-strong);
  color: var(--tc-on-dark);
  border-bottom-color: var(--tc-text-strong);
}

/* ==========================================================================
   ボタン — ピル型のみ。塗りは1種類に絞る
   ========================================================================== */
.tc-button,
.tc-cta-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 34px;
  border: 1px solid var(--tc-text-strong);
  border-radius: var(--tc-pill);
  background: transparent;
  color: var(--tc-text-strong);
  font-family: var(--tc-font-ja);
  font-size: 13px;
  letter-spacing: var(--tc-track);
  transition: background var(--tc-ease), color var(--tc-ease), border-color var(--tc-ease);
}
.tc-button:hover,
.tc-cta-row a:hover {
  background: var(--tc-text-strong);
  color: var(--tc-on-dark);
}
.tc-button.is-primary {
  background: var(--tc-text-strong);
  color: var(--tc-on-dark);
}
.tc-button.is-primary:hover {
  background: var(--tc-ink);
  border-color: var(--tc-ink);
}
.tc-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ==========================================================================
   カード類 — 影ではなく細い罫線と余白で分ける
   ========================================================================== */
.tc-card,
.tc-step-card,
.tc-priority-card,
.tc-quote-card,
.tc-stat-card,
.tc-school-focus-card,
.tc-feature-card,
.tc-value-card,
.tc-program-card,
.tc-post-card,
.tc-entry-card,
.tc-query-card,
.tc-contact-card {
  background: var(--tc-bg);
  border: 1px solid var(--tc-line);
  border-radius: 0;
  padding: 38px 34px;
}
.is-tinted .tc-card,
.is-tinted .tc-step-card,
.is-tinted .tc-priority-card { background: var(--tc-bg); }

.tc-card h3,
.tc-priority-card h3,
.tc-program-card h3,
.tc-school-focus-card h3 {
  font-size: 19px;
  margin: 0 0 14px;
}
.tc-card p, .tc-step-card p, .tc-priority-card p { font-size: 14px; }

.tc-card-media { margin: -38px -34px 28px; }
.tc-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.tc-grid-2, .tc-grid-3, .tc-grid-4 {
  display: grid;
  gap: 30px;
}
.tc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tc-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 番号付きステップ */
.tc-step-card { position: relative; padding-top: 46px; }
.tc-step-card::before {
  content: attr(data-step);
  position: absolute; top: 30px; left: 34px;
  font-family: var(--tc-font-en);
  font-size: 12px; letter-spacing: var(--tc-track-wide);
  color: var(--tc-text);
}

/* 引用・数値 */
.tc-quote-card { border-left: 2px solid var(--tc-line-strong); }
.tc-stat-card { text-align: center; }
.tc-stat-pill {
  display: inline-block;
  font-family: var(--tc-font-en);
  font-size: 11px; letter-spacing: var(--tc-track-wide);
  border: 1px solid var(--tc-line-strong); border-radius: var(--tc-pill);
  padding: 6px 16px; color: var(--tc-text);
}

/* メタ情報の並び */
.tc-program-meta, .tc-feature-meta, .tc-entry-meta, .tc-social-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 18px 0 0; padding: 0; list-style: none;
}
.tc-program-meta li, .tc-feature-meta li {
  font-family: var(--tc-font-en);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--tc-text);
  border: 1px solid var(--tc-line); border-radius: var(--tc-pill);
  padding: 5px 14px;
}

/* チェックリスト */
.tc-check-list, .tc-feature-list, .tc-list { list-style: none; margin: 20px 0 0; padding: 0; }
.tc-check-list li, .tc-feature-list li, .tc-list li {
  position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 14px;
}
.tc-check-list li::before, .tc-feature-list li::before, .tc-list li::before {
  content: ""; position: absolute; left: 0; top: 0.85em;
  width: 8px; height: 1px; background: var(--tc-line-strong);
}

/* 表 */
.tc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tc-table th, .tc-table td {
  border-bottom: 1px solid var(--tc-line);
  padding: 16px 14px; text-align: left; vertical-align: top;
}
.tc-table th { color: var(--tc-ink); font-weight: 500; background: var(--tc-bg-tint); }

/* FAQ — LUMA と同じ開閉式 */
.tc-faq-item {
  border-bottom: 1px solid var(--tc-line);
  padding: 0;
}
.tc-faq-item > summary,
.tc-faq-item > h3 {
  cursor: pointer; list-style: none;
  padding: 26px 44px 26px 0; margin: 0;
  font-size: 16px; color: var(--tc-ink); position: relative;
}
.tc-faq-item > summary::-webkit-details-marker { display: none; }
.tc-faq-item > summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 12px; height: 1px; background: var(--tc-text-strong);
  transition: transform var(--tc-ease);
}
.tc-faq-item > summary::before {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 12px; height: 1px; background: var(--tc-text-strong);
  transform: rotate(90deg); transition: opacity var(--tc-ease);
}
.tc-faq-item[open] > summary::before { opacity: 0; }
.tc-faq-item > *:not(summary):not(h3) { padding-bottom: 26px; font-size: 14px; }

/* リンク全面化 */
.tc-cover-link { position: absolute; inset: 0; z-index: 2; text-indent: -9999px; }

/* ==========================================================================
   ヒーロー — 4枚をゆっくり交差フェード（LUMA は 2〜6秒の非常に遅い動き）
   ========================================================================== */
.tc-hero, .tc-lp-hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--tc-bg-soft);
}
.tc-lp-hero-media { position: absolute; inset: 0; }
.tc-lp-hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: tcHeroFade 32s infinite;
}
.tc-lp-hero-media img:nth-child(1) { animation-delay: -2s; }
.tc-lp-hero-media img:nth-child(2) { animation-delay: 6s; }
.tc-lp-hero-media img:nth-child(3) { animation-delay: 14s; }
.tc-lp-hero-media img:nth-child(4) { animation-delay: 22s; }
@keyframes tcHeroFade {
  0%    { opacity: 0; }
  6%    { opacity: 1; }   /* 約2秒かけて現れる */
  25%   { opacity: 1; }
  31%   { opacity: 0; }
  100%  { opacity: 0; }
}
.tc-lp-hero::after {
  content: ""; position: absolute; inset: 0;
  background: var(--tc-overlay);
}
.tc-lp-hero-body {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--tc-shell);
  margin-inline: auto; padding: 0 var(--tc-gutter);
  color: var(--tc-on-dark);
}
.tc-lp-hero-en {
  font-family: var(--tc-font-en);
  font-size: 13px; font-weight: 500;
  letter-spacing: var(--tc-track-wide);
  margin-bottom: 22px;
}
.tc-lp-hero h1 {
  color: var(--tc-on-dark);
  font-size: 36px; font-weight: 500;
  line-height: 1.85; margin: 0 0 26px;
}
.tc-lp-hero p {
  color: var(--tc-on-dark);
  font-size: 15px; max-width: 42em; opacity: 0.94;
}
.tc-lp-hero .tc-button {
  border-color: var(--tc-on-dark); color: var(--tc-on-dark);
}
.tc-lp-hero .tc-button:hover { background: var(--tc-on-dark); color: var(--tc-ink); }

/* スクロール誘導（LUMA の circlemove 相当） */
.tc-lp-scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 3;
  width: 1px; height: 56px; background: rgba(255,255,255,0.45); overflow: hidden;
}
.tc-lp-scroll::after {
  content: ""; position: absolute; left: 0; width: 1px; height: 20px;
  background: #fff; animation: tcScroll 2.6s ease-in-out infinite;
}
@keyframes tcScroll {
  0% { top: -20px; } 60% { top: 56px; } 100% { top: 56px; }
}

/* ==========================================================================
   トップページ専用
   ========================================================================== */
/* ABOUT — 縦 3:4 の写真を4枚横並び（LUMA の 323x432 の帯） */
.tc-lp-about-photos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 56px;
}
.tc-lp-about-photos img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: opacity var(--tc-ease-slow);
}
.tc-lp-about-lead { max-width: 46em; }

/* SERVICE — 2枚（LUMA の DOG / CAT） */
.tc-lp-service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.tc-lp-service-card { position: relative; background: var(--tc-bg); }
.tc-lp-service-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tc-lp-service-body { padding: 30px 4px 0; }
.tc-lp-service-card .tc-kicker { margin-bottom: 10px; }
.tc-lp-service-card h3 { font-size: 21px; margin: 0 0 14px; }

/* NEWS */
.tc-lp-news-list { border-top: 1px solid var(--tc-line); }
.tc-lp-news-item {
  display: flex; gap: 28px; align-items: baseline;
  border-bottom: 1px solid var(--tc-line); padding: 24px 0;
}
.tc-lp-news-date {
  font-family: var(--tc-font-en); font-size: 12px;
  letter-spacing: var(--tc-track); color: var(--tc-text); flex: 0 0 auto;
}
.tc-lp-news-item a { font-size: 15px; }

/* CONTACT — 全幅写真の上に */
.tc-lp-contact {
  position: relative; padding-block: 120px;
  background: var(--tc-bg-soft); overflow: hidden; text-align: center;
}
.tc-lp-contact > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.tc-lp-contact::after { content: ""; position: absolute; inset: 0; background: var(--tc-overlay); }
.tc-lp-contact-body { position: relative; z-index: 3; color: var(--tc-on-dark); }
.tc-lp-contact-body h2 { color: var(--tc-on-dark); font-size: 28px; margin: 0 0 20px; }
.tc-lp-contact-body p { color: var(--tc-on-dark); opacity: 0.94; }
.tc-lp-contact .tc-button { border-color: var(--tc-on-dark); color: var(--tc-on-dark); margin-top: 34px; }
.tc-lp-contact .tc-button:hover { background: var(--tc-on-dark); color: var(--tc-ink); }

/* ==========================================================================
   投稿・アーカイブ
   ========================================================================== */
.tc-post-grid, .tc-query-grid, .tc-post-card, .tc-entry-card {
  border-radius: 0;
}
.tc-post-grid, .tc-query-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tc-post-date, .tc-entry-date, .tc-query-card-title {
  font-family: var(--tc-font-en); font-size: 12px; letter-spacing: var(--tc-track); color: var(--tc-text);
}
.tc-page-title { font-size: 30px; margin: 0 0 18px; }
.tc-page-header { padding-block: 78px 0; }
.tc-page-summary { color: var(--tc-text); font-size: 15px; }
.tc-entry-content { font-size: 15px; line-height: var(--tc-leading); }

/* ==========================================================================
   フッター
   ========================================================================== */
.tc-site-footer {
  background: var(--tc-bg-soft);
  border-top: 1px solid var(--tc-line);
  color: var(--tc-text);
  font-size: 13px;
  padding-block: 76px 34px;
}
.tc-site-footer a { color: var(--tc-text); }
.tc-site-footer a:hover { color: var(--tc-ink); }
.tc-footer-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.tc-footer-link-group h3 {
  font-family: var(--tc-font-en); font-size: 11px;
  letter-spacing: var(--tc-track-wide); color: var(--tc-ink);
  margin: 0 0 18px; text-transform: uppercase;
}
.tc-footer-list { list-style: none; margin: 0; padding: 0; }
.tc-footer-list li { margin-bottom: 11px; }

/* ==========================================================================
   レスポンシブ
   LUMA は PC/SP で CSS を完全分離しているが、保守性を優先し
   単一ファイルのブレークポイント方式にする（真似しない点）
   ========================================================================== */
@media (max-width: 1024px) {
  .tc-grid-3, .tc-grid-4, .tc-post-grid, .tc-query-grid { grid-template-columns: repeat(2, 1fr); }
  .tc-lp-about-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) {
  :root { --tc-section-y: var(--tc-section-y-sm); --tc-gutter: 20px; }
  body { font-size: 14px; letter-spacing: 0.08em; }
  .tc-grid-2, .tc-grid-3, .tc-grid-4,
  .tc-post-grid, .tc-query-grid,
  .tc-lp-service-grid, .tc-footer-link-grid { grid-template-columns: 1fr; }
  .tc-lp-hero { min-height: 62vh; }
  .tc-lp-hero h1 { font-size: 24px; line-height: 1.75; }
  .tc-section-title h2 { font-size: 22px; }
  .tc-card, .tc-step-card, .tc-priority-card { padding: 28px 22px; }
  .tc-card-media { margin: -28px -22px 22px; }
  .tc-lp-news-item { flex-direction: column; gap: 8px; }
  .tc-lp-contact { padding-block: 78px; }
}

/* ==========================================================================
   本文側で使われている残りのクラス
   ========================================================================== */
/* 手順の流れ（留学までの流れページ） */
.tc-flow {
  counter-reset: tc-flow;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--tc-line);
}
.tc-flow > * {
  counter-increment: tc-flow;
  position: relative;
  border-bottom: 1px solid var(--tc-line);
  padding: 30px 0 30px 62px;
}
.tc-flow > *::before {
  content: counter(tc-flow, decimal-leading-zero);
  position: absolute; left: 0; top: 32px;
  font-family: var(--tc-font-en); font-size: 12px;
  letter-spacing: var(--tc-track-wide); color: var(--tc-text);
}

/* 下層ページのヒーロー */
.tc-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 46px;
  align-items: center;
}
.tc-hero-media img,
.tc-page-hero-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
}

/* プロフィール（私たちについて） */
.tc-profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.tc-profile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
}

@media (max-width: 782px) {
  .tc-hero-grid, .tc-profile { grid-template-columns: 1fr; gap: 28px; }
  .tc-flow > * { padding-left: 48px; }
}

/* ==========================================================================
   Bootstrap 互換レイヤー
   プラグイン tc-site-core が tc-* クラスを実行時に Bootstrap クラスへ
   変換する（.tc-section → card / .tc-grid-3 → row + col-* 等）。
   LUMA 流のフラットな設計とは相容れないため、ここで打ち消す。
   ※ プラグイン側は変更していないので、この CSS を外せば元の挙動に戻る。
   ========================================================================== */

/* .card 由来の角丸・影・背景を無効化 */
.tc-section.card,
.tc-hero.card,
.tc-card.card,
.tc-step-card.card,
.tc-quote-card.card,
.tc-stat-card.card,
.tc-post-card.card,
.tc-program-card.card,
.tc-value-card.card,
.tc-feature-card.card,
.tc-contact-card.card,
.tc-social-card.card,
.tc-highlight-item.card,
.tc-social-feed-item.card,
.tc-social-note-card.card,
.tc-home-post-column.card {
  border-radius: 0;
  box-shadow: none !important;
}
/* セクションは .card の白背景で塗り潰されないようにする */
.tc-section.card { background-color: var(--tc-bg); }
.tc-section.is-tinted.card { background-color: var(--tc-bg-soft); }
.tc-section.is-accent.card { background-color: var(--tc-bg-tint); }

/* .row / .col-* 由来の横幅・余白を無効化して CSS Grid を活かす */
.tc-grid-2, .tc-grid-3, .tc-grid-4,
.tc-flow, .tc-hero-grid, .tc-profile,
.tc-post-grid, .tc-program-list,
.tc-social-cards, .tc-home-post-columns, .tc-form-row {
  --bs-gutter-x: 0;
  --bs-gutter-y: 0;
  margin: 0;
}
.tc-grid-2 > *, .tc-grid-3 > *, .tc-grid-4 > *,
.tc-flow > *, .tc-hero-grid > *, .tc-profile > *,
.tc-post-grid > *, .tc-program-list > *,
.tc-social-cards > *, .tc-home-post-columns > *, .tc-form-row > * {
  flex: initial;
  width: auto;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
}
/* .tc-grid-* は Grid を維持（.row の display:flex に負けないように） */
.tc-grid-2, .tc-grid-3, .tc-grid-4 { display: grid; }
.tc-flow { display: grid; grid-template-columns: 1fr; }

/* .card の word-wrap で日本語が1文字ずつ折り返されるのを防ぐ */
.tc-card.card, .tc-step-card.card, .tc-quote-card.card,
.tc-stat-card.card, .tc-post-card.card, .tc-program-card.card {
  word-wrap: normal;
  overflow-wrap: normal;
  display: block;
}

/* .btn 由来の角丸・余白を上書き（ピル型は維持） */
.tc-button.btn {
  border-radius: var(--tc-pill);
  padding: 0 34px;
  line-height: 1;
}

/* .table 由来の色を上書き */
.tc-table.table { --bs-table-bg: transparent; color: var(--tc-text); }

/* ==========================================================================
   ヘッダーの折り返し対策
   ナビが長く「お問い合わせ」が次行に落ちていたため
   ========================================================================== */
.tc-site-header .wp-block-navigation {
  flex-wrap: nowrap;
  gap: 18px;
}
.tc-site-header .wp-block-navigation__container {
  flex-wrap: nowrap;
  gap: 18px;
  align-items: center;
}
.tc-site-header-row { flex-wrap: nowrap !important; align-items: center; }
.tc-site-brand img { width: 190px; max-width: none; }

@media (max-width: 1200px) {
  .tc-site-header .wp-block-navigation,
  .tc-site-header .wp-block-navigation__container { gap: 12px; }
  .tc-site-header .wp-block-navigation { font-size: 12px; }
}

/* .border-0 が border:0!important を当てるため、罫線を !important で戻す
   （LUMA は影を使わず、細い罫線と余白だけで面を分けるため罫線が要） */
.tc-card.card,
.tc-step-card.card,
.tc-stat-card.card,
.tc-post-card.card,
.tc-program-card.card,
.tc-value-card.card,
.tc-feature-card.card,
.tc-contact-card.card,
.tc-social-card.card,
.tc-highlight-item.card,
.tc-social-feed-item.card,
.tc-social-note-card.card,
.tc-home-post-column.card {
  border: 1px solid var(--tc-line) !important;
}
.tc-quote-card.card {
  border: 0 !important;
  border-left: 2px solid var(--tc-line-strong) !important;
}
/* セクションとヒーローには罫線を付けない */
.tc-section.card, .tc-hero.card { border: 0 !important; }

/* ==========================================================================
   v2.1 リファイン — モダン / 透明感
   後勝ちのカスケードを利用し、既存定義をこの層で上書きする
   ========================================================================== */
:root {
  /* 青みを強めた透明感のあるパレット */
  --tc-text: #66798b;
  --tc-text-strong: #3f5468;
  --tc-ink: #20272d;
  --tc-bg-soft: #f2f6f9;
  --tc-bg-tint: #f8fbfd;
  --tc-line: #e3eaf0;
  --tc-line-strong: #c9d6df;
  --tc-overlay: rgba(21, 34, 46, 0.35);

  /* 字間は本文を軽く、ラベルは広く */
  --tc-track: 0.09em;
  --tc-track-wide: 0.24em;

  /* 丸みと柔らかい影 */
  --tc-radius: 18px;
  --tc-radius-sm: 12px;
  --tc-shadow-soft: 0 16px 48px rgba(41, 62, 80, 0.08);

  /* 曇りガラス */
  --tc-glass: rgba(255, 255, 255, 0.14);
  --tc-glass-border: rgba(255, 255, 255, 0.30);
}

h1, h2, h3, h4, h5 { letter-spacing: 0.14em; }

/* ---- ヘッダー: 追従 + 曇りガラス ---- */
.tc-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(217, 228, 236, 0.65);
}

/* ---- 見出しまわり ---- */
.tc-kicker,
.tc-section-title > .tc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #8aa4b6;
}
.tc-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.tc-section-title h2 { font-size: 32px; font-weight: 400; }

/* 淡いグラデーションで面を切り替える（ベタ塗りをやめる） */
.tc-section.is-tinted,
.tc-section.is-tinted.card {
  background: linear-gradient(180deg, #f1f6fa 0%, #fbfdfe 100%);
}
.tc-section.is-accent,
.tc-section.is-accent.card {
  background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

/* ---- ヒーロー: 写真を常時表示し、文字は曇りガラスのパネルに ---- */
.tc-lp-hero-media img:first-child { opacity: 1; }
.tc-lp-hero::after {
  background: linear-gradient(180deg,
    rgba(21, 34, 46, 0.18) 0%,
    rgba(21, 34, 46, 0.46) 100%);
}
.tc-lp-hero-panel {
  display: inline-block;
  max-width: 660px;
  padding: 48px 52px;
  border-radius: calc(var(--tc-radius) + 8px);
  background: var(--tc-glass);
  border: 1px solid var(--tc-glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
}
@supports not (backdrop-filter: blur(1px)) {
  .tc-lp-hero-panel { background: rgba(24, 38, 50, 0.45); }
}
.tc-lp-hero h1 { font-size: 38px; font-weight: 400; }
.tc-lp-hero .tc-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tc-lp-hero .tc-button:hover { background: rgba(255, 255, 255, 0.92); color: var(--tc-ink); }

@media (prefers-reduced-motion: reduce) {
  .tc-lp-hero-media img { animation: none; }
  .tc-lp-hero-media img:not(:first-child) { opacity: 0; }
}

/* ---- カード: 丸み + 柔らかい浮遊感 + ホバー ---- */
.tc-card.card,
.tc-step-card.card,
.tc-stat-card.card,
.tc-post-card.card,
.tc-program-card.card,
.tc-value-card.card,
.tc-feature-card.card,
.tc-contact-card.card,
.tc-social-card.card,
.tc-highlight-item.card,
.tc-home-post-column.card {
  border-radius: var(--tc-radius);
  border-color: rgba(227, 234, 240, 0.9) !important;
  box-shadow: var(--tc-shadow-soft) !important;
  transition: transform 0.45s ease, border-color 0.45s ease;
}
.tc-card.card:hover,
.tc-program-card.card:hover,
.tc-post-card.card:hover {
  transform: translateY(-4px);
  border-color: var(--tc-line-strong) !important;
}
.tc-quote-card.card { border-radius: var(--tc-radius-sm); }

/* ---- 写真に丸み ---- */
.tc-lp-about-photos img,
.tc-card-media img,
.tc-hero-media img,
.tc-page-hero-image img,
.tc-profile img {
  border-radius: var(--tc-radius);
}

/* ---- SERVICE: 白いカードにまとめて浮かせる ---- */
.tc-lp-service-card {
  border-radius: var(--tc-radius);
  overflow: hidden;
  border: 1px solid var(--tc-line);
  box-shadow: var(--tc-shadow-soft);
  transition: transform 0.45s ease;
}
.tc-lp-service-card:hover { transform: translateY(-4px); }
.tc-lp-service-card img { border-radius: 0; }
.tc-lp-service-body { padding: 30px 32px 38px; }

/* ---- FAQ: 行区切りから白い丸カードの積みへ ---- */
.tc-faq-item {
  background: var(--tc-bg);
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius-sm);
  padding: 0 28px;
  margin-bottom: 14px;
}
.tc-faq-item > *:not(summary):not(h3) { padding-bottom: 24px; }

/* ---- NEWS ---- */
.tc-lp-news-item { transition: background 0.3s ease; }
.tc-lp-news-item:hover { background: var(--tc-bg-tint); }

/* ---- CONTACT: 曇りガラスのパネル ---- */
.tc-lp-contact-panel {
  display: inline-block;
  padding: 54px 62px;
  border-radius: calc(var(--tc-radius) + 8px);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
@supports not (backdrop-filter: blur(1px)) {
  .tc-lp-contact-panel { background: rgba(24, 38, 50, 0.45); }
}

/* ---- フッター ---- */
.tc-site-footer { background: #f5f8fb; }

@media (max-width: 782px) {
  .tc-lp-hero-panel { padding: 32px 26px; }
  .tc-lp-hero h1 { font-size: 25px; }
  .tc-section-title h2 { font-size: 24px; }
  .tc-lp-contact-panel { padding: 38px 28px; }
}

/* ==========================================================================
   v2.2 リファイン — 動き / 画像を主役に / クリア
   ========================================================================== */
html { scroll-behavior: smooth; }

/* ---- スクロール出現（tc-motion.js が .tc-reveal を付与） ---- */
.tc-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--tc-reveal-delay, 0s);
}
.tc-reveal.is-inview { opacity: 1; transform: none; }

/* ---- ヒーロー: 箱をやめ、画面いっぱいの写真 + 大きな文字 ---- */
.tc-lp-hero {
  min-height: 88vh;
  align-items: flex-end;
}
.tc-lp-hero-body { padding-bottom: 96px; }
.tc-lp-hero-panel {
  background: transparent;
  border: 0;
  padding: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  max-width: 760px;
}
.tc-lp-hero h1 {
  font-size: 48px;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.12em;
}
.tc-lp-hero-en {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.tc-lp-hero-en::before {
  content: "";
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}
/* 文字の可読性は下部グラデーションで確保（箱の代わり） */
.tc-lp-hero::after {
  background: linear-gradient(180deg,
    rgba(21, 34, 46, 0.10) 0%,
    rgba(21, 34, 46, 0.28) 55%,
    rgba(21, 34, 46, 0.62) 100%);
}

/* ---- ケンバーンズ: 表示中ゆっくりズーム ---- */
.tc-lp-hero-media img {
  animation: tcHeroFade 32s infinite, tcKenBurns 32s ease-out infinite;
  will-change: opacity, transform;
}
.tc-lp-hero-media img:nth-child(odd) { transform-origin: 30% 40%; }
.tc-lp-hero-media img:nth-child(even) { transform-origin: 70% 60%; }
@keyframes tcKenBurns {
  0%   { transform: scale(1.02); }
  31%  { transform: scale(1.13); }
  100% { transform: scale(1.13); }
}

/* ---- ABOUT写真帯: 互い違い配置 + ホバーズーム ---- */
.tc-lp-about-photos figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--tc-radius);
}
.tc-lp-about-photos figure img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tc-lp-about-photos figure:hover img { transform: scale(1.06); }
@media (min-width: 783px) {
  .tc-lp-about-photos figure:nth-child(even) { margin-top: 40px; }
}

/* ---- SERVICE: 写真がゆっくり寄る ---- */
.tc-lp-service-card img { transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1); }
.tc-lp-service-card:hover img { transform: scale(1.05); }

/* ---- ボタン: 矢印がスライド ---- */
.tc-button::after {
  content: "\2192";
  font-family: var(--tc-font-en);
  font-size: 14px;
  transition: transform 0.4s ease;
}
.tc-button:hover::after { transform: translateX(5px); }

/* ---- CONTACT: 背景写真がごくゆっくり呼吸 ---- */
.tc-lp-contact > img {
  animation: tcSlowZoom 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes tcSlowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* ---- 動きを抑えたい環境ではすべて停止 ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tc-reveal { opacity: 1; transform: none; transition: none; }
  .tc-lp-hero-media img { animation: tcHeroFade 32s infinite; }
  .tc-lp-contact > img { animation: none; }
}

@media (max-width: 782px) {
  .tc-lp-hero { min-height: 72vh; }
  .tc-lp-hero-body { padding-bottom: 64px; }
  .tc-lp-hero h1 { font-size: 27px; }
  .tc-lp-about-photos { gap: 14px; }
}

/* ==========================================================================
   v2.3 余白の拡充 — 枠と中身の距離をとり、見た目に余裕を持たせる
   ========================================================================== */
:root {
  --tc-card-pad-y: 48px;
  --tc-card-pad-x: 44px;
}

/* ---- カード類: 内側余白を大きく ---- */
.tc-card, .tc-step-card, .tc-priority-card, .tc-quote-card,
.tc-stat-card, .tc-school-focus-card, .tc-feature-card, .tc-value-card,
.tc-program-card, .tc-post-card, .tc-entry-card, .tc-query-card,
.tc-contact-card, .tc-highlight-item, .tc-social-card {
  padding: var(--tc-card-pad-y) var(--tc-card-pad-x);
}
.tc-card-media {
  margin: calc(-1 * var(--tc-card-pad-y)) calc(-1 * var(--tc-card-pad-x)) 32px;
}
.tc-card .tc-kicker,
.tc-step-card .tc-kicker,
.tc-program-card .tc-kicker,
.tc-feature-card .tc-kicker { margin-bottom: 20px; }
.tc-card h3, .tc-priority-card h3, .tc-program-card h3,
.tc-feature-card h3, .tc-school-focus-card h3 { margin: 0 0 18px; }
.tc-card p, .tc-step-card p, .tc-priority-card p { line-height: 2.0; }
.tc-program-meta, .tc-feature-meta { margin-top: 24px; }
.tc-program-meta li, .tc-feature-meta li { padding: 7px 18px; }
.tc-cta-row { margin-top: 40px; }

/* 番号付きステップの位置も新しい余白に合わせる */
.tc-step-card { padding-top: calc(var(--tc-card-pad-y) + 14px); }
.tc-step-card::before { top: 38px; left: var(--tc-card-pad-x); }

/* ---- ページ本文内のセクション: 内側余白を持たせ、角丸の面にする ---- */
.tc-page .tc-section {
  padding: 88px 64px;
  border-radius: 20px;
}
.tc-page .tc-section > :first-child { margin-top: 0; }
.tc-page .tc-section + .tc-section { margin-top: 28px; }

/* ---- FAQ ---- */
.tc-faq-item { padding: 0 36px; }
.tc-faq-item > summary, .tc-faq-item > h3 { padding: 30px 48px 30px 0; }
.tc-faq-item > summary::after,
.tc-faq-item > summary::before { right: 10px; }
.tc-faq-item > *:not(summary):not(h3) { padding-bottom: 30px; }

/* ---- 表 ---- */
.tc-table th, .tc-table td { padding: 20px 24px; }

/* ---- SERVICEカード / お知らせ / ボタン ---- */
.tc-lp-service-body { padding: 40px 44px 50px; }
.tc-lp-news-item { padding: 28px 12px; }
.tc-button, .tc-cta-row a { min-height: 54px; padding: 0 38px; }

/* ---- 見出しまわりの呼吸 ---- */
.tc-section-title { margin-bottom: 56px; }
.tc-section-title h2 { margin: 0 0 22px; }
.tc-lp-about-photos { margin-top: 64px; }
.tc-lead { line-height: 2.1; }

/* ---- モバイル ---- */
@media (max-width: 782px) {
  :root { --tc-card-pad-y: 34px; --tc-card-pad-x: 26px; }
  .tc-card, .tc-step-card, .tc-priority-card, .tc-quote-card,
  .tc-stat-card, .tc-feature-card, .tc-value-card, .tc-program-card,
  .tc-post-card, .tc-contact-card {
    padding: var(--tc-card-pad-y) var(--tc-card-pad-x);
  }
  .tc-card-media {
    margin: calc(-1 * var(--tc-card-pad-y)) calc(-1 * var(--tc-card-pad-x)) 24px;
  }
  .tc-page .tc-section { padding: 54px 26px; border-radius: 16px; }
  .tc-faq-item { padding: 0 24px; }
  .tc-lp-service-body { padding: 30px 26px 38px; }
  .tc-section-title { margin-bottom: 40px; }
  .tc-lp-about-photos { margin-top: 40px; }
}

/* ==========================================================================
   v2.4 — 手順の順次表示 / 小さい元画像の巨大表示を防ぐ
   ========================================================================== */
/* ---- 手順リスト: 一段ずつ下から現れ、番号線が伸びる ---- */
.tc-reveal-step {
  transform: translateY(46px);
  transition-duration: 0.85s;
}
.tc-reveal-step::before { /* data-step の番号 */
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}
.tc-reveal-step.is-inview::before { opacity: 1; }
.tc-flow > .tc-step-card { border-radius: var(--tc-radius); }

/* ---- ページ先頭のアイキャッチ: 横長バナーとして品よく ---- */
.tc-page-hero-image {
  border-radius: var(--tc-radius);
  overflow: hidden;
  margin-bottom: 42px;
}
.tc-page-hero-image img {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 440px;
  object-fit: cover;
}

/* ---- プロフィール写真: 小さな原版(90x120)を拡大しすぎない ---- */
.tc-profile { grid-template-columns: 200px 1fr; gap: 44px; }
.tc-profile img,
.tc-profile figure img {
  width: 176px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--tc-radius);
}

@media (max-width: 782px) {
  .tc-profile { grid-template-columns: 1fr; }
  .tc-profile img { width: 148px; }
  .tc-page-hero-image img { max-height: 240px; }
}

/* ==========================================================================
   v2.5 — ヒーロー文言の視認性向上
   写真の明暗に左右されないよう、文字とボタンの一帯を
   半透過ダークのパネル(すりガラス)で受ける
   ========================================================================== */
.tc-lp-hero-panel {
  background: rgba(15, 26, 35, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 46px 52px;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 24px 70px rgba(10, 20, 28, 0.25);
}
@supports not (backdrop-filter: blur(1px)) {
  /* すりガラス非対応ブラウザでは濃度を上げて可読性を確保 */
  .tc-lp-hero-panel { background: rgba(15, 26, 35, 0.64); }
}
.tc-lp-hero-panel p { opacity: 1; }
.tc-lp-hero h1 { text-shadow: 0 1px 16px rgba(8, 16, 22, 0.28); }
.tc-lp-hero .tc-button {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 782px) {
  .tc-lp-hero-panel { padding: 30px 24px; border-radius: 18px; }
}

/* v2.5.1 — パネルのぼかし(backdrop-filter)を廃止。半透過の面のみで受ける */
.tc-lp-hero-panel {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(15, 26, 35, 0.55);
}
