/*
 * Office Tagmaru TOPページ専用CSS  (v2: editorial / award-level redesign)
 * is_front_page() のときだけ読み込まれる（functions.php参照）。
 * すべてのセレクタは .tm- プレフィックス、または .tm-front スコープ下に
 * 限定しており、Cocoon本体・通常のブログ記事レイアウトには影響しません。
 *
 * ブロックエディター上の本文マークアップは一切変更せず、
 * このCSSと front-page.js だけで見た目を組み替えています。
 * 色はこれまでのパレット（淡い青・濃い青・白）をそのまま使用。
 */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Noto+Sans+JP:wght@400;500;700;900&display=swap");

:root {
  --tm-bg: #F8FCFF;
  --tm-soft: #EEF8FD;
  --tm-main: #71B7E6;
  --tm-main-hover: #5AA7D9;
  --tm-ink: #2B77A8; /* メイン青の文字用（コントラスト確保）*/
  --tm-dark: #24435F;
  --tm-text: #24323D;
  --tm-border: #D9EAF4;
  --tm-white: #FFFFFF;
  --tm-shadow: 0 12px 30px rgba(44, 92, 120, .08);
  --tm-shadow-lg: 0 30px 60px -20px rgba(44, 92, 120, .22);
  --tm-radius: 16px;
  --tm-radius-lg: 28px;
  --tm-radius-btn: 999px;
  --tm-max: 1280px;
  --tm-gutter: clamp(20px, 4vw, 48px);
  --tm-ease: cubic-bezier(.16, 1, .3, 1);
  --tm-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --tm-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ------------------------------------------------------------ */
/* ベース：Cocoonの箱組みを外してフルブリードにする */
/* ------------------------------------------------------------ */
html:has(.tm-front) {
  scroll-behavior: smooth;
}

.tm-front {
  overflow-x: clip;
  background: var(--tm-bg);
  font-family: var(--tm-sans);
  color: var(--tm-text);
  -webkit-font-smoothing: antialiased;
}

.tm-front .main {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tm-front .content,
.tm-front .article,
.tm-front #content-in {
  margin: 0 !important;
  padding: 0 !important;
}

/* 固定幅の .wrap（プロフィール等）でもフルブリードにする */
.tm-front .main,
.tm-front .content-in,
.tm-front #content-in {
  width: 100% !important;
  max-width: none !important;
}

.tm-front .entry-content {
  margin: 0;
  padding: 0;
  font-size: 16px;
}

.tm-front .entry-content > .wp-block-group {
  margin-top: 0;
  margin-bottom: 0;
}

/* 本文末尾の空の段落（エディターが残すもの）がCTAとフッターの間に隙間を作らないようにする */
.tm-front .entry-content > p:empty {
  display: none;
}

/* Cocoon側の設定漏れ対策（保険）。TOP以外には一切影響しない */
.tm-front #secondary,
.tm-front .sidebar,
.tm-front .breadcrumb,
.tm-front .article-share,
.tm-front .entry-date,
.tm-front .entry-header .page-title,
.tm-front .article-header,
.tm-front .article-footer {
  display: none !important;
}

body,
html {
  background: var(--tm-bg);
}

.tm-front ::selection {
  background: var(--tm-main);
  color: var(--tm-dark);
}

/* Cocoon標準の見出し装飾（罫線・背景・左ボーダー等）を打ち消す */
.tm-front .entry-content :is(h1, h2, h3).wp-block-heading,
.tm-front .entry-content .tm-blog__title {
  word-break: auto-phrase;
  text-wrap: balance;
  border: 0 !important;
  background: none;
  padding-block: 0;
  padding-inline: 0;
  box-shadow: none !important;
  border-radius: 0;
}

.tm-front .entry-content :is(h1, h2, h3).wp-block-heading::before,
.tm-front .entry-content :is(h1, h2, h3).wp-block-heading::after {
  display: none !important;
}

.tm-front .entry-content .tm-blog__title {
  padding-inline: 26px;
}

/* ------------------------------------------------------------ */
/* ヘッダー：黒帯 → 浮かぶガラスのピルナビ */
/* ------------------------------------------------------------ */
.tm-front #header-container {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 100;
  width: min(calc(100% - 32px), var(--tm-max));
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(217, 234, 244, .9);
  border-radius: var(--tm-radius-btn);
  box-shadow: 0 10px 30px -12px rgba(44, 92, 120, .18);
  transition: background .4s ease, box-shadow .4s ease, transform .5s var(--tm-ease);
}

.tm-front #header-container-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 10px 6px 28px;
}

.tm-front #header-container.tm-hide {
  transform: translate(-50%, -140%);
}

.tm-front #header,
.tm-front .header-in {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  background: transparent !important;
}

.tm-front .header .tagline {
  display: none;
}

.tm-front .logo-header,
.tm-front .logo-header a {
  margin: 0 !important;
  padding: 0 !important;
}

.tm-front #header .site-name-text {
  color: var(--tm-dark);
  font-family: var(--tm-sans);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .02em;
}

.tm-front #header .site-name-text::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--tm-main);
  vertical-align: .08em;
}

.tm-front #navi,
.tm-front .navi {
  background: transparent !important;
  width: auto !important;
  margin: 0 !important;
  border: 0 !important;
}

.tm-front #navi-in,
.tm-front .navi-in {
  width: auto !important;
  max-width: none !important;
}

.tm-front .navi-in > ul.menu-mobile {
  display: none !important;
}

