/*
Theme Name: torumiru
Theme URI: https://torumiru.vexon.jp/
Author: Vexon International
Author URI: https://torumiru.vexon.jp/
Description: トルミル専用テーマ。TOPデザインに合わせたブロックテーマです。
Version: 1.0.25
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: torumiru
*/

:root {
	--tm-green: #5dae34;
	--tm-green-deep: #52a927;
	--tm-gold: #d1a801;
	--tm-navy: #000f38;
	--tm-ink: #333333;
	--tm-muted: #666666;
	--tm-line: #e3e3e3;
	--tm-soft: #f4f7f8;
	--tm-card: #ffffff;
	--tm-orange: #f08a24;
	--tm-blue: #2f67d8;
	--tm-wrap: 1080px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--tm-ink);
	background: #fff;
	font-family: "Noto Sans JP", sans-serif;
	font-size: 16px;
	line-height: 1.8;
}

.wp-site-blocks > *,
main.is-layout-flow > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--tm-green);
}

p {
	margin: 0 0 1em;
}

.tm-wrap {
	width: min(var(--tm-wrap), calc(100% - 40px));
	margin-inline: auto;
}

.tm-header {
	background: #fff;
	border-bottom: 3px solid var(--tm-green);
}

.tm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 74px;
	width: min(var(--tm-wrap), calc(100% - 40px));
	margin-inline: auto;
}

.tm-logo {
	display: inline-flex;
	align-items: center;
	color: var(--tm-green-deep);
	font-weight: 700;
	font-size: 28px;
	line-height: 1;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.tm-logo-o {
	width: 0.78em;
	height: 0.78em;
	margin: 0 0.04em;
	border: 0.08em solid currentColor;
	border-radius: 50%;
	position: relative;
	flex: none;
}

.tm-logo-o::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-40%, -50%);
	border-style: solid;
	border-width: 0.18em 0 0.18em 0.3em;
	border-color: transparent transparent transparent currentColor;
}

.tm-logo img {
	display: block;
	width: auto;
	height: 32px;
}

.tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tm-green);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.tm-btn:hover,
.tm-btn:focus-visible {
	background: #4c9a2b;
	color: #fff;
}

.tm-btn--lg {
	min-height: 52px;
	padding: 12px 28px;
	font-size: 16px;
}

.tm-btn--blue {
	background: var(--tm-blue);
	min-width: 140px;
}

.tm-btn--blue:hover,
.tm-btn--blue:focus-visible {
	background: #2457c2;
}

.tm-section {
	padding: 72px 0;
}

.tm-section--soft {
	background: var(--tm-soft);
}

.tm-heading {
	margin: 0 0 28px;
	text-align: center;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

.tm-em {
	color: var(--tm-green);
}

.tm-heading::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin: 10px auto 0;
	border-radius: 2px;
	background: var(--tm-gold);
}

.tm-lead {
	margin: 0 auto 8px;
	max-width: 820px;
	text-align: center;
	color: var(--tm-muted);
}

.tm-subhead {
	margin: 0 0 12px;
	color: var(--tm-green);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
}

.tm-hero {
	position: relative;
	padding: 0;
}

.tm-hero-photo {
	display: block;
	width: 100%;
	height: auto;
}

.tm-hero .tm-hero-copy-wrap {
	position: absolute;
	z-index: 1;
	top: 50%;
	bottom: auto;
	left: max(20px, calc((100vw - var(--tm-wrap)) / 2));
	right: auto;
	width: min(620px, calc(100vw - 40px));
	margin: 0;
	transform: translateY(-50%);
	display: block;
}

.tm-hero-copy {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 20px 36px 22px 28px;
	background: rgba(255, 255, 255, 0.6);
}

.tm-hero .tm-logo img {
	height: 56px;
}

.tm-hero-title {
	margin: 18px 0 12px;
	color: var(--tm-ink);
	font-size: 16px;
	font-weight: 700;
}

.tm-hero-text {
	margin: 0;
	color: #444;
	font-size: 14px;
}


.tm-badges {
	padding: 28px 0 36px;
	background: #eff3f6;
}

.tm-badges img {
	display: block;
	width: min(1080px, 100%);
	height: auto;
	margin-inline: auto;
}

.tm-center-copy {
	max-width: 860px;
	margin: 0 auto 64px;
	text-align: center;
}

.tm-center-copy .tm-subhead {
	font-size: 26px;
}

.tm-quote {
	color: var(--tm-muted);
	font-size: 14px;
}

.tm-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
	align-items: center;
}

.tm-split + .tm-split {
	margin-top: 48px;
}

.tm-split--device > div:first-child {
	text-align: right;
	padding-right: 28px;
}

.tm-illust {
	display: grid;
	place-items: center;
}

