/*
Theme Name: TEAM MEET
Theme URI: http://www.meet.team-mate.jp/
Author: TEAMMATE
Author URI: https://team-mate.jp/
Description: TEAMMATEの地域文化創生事業「TEAM MEET」のオリジナルテーマ。イベントの企画・運営、これまでの取り組み、成果、ニュース、お問い合わせを備えています。
Version: 2.4.4
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: teammeet
*/

/* ---------- tokens ---------- */
:root {
	--bg: #eeebe5;
	--paper: #fff;
	--ink: #1b2633;
	--ink-2: #4b5765;
	--line: rgba(27, 38, 51, .16);
	--yellow: #f4d35e;
	--coral: #f26b5b;
	--sky: #4fb3d9;
	--navy: #0d3b66;
	--ff-ja: "Noto Sans JP", "Hiragino Sans", sans-serif;
	--ff-en: "Outfit", "Noto Sans JP", sans-serif;
	--ff-label: "Quicksand", "Noto Sans JP", sans-serif;
	--wrap: 1200px;
	--gutter: clamp(20px, 5vw, 56px);
	--sec: clamp(88px, 11vw, 150px);
	--r: 28px;
	--r-lg: clamp(32px, 5vw, 64px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ff-ja); font-size: 16px; font-weight: 500; line-height: 2; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; font-weight: 900; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.pc { display: none; }
@media (min-width: 768px) { .pc { display: inline; } }
.screen-reader-text, .tm-skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tm-skip:focus { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 8px 16px; background: var(--yellow); border-radius: 99px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.tm-container { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.tm-container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.tm-section { position: relative; padding: var(--sec) 0; }
.tm-section__lead { max-width: 40em; margin: 0 0 56px; color: var(--ink-2); }
.tm-empty { padding: 32px; color: var(--ink-2); text-align: center; border: 1.5px dashed var(--line); border-radius: var(--r); }
.tm-icon { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; }
.tm-icon svg { width: 100%; height: 100%; }
.tm-wave, .tm-float, .tm-bubble, .tm-pop, .tm-pcard__sticker, .tm-hero__badge, .tm-hero__deco, .tm-cta__badge, .tm-phero__sticker, .tm-what__img { display: none !important; }
.tm-color-yellow, .tm-color-coral, .tm-color-sky, .tm-color-mint { --c: var(--yellow); }
.tm-color-coral { --c: var(--coral); }
.tm-color-sky, .tm-color-mint { --c: var(--sky); }

/* ---------- heading ---------- */
.tm-heading { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; margin-bottom: 48px; }
.tm-heading__ja { order: 1; font-size: clamp(32px, 5vw, 56px); letter-spacing: .06em; line-height: 1.3; }
.tm-heading__en { order: 2; margin: 0 0 .55em; font-family: var(--ff-label); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: lowercase; color: var(--ink-2); }
.tm-heading__en span::first-letter { text-transform: uppercase; }
.tm-heading__en span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }
.tm-heading.is-left { margin-bottom: 32px; }
.tm-heading.is-left .tm-heading__ja { font-size: clamp(26px, 3.6vw, 38px); }

/* ---------- buttons ---------- */
.tm-btn { --dot: var(--yellow); display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 54px; padding: 10px 14px 10px 26px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tm-btn::after { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--dot); border: 1.5px solid var(--ink); transition: transform .25s; }
.tm-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tm-btn:hover::after { transform: scale(1.25); }
.tm-btn .tm-icon { display: none; }
.tm-btn--navy { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--yellow); }
.tm-btn--navy:hover { box-shadow: 1px 1px 0 var(--yellow); }
.tm-btn--coral { --dot: var(--coral); }
.tm-btn--ghost { --dot: var(--sky); }
.tm-btn--yellow { --dot: var(--yellow); }

/* ---------- header ---------- */
.tm-header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 22px var(--gutter); pointer-events: none; transition: padding .3s; }
.tm-header > * { pointer-events: auto; }
.tm-header.is-scrolled { padding-top: 12px; padding-bottom: 12px; }
.tm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.admin-bar .tm-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tm-header { top: 46px; } }
.tm-logo { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; background: rgba(238, 235, 229, .85); backdrop-filter: blur(8px); border-radius: 99px; color: var(--ink); text-decoration: none; }
.tm-logo__img { max-height: 40px; width: auto; }
.tm-logo__mark { display: inline-flex; gap: 3px; }
.tm-logo__mark i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.tm-logo__mark i:nth-child(2) { background: var(--yellow); }
.tm-logo__mark i:nth-child(3) { background: transparent; border: 2px solid var(--ink); }
.tm-logo__text { font-family: "Josefin Sans", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .08em; line-height: 1; padding-top: 4px; }
.tm-logo__text b { font-weight: 700; margin-left: .2em; }
.tm-logo--light { background: none; backdrop-filter: none; padding: 0; color: #fff; }
.tm-logo--light .tm-logo__mark i { background: #fff; }
.tm-logo--light .tm-logo__mark i:nth-child(2) { background: var(--yellow); }
.tm-logo--light .tm-logo__mark i:nth-child(3) { background: transparent; border-color: #fff; }

.tm-nav__cta { position: relative; z-index: 2; margin-left: auto; }
.tm-nav__cta.tm-btn { min-height: 48px; padding: 6px 10px 6px 22px; gap: 20px; font-size: 14px; --dot: var(--coral); }
.tm-burger { position: relative; z-index: 2; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.tm-burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.tm-burger span:nth-child(1) { top: 18px; } .tm-burger span:nth-child(2) { top: 24px; } .tm-burger span:nth-child(3) { top: 30px; }
body.is-nav-open .tm-burger span:nth-child(1) { top: 24px; transform: rotate(45deg); }
body.is-nav-open .tm-burger span:nth-child(2) { opacity: 0; }
body.is-nav-open .tm-burger span:nth-child(3) { top: 24px; transform: rotate(-45deg); }
.tm-nav { position: fixed; inset: 0; z-index: 1; display: grid; place-content: center; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
body.is-nav-open .tm-nav { opacity: 1; visibility: visible; }
body.is-nav-open { overflow: hidden; }
.tm-nav__list { display: grid; gap: 6px; text-align: left; }
.tm-nav__list a { display: block; padding: 4px 0; font-weight: 900; font-size: clamp(26px, 4vw, 44px); letter-spacing: .06em; text-decoration: none; transition: color .2s, transform .2s; }
.tm-nav__list a:hover { transform: translateX(8px); }
.tm-nav__list a::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 14px; border-radius: 50%; background: var(--yellow); vertical-align: middle; opacity: 0; transition: opacity .2s; }
.tm-nav__list a:hover::after { opacity: 1; }
@media (max-width: 600px) { .tm-nav__cta.tm-btn { padding: 6px 8px 6px 16px; gap: 10px; font-size: 13px; } .tm-logo__text { font-size: 18px; } }

/* ---------- placeholder ---------- */
.tm-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; background-color: #e3dfd7; background-image: linear-gradient(rgba(27, 38, 51, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 38, 51, .06) 1px, transparent 1px); background-size: 22px 22px; color: var(--ink-2); }
.tm-ph span { font-family: var(--ff-label); font-weight: 700; font-size: 13px; letter-spacing: .2em; opacity: .7; }

/* ---------- hero ---------- */
.tm-hero { position: relative; padding: 120px var(--gutter) 40px; }
.tm-hero__bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .12; }
.tm-hero__inner { position: relative; display: grid; gap: 48px; align-items: center; max-width: none; padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 80px); border: 2px solid #fff; border-radius: var(--r-lg); background: rgba(255, 255, 255, .28); }
@media (min-width: 960px) { .tm-hero__inner { grid-template-columns: 1fr 1.05fr; min-height: calc(100svh - 180px); } }
.tm-hero__copy { position: relative; z-index: 2; }
.tm-hero__kicker { margin-bottom: 26px; font-family: var(--ff-label); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--ink-2); }
.tm-hero__lead { font-size: clamp(30px, 4.6vw, 68px); line-height: 1.3; letter-spacing: .05em; margin-bottom: 36px; }
.tm-hero__sub { max-width: 30em; margin-bottom: 40px; font-size: 15.5px; line-height: 2.1; color: var(--ink-2); }
.tm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tm-hero__collage { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1; margin: 0 auto; }
.tm-hero__blob { position: absolute; inset: 8% 4% 4% 10%; background: var(--yellow); border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%; animation: tm-blob 14s ease-in-out infinite; }
@media (max-width: 600px) { .tm-hero__lead { font-size: 8.2vw; } }
.tm-flow__step { align-items: center; }
@media (min-width: 960px) { .tm-hero__inner { grid-template-columns: 1.25fr .85fr; } }
.tm-scribble { white-space: nowrap; }
@keyframes tm-blob { 50% { border-radius: 44% 56% 40% 60% / 58% 44% 56% 42%; } }
.tm-hero__photo { position: absolute; overflow: hidden; background: #fff; border-radius: 24px; box-shadow: 0 20px 40px rgba(27, 38, 51, .12); }
.tm-hero__photo img, .tm-hero__photo .tm-ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.tm-hero__photo.p1 { top: 2%; left: 0; width: 64%; aspect-ratio: 4 / 3; }
.tm-hero__photo.p2 { top: 30%; right: 0; width: 44%; aspect-ratio: 3 / 4; border-radius: 999px 999px 24px 24px; }
.tm-hero__photo.p3 { bottom: 0; left: 12%; width: 50%; aspect-ratio: 4 / 3; }

/* hand-drawn marks */
.tm-mark { position: relative; display: inline-block; white-space: nowrap; }
.tm-mark::before { content: ""; position: absolute; left: -.18em; right: -.22em; top: -.12em; bottom: -.08em; border: 3px solid var(--coral); border-radius: 50% 46% 52% 48% / 58% 50% 52% 44%; transform: rotate(-4deg); pointer-events: none; }
.tm-scribble { position: relative; display: inline-block; }
.tm-scribble::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -.22em; height: .32em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15c40-9 80-11 120-6s70 7 110 0 45-6 64-3' fill='none' stroke='%234fb3d9' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M10 20c50-6 120-4 180-6s60 1 100-2' fill='none' stroke='%234fb3d9' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; pointer-events: none; }

/* marquee: giant soft text */
.tm-marquee { overflow: hidden; padding: 24px 0 0; pointer-events: none; }
.tm-marquee__track { display: flex; width: max-content; gap: 48px; animation: tm-marquee 60s linear infinite; }
.tm-marquee span { font-family: var(--ff-en); font-weight: 800; font-size: clamp(56px, 10vw, 140px); line-height: 1; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.tm-marquee i { display: none; }
@keyframes tm-marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.tm-about__grid { display: grid; gap: 64px; align-items: start; }
@media (min-width: 960px) { .tm-about__grid { grid-template-columns: 1.2fr 1fr; gap: 96px; } }
.tm-about__title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 28px; }
.tm-about__text p { color: var(--ink-2); }
.tm-keys { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.tm-key { display: grid; grid-template-columns: 110px 1fr; gap: 4px 20px; align-items: baseline; padding: 26px 0; border-bottom: 1.5px solid var(--line); }
.tm-key b { grid-row: span 2; font-family: var(--ff-en); font-weight: 800; font-size: 28px; letter-spacing: .02em; }
.tm-key b::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: var(--yellow); }
.tm-key:nth-child(2) b::after { background: var(--coral); }
.tm-key:nth-child(3) b::after { background: var(--sky); }
.tm-key span { font-weight: 900; font-size: 18px; }
.tm-key p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }

/* ---------- service ---------- */
.tm-town { margin: 0 var(--gutter); padding: var(--sec) 0; background: var(--paper); border-radius: var(--r-lg); }
.tm-town .tm-container { padding: 0 clamp(20px, 5vw, 72px); }
.tm-town__intro { display: grid; gap: 24px; margin-bottom: 64px; }
@media (min-width: 960px) { .tm-town__intro { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; } }
.tm-town__lead { margin: 0; font-weight: 900; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.5; }
.tm-town__text { margin: 0; color: var(--ink-2); }
.tm-what__grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .tm-what__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tm-what__grid { grid-template-columns: repeat(4, 1fr); } }
.tm-what__item { position: relative; padding: 30px 26px; background: var(--bg); border-radius: var(--r); }
.tm-what__num { display: block; margin-bottom: 18px; font-family: var(--ff-en); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.tm-what__num::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--c, var(--yellow)); vertical-align: 1px; }
.tm-what__item h3 { font-size: 18px; margin-bottom: 10px; }
.tm-what__item p { margin: 0; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.tm-town__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 40px; border-top: 1.5px solid var(--line); }
.tm-town__cta p { margin: 0; font-weight: 700; }
.tm-flow .tm-town__cta { border-top: 0; padding-top: 0; justify-content: flex-start; }