.tm-front .navi-in > ul.menu-pc {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.tm-front .navi-in > ul > li {
  flex: 0 0 auto;
  background: transparent !important;
  width: auto !important;
  border: 0 !important;
  white-space: nowrap;
}

.tm-front .navi-in > ul > li > a {
  display: block;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 12px 20px !important;
  border-radius: var(--tm-radius-btn);
  background: transparent !important;
  color: var(--tm-dark) !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background .3s ease, color .3s ease;
}

.tm-front .navi-in > ul > li > a:hover {
  background: var(--tm-soft) !important;
}

.tm-front .navi-in > ul > li.current-menu-item > a,
.tm-front .navi-in > ul > li.current_page_item > a,
.tm-front:not(.tm-profile) .navi-in > ul > li:first-child > a {
  background: var(--tm-dark) !important;
  color: #fff !important;
}

.tm-front .navi-in > ul > li > a .item-description,
.tm-front .navi-in > ul > li > a .caption-wrap::after {
  display: none;
}

/* フッター：CTAから続く濃い青で統一 */
.tm-front #footer {
  margin-top: 0 !important;
  background: var(--tm-dark) !important;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .72);
}

.tm-front #footer a,
.tm-front #footer .copyright,
.tm-front #footer .site-name-text {
  color: rgba(255, 255, 255, .85) !important;
}

.tm-front #footer .site-name-text {
  font-weight: 900;
  letter-spacing: .04em;
}

.tm-front #footer .footer-bottom {
  padding-block: 28px;
}

/* ------------------------------------------------------------ */
/* スクロール進捗バー / カーソル（JSが挿入） */
/* ------------------------------------------------------------ */
.tm-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--tm-main), var(--tm-dark));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.tm-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 1.5px solid var(--tm-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--tm-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  pointer-events: none;
  opacity: 0;
  transition: width .35s var(--tm-ease), height .35s var(--tm-ease), margin .35s var(--tm-ease),
    background .3s ease, border-color .3s ease, opacity .3s ease;
}

.tm-cursor.is-on {
  opacity: 1;
}

.tm-cursor.is-hover {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-color: transparent;
  background: rgba(113, 183, 230, .35);
}

.tm-cursor.is-view {
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-color: transparent;
  background: var(--tm-dark);
  color: #fff;
}

/* ------------------------------------------------------------ */
/* 共通パーツ */
/* ------------------------------------------------------------ */
.tm-container {
  width: min(calc(100% - var(--tm-gutter) * 2), var(--tm-max));
  margin-inline: auto;
}

.tm-section {
  position: relative;
  padding: clamp(80px, 11vw, 168px) 0;
}

.tm-section--soft {
  background: var(--tm-soft);
}

.tm-front .entry-content .tm-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--tm-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.tm-kicker::before {
  content: "";
  width: 40px;
  height: 1.5px;
  background: currentColor;
  transform-origin: 0 50%;
}

.tm-front .entry-content .tm-section-title {
  margin: 0 0 clamp(28px, 4vw, 56px);
  color: var(--tm-dark);
  font-family: var(--tm-sans);
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.tm-lead,
.tm-about p,
.tm-card__body p,
.tm-blog__excerpt {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.tm-lead {
  color: var(--tm-text);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 2.1;
}

/* ボタン：濃紺ピル + 矢印サークル（白文字のコントラスト確保） */
.tm-front a.tm-button,
.tm-front .tm-button-wrap .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
  padding: 10px 10px 10px 32px;
  border: 0;
  border-radius: var(--tm-radius-btn);
  background: var(--tm-dark);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--tm-ease), transform .45s var(--tm-ease), box-shadow .45s var(--tm-ease);
  box-shadow: 0 16px 30px -14px rgba(36, 67, 95, .55);
}

.tm-front .tm-button-wrap .wp-block-button__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tm-main);
  transform: translateY(101%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform .6s var(--tm-ease), border-radius .6s var(--tm-ease);
}

.tm-front .tm-button-wrap .wp-block-button__link::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--tm-dark);
  font-size: 18px;
  line-height: 1;
  transition: transform .5s var(--tm-ease), background .3s ease;
}

.tm-front .tm-button-wrap .wp-block-button__link:hover {
  color: var(--tm-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -14px rgba(36, 67, 95, .5);
}

.tm-front .tm-button-wrap .wp-block-button__link:hover::before {
  transform: translateY(0);
  border-radius: 0;
}

.tm-front .tm-button-wrap .wp-block-button__link:hover::after {
  transform: translateX(4px) rotate(-45deg);
}

.tm-front a:focus-visible,
.tm-front .wp-block-button__link:focus-visible {
  outline: 3px solid var(--tm-main);
  outline-offset: 4px;
}

/* テキストリンク（詳しく見る / プロフィールを見る） */
.tm-front .tm-card__body a,
.tm-front .tm-about a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tm-dark);
  font-weight: 700;
  text-decoration: none;
}

.tm-front .tm-card__body a::after,
.tm-front .tm-about p > a::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--tm-dark);
  border-radius: 50%;
  font-size: 14px;
  transition: transform .45s var(--tm-ease), background .3s ease, color .3s ease;
}

.tm-front .tm-card__body a:hover::after,
.tm-front .tm-about p > a:hover::after {
  background: var(--tm-dark);
  color: #fff;
  transform: translateX(6px);
}

/* ------------------------------------------------------------ */
/* 画像プレースホルダー（画像が無い/読み込み失敗時にCSSで成立させる） */
/* ------------------------------------------------------------ */
.tm-hero__media,
.tm-card__image,
.tm-work__thumb,
.tm-about__image,
.tm-blog__thumb,
.tm-pf-photo {
  position: relative;
  margin: 0;
  background: linear-gradient(135deg, var(--tm-soft), var(--tm-white));
  border-radius: var(--tm-radius);
  overflow: hidden;
}

/*
 * WordPressは画像を「置き換え」ると、そのimgタグに新しい画像の実寸に
 * 合わせた width/height/style を書き込み直すことがある。
 * ここでのサイズ指定はそれより必ず優先させる（!important）ことで、
 * 何度差し替えても角丸ボックスからはみ出さないようにする。
 */