.tm-illust img,
.tm-illust svg {
	width: min(100%, 420px);
	height: auto;
}

.tm-illust img {
	display: block;
	width: 100%;
}

.tm-support-list,
.tm-plan-list,
.tm-service-grid {
	display: grid;
	gap: 22px;
}

.tm-support-list {
	grid-template-columns: repeat(3, 1fr);
	margin-top: 36px;
}

.tm-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(16, 32, 64, 0.06);
}

.tm-support {
	padding: 28px 22px 32px;
	text-align: center;
}

.tm-support img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 auto;
}

.tm-support h3,
.tm-plan h3,
.tm-case h3 {
	margin: 12px 0 8px;
	font-size: 18px;
}

.tm-support p,
.tm-plan p,
.tm-case p {
	margin: 0;
	color: #555;
	font-size: 14px;
	text-align: left;
}

.tm-support p {
	text-align: center;
}

.tm-plan-list {
	grid-template-columns: 1fr 1fr;
}

.tm-plan {
	overflow: hidden;
}

.tm-plan img {
	width: 100%;
	height: auto;
	display: block;
}

.tm-plan-body {
	padding: 22px 24px 26px;
}

.tm-plan h3 {
	color: var(--tm-ink);
	font-size: 22px;
}

.tm-plan .tm-kicker {
	color: var(--tm-green);
}

.tm-kicker {
	margin: 0 0 8px;
	font-weight: 700;
}

.tm-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	color: var(--tm-green);
	font-weight: 700;
	text-decoration: none;
}

.tm-more i {
	position: relative;
	display: inline-block;
	width: 24px;
	height: 24px;
	flex: none;
	color: transparent;
	font-size: 0;
	font-style: normal;
	line-height: 0;
}

.tm-more i::before,
.tm-more i::after {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	content: "";
}

.tm-more i::before {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #7a0;
}

.tm-more i::after {
	left: 10px;
	box-sizing: border-box;
	width: 6px;
	height: 6px;
	border: 6px solid transparent;
	border-left: 6px solid #fff;
}

.tm-cases-head p {
	text-align: center;
	color: var(--tm-muted);
}

.tm-cases {
	display: grid;
	grid-template-columns: 44px 1fr 44px;
	gap: 8px;
	align-items: center;
}

.tm-cases-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 8px 2px 16px;
}

.tm-cases-track::-webkit-scrollbar {
	display: none;
}

.tm-case {
	flex: 0 0 300px;
	scroll-snap-align: start;
	padding: 22px 20px 26px;
	border-radius: 14px;
	background: #fff;
}

.tm-case .tm-tag {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--tm-green);
	font-size: 13px;
	font-weight: 700;
}

.tm-cases-nav {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	color: #333;
	font-size: 22px;
	cursor: pointer;
}

.tm-price-table {
	width: min(760px, 100%);
	margin: 8px auto 0;
	border-collapse: collapse;
}

.tm-price-table th,
.tm-price-table td {
	border: 1px solid #dedede;
	background: #fff;
	padding: 18px 16px;
}

.tm-price-table th {
	width: 28%;
	color: var(--tm-green);
	font-size: 20px;
	text-align: center;
}

.tm-price-table td {
	text-align: center;
}

.tm-price-table small {
	display: block;
	color: #777;
	font-size: 13px;
}

.tm-price-table strong {
	font-size: 28px;
	letter-spacing: 0.02em;
}

.tm-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	width: min(820px, 100%);
	margin: 28px auto 0;
}

.tm-contact-card {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: 6px;
	min-height: 148px;
	padding: 22px;
	border: 2px solid #b7d7a4;
	border-radius: 12px;
	text-align: center;
}

.tm-contact-card p {
	margin: 0;
}

.tm-tel {
	color: #111;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.tm-hours {
	color: #666;
	font-size: 13px;
}

.tm-company {
	position: relative;
	padding: 72px 0;
	background: var(--tm-navy);
	color: #fff;
	overflow: hidden;
}

.tm-company-bg {
	position: absolute;
	inset: 0;
	background: url("/wp-content/themes/torumiru/assets/images/hero.jpg") center/cover no-repeat;
	filter: blur(6px) brightness(0.35);
	transform: scale(1.05);
}

.tm-company .tm-wrap {
	position: relative;
}

.tm-company .tm-heading {
	color: #fff;
}

.tm-company-card {
	display: grid;
	grid-template-columns: 1.4fr 220px;
	gap: 28px;
	padding: 36px 32px;
	border-radius: 8px;
	background: rgba(8, 22, 58, 0.92);
}

.tm-company-info {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	row-gap: 28px;
}

.tm-brand {
	margin: 0;
}

.tm-brand img {
	display: block;
	width: min(100%, 440px);
	height: auto;
	background: transparent;
}

.tm-company-lead {
	margin: 0;
	line-height: 1.8;
}

