/*
Theme Name: TOKYO INSIDERS
Theme URI: https://tokyoinsiders.jp/
Author: Allied Architects, Inc.
Description: 経済ライブ番組「TOKYO INSIDERS」のLP用オリジナルテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tokyo-insiders
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ti-blue: #1459FF;
	--ti-blue-hover: #0A38A7;
	--ti-navy: #00174F;
	--ti-bg: #F7F9FD;
	--ti-surface: #F0F3FB;
	--ti-highlight: #DCE6FF;
	--ti-text: #2b3445;
	--ti-text-2: #3a4252;
	--ti-muted: #6b7385;
	--ti-live: #C8102E;
	--ti-font: 'Noto Sans JP', sans-serif;
	--ti-max: 1312px;
	--ti-gutter: clamp(20px, 4vw, 56px);
	--ti-header-h: 84px;
}

/* ==========================================================================
   Base
   ========================================================================== */
html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--ti-bg);
	color: var(--ti-navy);
	font-family: var(--ti-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
a { color: var(--ti-navy); text-decoration: none; }
a:hover { color: var(--ti-blue); }

.ti-page { min-height: 100vh; background: var(--ti-bg); }
.ti-container { max-width: var(--ti-max); margin: 0 auto; padding-left: var(--ti-gutter); padding-right: var(--ti-gutter); }
.ti-section { scroll-margin-top: var(--ti-header-h); }
.admin-bar .ti-section { scroll-margin-top: calc(var(--ti-header-h) + 32px); }

.ti-jp { word-break: keep-all; overflow-wrap: anywhere; }

.ti-label { font: 700 12px var(--ti-font); letter-spacing: .04em; color: var(--ti-blue); }
.ti-h2 { font: 900 clamp(30px, 3.45vw, 37px)/1.4 var(--ti-font); word-break: keep-all; overflow-wrap: anywhere; }

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

/* ==========================================================================
   Header
   ========================================================================== */
.ti-header {
	position: sticky; top: 0; z-index: 20;
	background: #FFFFFF;
	box-shadow: 0 1px 0 rgba(11,21,38,.06), 0 2px 8px rgba(11,21,38,.04);
}
.admin-bar .ti-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .ti-header { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .ti-header { top: 0; } }

.ti-header__inner {
	max-width: var(--ti-max); margin: 0 auto; padding: 18px var(--ti-gutter);
	display: flex; align-items: center; gap: 16px; flex-wrap: nowrap;
}
.ti-header__logo { display: flex; align-items: center; }
.ti-header__logo img { height: 40px; width: auto; display: block; }

.ti-nav {
	display: flex; gap: clamp(12px, 1.8vw, 32px); flex-wrap: nowrap; white-space: nowrap;
	margin-left: auto; margin-right: clamp(4px, 1.5vw, 24px);
	font: 400 15px var(--ti-font); color: var(--ti-text);
}
.ti-header__actions { display: flex; align-items: center; gap: 14px; flex: none; margin-left: auto; }

.ti-lang {
	display: flex; gap: 2px; padding: 3px;
	background: #F1F4FA; border: 1px solid #DDE3F0; border-radius: 6px;
	font: 500 14px var(--ti-font);
}
.ti-lang > * { padding: 5px 9px; color: var(--ti-muted); border-radius: 4px; }
.ti-lang a:hover { color: var(--ti-blue); }
.ti-lang .is-active { background: #fff; color: var(--ti-navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.ti-btn-cta {
	white-space: nowrap; padding: 11px 18px;
	background: var(--ti-blue); color: #fff; border-radius: 4px;
	font: 500 16px var(--ti-font);
}
.ti-btn-cta:hover { background: var(--ti-blue-hover); color: #fff; }

/* SP menu (hamburger) */
.ti-burger { display: none; }
.ti-spnav[hidden] { display: none; }

@media (max-width: 767px) {
	.ti-header__actions { gap: 10px; }
	.ti-burger {
		display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
		width: 40px; height: 37px; padding: 0; flex: none; cursor: pointer;
		background: #fff; border: 1px solid #DDE3F0; border-radius: 4px;
	}
	.ti-burger__bar {
		display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ti-navy);
		transition: transform .2s, opacity .2s;
	}
	.ti-burger[aria-expanded="true"] .ti-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.ti-burger[aria-expanded="true"] .ti-burger__bar:nth-child(2) { opacity: 0; }
	.ti-burger[aria-expanded="true"] .ti-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.ti-spnav {
		position: absolute; top: 100%; left: 0; right: 0;
		max-height: calc(100vh - var(--ti-header-h)); overflow-y: auto;
		background: #fff; border-top: 1px solid #EDF1FB;
		box-shadow: 0 8px 16px rgba(11,21,38,.08);
		padding: 4px var(--ti-gutter) 12px;
	}
	.ti-spnav__link {
		display: block; padding: 14px 4px; border-bottom: 1px solid #EDF1FB;
		font: 500 16px var(--ti-font); color: var(--ti-navy);
	}
	.ti-spnav__link:last-child { border-bottom: 0; }
	.ti-spnav__link--lang { color: var(--ti-blue); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.ti-hero {
	max-width: var(--ti-max); margin: 0 auto;
	padding: clamp(40px, 7vw, 96px) var(--ti-gutter) 36px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(32px, 4vw, 56px); align-items: start;
}
.ti-hero__main { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }

.ti-hero__tag {
	align-self: flex-start; display: flex; align-items: center; gap: 10px;
	padding: 5px 12px; background: var(--ti-highlight); border-radius: 5px;
	font: 500 15px var(--ti-font); color: var(--ti-navy);
}
.ti-hero__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ti-blue); }

.ti-hero__title {
	margin: 0; font: 900 clamp(24px, 5.4vw, 46px)/1.45 var(--ti-font);
	letter-spacing: .01em; word-break: keep-all;
}
.ti-hero__title span { display: inline-block; }
/* English headline: Latin words run longer than the JP line groups. */
.ti-hero__title:lang(en) { font-size: clamp(24px, 4.6vw, 42px); line-height: 1.3; text-wrap: balance; }

.ti-hero__lead {
	margin: 0; max-width: 460px;
	font: 400 clamp(15px, 1.6vw, 17px)/1.75 var(--ti-font); color: var(--ti-text-2);
	word-break: keep-all; overflow-wrap: anywhere;
}

.ti-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ti-chip {
	display: flex; align-items: center; gap: 6px; padding: 10px 12px;
	background: #EDF1FB; border-radius: 5px;
	font: 400 15px var(--ti-font); color: var(--ti-text);
}
.ti-chip__icon { color: var(--ti-blue); font-size: 16px; }

.ti-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.ti-btn {
	display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-radius: 3px;
	font: 400 15px var(--ti-font);
}
.ti-btn--primary { background: var(--ti-blue); color: #fff; box-shadow: 0 2px 4px rgba(15,94,140,.25); }
.ti-btn--primary:hover { background: var(--ti-blue-hover); color: #fff; }
.ti-btn--secondary { padding: 12px 14px; background: #EDF1FB; color: var(--ti-text); }
.ti-btn--secondary:hover { background: #DFE6F8; }
.ti-btn__play {
	width: 16px; height: 16px; border: 1.5px solid #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.ti-btn__arrow { font-size: 16px; }

.ti-channels {
	margin-top: 12px; padding: 12px 14px 14px; background: #E6ECFB; border-radius: 6px;
	display: flex; flex-direction: column; gap: 12px; align-self: flex-start;
}
.ti-channels__label { font: 400 13px var(--ti-font); letter-spacing: .04em; color: var(--ti-muted); }
.ti-channels__list { display: flex; flex-wrap: wrap; gap: 10px; }
.ti-sns {
	width: 44px; height: 44px; background: #fff; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
}
.ti-sns:hover { transform: translateY(-2px); }
.ti-sns img { width: 22px; height: 22px; display: block; }

/* Hero: co-anchors */
.ti-anchors {
	background: #E3E9F8; border-radius: 18px; padding: 14px 16px 18px;
	display: flex; flex-direction: column; gap: 12px;
}
.ti-anchors__head {
	display: flex; justify-content: space-between; align-items: center; padding: 4px 8px;
	font: 400 13px var(--ti-font); letter-spacing: .04em; color: #4a5263;
}
.ti-anchors__live { display: flex; align-items: center; gap: 8px; }
.ti-anchors__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ti-live); }
.ti-anchors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ti-anchor { background: var(--ti-navy); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.ti-anchor__photo { position: relative; aspect-ratio: 5 / 6; overflow: hidden; flex: none; }
.ti-anchor__photo img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center top; display: block;
}
.ti-anchor__name {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 8px;
	background: linear-gradient(transparent, rgba(15,36,57,.95));
}
.ti-anchor__en { font: 400 12px var(--ti-font); color: rgba(255,255,255,.8); }
.ti-anchor__ja { font: 400 20px/1.3 var(--ti-font); color: #fff; }
.ti-anchor__sns { display: flex; justify-content: center; align-items: center; gap: 28px; height: 80px; flex: none; }

.ti-ig {
	width: 40px; height: 40px; border-radius: 11px;
	background: linear-gradient(45deg, #FEC053, #F2203E 45%, #B729A8 75%, #5342D6);
	display: flex; align-items: center; justify-content: center;
}
.ti-ig__frame {
	width: 20px; height: 20px; border: 2.5px solid #fff; border-radius: 6px;
	display: flex; align-items: center; justify-content: center;
}
.ti-ig__lens { width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; }
.ti-x {
	width: 40px; height: 40px; flex: none; overflow: hidden; background: #000; border-radius: 11px;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font: 400 22px/40px Arial, sans-serif;
}
.ti-x:hover { color: #fff; }

.ti-anchors__note {
	display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px;
	background: #fff; border-radius: 4px; font: 400 14px var(--ti-font); color: var(--ti-text);
}
.ti-anchors__note-icon { color: var(--ti-blue); }

/* ==========================================================================
   Archive (YouTube)
   ========================================================================== */
.ti-archive { background: var(--ti-navy); color: #fff; padding: 36px 0 48px; }
.ti-archive__label {
	display: flex; align-items: center; gap: 8px;
	font: 500 13px var(--ti-font); letter-spacing: .04em; color: #fff;
}
.ti-archive__label::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ti-live); }
.ti-archive__title { margin: 8px 0 18px; line-height: 1.3; }

.ti-player {
	position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
	background: #737373; display: flex; align-items: center; justify-content: center;
}
.ti-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ti-player__button {
	width: clamp(68px, 14vw, 182px); aspect-ratio: 182 / 128; border-radius: clamp(14px, 2.4vw, 30px);
	background: #FF0000; display: flex; align-items: center; justify-content: center;
}
.ti-player__button::before {
	content: ""; width: 0; height: 0;
	border-left: clamp(20px, 3.9vw, 50px) solid #fff;
	border-top: clamp(12px, 2.3vw, 30px) solid transparent;
	border-bottom: clamp(12px, 2.3vw, 30px) solid transparent;
	margin-left: clamp(4px, .8vw, 10px);
}

/* "Coming Soon" in place of the player (Customizer: YouTube > Coming Soon). */
.ti-player--soon {
	flex-direction: column; gap: clamp(8px, 1.4vw, 16px); padding: 24px; text-align: center;
	background: #000 radial-gradient(ellipse at 50% 40%, rgba(20, 89, 255, .35), transparent 65%);
}
.ti-player__soon { font: 900 clamp(28px, 6vw, 72px)/1.1 var(--ti-font); letter-spacing: .08em; color: #fff; }
.ti-player__soon-note { font: 500 clamp(12px, 1.3vw, 15px)/1.7 var(--ti-font); color: #b8c3dc; }

/* ==========================================================================
   About
   ========================================================================== */
.ti-about { max-width: var(--ti-max); margin: 0 auto; padding: 36px var(--ti-gutter) 56px; }
.ti-about__title { margin: 10px 0 14px; font: 900 clamp(28px, 3.22vw, 33px)/1.4 var(--ti-font); }
.ti-about__text { margin: 0; max-width: 1040px; font: 400 16px/2.1 var(--ti-font); color: var(--ti-text); }
.ti-about__grid {
	margin-top: 28px; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px;
}
.ti-philosophy {
	background: var(--ti-surface); border-radius: 10px; padding: 24px 20px 20px;
	display: flex; flex-direction: column; gap: 8px;
}
.ti-philosophy__num { font: 400 12px var(--ti-font); color: var(--ti-muted); }
.ti-philosophy__title { margin: 0; font: 400 18px/1.5 var(--ti-font); }
.ti-philosophy__text { margin: 0; font: 400 15px/2 var(--ti-font); color: var(--ti-text-2); }
.ti-philosophy__key {
	margin-top: auto; padding-top: 14px;
	font: 400 11px var(--ti-font); letter-spacing: .04em; color: var(--ti-blue);
}

/* ==========================================================================
   Program
   ========================================================================== */
.ti-program { background: #EEF2FA; padding: 28px 0 36px; }
.ti-program__label { padding-left: 6px; }
.ti-program__head {
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	flex-wrap: wrap; padding: 0 6px;
}
.ti-program__title { margin: 8px 0 0; }
.ti-program__desc { margin: 0; font: 400 15px/1.8 var(--ti-font); color: var(--ti-text); }
.ti-program__grid {
	margin-top: 28px; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 14px;
}
.ti-slot {
	border-radius: 14px; padding: 28px 22px 20px;
	display: flex; flex-direction: column; gap: 14px; color: #fff;
}
.ti-slot--first { background: var(--ti-navy); }
.ti-slot--second { background: var(--ti-blue); }
.ti-slot__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ti-slot__badge {
	padding: 3px 10px; border-radius: 2px; min-width: 76px;
	font: 400 12px var(--ti-font); color: #fff;
}
.ti-slot--first .ti-slot__badge { background: var(--ti-blue); }
.ti-slot--second .ti-slot__badge { background: var(--ti-navy); }
.ti-slot__time { font: 400 17px var(--ti-font); white-space: nowrap; flex: none; }
.ti-slot--second .ti-slot__time { color: #2b2016; }
.ti-slot__title { margin: 4px 0 0; font: 400 22px/1.5 var(--ti-font); color: #fff; }
.ti-slot__body { display: flex; flex-direction: column; gap: 18px; font: 400 15px/1.85 var(--ti-font); }
.ti-slot__body p { margin: 0; }
.ti-slot--first .ti-slot__body { color: rgba(255,255,255,.72); }
.ti-slot--second .ti-slot__body { color: rgba(255,255,255,.82); }
.ti-slot__focus {
	margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px;
	font: 400 11px var(--ti-font); letter-spacing: .04em;
}
.ti-slot--first .ti-slot__focus { color: rgba(255,255,255,.75); }
.ti-slot--second .ti-slot__focus { color: rgba(255,255,255,.82); }
.ti-slot__focus-icon { font-size: 15px; }
.ti-slot--second .ti-slot__focus-icon { color: var(--ti-navy); }

/* ==========================================================================
   Cast
   ========================================================================== */
.ti-cast { max-width: var(--ti-max); margin: 0 auto; padding: 36px var(--ti-gutter) 56px; }
.ti-cast__title { margin: 8px 0 6px; }
.ti-cast__desc { margin: 0; font: 400 15px/1.8 var(--ti-font); color: var(--ti-text-2); }
.ti-cast__grid {
	margin-top: 36px; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px;
}
.ti-profile {
	background: var(--ti-surface); border-radius: 10px;
	padding: clamp(24px, 3vw, 40px) clamp(18px, 2vw, 24px) clamp(24px, 3vw, 34px);
	display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px;
}
.ti-profile__photo { flex: 0 0 136px; width: 136px; aspect-ratio: 136 / 164; object-fit: cover; display: block; }
.ti-profile__body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ti-profile__meta { display: flex; gap: 10px; align-items: center; font: 400 11px var(--ti-font); }
.ti-profile__tag { padding: 3px 6px; border-radius: 2px; }
.ti-profile__tag--light { background: var(--ti-highlight); color: var(--ti-blue); }
.ti-profile__en { color: var(--ti-muted); }
.ti-profile__name { font: 400 20px/1.5 var(--ti-font); }
.ti-profile__role { font: 400 12px var(--ti-font); color: var(--ti-text-2); }
.ti-profile__role--accent { color: var(--ti-blue); }
.ti-profile__bio { margin: 6px 0 0; font: 400 14px/2 var(--ti-font); color: var(--ti-text-2); }
.ti-profile__focus { margin-top: 8px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.ti-profile__focus-label { font: 400 11px var(--ti-font); color: var(--ti-muted); }
.ti-profile__focus-value { font: 400 13px var(--ti-font); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.ti-newsletter { background: #E6ECFB; padding: 72px 0 80px; }
.ti-newsletter__card {
	background: #fff; border-radius: 22px; padding: clamp(40px, 5vw, 64px) clamp(24px, 5vw, 64px);
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.ti-newsletter__badge {
	display: flex; align-items: center; gap: 8px; padding: 5px 12px;
	background: var(--ti-highlight); border-radius: 4px;
	font: 700 14px var(--ti-font); letter-spacing: .06em; color: var(--ti-navy);
}
.ti-newsletter__badge-icon { font-size: 15px; color: var(--ti-blue); }
.ti-newsletter__title {
	margin: 0; font: 900 clamp(28px, 2.99vw, 35px)/1.5 var(--ti-font); text-wrap: balance;
}
.ti-newsletter__text {
	margin: 0; max-width: 520px; font: 400 16px/1.95 var(--ti-font); color: var(--ti-text-2); text-wrap: pretty;
}
.ti-newsletter__form { margin-top: 12px; width: 100%; max-width: 520px; display: flex; gap: 8px; flex-wrap: wrap; }
.ti-newsletter__input {
	flex: 1 1 260px; min-width: 0; padding: 15px 16px;
	border: 1px solid #D9E0F0; background: #F3F6FC; border-radius: 6px;
	font: 400 16px var(--ti-font); color: var(--ti-navy); outline: none;
}
.ti-newsletter__input:focus-visible { border-color: var(--ti-blue); }
.ti-newsletter__submit {
	flex: 1 1 140px; padding: 15px 24px; border: none; border-radius: 6px;
	background: var(--ti-blue); color: #fff; font: 500 16px var(--ti-font); cursor: pointer;
}
.ti-newsletter__submit:hover { background: var(--ti-blue-hover); }
.ti-newsletter__shortcode { margin-top: 12px; width: 100%; max-width: 520px; }
.ti-newsletter__message {
	width: 100%; max-width: 520px; padding: 12px 16px; border-radius: 6px;
	background: var(--ti-highlight); color: var(--ti-navy); font: 500 15px/1.8 var(--ti-font);
}
.ti-newsletter__message.is-error { background: #FDECEF; color: var(--ti-live); }
.ti-newsletter__submit:disabled { opacity: .6; cursor: progress; }
.ti-newsletter__note { font: 400 14px/1.7 var(--ti-font); color: var(--ti-muted); }

/* ==========================================================================
   Sponsors
   ========================================================================== */
.ti-sponsors { max-width: var(--ti-max); margin: 0 auto; padding: 28px var(--ti-gutter) 48px; }
.ti-sponsors__title { margin: 6px 0 0; font: 900 22px/1.4 var(--ti-font); }
.ti-sponsors__group + .ti-sponsors__group { margin-top: 40px; }
.ti-sponsors__grid {
	margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center;
	gap: 16px clamp(16px, 4vw, 62px);
}
.ti-sponsor { width: min(100%, 152px); height: 34px; display: flex; align-items: center; justify-content: center; }
.ti-sponsor img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ti-sponsor__name { font: 400 15px var(--ti-font); color: var(--ti-text); }

/* ==========================================================================
   Contact
   ========================================================================== */
.ti-contact { max-width: var(--ti-max); margin: 0 auto; padding: 0 var(--ti-gutter) 50px; }
.ti-contact__box {
	background: #000; color: #fff; border-radius: 10px; padding: 26px clamp(20px, 4vw, 42px) 34px;
	display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.ti-contact__body { display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.ti-contact__label { font: 700 11px var(--ti-font); letter-spacing: .04em; }
.ti-contact__title { margin: 0; font: 700 clamp(20px, 2.07vw, 22px)/1.6 var(--ti-font); }
.ti-contact__text { margin: 8px 0 0; font: 400 12px/1.8 var(--ti-font); color: #8a93a8; }
.ti-contact__button {
	display: flex; align-items: center; gap: 26px; padding: 9px 12px 9px 24px; min-width: 152px;
	background: #fff; color: var(--ti-text); border-radius: 3px; font: 400 14px var(--ti-font);
}
.ti-contact__button:hover { background: #E6ECFB; color: var(--ti-navy); }
.ti-contact__button b { font-size: 15px; }

/* ==========================================================================
   Contact page (page-contact.php: /contact/, /en/contact/)
   ========================================================================== */
.ti-contact-page { max-width: calc(880px + 2 * var(--ti-gutter)); margin: 0 auto; padding: 40px var(--ti-gutter) 64px; }
.ti-contact-page__head { margin-bottom: 28px; }
.ti-contact-page__back { display: inline-flex; gap: 6px; margin-bottom: 28px; font: 500 13px var(--ti-font); color: var(--ti-muted); }
.ti-contact-page__back:hover { color: var(--ti-blue); }
.ti-contact-page__title { margin: 6px 0 0; }
.ti-contact-page__lead { margin: 16px 0 0; font: 400 15px/1.9 var(--ti-font); color: var(--ti-text); }
.ti-contact-page__note { margin: 6px 0 0; font: 400 13px/1.8 var(--ti-font); color: var(--ti-muted); }
/* Same black box as the LP's #contact. */
.ti-contact-page__box {
	background: #000; color: #fff; border-radius: 10px;
	padding: clamp(26px, 4vw, 42px) clamp(20px, 4vw, 42px) clamp(32px, 4vw, 44px);
}
.ti-contact-page__box > .ti-contact__button { display: inline-flex; }

/* ==========================================================================
   Brand kit page (page-brand.php: /brand/, /en/brand/)
   ========================================================================== */
.ti-brand-page { max-width: calc(1080px + 2 * var(--ti-gutter)); margin: 0 auto; padding: 40px var(--ti-gutter) 72px; }
.ti-brand-page__head { margin-bottom: 40px; }
.ti-brand-page__all { display: inline-flex; margin-top: 24px; }
.ti-brand-page__size { font: 500 11px var(--ti-font); letter-spacing: .06em; opacity: .8; }
.ti-brand-page__section + .ti-brand-page__section { margin-top: 48px; }
.ti-brand-page__h { margin: 0 0 16px; font: 700 18px/1.5 var(--ti-font); color: var(--ti-navy); }
.ti-brand-page__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.ti-brand-logo { margin: 0; background: #fff; border: 1px solid var(--ti-highlight); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.ti-brand-logo__preview { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; }
.ti-brand-logo__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ti-brand-logo__preview--transparent {
	padding: 12% 14%;
	background-color: #fff;
	background-image: linear-gradient(45deg, #eef1f7 25%, transparent 25%, transparent 75%, #eef1f7 75%), linear-gradient(45deg, #eef1f7 25%, transparent 25%, transparent 75%, #eef1f7 75%);
	background-size: 16px 16px; background-position: 0 0, 8px 8px;
}
.ti-brand-logo__preview--transparent img { object-fit: contain; }
.ti-brand-logo__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ti-brand-logo__name { font: 700 15px/1.5 var(--ti-font); color: var(--ti-navy); }
.ti-brand-logo__note { font: 400 13px/1.7 var(--ti-font); color: var(--ti-muted); }
.ti-brand-logo__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ti-brand-logo__spec { font: 400 12px var(--ti-font); color: var(--ti-muted); }
.ti-brand-logo__dl { display: inline-flex; gap: 4px; padding: 8px 14px; border-radius: 6px; background: var(--ti-surface); font: 700 13px var(--ti-font); color: var(--ti-blue); }
.ti-brand-logo__dl:hover { background: var(--ti-highlight); }
.ti-brand-colors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ti-brand-color { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff; border: 1px solid var(--ti-highlight); border-radius: 8px; }
.ti-brand-color__chip { width: 32px; height: 32px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 23, 79, .12); }
.ti-brand-color__name { font: 700 13px var(--ti-font); color: var(--ti-navy); }
.ti-brand-color__hex { font: 400 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ti-text); }
.ti-brand-rules { margin: 0; padding-left: 1.3em; font: 400 14px/1.9 var(--ti-font); color: var(--ti-text); }
.ti-brand-page__contact { display: inline-flex; gap: 6px; margin-top: 16px; font: 700 14px var(--ti-font); color: var(--ti-blue); }
.ti-footer__links { display: flex; gap: 16px; }
.ti-footer__links a { font: 400 11px var(--ti-font); color: var(--ti-muted); }
.ti-footer__links a:hover { color: var(--ti-blue); }

/* ==========================================================================
   Contact form (Contact Form 7, markup from inc/contact-setup.php; CF7's CSS is not loaded)
   ========================================================================== */
/* .ti-cf is the <form>; its status classes (init / submitting / invalid / sent …) are set by CF7. */
.ti-cf { position: relative; margin: 0; color: #fff; }
.ti-cf .hidden-fields-container { display: none; }
.ti-contact__form .screen-reader-response, /* Outside the <form>, inside CF7's wrapper. */
.ti-cf__hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ti-cf__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px 16px; }
.ti-cf__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ti-cf__field--wide { grid-column: 1 / -1; }
.ti-cf__label { display: flex; align-items: center; gap: 8px; font: 700 12px var(--ti-font); letter-spacing: .04em; }
.ti-cf__badge {
	padding: 1px 6px; border: 1px solid #3a4252; border-radius: 3px;
	font: 500 10px/1.5 var(--ti-font); letter-spacing: .04em; color: #8a93a8;
}
.ti-cf__badge--req { border-color: var(--ti-blue); background: var(--ti-blue); color: #fff; }
.ti-cf .wpcf7-form-control-wrap { display: block; position: relative; }
.ti-cf__input {
	display: block; width: 100%; padding: 12px 14px;
	border: 1px solid #fff; border-radius: 3px; background: #fff;
	font: 400 15px/1.6 var(--ti-font); color: var(--ti-navy); outline: none;
}
.ti-cf__input::placeholder { color: #9aa2b4; }
.ti-cf__input:focus-visible { border-color: var(--ti-blue); box-shadow: 0 0 0 3px rgba(20, 89, 255, .45); }
.ti-cf__textarea { min-height: 160px; resize: vertical; }
.ti-cf__input[aria-invalid="true"] { border-color: #ff6b81; box-shadow: 0 0 0 1px #ff6b81; }
/*
 * Error tips sit in the gap below each field instead of pushing content down: CF7 removes a tip
 * when its field loses focus, and a layout shift between mousedown and mouseup would swallow
 * the click on the next control (e.g. the consent checkbox).
 */
.ti-cf .wpcf7-not-valid-tip {
	position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px;
	font: 500 12px/1.6 var(--ti-font); color: #ff8fa0;
}

.ti-cf__consent { margin-top: 26px; font: 400 13px/1.7 var(--ti-font); }
.ti-cf__consent label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.ti-cf__consent input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ti-blue); }
.ti-cf__consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ti-cf__consent a:hover { color: #E6ECFB; }

.ti-cf__actions { margin-top: 32px; display: flex; align-items: center; gap: 12px; }
/* Same look as the design's "お問い合わせ窓口 →" button. */
.ti-cf__submit-wrap { position: relative; display: inline-flex; align-items: center; }
.ti-cf__submit-wrap::after {
	content: "→"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
	font: 700 15px var(--ti-font); color: var(--ti-text); pointer-events: none;
}
.ti-cf__submit {
	min-width: 200px; padding: 12px 52px 12px 24px; border: none; border-radius: 3px;
	background: #fff; color: var(--ti-text); font: 500 15px var(--ti-font); text-align: left;
	cursor: pointer; -webkit-appearance: none; appearance: none;
}
.ti-cf__submit:hover { background: #E6ECFB; color: var(--ti-navy); }
.ti-cf__submit:focus-visible { outline: 3px solid var(--ti-blue); outline-offset: 2px; }
.ti-cf__submit:disabled { opacity: .6; cursor: progress; }

.ti-cf .wpcf7-spinner {
	visibility: hidden; display: inline-block; width: 18px; height: 18px;
	border: 2px solid #3a4252; border-top-color: #fff; border-radius: 50%;
}
.ti-cf__submit-wrap .wpcf7-spinner { position: absolute; left: 100%; top: 50%; margin: -9px 0 0 14px; }
.ti-cf.submitting .wpcf7-spinner { visibility: visible; animation: ti-spin .8s linear infinite; }
@keyframes ti-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ti-cf.submitting .wpcf7-spinner { animation-duration: 2.4s; } }

.ti-cf .wpcf7-response-output {
	margin: 18px 0 0; padding: 12px 16px; border-radius: 6px;
	background: #FDECEF; color: var(--ti-live); font: 500 14px/1.8 var(--ti-font);
}
.ti-cf .wpcf7-response-output:empty,
.ti-cf.init .wpcf7-response-output,
.ti-cf.resetting .wpcf7-response-output,
.ti-cf.submitting .wpcf7-response-output { display: none; }
.ti-cf.sent .wpcf7-response-output { background: var(--ti-highlight); color: var(--ti-navy); }

/* ==========================================================================
   Footer
   ========================================================================== */
.ti-footer {
	max-width: var(--ti-max); margin: 0 auto; padding: 6px var(--ti-gutter) 20px;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 20px; align-items: end;
}
.ti-footer__company { display: flex; flex-direction: column; gap: 4px; }
.ti-footer__small { font: 400 11px var(--ti-font); color: var(--ti-muted); }
.ti-footer__powered { font: 400 14px var(--ti-font); color: var(--ti-text); }
.ti-footer__logo { display: flex; justify-content: flex-end; }
.ti-footer__logo img { height: 44px; width: auto; display: block; }

/* ==========================================================================
   Generic content (index.php fallback)
   ========================================================================== */
.ti-content { max-width: 860px; margin: 0 auto; padding: 56px var(--ti-gutter); font: 400 16px/2 var(--ti-font); color: var(--ti-text); }
.ti-content h1 { font: 900 clamp(24px, 4vw, 36px)/1.45 var(--ti-font); color: var(--ti-navy); }

/* The Newsletter Plugin public page (confirm / unsubscribe / profile) */
.ti-content .tnp input[type="text"],
.ti-content .tnp input[type="email"],
.ti-content .tnp select {
	width: 100%; padding: 12px 14px; border: 1px solid #D9E0F0; background: #F3F6FC; border-radius: 6px;
	font: 400 16px var(--ti-font); color: var(--ti-navy);
}
.ti-content .tnp label { font: 500 14px var(--ti-font); color: var(--ti-text); }
.ti-content .tnp-field { margin-bottom: 16px; }
/* 3 classes: beats the plugin's ".tnp-unsubscribe button.tnp-submit" etc. */
.ti-content .tnp .tnp-submit,
.ti-content .tnp-button-form .tnp-submit {
	display: inline-block; padding: 12px 28px; border: 0; border-radius: 6px; cursor: pointer;
	background: var(--ti-blue); color: #fff; font: 500 16px var(--ti-font);
}
.ti-content .tnp .tnp-submit:hover,
.ti-content .tnp-button-form .tnp-submit:hover { background: var(--ti-blue-hover); }

/* ==========================================================================
   SP (〜767px)
   ========================================================================== */
@media (max-width: 767px) {
	:root { --ti-header-h: 76px; }
	.ti-nav, .ti-lang { display: none !important; }
	.ti-header__logo img { height: 30px; }
	.ti-btn-cta { padding: 9px 12px; font-size: 13px; }
}