.tm-hero__media img,
.tm-card__image img,
.tm-work__thumb img,
.tm-about__image img,
.tm-blog__thumb img,
.tm-pf-photo img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
  border-radius: inherit;
  transition: transform 1.2s var(--tm-ease);
}

.tm-img-broken img {
  display: none !important;
}

/* ------------------------------------------------------------ */
/* HERO */
/* ------------------------------------------------------------ */
.tm-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(128px, 14vw, 190px) 0 clamp(72px, 8vw, 120px);
  background: var(--tm-bg);
  overflow: hidden;
}

/* ドットグリッド */
.tm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(36, 67, 95, .16) 1px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 0%, transparent 75%);
}

/* やわらかい青のオーブ */
.tm-hero::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 78% 32%, rgba(113, 183, 230, .42), transparent 70%),
    radial-gradient(34% 34% at 12% 88%, rgba(160, 213, 240, .45), transparent 70%),
    radial-gradient(26% 26% at 48% 8%, rgba(238, 248, 253, .9), transparent 70%);
  animation: tm-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes tm-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.tm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  width: min(calc(100% - var(--tm-gutter) * 2), var(--tm-max));
  margin-inline: auto;
}

.tm-hero__copy > * + * {
  margin-top: 0;
}

.tm-hero .tm-kicker {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.tm-front .entry-content .tm-hero__title {
  margin: 0 0 clamp(24px, 3vw, 40px);
  color: var(--tm-dark);
  font-family: var(--tm-sans);
  font-size: clamp(34px, 3.2vw, 56px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -.035em;
}

@media (min-width: 961px) {
  .tm-hero__title .tm-line {
    width: max-content;
    max-width: none;
  }

  .tm-hero__title .tm-line__in {
    white-space: nowrap;
  }
}

.tm-hero__copy {
  position: relative;
  z-index: 2;
}

.tm-line {
  display: block;
  overflow: hidden;
  padding: .06em 0 .14em;
  margin-bottom: -.08em;
}

.tm-line__in {
  display: block;
}

.tm-mark {
  background: linear-gradient(transparent 64%, rgba(113, 183, 230, .5) 64%, rgba(113, 183, 230, .5) 92%, transparent 92%) no-repeat 0 0 / 100% 100%;
}

.tm-js .tm-mark {
  background-size: 0% 100%;
  transition: background-size 1.1s var(--tm-ease) .9s;
}

.tm-js.tm-loaded .tm-mark {
  background-size: 100% 100%;
}

.tm-hero .tm-lead {
  max-width: 34em;
  margin: 0 0 clamp(32px, 4vw, 48px);
}

.tm-hero .wp-block-buttons {
  margin: 0;
}

.tm-hero__media {
  justify-self: end;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--tm-radius-lg) var(--tm-radius-lg);
  overflow: visible;
  box-shadow: none;
  background: none;
}

.tm-hero__media img {
  border-radius: 999px 999px var(--tm-radius-lg) var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-lg);
  background: var(--tm-soft);
}

/* ずらした輪郭 */
.tm-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1.5px solid var(--tm-dark);
  border-radius: 999px 999px var(--tm-radius-lg) var(--tm-radius-lg);
  transform: translate(18px, 18px);
  opacity: .55;
}

/* 回転バッジ（JSが挿入） */
.tm-badge {
  position: absolute;
  left: clamp(-84px, -5vw, -36px);
  bottom: 9%;
  z-index: 3;
  width: clamp(104px, 10vw, 144px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tm-white);
  box-shadow: var(--tm-shadow-lg);
  display: grid;
  place-items: center;
}

.tm-badge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: tm-spin 24s linear infinite;
}

.tm-badge text {
  fill: var(--tm-dark);
  font-family: var(--tm-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
}

.tm-badge i {
  font-style: normal;
  font-family: var(--tm-serif);
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--tm-ink);
  line-height: 1;
}

@keyframes tm-spin {
  to { transform: rotate(360deg); }
}

/* ふわふわ浮かぶチップ（JSが挿入） */
.tm-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--tm-radius-btn);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--tm-shadow-lg);
  color: var(--tm-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
  animation: tm-float 6s ease-in-out infinite;
  animation-delay: var(--tm-fd, 0s);
}

.tm-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tm-main);
}

.tm-chip--1 { top: 9%; right: -10%; --tm-fd: -1s; }
.tm-chip--2 { top: 40%; right: -14%; --tm-fd: -3s; }
.tm-chip--3 { bottom: 6%; right: -8%; --tm-fd: -4.5s; }

@keyframes tm-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -12px, 0); }
}

/* スクロールのヒント（JSが挿入） */
.tm-scroll {
  position: absolute;
  left: var(--tm-gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tm-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3em;
  writing-mode: horizontal-tb;
}

.tm-scroll::after {
  content: "";
  width: 56px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--tm-dark) 50%, transparent 50%) 0 0 / 200% 100%;
  animation: tm-scrollline 2.2s var(--tm-ease) infinite;
}

@keyframes tm-scrollline {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}

/* ------------------------------------------------------------ */
/* MARQUEE（JSが挿入） */
/* ------------------------------------------------------------ */
.tm-marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  background: var(--tm-dark);
  color: var(--tm-bg);
  white-space: nowrap;
}

.tm-marquee__track {
  display: inline-flex;
  animation: tm-marquee 38s linear infinite;
  will-change: transform;
}

.tm-marquee:hover .tm-marquee__track {
  animation-play-state: paused;
}

.tm-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
  font-family: var(--tm-serif);
  font-size: clamp(28px, 4vw, 54px);
  font-style: italic;
  line-height: 1.2;
}