.tm-company-info table {
	flex: 1;
	height: 100%;
	margin: 0;
}

.tm-addr {
	display: inline-grid;
	grid-template-columns: auto auto;
	column-gap: 1em;
	justify-content: start;
	text-align: left;
}

.tm-addr-zip {
	grid-column: 1;
	grid-row: 1;
}

.tm-addr-body {
	grid-column: 2;
	grid-row: 1;
}

.tm-company table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tm-company th,
.tm-company td {
	padding: 14px 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}

.tm-company th {
	width: 7.5em;
	white-space: nowrap;
}

.tm-company-photos {
	display: grid;
	gap: 10px;
}

.tm-company-photos img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 2px;
}

.tm-footer {
	padding: 22px 16px;
	background: var(--tm-navy);
	color: #fff;
	text-align: center;
	font-size: 14px;
}

.tm-page-title {
	margin-bottom: 36px;
}

.tm-prose {
	max-width: 860px;
	margin-inline: auto;
}

.tm-prose .tm-subhead {
	margin-top: 28px;
}

.tm-list {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.tm-list li + li {
	margin-top: 4px;
}

.tm-service-grid {
	grid-template-columns: repeat(4, 1fr);
	margin-top: 28px;
}

.tm-service {
	display: grid;
	justify-items: center;
	gap: 10px;
	min-height: 150px;
	padding: 22px 12px;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

.tm-service img {
	display: block;
	width: auto;
	max-width: 100%;
	height: 88px;
	object-fit: contain;
}

.tm-flow {
	display: grid;
	gap: 18px;
}

.tm-flow-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: center;
	padding: 26px 28px;
	border-radius: 16px;
	background: #fff;
}

.tm-flow-card:has(> img) {
	grid-template-columns: 1fr min(260px, 34%);
}

.tm-flow-card > img {
	display: block;
	width: 100%;
	height: auto;
}

.tm-note {
	margin-top: 12px;
	padding: 16px 18px;
	border: 2px solid #f0b429;
	border-radius: 8px;
	background: #fffdf6;
}

.tm-note ul {
	columns: 2;
	margin: 8px 0 0;
}

.tm-feature {
	margin: 0 auto 16px;
	max-width: 920px;
	padding: 20px 24px;
	border: 2px solid #b7d7a4;
	border-radius: 12px;
	background: #fff;
}

.tm-learno-screen {
	display: block;
	width: 100%;
	height: auto;
	margin: 8px 0 28px;
}

.tm-feature--media {
	display: grid;
	grid-template-columns: 1fr min(280px, 42%);
	gap: 20px;
	align-items: center;
	max-width: none;
}

.tm-feature--aside::after {
	content: "";
	display: block;
	clear: both;
}

.tm-feature-aside {
	float: right;
	width: min(420px, 46%);
	height: auto;
	margin: 0 0 8px 28px;
}

.tm-feature .tm-subhead {
	margin: 0 0 12px;
}

.tm-feature-logo {
	display: block;
	width: min(220px, 100%);
	height: auto;
}

.tm-feature-photo {
	display: block;
	width: 100%;
	height: auto;
}

.tm-checks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.tm-checks li::before {
	content: "✓ ";
	color: var(--tm-green);
	font-weight: 700;
}

.tm-checks li.tm-check-none::before {
	content: none;
}

.tm-studio-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 14px;
}

.tm-studio-row img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.tm-tool-note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	padding: 8px 14px;
	border: 2px solid #f0b429;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
}

.tm-form-shell {
	width: min(760px, calc(100% - 32px));
	margin: 36px auto 64px;
	padding: 40px 48px 48px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	background: #fff;
}

.tm-page-contact {
	background: #f7f8fa;
	padding-top: 28px;
}

.tm-field {
	margin: 0 0 18px;
}

.tm-field label,
.tm-field legend {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	font-weight: 700;
	font-size: 14px;
}

.tm-req {
	display: inline-block;
	padding: 0 6px;
	border-radius: 3px;
	background: var(--tm-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.7;
}

.tm-field input[type="text"],
.tm-field input[type="email"],
.tm-field input[type="tel"],
.tm-field select,
.tm-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 6px;
	background: #ececec;
	font: inherit;
}

.tm-field textarea {
	min-height: 140px;
	resize: vertical;
}

.tm-choices {
	padding: 14px 16px;
	border-radius: 6px;
	background: #ececec;
}

.tm-choices label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0;
	font-weight: 400;
}

.tm-form-actions {
	text-align: center;
	margin-top: 12px;
}

.tm-form-notice {
	display: none;
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: 6px;
}

body.tm-contact-sent .tm-form-notice--sent,
body.tm-contact-error .tm-form-notice--error {
	display: block;
}

.tm-form-notice--sent {
	background: #e8f6e2;
}