/* ---------- works ---------- */
.tm-projects__bg { background: none; }
.tm-pcards { display: grid; gap: clamp(64px, 9vw, 120px); }
.tm-pcard { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .tm-pcard { grid-template-columns: 1.15fr 1fr; gap: 72px; } .tm-pcard.is-rev .tm-pcard__media { order: 2; } }
.tm-pcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); text-decoration: none; }
.tm-pcard__img, .tm-pcard__media .tm-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tm-pcard__media:hover .tm-pcard__img, .tm-pcard__media:hover .tm-ph { transform: scale(1.04); }
.tm-pcard__num { position: absolute; z-index: 2; left: 22px; top: 18px; font-family: var(--ff-en); font-weight: 800; font-size: 20px; color: var(--ink); background: var(--bg); border-radius: 99px; padding: 2px 14px; }
.tm-pcard__en { margin-bottom: 10px; font-family: var(--ff-label); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--ink-2); }
.tm-pcard__en::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--c, var(--yellow)); vertical-align: 1px; }
.tm-pcard__title { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 14px; }
.tm-pcard__title a { text-decoration: none; }
.tm-pcard__catch { font-weight: 700; font-size: 17px; }
.tm-pcard__text { margin-bottom: 32px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }

/* ---------- results (dark panel) ---------- */
.tm-results { margin: 0 var(--gutter); background: var(--ink); color: #fff; border-radius: var(--r-lg); }
.tm-results .tm-container { padding: 0 clamp(20px, 5vw, 72px); }
.tm-results .tm-heading__en { color: rgba(255, 255, 255, .7); }
.tm-stats__grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: rgba(255, 255, 255, .18); border-radius: var(--r); overflow: hidden; }
.tm-stat { padding: 36px 24px 30px; background: var(--ink); text-align: left; }
.tm-stat__num { margin: 0 0 10px; line-height: 1; }
.tm-stat__num b { font-family: var(--ff-en); font-weight: 700; font-size: clamp(52px, 6vw, 76px); letter-spacing: -.01em; }
.tm-stat__num small { margin-left: 6px; font-weight: 700; font-size: 18px; }
.tm-stat:first-child .tm-stat__num b { color: var(--yellow); }
.tm-stat__label { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.tm-results__note { margin: 18px 0 80px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.tm-impacts { display: grid; gap: 0 56px; margin-bottom: 88px; }
@media (min-width: 768px) { .tm-impacts { grid-template-columns: repeat(2, 1fr); } }
.tm-impact { padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.tm-impact h3 { margin-bottom: 6px; font-size: 19px; }
.tm-impact h3::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 12px; border-radius: 50%; background: var(--yellow); vertical-align: 3px; }
.tm-impact p { margin: 0; font-size: 14.5px; line-height: 1.9; color: rgba(255, 255, 255, .78); }
.tm-results__sub { margin-bottom: 32px; font-size: 22px; }
.tm-voices__list { display: grid; gap: 20px; }
@media (min-width: 768px) { .tm-voices__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tm-results .tm-voices__list { grid-template-columns: repeat(3, 1fr); } }
.tm-voice { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 30px 28px 24px; background: var(--paper); color: var(--ink); border-radius: var(--r); }
.tm-voice::before { content: "“"; display: block; height: 30px; font-family: var(--ff-en); font-weight: 800; font-size: 56px; line-height: 1; color: var(--yellow); }
.tm-voice__text { font-size: 15px; font-weight: 700; line-height: 1.9; }
.tm-voice__name { margin: 0; font-size: 12.5px; color: var(--ink-2); }

/* ---------- flow ---------- */
.tm-flow__list { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.tm-flow__step { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: baseline; padding: 30px 0; border-bottom: 1.5px solid var(--line); }
.tm-flow__no { font-family: var(--ff-en); font-weight: 800; font-size: 40px; line-height: 1; }
.tm-flow__no small { display: block; margin-bottom: 6px; font-family: var(--ff-label); font-size: 12px; letter-spacing: .14em; color: var(--ink-2); }
.tm-flow__step h3 { margin-bottom: 4px; font-size: 20px; }
.tm-flow__step p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.tm-flow__step:hover .tm-flow__no { color: var(--coral); }
@media (min-width: 900px) { .tm-flow__step { grid-template-columns: 160px 280px 1fr; } .tm-flow__step > div { display: contents; } .tm-flow__step h3 { margin: 0; } }
@media (max-width: 560px) { .tm-flow__step { grid-template-columns: 72px 1fr; } .tm-flow__no { font-size: 30px; } }

/* ---------- movie ---------- */
.tm-video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border-radius: var(--r-lg); }
.tm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tm-movie__caption { margin-top: 20px; color: var(--ink-2); }

/* ---------- media ---------- */
.tm-media__grid { display: grid; gap: 20px; margin-bottom: 40px; }
@media (min-width: 768px) { .tm-media__grid { grid-template-columns: 1fr 1fr; } }
.tm-mcard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 40px 36px 34px; overflow: hidden; background: var(--paper); border-radius: var(--r-lg); text-decoration: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.tm-mcard:hover { transform: translateY(-4px); }
.tm-mcard__icon { position: absolute; top: 34px; right: 34px; width: 40px; height: 40px; }
.tm-mcard__thumb { position: relative; display: block; margin: -40px -36px 22px; aspect-ratio: 1.91 / 1; overflow: hidden; background: var(--bg); }
.tm-mcard__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tm-mcard:hover .tm-mcard__thumb img { transform: scale(1.04); }
.tm-mcard__thumb .tm-mcard__icon { top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; padding: 11px; background: var(--paper); border-radius: 50%; color: var(--ink); }
.tm-mcard__thumb + .tm-mcard__en + .tm-mcard__title { padding-right: 0; }
.tm-mcard__icon .tm-icon { width: 100%; height: 100%; }
.tm-mcard--yt .tm-mcard__icon { color: #e33; }
.tm-mcard__en { font-family: var(--ff-label); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--ink-2); }
.tm-mcard__title { padding-right: 56px; font-family: var(--ff-ja); font-weight: 900; font-size: clamp(21px, 2.2vw, 26px); line-height: 1.45; }
.tm-mcard__text { margin-bottom: 16px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.tm-mcard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; font-size: 14px; }
.tm-social { display: flex; gap: 10px; }
.tm-social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: background .2s; }
.tm-social a:hover { background: var(--yellow); }
.tm-social .tm-icon { width: 20px; height: 20px; }
.tm-social--light a { background: rgba(255, 255, 255, .1); color: #fff; }
.tm-social--light a:hover { background: var(--yellow); color: var(--ink); }

/* ---------- news ---------- */
.tm-news__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.tm-news__head .tm-heading { margin: 0; }
.tm-posts { display: grid; gap: 28px; }
@media (min-width: 700px) { .tm-posts { grid-template-columns: repeat(3, 1fr); } }
.tm-post__link { display: block; height: 100%; text-decoration: none; }
.tm-post__media { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 18px; border-radius: var(--r); }
.tm-post__img, .tm-post__media .tm-ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .5s; }
.tm-post__link:hover .tm-post__img, .tm-post__link:hover .tm-ph { transform: scale(1.04); }
.tm-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 6px; font-family: var(--ff-en); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tm-post__title { font-size: 17px; line-height: 1.7; }
.tm-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-ja); font-weight: 700; font-size: 12px; text-decoration: none; color: var(--ink); }
.tm-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.tm-tag--event::before { background: var(--coral); }
.tm-catnav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.tm-catnav a { display: block; padding: 6px 20px; background: var(--paper); border-radius: 99px; font-weight: 700; font-size: 14px; text-decoration: none; }
.tm-catnav a[aria-current], .tm-catnav a:hover { background: var(--ink); color: #fff; }
.tm-pager { margin-top: 56px; }
.tm-pager .nav-links { display: inline-flex; gap: 8px; }
.tm-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; background: var(--paper); border-radius: 50%; font-family: var(--ff-en); font-weight: 700; text-decoration: none; }
.tm-pager .current { background: var(--ink); color: #fff; }

/* ---------- contact cta ---------- */
.tm-cta { padding: 0 var(--gutter) var(--sec); }
.tm-cta__inner { position: relative; max-width: none; padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 96px); background: var(--yellow); border-radius: var(--r-lg); }
.tm-cta .tm-heading__ja { font-size: clamp(36px, 6vw, 72px); }
.tm-cta .tm-heading__en span::before { background: var(--ink); }
.tm-cta__text { max-width: 36em; margin-bottom: 40px; font-weight: 700; }
.tm-cta__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- footer ---------- */
.tm-footer { padding: 72px 0 32px; background: var(--ink); color: #fff; }
.tm-footer__inner { display: grid; gap: 48px; padding-bottom: 56px; }
@media (min-width: 768px) { .tm-footer__inner { grid-template-columns: 2fr 1fr 1fr; } }
.tm-footer__tag { margin: 20px 0 24px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.tm-footer__label { margin-bottom: 14px; font-family: var(--ff-label); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--yellow); }
.tm-footer__nav ul { display: grid; gap: 6px; }
.tm-footer__nav a { font-size: 14px; text-decoration: none; color: rgba(255, 255, 255, .85); }
.tm-footer__nav a:hover { color: var(--yellow); }
.tm-footer__nav .tm-nav__list { gap: 6px; margin-bottom: 6px; }
.tm-footer__nav .tm-nav__list a { padding: 0; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.tm-footer__nav .tm-nav__list a::after { display: none; }
.tm-footer__nav .tm-nav__list a:hover { transform: none; }
.tm-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; color: rgba(255, 255, 255, .7); }
.tm-footer__parent { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.tm-footer__parent:hover { color: var(--yellow); }

/* ---------- sub pages ---------- */
.tm-pagehead { padding: clamp(150px, 18vw, 220px) 0 clamp(48px, 6vw, 80px); }
.tm-pagehead__en { margin: 0 0 6px; font-family: var(--ff-en); font-weight: 800; font-size: clamp(56px, 11vw, 150px); line-height: 1; color: #fff; }
.tm-pagehead__ja { font-size: clamp(24px, 3.4vw, 36px); }
.tm-phero { padding: clamp(140px, 16vw, 190px) 0 clamp(48px, 6vw, 80px); }
.tm-phero__inner { display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .tm-phero__inner { grid-template-columns: 1fr 1.2fr; } }
.tm-crumb { margin-bottom: 24px; font-family: var(--ff-label); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--ink-2); }
.tm-crumb a { text-decoration: none; }
.tm-phero__en { margin-bottom: 10px; font-family: var(--ff-label); font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--ink-2); }
.tm-phero__en::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--c, var(--yellow)); vertical-align: 1px; }
.tm-phero__title { margin-bottom: 18px; font-size: clamp(34px, 5.6vw, 68px); line-height: 1.3; }
.tm-phero__catch { font-weight: 700; font-size: clamp(16px, 1.8vw, 20px); color: var(--ink-2); }
.tm-phero__photo { aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--r-lg); }
.tm-phero__photo img, .tm-phero__photo .tm-ph { width: 100%; height: 100%; object-fit: cover; }
.tm-intro__grid { display: grid; gap: 56px; align-items: start; }
@media (min-width: 960px) { .tm-intro__grid { grid-template-columns: 1.3fr 1fr; gap: 88px; } }
.tm-info { margin: 0; padding: 12px 32px; background: var(--paper); border-radius: var(--r); }
.tm-info div { display: grid; grid-template-columns: 7em 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tm-info div:last-child { border-bottom: 0; }
.tm-info dt { font-weight: 900; font-size: 14px; }
.tm-info dd { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.tm-prose > * + * { margin-top: 1.3em; }
.tm-prose p { color: var(--ink-2); }
.tm-prose h2 { margin-top: 2em; font-size: 26px; }
.tm-prose h3 { margin-top: 1.8em; font-size: 21px; }
.tm-prose a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 4px; }
.tm-prose img { border-radius: var(--r); }
.tm-prose blockquote { margin: 1.5em 0; padding: 20px 26px; background: var(--paper); border-radius: var(--r); }
.tm-what { background: none; }
.tm-stats:not(.tm-results) { margin: 0 var(--gutter); background: var(--ink); color: #fff; border-radius: var(--r-lg); }
.tm-stats:not(.tm-results) .tm-heading__en { color: rgba(255, 255, 255, .7); }
.tm-gallery__grid { display: grid; grid-auto-flow: dense; grid-auto-rows: 170px; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .tm-gallery__grid { grid-auto-rows: 220px; grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.tm-gallery__item { display: block; overflow: hidden; border-radius: var(--r); text-decoration: none; }
.tm-gallery__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.tm-gallery__item img, .tm-gallery__item .tm-ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .5s; }
.tm-gallery__item:hover img { transform: scale(1.04); }
.tm-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(27, 38, 51, .92); cursor: zoom-out; }
.tm-lightbox img { max-height: 90vh; border-radius: var(--r); }
.tm-voices { background: none; }
.tm-pcta { padding-top: 0; }
.tm-pcta .tm-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; background: var(--paper); border-radius: var(--r-lg); max-width: calc(var(--wrap)); }
.tm-pcta__lead { margin: 0; font-weight: 900; font-size: clamp(20px, 2.4vw, 28px); }
.tm-plist__grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .tm-plist__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.tm-plist__item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 30px 28px 72px; background: var(--paper); border-radius: var(--r); text-decoration: none; transition: transform .3s; }
.tm-plist__item:hover { transform: translateY(-4px); }
.tm-plist__icon { display: none; }
.tm-plist__en { font-family: var(--ff-label); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--ink-2); }
.tm-plist__item strong { font-weight: 900; font-size: 22px; }
.tm-plist__catch { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.tm-plist__arrow { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c, var(--yellow)); }
.tm-article { padding: clamp(140px, 16vw, 190px) 0 var(--sec); }
.tm-article__head { max-width: calc(780px + var(--gutter) * 2); margin-bottom: 36px; }
.tm-article__title { font-size: clamp(26px, 4vw, 40px); }
.tm-article__eyecatch { margin-bottom: 56px; }
.tm-article__eyecatch img { width: 100%; border-radius: var(--r-lg); }
.tm-article__nav { margin-top: 72px; }
.tm-contact__topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.tm-contact__topics li { padding: 6px 18px; background: var(--paper); border-radius: 99px; font-size: 14px; font-weight: 700; }
.tm-contact__box { padding: clamp(28px, 5vw, 56px); background: var(--paper); border-radius: var(--r-lg); }
.tm-contact__box input[type=text], .tm-contact__box input[type=email], .tm-contact__box input[type=tel], .tm-contact__box textarea, .tm-contact__box select { width: 100%; padding: 14px 18px; background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; font: inherit; transition: border-color .2s; }
.tm-contact__box input:focus, .tm-contact__box textarea:focus, .tm-contact__box select:focus { outline: 0; border-color: var(--ink); }
.tm-contact__box label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.tm-contact__box input[type=submit] { display: block; margin: 24px auto 0; padding: 16px 56px; background: var(--ink); color: #fff; border: 0; border-radius: 99px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 3px 3px 0 var(--yellow); }


/* ---------- v2.1 TEAM MEET identity ---------- */
:root { --bg: #f8f4e9; --ink: #0d3b66; --ink-2: #3f5a77; --line: rgba(13, 59, 102, .16); }
.tm-hero { padding: 150px 0 72px; }
.tm-hero__inner { max-width: calc(var(--wrap) + var(--gutter) * 2); padding: 0 var(--gutter); border: 0; background: none; border-radius: 0; min-height: 0 !important; }
.tm-hero__kicker { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--ink); }
.tm-hero__kicker::before { content: ""; width: 32px; height: 2px; background: var(--ink); }
.tm-hero__collage { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1 / 1; max-width: 540px; }
.tm-hero__blob { display: none; }
.tm-hero__photo { position: relative; inset: auto !important; width: auto !important; aspect-ratio: auto !important; border-radius: 18px; box-shadow: none; }
.tm-hero__photo.p1 { grid-row: 1 / 3; border-radius: 18px 18px 18px 120px; }
.tm-hero__photo.p2 { border-radius: 50%; }
.tm-hero__photo.p3 { border-radius: 18px 80px 18px 18px; }
.tm-mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 .06em; }
.tm-mark::before, .tm-scribble::after { display: none; }
.tm-scribble { white-space: normal; }
.tm-ph { background-color: #efe8d6; background-image: radial-gradient(rgba(13, 59, 102, .14) 1.3px, transparent 1.3px); background-size: 18px 18px; }

.tm-btn { gap: 18px; min-height: 54px; padding: 7px 7px 7px 26px; background: var(--ink); color: #fff; border: 0; box-shadow: none; }
.tm-btn::after { width: 40px; height: 40px; border: 0; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%230d3b66' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tm-btn:hover { transform: none; box-shadow: none; }
.tm-btn:hover::after { transform: translateX(4px); }
.tm-btn--navy { box-shadow: none; }
.tm-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.tm-btn--ghost::after { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tm-btn--yellow { background: var(--yellow); color: var(--ink); }
.tm-btn--yellow::after { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23f4d35e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tm-nav__cta.tm-btn { min-height: 46px; padding: 5px 5px 5px 20px; gap: 14px; background: var(--yellow); color: var(--ink); }
.tm-nav__cta.tm-btn::after { width: 36px; height: 36px; background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23f4d35e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tm-burger { background: var(--ink); border: 0; box-shadow: none; }
.tm-nav__cta.tm-btn { white-space: nowrap; }
@media (max-width: 600px) { .tm-nav__cta.tm-btn { padding: 5px; min-height: 46px; gap: 0; } .tm-nav__cta.tm-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .tm-hero { padding-top: 120px; } }
.tm-burger span { background: #fff; }
.tm-logo { background: rgba(248, 244, 233, .9); }

.tm-marquee { margin-top: 24px; padding: 16px 0; background: var(--ink); }
.tm-marquee__track { gap: 28px; animation-duration: 40s; }
.tm-marquee span { font-family: var(--ff-en); font-weight: 700; font-size: 16px; letter-spacing: .24em; color: #fff; }
.tm-marquee i { display: inline; font-style: normal; font-size: 12px; color: var(--yellow); align-self: center; }

.tm-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
.tm-heading__en { order: 0; margin: 0; display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; color: var(--ink); }
.tm-heading__en::before { content: ""; width: 32px; height: 2px; background: var(--yellow); }
.tm-heading__en span::before { display: none; }
.tm-heading__en span::first-letter { text-transform: none; }
.tm-results .tm-heading__en, .tm-stats:not(.tm-results) .tm-heading__en { color: var(--yellow); }
.tm-cta .tm-heading__en::before { background: var(--ink); }
.tm-town { background: #fff; }
.tm-what__item { background: var(--bg); }
.tm-key { grid-template-columns: 120px 1fr; }
.tm-key b::after { display: none; }
.tm-key b { color: var(--ink); }
.tm-key:nth-child(1) b { color: var(--ink); }
.tm-pcard__num { background: var(--yellow); }
@media (min-width: 960px) { .tm-about__grid { align-items: center; } }
.tm-about__title { word-break: auto-phrase; font-size: clamp(26px, 3vw, 36px); margin-bottom: 24px; }
.tm-about__text p { font-size: 16.5px; line-height: 2.1; margin: 0; }
@media (max-width: 600px) { .tm-key { grid-template-columns: 84px 1fr; gap: 4px 12px; } .tm-key b { font-size: 22px; } }

/* ---------- results: donut ---------- */
.tm-results__top { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .tm-results__top { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.tm-donut { display: grid; gap: 32px; align-items: center; }
@media (min-width: 600px) { .tm-donut { grid-template-columns: minmax(220px, 300px) 1fr; gap: 44px; } }
.tm-donut__chart { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 0 auto; }
.tm-donut__chart svg { width: 100%; height: 100%; }
.tm-donut__center { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; text-align: center; line-height: 1; }
.tm-donut__center b { font-family: var(--ff-en); font-weight: 700; font-size: clamp(52px, 6vw, 72px); color: var(--yellow); }
.tm-donut__center b small { margin-left: 2px; font-size: .4em; }
.tm-donut__center span { margin-top: 10px; font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.tm-donut__legend { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.tm-donut__legend li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: 15px; }
.tm-donut__legend i { width: 12px; height: 12px; border-radius: 50%; align-self: center; }
.tm-donut__legend b { font-family: var(--ff-en); font-weight: 700; font-size: 22px; }
.tm-donut__legend small { font-size: 12px; color: rgba(255, 255, 255, .6); min-width: 3em; text-align: right; }
.tm-results__side { display: grid; gap: 1px; background: rgba(255, 255, 255, .18); border-radius: var(--r); overflow: hidden; }
.tm-results__side .tm-stat { padding: 30px 28px; }
.tm-results__side .tm-stat:first-child .tm-stat__num b { color: #fff; }
.tm-results__note { margin-top: 28px; }

.tm-stats:not(.tm-results) .tm-results__note { margin-bottom: 0; }
.tm-stats:not(.tm-results) .tm-container { padding: 0 clamp(20px, 5vw, 72px); }

/* ---------- photo credit ---------- */
.tm-hero__photo, .tm-pcard__media, .tm-phero__photo, .tm-gallery__item, .tm-post__media { position: relative; }
.tm-credit { position: absolute; right: 12px; bottom: 10px; z-index: 2; font-size: 10.5px; font-weight: 500; line-height: 1.4; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .65); white-space: nowrap; pointer-events: none; }
.tm-hero__photo.p2 .tm-credit { right: 50%; bottom: 14px; transform: translateX(50%); }
.tm-gallery__item .tm-credit { display: none; }
body.home .tm-credit { display: none; }
.tm-contact__flow { margin: 72px 0 88px; }
.tm-contact .tm-flow__list { margin-top: 8px; }
@media (min-width: 900px) { .tm-contact .tm-flow__step { grid-template-columns: 120px 220px 1fr; } }
.tm-hero__photo img { object-position: var(--pos, 50% 50%); }
.tm-gallery__credit { margin: 14px 4px 0; text-align: right; font-size: 12px; letter-spacing: .06em; color: var(--ink-2); }
.tm-phero__photo .tm-credit, .tm-pcard__media .tm-credit, .tm-hero__photo.p1 .tm-credit { right: 32px; bottom: 18px; }

/* ---------- reveal ---------- */
.tm-js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity .9s ease, translate .9s cubic-bezier(.2, .8, .2, 1), transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease; }
.tm-js [data-reveal].is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