.tm-marquee__item span {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.tm-marquee__item span::after {
  content: "✦";
  font-family: var(--tm-sans);
  font-style: normal;
  font-size: .5em;
  color: var(--tm-main);
}

@keyframes tm-marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------ */
/* ISSUES：エディトリアルなリスト */
/* ------------------------------------------------------------ */
.tm-issues {
  background: var(--tm-soft);
}

.tm-issues > .tm-container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.tm-issues .tm-kicker,
.tm-issues .tm-section-title,
.tm-issues__lead {
  grid-column: 1;
}

.tm-issues__grid {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: block;
  counter-reset: tm-issue;
  margin: 0;
  border-top: 1.5px solid var(--tm-dark);
}

.tm-issue {
  position: relative;
  counter-increment: tm-issue;
  display: grid;
  grid-template-columns: 64px 1fr 28px;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: clamp(20px, 2.4vw, 30px) 8px;
  border: 0;
  border-bottom: 1px solid rgba(36, 67, 95, .25);
  border-radius: 0;
  background: transparent;
  color: var(--tm-dark);
  font-size: clamp(16px, 1.55vw, 21px);
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  transition: padding .6s var(--tm-ease), background .4s ease, color .4s ease;
}

.tm-issue::before {
  content: counter(tm-issue, decimal-leading-zero);
  font-family: var(--tm-serif);
  font-size: 34px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--tm-ink);
}

.tm-issue::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tm-main);
  transform: scale(0);
  transition: transform .5s var(--tm-ease);
}

.tm-issue:hover {
  padding-left: 28px;
  background: var(--tm-white);
}

.tm-issue:hover::after {
  transform: scale(1);
}

.tm-issues__lead {
  position: relative;
  margin: clamp(8px, 2vw, 24px) 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--tm-main);
  text-align: left;
  font-weight: 500;
  color: var(--tm-dark);
}

/* ------------------------------------------------------------ */
/* SERVICES */
/* ------------------------------------------------------------ */
.tm-services {
  background: var(--tm-bg);
}

.tm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  counter-reset: tm-card;
  align-items: start;
}

.tm-card {
  position: relative;
  counter-increment: tm-card;
  overflow: hidden;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-white);
  box-shadow: var(--tm-shadow);
  transition: transform .7s var(--tm-ease), box-shadow .7s var(--tm-ease);
}

.tm-card:nth-child(2) {
  margin-top: clamp(0px, 5vw, 72px);
}

.tm-card:nth-child(3) {
  margin-top: clamp(0px, 10vw, 144px);
}

.tm-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--tm-shadow-lg);
}

.tm-card::before {
  content: counter(tm-card, decimal-leading-zero);
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 2;
  padding: 4px 14px 2px;
  border-radius: var(--tm-radius-btn);
  background: rgba(255, 255, 255, .9);
  color: var(--tm-dark);
  font-family: var(--tm-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.3;
}

.tm-card__image {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.tm-card:hover .tm-card__image img {
  transform: scale(1.07);
}

.tm-card__body {
  padding: clamp(22px, 2.4vw, 34px);
}

.tm-front .entry-content .tm-card__title {
  margin: 0 0 14px;
  color: var(--tm-dark);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 900;
  line-height: 1.4;
}

.tm-card__body p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.95;
}

.tm-card__body p:last-child {
  margin: 22px 0 0;
}

/* ------------------------------------------------------------ */
/* WORKS */
/* ------------------------------------------------------------ */
.tm-works {
  background: var(--tm-soft);
}

.tm-works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  margin-bottom: clamp(40px, 5vw, 72px);
  align-items: start;
}

.tm-work {
  position: relative;
  border-radius: var(--tm-radius-lg);
  overflow: hidden;
  background: var(--tm-white);
  border: 1px solid var(--tm-border);
  transition: transform .7s var(--tm-ease), box-shadow .7s var(--tm-ease);
}

.tm-work:nth-child(even) {
  margin-top: clamp(0px, 4.5vw, 64px);
}

.tm-work:hover {
  transform: translateY(-8px);
  box-shadow: var(--tm-shadow-lg);
}

.tm-work__thumb {
  aspect-ratio: 4 / 5;
  border-radius: 0;
}

.tm-work:hover .tm-work__thumb img {
  transform: scale(1.08);
}

.tm-work__body {
  padding: 20px 22px 24px;
}

.tm-front .entry-content .tm-work__body h3 {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--tm-dark);
}

.tm-label {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 12px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-btn);
  background: var(--tm-soft);
  color: var(--tm-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------ */
/* ABOUT */
/* ------------------------------------------------------------ */
.tm-about {
  overflow: hidden;
  background: var(--tm-bg);
}

.tm-about::before {
  content: "ABOUT";
  position: absolute;
  top: clamp(24px, 4vw, 56px);
  right: -2vw;
  color: transparent;
  font-family: var(--tm-serif);
  font-size: clamp(120px, 24vw, 380px);
  font-style: italic;
  line-height: .8;
  -webkit-text-stroke: 1.5px var(--tm-border);
  pointer-events: none;
  user-select: none;
}

.tm-about__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: center;
}

.tm-about__image {
  aspect-ratio: 4 / 5;
  border-radius: 200px 200px var(--tm-radius-lg) var(--tm-radius-lg);
  overflow: visible;
  background: none;
}

.tm-about__image img {
  border-radius: 200px 200px var(--tm-radius-lg) var(--tm-radius-lg);
  box-shadow: var(--tm-shadow-lg);
  background: var(--tm-soft);
}

.tm-about__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 200px 200px var(--tm-radius-lg) var(--tm-radius-lg);
  background: var(--tm-main);
  opacity: .35;
  transform: translate(-20px, 20px);
}

.tm-front .entry-content .tm-about .tm-section-title {
  font-size: clamp(26px, 3vw, 46px);
}

.tm-about p {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 2.1;
}