.tm-form-notice--error {
	background: #fde8e8;
}

.tm-hp {
	position: absolute;
	left: -9999px;
}

.tm-page-contact .form-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-page-contact .form-list-child + .form-list-child {
	margin-top: 18px;
}

.tm-page-contact .form-list-child h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	color: var(--tm-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

.tm-page-contact .form-list-child h3 span {
	display: inline-block;
	padding: 0 6px;
	border-radius: 3px;
	background: var(--tm-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.7;
}

.tm-page-contact .form-list-child p {
	margin: 0;
}

.tm-page-contact .form-list-child br {
	display: none;
}

.tm-page-contact .wpcf7-form-control-wrap {
	display: block;
}

.tm-page-contact .wpcf7 input.wpcf7-text,
.tm-page-contact .wpcf7 input.wpcf7-email,
.tm-page-contact .wpcf7 input.wpcf7-tel,
.tm-page-contact .wpcf7 select,
.tm-page-contact .wpcf7 textarea {
	width: 100%;
	max-width: none;
	padding: 10px 12px;
	border: 0;
	border-radius: 6px;
	background: #ececec;
	color: var(--tm-ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.6;
}

.tm-page-contact .wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}

.tm-page-contact .wpcf7-checkbox {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	border-radius: 6px;
	background: #ececec;
}

.tm-page-contact .wpcf7-list-item {
	display: block;
	margin: 4px 0;
}

.tm-page-contact .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 400;
}

.tm-page-contact .wpcf7-list-item input {
	margin: 0;
}

.tm-page-contact .wpcf7-turnstile {
	margin-top: 18px;
}

.tm-page-contact .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	min-height: 42px;
	margin-top: 8px;
	padding: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tm-blue);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.tm-page-contact .wpcf7-submit:hover,
.tm-page-contact .wpcf7-submit:focus-visible {
	background: #2457c2;
}

.tm-page-contact form.wpcf7-form > p:has(.wpcf7-submit) {
	margin: 12px 0 0;
	text-align: center;
}

.tm-page-contact .wpcf7-response-output {
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 0;
	border-radius: 6px;
	font-size: 14px;
}

.tm-page-contact .wpcf7 form.sent .wpcf7-response-output {
	background: #e8f6e2;
	color: var(--tm-ink);
}

.tm-page-contact .wpcf7 form.invalid .wpcf7-response-output,
.tm-page-contact .wpcf7 form.failed .wpcf7-response-output,
.tm-page-contact .wpcf7 form.aborted .wpcf7-response-output,
.tm-page-contact .wpcf7 form.spam .wpcf7-response-output {
	background: #fde8e8;
	color: var(--tm-ink);
}

.tm-page-contact .wpcf7-not-valid-tip {
	margin-top: 4px;
	font-size: 13px;
}

@media (max-width: 900px) {
	.tm-split,
	.tm-support-list,
	.tm-plan-list,
	.tm-contact-grid,
	.tm-company-card,
	.tm-flow-card,
	.tm-flow-card:has(> img),
	.tm-feature--media,
	.tm-service-grid {
		grid-template-columns: 1fr;
	}

	.tm-feature--aside {
		display: flex;
		flex-direction: column;
	}

	.tm-feature-aside {
		float: none;
		order: 1;
		display: block;
		width: min(100%, 420px);
		margin: 12px 0 0;
	}

	.tm-company-info {
		display: block;
		height: auto;
		row-gap: 0;
	}

	.tm-brand {
		margin: 0 0 16px;
	}

	.tm-company-lead {
		margin: 0 0 8px;
	}

	.tm-company-info table {
		height: auto;
	}

	.tm-split--device > div:first-child {
		text-align: left;
		padding-right: 0;
	}

	.tm-split--device .tm-illust {
		order: -1;
	}

	.tm-hero-photo {
		width: 100%;
		height: auto;
		aspect-ratio: 750 / 1000;
		object-fit: cover;
	}

	.tm-hero .tm-hero-copy-wrap {
		top: 16px;
		left: 16px;
		width: calc(100% - 32px);
		transform: none;
	}

	.tm-hero-copy {
		padding: 14px 16px 16px 16px;
		background: rgba(255, 255, 255, 0.6);
	}

	.tm-hero .tm-logo img {
		height: 36px;
	}

	.tm-hero-title {
		margin: 10px 0 8px;
		font-size: 14px;
	}

	.tm-hero-text {
		font-size: 12px;
		line-height: 1.65;
	}

	.tm-heading,
	.tm-logo--lg {
		font-size: 26px;
	}

	.tm-form-shell {
		padding: 28px 18px;
	}

	.tm-note ul {
		columns: 1;
	}

	.tm-service-grid {
		grid-template-columns: 1fr 1fr;
	}
}