.tm-about p strong {
  display: inline;
  color: var(--tm-dark);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 900;
  line-height: 1.9;
  background: linear-gradient(transparent 62%, rgba(113, 183, 230, .45) 62%, rgba(113, 183, 230, .45) 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
}

.tm-js .tm-about p strong {
  background-size: 0% 100%;
  transition: background-size 1.2s var(--tm-ease) .3s;
}

.tm-js .tm-about p.is-in strong,
.tm-js .tm-about p:not([data-tm-r]) strong {
  background-size: 100% 100%;
}

/* ------------------------------------------------------------ */
/* BLOG */
/* ------------------------------------------------------------ */
.tm-blog {
  background: var(--tm-soft);
}

.tm-blog .tm-lead {
  max-width: 36em;
}

.tm-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  list-style: none;
  margin: clamp(32px, 4vw, 56px) 0;
  padding: 0;
}

.tm-blog__grid > li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-white);
  box-shadow: var(--tm-shadow);
  transition: transform .7s var(--tm-ease), box-shadow .7s var(--tm-ease);
}

.tm-blog__grid > li:hover {
  transform: translateY(-8px);
  box-shadow: var(--tm-shadow-lg);
}

.tm-blog__grid > li:hover .tm-blog__thumb img {
  transform: scale(1.07);
}

.tm-blog__thumb {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  margin: 0;
}

.tm-blog__title,
.tm-blog__date,
.tm-blog__excerpt {
  padding-inline: 26px;
}

.tm-blog__date {
  order: 2;
  display: block;
  margin: 22px 0 6px;
  color: var(--tm-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.tm-front .entry-content .tm-blog__title {
  order: 3;
  margin: 0 0 10px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 900;
  line-height: 1.55;
}

.tm-blog__title a {
  color: var(--tm-dark);
  text-decoration: none;
  background: linear-gradient(var(--tm-main), var(--tm-main)) no-repeat 0 100% / 0% 2px;
  transition: background-size .6s var(--tm-ease);
}

.tm-blog__title a:hover {
  background-size: 100% 2px;
}

.tm-front .entry-content .tm-blog__excerpt {
  order: 4;
  margin: 0;
  padding-bottom: 30px;
  color: var(--tm-text);
  font-size: 14px;
  line-height: 1.9;
}

.tm-blog__grid .wp-block-post-featured-image {
  order: 1;
}

/* ------------------------------------------------------------ */
/* CTA */
/* ------------------------------------------------------------ */
.tm-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 13vw, 200px) 0;
  background-color: var(--tm-dark);
  background-image:
    linear-gradient(135deg, rgba(36, 67, 95, .94), rgba(36, 67, 95, .86)),
    url("../images/cta-kumamoto.webp");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: left;
}

.tm-cta::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(32% 32% at 80% 30%, rgba(113, 183, 230, .38), transparent 70%),
    radial-gradient(28% 28% at 15% 80%, rgba(113, 183, 230, .22), transparent 70%);
  animation: tm-drift 20s ease-in-out infinite alternate;
}

.tm-cta__inner {
  width: min(calc(100% - var(--tm-gutter) * 2), var(--tm-max));
  margin-inline: auto;
}

.tm-cta__inner > * {
  max-width: min(100%, 760px);
}

.tm-cta .tm-kicker {
  color: var(--tm-main);
}

.tm-front .entry-content .tm-cta .tm-section-title {
  color: #fff;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.34;
  letter-spacing: -.03em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.tm-cta .tm-lead {
  color: rgba(255, 255, 255, .86);
  margin: 0 0 clamp(36px, 5vw, 56px);
  max-width: 32em;
}

.tm-cta .wp-block-buttons {
  justify-content: flex-start;
}

.tm-front .tm-cta .tm-button-wrap .wp-block-button__link {
  background: #fff;
  color: var(--tm-dark) !important;
  min-height: 76px;
  padding: 12px 12px 12px 40px;
  font-size: clamp(16px, 1.6vw, 19px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5);
}

.tm-front .tm-cta .tm-button-wrap .wp-block-button__link::after {
  width: 52px;
  height: 52px;
  background: var(--tm-dark);
  color: #fff;
}

.tm-front .tm-cta .tm-button-wrap .wp-block-button__link:hover::before {
  background: var(--tm-main);
}

/* ------------------------------------------------------------ */
/* キャラクター（透過イラスト）の見せ方 */
/* ------------------------------------------------------------ */
.tm-char--a { --tm-tone: linear-gradient(165deg, #ffffff 0%, var(--tm-soft) 38%, rgba(113, 183, 230, .55) 100%); }
.tm-char--b { --tm-tone: linear-gradient(200deg, var(--tm-soft) 0%, rgba(113, 183, 230, .32) 55%, rgba(113, 183, 230, .62) 100%); }
.tm-char--c { --tm-tone: linear-gradient(150deg, rgba(113, 183, 230, .5) 0%, var(--tm-soft) 55%, #ffffff 100%); }

.tm-char {
  background: var(--tm-tone) !important;
}

.tm-char img {
  object-fit: contain !important;
  object-position: var(--tm-pos, 50% 100%) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* カード・実績：イラストを大きく見せて上半身を切り出す */
.tm-card__image.tm-char img,
.tm-work__thumb.tm-char img {
  object-fit: cover !important;
}

.tm-hero__media.tm-char {
  box-shadow: var(--tm-shadow-lg);
}

.tm-hero__media.tm-char img,
.tm-about__image.tm-char img {
  object-fit: cover !important;
}

.tm-hero__media.tm-char img {
  clip-path: inset(0 round 0 0 var(--tm-radius-lg) var(--tm-radius-lg));
}

.tm-about__image.tm-char {
  box-shadow: var(--tm-shadow-lg);
}

/* ISSUES / CTA に挿入するキャラクター */
.tm-figure {
  pointer-events: none;
}

.tm-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.tm-figure--issues {
  grid-column: 1;
  position: relative;
  align-self: end;
  justify-self: start;
  width: min(100%, 380px);
  margin-top: clamp(24px, 4vw, 56px);
}

.tm-figure--issues::before {
  content: "";
  position: absolute;
  inset: 12% 4% 0;
  z-index: -1;
  border-radius: 50% 50% var(--tm-radius-lg) var(--tm-radius-lg);
  background: linear-gradient(180deg, rgba(113, 183, 230, .35), rgba(255, 255, 255, .85));
}

.tm-figure--cta {
  position: absolute;
  right: clamp(-40px, 2vw, 40px);
  bottom: 0;
  z-index: 1;
  width: clamp(280px, 36vw, 560px);
}

.tm-figure--cta::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 86%;
  z-index: -1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(113, 183, 230, .55), rgba(113, 183, 230, .08));
}

.tm-cta__inner {
  position: relative;
  z-index: 2;
}

/* ------------------------------------------------------------ */
/* スクロールリビール（JSが data-tm-r を付与） */
/* ------------------------------------------------------------ */
.tm-js [data-tm-r] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 1s var(--tm-ease), transform 1.1s var(--tm-ease);
  transition-delay: var(--tm-d, 0s);
}

.tm-js [data-tm-r].is-in {
  opacity: 1;
  transform: none;
}

.tm-js [data-tm-r="line"] {
  transform: scaleX(0);
}

/* ヒーロー読み込み演出 */
.tm-js .tm-line__in {
  transform: translate3d(0, 110%, 0);
  transition: transform 1.2s var(--tm-ease);
  transition-delay: calc(.15s + var(--i, 0) * .12s);
}

.tm-js.tm-loaded .tm-line__in {
  transform: none;
}

.tm-js .tm-hero__media {
  clip-path: inset(100% 0 0 0 round 0);
  transition: clip-path 1.4s var(--tm-ease) .3s;
}

.tm-js.tm-loaded .tm-hero__media {
  clip-path: inset(-200px -200px -60px -200px);
}

/* ------------------------------------------------------------ */
/* Responsive */
/* ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .tm-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-work:nth-child(even) {
    margin-top: 0;
  }

  .tm-work:nth-child(n + 3) {
    margin-top: 0;
  }

  .tm-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }
}

@media (max-width: 860px) {
  .tm-front #navi {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .tm-front #header-container-in {
    padding: 8px 12px 8px 22px;
  }

  .tm-front .navi-in > ul > li > a {
    padding: 10px 12px !important;
    font-size: 13px;
  }

  .tm-hero {
    min-height: 0;
  }

  .tm-hero__grid,
  .tm-about__grid,
  .tm-issues > .tm-container {
    grid-template-columns: 1fr;
  }

  .tm-hero__media {
    justify-self: center;
    width: min(78%, 380px);
    margin-top: 24px;
  }

  .tm-badge {
    left: -8%;
  }

  .tm-chip--1 { right: -4%; }
  .tm-chip--2 { right: -6%; }
  .tm-chip--3 { right: -3%; }

  .tm-scroll {
    display: none;
  }

  .tm-issues__grid {
    grid-column: 1;
    grid-row: auto;
    margin: 8px 0 32px;
  }

  .tm-issues .tm-kicker,
  .tm-issues .tm-section-title,
  .tm-issues__lead {
    grid-column: 1;
  }

  .tm-card-grid {
    grid-template-columns: 1fr;
  }

  .tm-card:nth-child(2),
  .tm-card:nth-child(3) {
    margin-top: 0;
  }

  .tm-blog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-about__image {
    width: min(80%, 420px);
    margin-inline: auto;
  }

  .tm-figure--issues {
    justify-self: center;
    width: min(70%, 320px);
  }

  .tm-cta {
    text-align: center;
    padding-bottom: 0;
  }

  .tm-cta__inner > * {
    margin-inline: auto;
  }

  .tm-cta .tm-kicker,
  .tm-cta .wp-block-buttons {
    justify-content: center;
  }

  .tm-figure--cta {
    position: relative;
    right: auto;
    width: min(78%, 360px);
    margin: clamp(32px, 6vw, 56px) auto 0;
  }
}

@media (max-width: 600px) {
  .tm-chip {
    padding: 8px 14px 8px 12px;
    font-size: 12px;
  }

  .tm-front #header-container {
    top: 10px;
    width: calc(100% - 20px);
  }


  .tm-section {
    padding: 72px 0;
  }

  .tm-hero {
    padding-top: 112px;
  }

  .tm-hero__title {
    font-size: clamp(32px, 9.6vw, 44px);
  }

  .tm-issue {
    grid-template-columns: 48px 1fr;
  }

  .tm-issue::after {
    display: none;
  }

  .tm-issue:hover {
    padding-left: 8px;
  }

  .tm-works-grid,
  .tm-blog__grid {
    grid-template-columns: 1fr;
  }

  .tm-front .tm-button-wrap .wp-block-button__link {
    width: 100%;
    max-width: 340px;
    justify-content: space-between;
  }

  .tm-front .tm-cta .tm-button-wrap .wp-block-button__link {
    padding-left: 28px;
    font-size: 15px;
  }
}

@media (hover: none), (pointer: coarse) {
  .tm-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-front *,
  .tm-front *::before,
  .tm-front *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .tm-front [data-tm-r],
  .tm-front .tm-line__in {
    opacity: 1 !important;
    transform: none !important;
  }

  .tm-front .tm-hero__media {
    clip-path: none !important;
  }

  .tm-front .tm-mark,
  .tm-front .tm-about p strong {
    background-size: 100% 100% !important;
  }
}

/* ============================================================ */
/* PROFILE ページ（固定ページ /profile/） */
/* TOPと同じ部品（ヘッダー・ヒーロー・見出し・ボタン・CTA）を流用し、 */
/* 下記 .tm-pf- / .tm-hero--sub / .tm-stat のみ追加 */
/* ============================================================ */

/* ヒーロー（サブページ版：画面いっぱいにはしない） */
.tm-hero--sub {
  display: block;
  min-height: 0;
  padding-bottom: clamp(56px, 6vw, 96px);
}

.tm-front .entry-content .tm-hero--sub .tm-hero__title {
  font-size: clamp(44px, 6.4vw, 104px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.tm-hero--sub .tm-hero__title .tm-line:nth-child(2) .tm-line__in {
  font-family: var(--tm-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tm-ink);
}

/* 数字のスタッツ */
.tm-pf-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - var(--tm-gutter) * 2), var(--tm-max));
  margin: clamp(48px, 6vw, 96px) auto 0;
  border-top: 1.5px solid var(--tm-dark);
}

.tm-pf-stat {
  padding: 24px 16px 0 0;
}

.tm-front .entry-content .tm-stat__num {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: var(--tm-dark);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.tm-stat__num .tm-num {
  font-family: var(--tm-serif);
  font-size: clamp(48px, 5.6vw, 84px);
  font-style: italic;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
}

.tm-front .entry-content .tm-stat__label {
  margin: 8px 0 0;
  color: var(--tm-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* MOTTO */
.tm-pf-motto {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 12vw, 176px) 0;
  background: var(--tm-dark);
  color: #fff;
}

.tm-pf-motto::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -16%;
  width: min(80vw, 920px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 150px rgba(255, 255, 255, .02);
  pointer-events: none;
}

.tm-pf-motto__in {
  position: relative;
}

.tm-pf-motto .tm-kicker {
  color: var(--tm-main);
}

.tm-front .entry-content .tm-pf-motto__title {
  margin: 0 0 clamp(28px, 4vw, 56px);
  font-size: clamp(40px, 7.4vw, 120px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.04em;
  color: #fff;
  background-image: linear-gradient(100deg, #fff 35%, var(--tm-main) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent;
}

.tm-front .entry-content .tm-pf-motto__text {
  max-width: 36em;
  margin: 0 0 1.1em;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.1;
  word-break: auto-phrase;
}

/* できること */
.tm-pf-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  counter-reset: pfc;
  margin: clamp(32px, 4vw, 56px) 0 0;
}

.tm-pf-card {
  position: relative;
  counter-increment: pfc;
  padding: clamp(88px, 9vw, 120px) clamp(26px, 3vw, 42px) clamp(28px, 3vw, 42px);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-white);
  box-shadow: var(--tm-shadow);
  transition: transform .7s var(--tm-ease), box-shadow .7s var(--tm-ease);
}

.tm-pf-card::before {
  content: counter(pfc, decimal-leading-zero);
  position: absolute;
  top: clamp(22px, 2.4vw, 34px);
  left: clamp(26px, 3vw, 42px);
  color: var(--tm-main);
  font-family: var(--tm-serif);
  font-size: clamp(44px, 4.6vw, 64px);
  font-style: italic;
  line-height: 1;
}

.tm-pf-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--tm-shadow-lg);
}

.tm-front .entry-content .tm-pf-card__title {
  margin: 0 0 14px;
  color: var(--tm-dark);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 900;
  line-height: 1.5;
}

.tm-pf-card p,
.tm-pf-point p,
.tm-pf-genre p {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.tm-front .entry-content .tm-pf-subtitle {
  margin: clamp(56px, 7vw, 104px) 0 24px;
  color: var(--tm-dark);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
}

.tm-pf-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  padding-top: 28px;
  border-top: 1.5px solid var(--tm-dark);
}

.tm-front .entry-content .tm-pf-point__title {
  margin: 0 0 10px;
  color: var(--tm-dark);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

/* 得意ジャンル */
.tm-pf-genre-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  counter-reset: pfg;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.tm-pf-genre {
  position: relative;
  counter-increment: pfg;
  overflow: hidden;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-white);
  transition: transform .7s var(--tm-ease), box-shadow .7s var(--tm-ease);
}

.tm-pf-genre::before {
  content: counter(pfg, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  color: var(--tm-ink);
  font-family: var(--tm-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1;
}

.tm-pf-genre::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 4px;
  background: var(--tm-main);
  transition: width .7s var(--tm-ease);
}

.tm-pf-genre:hover {
  transform: translateY(-6px);
  box-shadow: var(--tm-shadow-lg);
}

.tm-pf-genre:hover::after {
  width: 100%;
}

.tm-front .entry-content .tm-pf-genre__title {
  margin: 0 0 10px;
  color: var(--tm-dark);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 900;
  line-height: 1.4;
}

.tm-pf-genres__note {
  max-width: 40em;
  margin: 0;
  font-size: 15px;
}

/* わたしのこと */
.tm-pf-me__grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 7vw, 112px);
  align-items: start;
}

.tm-pf-photo {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--tm-shadow-lg);
}

.tm-pf-rows {
  border-top: 1.5px solid var(--tm-dark);
}

.tm-pf-row {
  display: grid;
  grid-template-columns: clamp(96px, 10vw, 140px) minmax(0, 1fr);
  gap: 20px;
  padding: clamp(14px, 1.6vw, 20px) 0;
  border-bottom: 1px solid var(--tm-border);
  transition: padding .5s var(--tm-ease), background .4s ease;
}

.tm-pf-row:hover {
  padding-left: 14px;
  background: var(--tm-soft);
}

.tm-front .entry-content .tm-pf-row__k {
  margin: 0;
  color: var(--tm-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.tm-front .entry-content .tm-pf-row__v {
  margin: 0;
  color: var(--tm-text);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
}

/* LINE相談 */
.tm-pf-line__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}

.tm-pf-qr {
  justify-self: center;
  width: min(100%, 260px);
  margin: 0;
  padding: 26px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-white);
  box-shadow: var(--tm-shadow-lg);
  transform: rotate(3deg);
  transition: transform .8s var(--tm-ease);
}

.tm-pf-qr:hover {
  transform: rotate(0);
}

.tm-pf-qr img {
  display: block;
  width: 100% !important;
  height: auto !important;
  image-rendering: pixelated;
}

@media (max-width: 960px) {
  .tm-pf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-pf-stat {
    padding-bottom: 20px;
  }

  .tm-pf-cards,
  .tm-pf-points,
  .tm-pf-me__grid,
  .tm-pf-line__grid {
    grid-template-columns: 1fr;
  }

  .tm-pf-genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-pf-photo {
    position: relative;
    top: auto;
    width: min(76%, 360px);
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .tm-pf-genre-grid {
    grid-template-columns: 1fr;
  }

  .tm-pf-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .tm-pf-qr {
    width: min(70%, 240px);
  }
}

/* ============================================================ */
/* WORKS ページ（固定ページ /works/ ・本文に tm-wk-hero を含むページ） */
/* ============================================================ */
.tm-wk-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tm-wk-case .tm-container > .tm-section-title {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.tm-front .entry-content .tm-wk-text {
  max-width: 46em;
  margin: 0 0 1.2em;
  font-size: 15px;
  line-height: 2;
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* サイトのスクリーンショット（ブラウザ枠） */
.tm-wk-site {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  margin: 0 0 clamp(24px, 3vw, 40px);
}

.tm-wk-shot {
  position: relative;
  margin: 0;
  padding-top: 40px;
  overflow: hidden;
  border: 1.5px solid var(--tm-dark);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-soft);
  box-shadow: var(--tm-shadow-lg);
}

.tm-wk-shot::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F2A65A;
  box-shadow: 20px 0 0 var(--tm-main), 40px 0 0 #fff;
}

.tm-wk-shot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  border-bottom: 1.5px solid var(--tm-dark);
  pointer-events: none;
}

.tm-wk-shot img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.tm-wk-site__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.tm-front .entry-content .tm-wk-site__name {
  margin: 0;
  color: var(--tm-dark);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 900;
  line-height: 1.6;
}

.tm-wk-site__info .wp-block-buttons {
  margin: 0;
}

/* 対応したこと */
.tm-wk-tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px clamp(16px, 2.4vw, 32px);
  margin: 0;
}

.tm-front .entry-content .tm-wk-task {
  position: relative;
  margin: 0;
  padding: 18px 20px 18px 58px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  background: var(--tm-white);
  color: var(--tm-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  transition: transform .5s var(--tm-ease), box-shadow .5s var(--tm-ease);
}

.tm-wk-task::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tm-main);
  transform: translateY(-50%);
}

.tm-wk-task::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 28px;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: translateY(-62%) rotate(45deg);
}

.tm-wk-task:hover {
  transform: translateY(-3px);
  box-shadow: var(--tm-shadow);
}

/* タグ（担当範囲／対応できること） */
.tm-wk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.tm-front .entry-content .tm-wk-tag {
  margin: 0;
  padding: 9px 20px;
  border: 1.5px solid var(--tm-dark);
  border-radius: 999px;
  background: var(--tm-white);
  color: var(--tm-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.tm-wk-case--ai .tm-wk-tag {
  background: var(--tm-white);
}

/* AI業務改善：3つのシステム */
.tm-wk-systems {
  display: grid;
  gap: clamp(48px, 6vw, 96px);
  margin: clamp(48px, 6vw, 88px) 0 0;
}

.tm-wk-system {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4.5vw, 72px);
  align-items: center;
}

.tm-wk-system:nth-child(even) {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.tm-wk-system:nth-child(even) .tm-wk-system__img {
  order: 2;
}

.tm-wk-system__img {
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--tm-dark);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-bg);
  box-shadow: var(--tm-shadow-lg);
}

.tm-wk-system__img img {
  display: block;
  width: 100% !important;
  height: auto !important;
}

.tm-front .entry-content .tm-wk-system__title {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-dark);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.4;
}

.tm-wk-system__body p:not(.tm-kicker) {
  margin: 0 0 1em;
  font-size: 15px;
  line-height: 2;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.tm-wk-case--ai .tm-pf-subtitle {
  margin-top: clamp(56px, 7vw, 104px);
}

@media (max-width: 960px) {
  .tm-wk-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-wk-system,
  .tm-wk-system:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tm-wk-system:nth-child(even) .tm-wk-system__img {
    order: 0;
  }
}

@media (max-width: 600px) {
  .tm-wk-tasks {
    grid-template-columns: 1fr;
  }

  .tm-wk-site__info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* WORKS：はじめに（見出しをプロフィールのMOTTOより控えめに） */
.tm-front .entry-content .tm-wk-intro .tm-pf-motto__title {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.35;
  letter-spacing: -.02em;
}

.tm-wk-intro {
  padding-block: clamp(64px, 8vw, 120px);
}

/* WORKS：取材・インタビュー（2カード） */
.tm-wk-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  margin: clamp(40px, 5vw, 72px) 0 0;
}

.tm-wk-work .tm-wk-shot {
  margin-bottom: 28px;
}

.tm-front .entry-content .tm-wk-work__title {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-dark);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 900;
  line-height: 1.45;
}

.tm-wk-work p:not(.tm-kicker) {
  margin: 0 0 1em;
  font-size: 15px;
  line-height: 2;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.tm-wk-case--iv .tm-pf-subtitle {
  margin-top: clamp(48px, 6vw, 88px);
}

@media (max-width: 860px) {
  .tm-wk-works {
    grid-template-columns: 1fr;
  }
}

.tm-wk-work .wp-block-buttons {
  margin: 28px 0 0;
}
