/*
 * セキュリティ相談窓口 特設ページ
 * 黄色（注意喚起と親しみの色）、生成り、ネイビーの3色で組む。
 * 文字は本文・見出しが Noto Sans JP、英字ラベルが IBM Plex Mono。動きはファイルの末尾にまとめる。
 */

html {
	scroll-behavior: smooth;
}

.msd-body {
	margin: 0;
	background: #f7f3ea;
}

.msd {
	--msd-yellow: #ffd500;
	--msd-paper: #f7f3ea;
	--msd-navy: #103042;
	--msd-ink: #0b2331;
	--msd-muted: #5f6d76;
	--msd-red: #f0502a;
	--msd-line: rgba(16, 48, 66, 0.22);
	--msd-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	--msd-font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
	--msd-header-h: 56px;
	--msd-header-gap: 12px;

	color: var(--msd-navy);
	font-family: var(--msd-font);
	font-size: 16px;
	font-weight: 400;
	font-feature-settings: "palt";
	line-height: 1.85;
	letter-spacing: 0.03em;
	line-break: strict;
	word-break: keep-all;
	overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

/* 共通の初期化は :where() で詳細度を 0 にし、個別のクラス指定が必ず勝つようにする */
:where(.msd) *,
:where(.msd) *::before,
:where(.msd) *::after {
	box-sizing: border-box;
}

:where(.msd) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
	margin: 0;
	padding: 0;
}

:where(.msd) :where(ul, ol) {
	list-style: none;
}

:where(.msd) img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

:where(.msd) a {
	color: inherit;
	text-decoration: none;
}

.msd [id] {
	scroll-margin-top: calc(var(--msd-header-h) + 32px);
}

.msd a:focus-visible,
.msd summary:focus-visible {
	outline: 3px solid var(--msd-red);
	outline-offset: 3px;
}

.msd-icon {
	width: 1em;
	height: 1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.msd-icon--image {
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: var(--msd-icon) center / contain no-repeat;
	mask: var(--msd-icon) center / contain no-repeat;
}

.msd-wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 56px);
}

.msd-only-sp {
	display: none;
}

/* セクションの境目の曲線 */
.msd-curve {
	display: block;
	width: 100%;
	height: clamp(44px, 7vw, 110px);
	margin-bottom: -1px;
}

.msd-curve--paper {
	fill: var(--msd-paper);
}

.msd-curve--yellow {
	fill: var(--msd-yellow);
}

.msd-curve--ink {
	fill: var(--msd-ink);
}

/* 英字＋日本語の小さなラベル */
.msd-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 14px;
	font-family: var(--msd-font-mono);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.msd-label span {
	font-family: var(--msd-font);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* 細字から太字へ進む見出し */
.msd-title {
	margin-top: 16px;
	font-size: clamp(30px, 4.7vw, 68px);
	line-height: 1.28;
	letter-spacing: 0.01em;
	text-wrap: balance;
}

.msd-title > span {
	display: block;
	font-weight: 300;
}

.msd-title > b {
	display: block;
	font-weight: 800;
}

/* ボタン */
.msd-btn {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 12px 14px 12px 32px;
	border-radius: 999px;
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: transform 0.2s;
}

.msd-btn:hover {
	transform: translateY(-2px);
}

.msd-btn__arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 18px;
}

.msd-btn__arrow .msd-icon {
	stroke-width: 3;
}

.msd-btn--navy {
	background: var(--msd-navy);
	color: #fff;
}

.msd-btn--navy .msd-btn__arrow {
	background: var(--msd-yellow);
	color: var(--msd-navy);
}

.msd-btn--yellow {
	background: var(--msd-yellow);
	color: var(--msd-navy);
}

.msd-btn--yellow .msd-btn__arrow {
	background: var(--msd-navy);
	color: var(--msd-yellow);
}

/* ---------- 最上部の注意喚起の帯 ---------- */

.msd-alertbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 2px 12px;
	padding: 7px 16px;
	background: var(--msd-ink);
	color: #fff;
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
}

.msd-alertbar__tag {
	padding: 0 8px;
	background: var(--msd-yellow);
	color: var(--msd-ink);
	font-family: var(--msd-font-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
}

.msd-alertbar__link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--msd-yellow);
	font-weight: 700;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

/* ---------- ヘッダー（浮いたピル型） ---------- */

.msd-header {
	position: sticky;
	top: var(--msd-header-gap);
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: var(--msd-header-h);
	margin-top: var(--msd-header-gap);
	padding: 0 clamp(12px, 2vw, 28px);
	pointer-events: none;
}

.admin-bar .msd-header {
	top: 44px;
}

.msd-header > * {
	pointer-events: auto;
}

.msd-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 0 22px;
	border: 2px solid var(--msd-navy);
	border-radius: 999px;
	background: #fff;
}

.msd-header__logo {
	width: auto;
	height: 24px;
}

.msd-header__name {
	padding-left: 12px;
	border-left: 1px solid var(--msd-line);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.msd-header__nav {
	display: flex;
	align-items: center;
	gap: 26px;
	height: 100%;
	padding: 0 30px;
	border-radius: 999px;
	background: var(--msd-ink);
	box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.22); /* 暗いセクションの上でも形が分かるように */
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

.msd-header__nav a:hover {
	color: var(--msd-yellow);
}

.msd-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 24px;
	border: 2px solid var(--msd-navy);
	border-radius: 999px;
	background: var(--msd-yellow);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform 0.2s;
}

.msd-header__cta:hover {
	transform: translateY(-2px);
}

.msd-header__cta .msd-icon {
	stroke-width: 3;
}

/* ---------- 1. ファーストビュー ---------- */

.msd-hero {
	position: relative;
	overflow: hidden;
	margin-top: calc((var(--msd-header-h) + var(--msd-header-gap)) * -1);
	padding-top: calc(var(--msd-header-h) + 72px);
	background: var(--msd-yellow);
}

.msd-hero__body {
	position: relative;
	z-index: 2;
	padding-bottom: clamp(110px, 12vw, 190px);
}

.msd-hero__title {
	margin-top: 18px;
	font-weight: 800;
}

.msd-hero__lead-in {
	display: block;
	font-size: clamp(26px, 3.3vw, 50px);
	font-weight: 300;
	line-height: 1.3;
}

.msd-hero__big {
	display: block;
	margin-top: 6px;
	font-size: clamp(52px, 6.4vw, 104px);
	line-height: 1.18;
	letter-spacing: -0.01em;
}

.msd-hero__text {
	max-width: 25em;
	margin-top: 24px;
	font-size: clamp(15px, 1.25vw, 18px);
	line-height: 1.95;
	text-wrap: pretty;
}

.msd-hero__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 28px;
}

.msd-hero__sub {
	font-size: 13px;
	font-weight: 700;
}

.msd-hero__art {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	width: min(1040px, 66vw);
}

/* 広い画面で見出しに重ならないよう大きさを止め、文章から離れすぎないよう右に寄せすぎない */
@media (min-width: 1800px) {
	.msd-hero__art {
		right: calc((100vw - 1800px) / 2);
	}
}

/* 吹き出しの文字は、街の絵の幅に合わせて伸び縮みさせる */
.msd-town-art {
	position: relative;
	container-type: inline-size;
}

.msd-town-art > img:first-child {
	display: block;
	width: 100%;
	height: auto;
}

/* 犬は街の右手前に大きく立たせ、吹き出しはその左の空いた地面に置く */
.msd-town-art__dog {
	position: absolute;
	top: 61.5%;
	left: 74%;
	width: 23.75%;
}

.msd-town-art__cloud,
.msd-town-art__pin {
	position: absolute;
	top: calc(var(--y) * 1%);
	left: calc(var(--x) * 1%);
	width: calc(var(--w) * 1%);
	height: auto;
}

.msd-town-art__pin {
	display: block;
}

.msd-town-art__pin img {
	display: block;
	width: 100%;
	height: auto;
}

.msd-town-say {
	position: absolute;
	top: calc(var(--y) * 1%);
	left: calc(var(--x) * 1%);
	padding: 0.32em 0.95em;
	border: 2px solid var(--msd-navy);
	border-radius: 999px;
	background: #fff;
	font-family: var(--msd-font);
	font-size: max(11px, 1.3cqw);
	font-weight: 500;
	line-height: 1.45;
	white-space: nowrap;
	transform: translate(-1.5em, calc(-100% - 0.6em));
}

.msd-town-say--l {
	transform: translate(calc(-100% + 1.5em), calc(-100% - 0.6em));
}

.msd-town-say::after {
	content: "";
	position: absolute;
	bottom: -0.42em;
	left: 1.1em;
	width: 0.7em;
	height: 0.7em;
	border-right: 2px solid var(--msd-navy);
	border-bottom: 2px solid var(--msd-navy);
	background: #fff;
	transform: rotate(45deg);
}

.msd-town-say--l::after {
	right: 1.1em;
	left: auto;
}

/* 犬の吹き出しだけ、横から話しかける形にする */
.msd-town-say--dog {
	transform: translate(-100%, -50%);
}

.msd-town-say--dog::after {
	right: -0.42em;
	bottom: calc(50% - 0.35em);
	left: auto;
	transform: rotate(-45deg);
}

/* 右端が画面の外に出る幅では、犬を内側に寄せる */
@media (max-width: 1023px) {
	.msd-town-art__dog {
		left: 67%;
	}
}

.msd-town {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.msd-town text {
	font-family: var(--msd-font);
}

.msd-town .town-bubble text {
	font-family: var(--msd-font);
}

.msd-hero > .msd-curve {
	position: absolute;
	right: 0;
	bottom: -1px;
	left: 0;
	z-index: 0;
	margin: 0;
}

/* ---------- 2. 今回何が起きたか ---------- */

.msd-about {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 8vw, 120px);
	background: var(--msd-paper);
}

/* 文章に重ならないよう、右上に寄せる */
.msd-about__art {
	position: absolute;
	top: -20px;
	right: -2vw;
	width: min(34vw, 490px);
	height: auto;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(transparent, #000 14%, #000 76%, transparent);
	mask-image: linear-gradient(transparent, #000 14%, #000 76%, transparent);
}

.msd-about .msd-wrap {
	position: relative;
}

.msd-statement {
	max-width: 760px;
	margin-top: 24px;
	color: var(--msd-muted);
}

.msd-statement strong {
	display: block;
	color: var(--msd-navy);
	font-size: clamp(22px, 2.6vw, 36px);
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0.02em;
}

.msd-statement__more {
	display: block;
	margin-top: 20px;
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 2;
}

.msd-terms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 32px;
	max-width: 760px;
	margin-top: clamp(32px, 4vw, 56px);
}

.msd-terms dt {
	font-family: var(--msd-font-mono);
	font-size: 13px;
	letter-spacing: 0.06em;
}

.msd-terms dd {
	margin-top: 2px;
	color: var(--msd-muted);
	font-size: 14px;
	line-height: 1.7;
}

/* ---------- 3. こんな方はご相談を ---------- */

.msd-check {
	padding-top: clamp(40px, 5vw, 72px);
	background: var(--msd-yellow);
}

.msd-check__grid {
	display: grid;
	grid-template-areas:
		"head talk"
		"mascot talk";
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	gap: 28px clamp(32px, 5vw, 72px);
	padding-bottom: clamp(40px, 4vw, 56px);
}

.msd-check__head {
	grid-area: head;
}

.msd-check__grid .msd-talk {
	grid-area: talk;
	align-self: center;
}

/* 文章の下の余白に、犬と吹き出しを置く */
.msd-check__mascot {
	grid-area: mascot;
	align-self: start;
}

.msd-check .msd-title {
	font-size: clamp(30px, 3.9vw, 56px);
}

.msd-check__text {
	max-width: 26em;
	margin-top: 20px;
	font-size: clamp(15px, 1.25vw, 18px);
}

.msd-talk {
	display: grid;
	gap: 30px;
}

.msd-talk li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	width: fit-content;
	max-width: 100%;
	padding: 14px 28px 14px 18px;
	border: 2.5px solid var(--msd-navy);
	border-radius: 30px;
	background: #fff;
	font-family: var(--msd-font);
	font-size: clamp(16px, 1.5vw, 21px);
	font-weight: 500;
	line-height: 1.5;
}

.msd-talk li::after {
	content: "";
	position: absolute;
	bottom: -11px;
	left: 44px;
	width: 18px;
	height: 18px;
	border-right: 2.5px solid var(--msd-navy);
	border-bottom: 2.5px solid var(--msd-navy);
	background: #fff;
	transform: rotate(45deg) skew(12deg, 12deg);
}

/* 左右に交互に振る。右側の吹き出しは、しっぽも右に出す */
.msd-talk li:nth-child(odd) {
	justify-self: start;
	transform: rotate(-0.8deg);
	transform-origin: 44px 100%;
}

.msd-talk li:nth-child(even) {
	justify-self: end;
	transform: rotate(0.8deg);
	transform-origin: calc(100% - 44px) 100%;
}

.msd-talk li:nth-child(even)::after {
	right: 44px;
	left: auto;
	transform: rotate(45deg) skew(-12deg, -12deg);
}

.msd-talk__mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--msd-red);
	color: #fff;
	font-size: 17px;
}

.msd-talk__mark .msd-icon {
	stroke-width: 3.2;
}

.msd-mascot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: fit-content;
	max-width: 100%;
}

.msd-mascot img {
	display: block;
	width: clamp(120px, 12vw, 170px);
	height: auto;
}

/* 正面の犬。まぶたは目の上に重ねて、まばたきの瞬間だけ見せる */
.msd-dog {
	position: relative;
	display: block;
}

.msd-dog img,
.msd-mascot .msd-dog img {
	display: block;
	width: 100%;
	height: auto;
}

.msd-mascot .msd-dog {
	width: clamp(120px, 12vw, 170px);
}

.msd-dog__lid {
	position: absolute;
	top: 28%;
	width: 12%;
	height: 12.2%;
	border-radius: 50%;
	background: linear-gradient(#06204a, #06204a) center / 76% 16% no-repeat, #fff;
	opacity: 0;
}

.msd-dog__lid--l {
	left: 29.4%;
}

.msd-dog__lid--r {
	left: 58.8%;
}

.msd-mascot__say {
	position: relative;
	z-index: 1;
	margin-bottom: 14px;
	padding: 8px 18px;
	border: 2.5px solid var(--msd-navy);
	border-radius: 999px;
	background: #fff;
	font-family: var(--msd-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}

/* ---------- 4. 相談できること（管でつながる機械） ---------- */

.msd-menu {
	padding-top: clamp(56px, 7vw, 104px);
	background: var(--msd-paper);
}

.msd-menu__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	row-gap: clamp(40px, 5vw, 64px);
	margin-top: clamp(40px, 5vw, 72px);
}

.msd-menu__item {
	display: flex;
	flex-direction: column;
	padding: 0 14px;
}

.msd-menu__visual {
	position: relative;
	margin: 0 -14px;
}

.msd-menu__visual img {
	position: relative;
	z-index: 1;
	display: block;
	width: min(100%, 340px);
	height: auto;
	margin-inline: auto;
}

/* 機械をつなぐ管。隣の機械の管と端でつながるよう、列の幅いっぱいに通して機械の後ろに置く */
.msd-menu__visual::before {
	content: "";
	position: absolute;
	top: 72%;
	right: 0;
	left: 0;
	height: 18px;
	border-top: 3px solid var(--msd-navy);
	border-bottom: 3px solid var(--msd-navy);
	background: #bfe6cf;
}

.msd-menu__item:nth-child(3n+1) .msd-menu__visual::before {
	left: 4px;
	border-left: 3px solid var(--msd-navy);
	border-radius: 9px 0 0 9px;
}

.msd-menu__item:nth-child(3n) .msd-menu__visual::before {
	right: 4px;
	border-right: 3px solid var(--msd-navy);
	border-radius: 0 9px 9px 0;
}

.msd-machine {
	position: relative;
	z-index: 1;
	display: block;
	width: min(100%, 340px);
	margin-inline: auto;
	height: auto;
	overflow: visible;
}

.msd-svg-mono {
	font-family: var(--msd-font-mono);
}

.msd-machine text {
	font-family: var(--msd-font);
}

.msd-menu__title {
	margin-top: 20px;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 800;
	line-height: 1.5;
}

.msd-menu__text {
	margin-top: 8px;
	color: var(--msd-muted);
	font-size: 15px;
	line-height: 1.8;
}

.msd-menu__more {
	margin-top: clamp(32px, 4vw, 56px);
	margin-bottom: clamp(48px, 6vw, 88px);
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 700;
}

/* ---------- 5. 相談の流れ（黒いセクション） ---------- */

.msd-flow {
	padding-top: clamp(40px, 5vw, 72px);
	background: var(--msd-ink);
	color: #fff;
}

.msd-flow .msd-label {
	color: var(--msd-yellow);
}

.msd-flow__track {
	position: relative;
	margin-top: clamp(48px, 6vw, 80px);
}

.msd-flow__road {
	position: absolute;
	top: 2px;
	left: 0;
	width: 100%;
	height: 60px;
}

.msd-flow__road path {
	stroke: var(--msd-yellow);
	stroke-width: 3;
	stroke-dasharray: 2 12;
	stroke-linecap: round;
}

.msd-flow__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px clamp(20px, 3vw, 44px);
}

.msd-step__pin {
	display: grid;
	justify-items: center;
	width: 50px;
	height: 70px;
	padding-top: 11px;
	background: url("../img/flow-pin.webp") center / contain no-repeat;
	color: var(--msd-ink);
	font-family: var(--msd-font-mono);
	font-size: 22px;
	line-height: 1.2;
}

.msd-step__title {
	margin-top: 26px;
	font-size: clamp(18px, 1.7vw, 24px);
	font-weight: 800;
	line-height: 1.5;
}

.msd-step__text {
	margin-top: 10px;
	color: #c3d0d8;
	font-size: 15px;
	line-height: 1.8;
}

.msd-flow .msd-btn {
	margin: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px);
}

/* ---------- 6. 料金 ---------- */

.msd-price {
	padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
	background: var(--msd-paper);
}

.msd-price__grid,
.msd-faq__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: start;
	gap: 32px clamp(32px, 5vw, 72px);
}

.msd-price__body {
	padding-top: 8px;
}

.msd-price__table > div {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--msd-line);
}

.msd-price__table > div:first-child {
	border-top: 2px solid var(--msd-navy);
}

.msd-price__table dt {
	font-size: 15px;
}

.msd-price__table dd {
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 800;
	line-height: 1.5;
}

.msd-price__note {
	margin-top: 16px;
	color: var(--msd-muted);
	font-size: 15px;
}

/* ---------- 7. よくある質問 ---------- */

.msd-faq {
	padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 104px);
	background: var(--msd-paper);
}

.msd-faq__list {
	border-top: 2px solid var(--msd-navy);
}

.msd-faq__item {
	border-bottom: 1px solid var(--msd-line);
}

.msd-faq__q {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 4px;
	cursor: pointer;
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 700;
	line-height: 1.6;
	list-style: none;
}

.msd-faq__q::-webkit-details-marker {
	display: none;
}

.msd-faq__mark {
	flex: none;
	font-family: var(--msd-font-mono);
	font-size: 15px;
	line-height: 1.8;
}

.msd-faq__toggle {
	position: relative;
	flex: none;
	width: 32px;
	height: 32px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--msd-navy);
	transition: background-color 0.2s;
}

.msd-faq__toggle::before {
	content: "";
	position: absolute;
	inset: 7px;
	background: var(--msd-yellow);
	-webkit-mask: url("../img/icon-plus.webp") center / contain no-repeat;
	mask: url("../img/icon-plus.webp") center / contain no-repeat;
}

.msd-faq__item[open] .msd-faq__toggle::before {
	-webkit-mask-image: url("../img/icon-minus.webp");
	mask-image: url("../img/icon-minus.webp");
}

.msd-faq__a {
	display: flex;
	gap: 14px;
	padding: 0 4px 22px;
	color: var(--msd-muted);
	font-size: 15px;
}

.msd-faq__a .msd-faq__mark {
	color: var(--msd-red);
}

/* ---------- 8. 被害が疑われる場合 ---------- */

.msd-emergency {
	background: var(--msd-paper);
}

.msd-emergency__box {
	overflow: hidden;
	margin-bottom: clamp(48px, 6vw, 88px);
	border: 2.5px solid var(--msd-navy);
	border-radius: 20px;
	background: #fff;
}

.msd-emergency__tape {
	height: 16px;
	background: repeating-linear-gradient(-45deg, var(--msd-yellow) 0 16px, var(--msd-navy) 16px 32px);
}

.msd-emergency__body {
	display: grid;
	gap: 16px;
	padding: clamp(24px, 3.4vw, 44px);
}

.msd-emergency__title {
	font-size: clamp(21px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.45;
}

.msd-emergency__links {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 8px;
}

.msd-emergency__links a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 14px 40px 14px 18px;
	border: 1.5px solid var(--msd-navy);
	border-radius: 14px;
	transition: background-color 0.2s;
}

.msd-emergency__links a:hover {
	background: var(--msd-yellow);
}

.msd-emergency__links .msd-icon {
	position: absolute;
	top: 18px;
	right: 14px;
}

.msd-emergency__org {
	font-weight: 800;
	line-height: 1.5;
}

.msd-emergency__desc {
	font-size: 13px;
	line-height: 1.6;
}

/* ---------- 9. 予約 ---------- */

.msd-reserve {
	overflow: hidden;
	padding-top: clamp(40px, 5vw, 72px);
	background: var(--msd-yellow);
}

.msd-reserve__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.msd-reserve__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.msd-reserve__meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border: 2px solid var(--msd-navy);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
}

.msd-mascot--reserve {
	margin-bottom: -46px;
}

.msd-mascot--reserve img {
	width: clamp(120px, 13vw, 170px);
}

.msd-reserve__box {
	position: relative;
	margin-top: 24px;
	padding: clamp(16px, 2.6vw, 36px);
	border: 2.5px solid var(--msd-navy);
	border-radius: 24px;
	background: #fff;
}

.msd-reserve__warn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 12px;
	background: #fdeee9;
	color: #a7381d;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
}

#timerex_calendar {
	min-height: 640px;
	margin-top: 20px;
}

.msd-reserve__empty {
	margin-top: 20px;
	padding: 72px 24px;
	border: 2px dashed var(--msd-line);
	border-radius: 16px;
	color: var(--msd-muted);
	text-align: center;
}

.msd-policy {
	margin-top: 24px;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.msd-policy a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	text-decoration: underline !important;
	text-underline-offset: 4px;
}

.msd-skyline {
	display: block;
	width: 100%;
	height: auto;
	min-height: 104px;
	margin-top: clamp(32px, 4vw, 56px);
	margin-bottom: -1px;
	object-fit: cover;
	object-position: right bottom;
}

/* ---------- フッター ---------- */

.msd-footer {
	padding: 24px 0 40px;
	background: var(--msd-navy);
	color: #dbe5eb;
}

.msd-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.msd-footer__brand img {
	width: auto;
	height: 26px;
}

.msd-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
	font-size: 14px;
}

.msd-footer__links a:hover {
	color: var(--msd-yellow);
}

.msd-footer__copy {
	width: 100%;
	color: #9db0bc;
	font-size: 12px;
}

/* 11. チャットボット設置用スペース：後追いで右下に置くため、ここには何も固定表示しない */
.msd-chatbot-slot:empty {
	display: none;
}

/* ---------- 既存チャットボットとの兼ね合い ----------
 * 最初の画面の予約ボタンと予約カレンダーに重ならないよう、その間は隠す（切り替えは security-page.js）。
 * このページにはテーマのスマホ用の下部メニューがないので、起動ボタンは下端に寄せる。
 */

.msd-chatbot-wait #bdp-dify-root .bdp-walker,
.msd-chatbot-wait #bdp-dify-root .bdp-open,
.msd-chatbot-wait #bdp-dify-root .bdp-open-bubble {
	visibility: hidden;
}

@media (max-width: 767px) {
	.msd-body #bdp-dify-root .bdp-open {
		bottom: 16px !important;
	}

	.msd-body #bdp-dify-root .bdp-open-bubble {
		bottom: 42px !important;
	}
}

/* ---------- 画面が低いとき（ノートPCでも予約ボタンを最初の画面に収める） ---------- */

@media (min-width: 1024px) and (max-height: 800px) {
	.msd-hero {
		padding-top: calc(var(--msd-header-h) + 44px);
	}

	.msd-hero__title {
		margin-top: 10px;
	}

	.msd-hero__big {
		font-size: clamp(52px, 5.6vw, 88px);
	}

	.msd-hero__text {
		margin-top: 16px;
	}

	.msd-hero__actions {
		margin-top: 20px;
	}
}

/* ---------- 画面が狭いとき ---------- */

@media (max-width: 1239px) {
	.msd-header__nav {
		display: none;
	}
}

@media (max-width: 1023px) {
	.msd-hero__body {
		padding-bottom: 8px;
	}

	.msd-hero__art {
		position: relative;
		right: auto;
		bottom: auto;
		width: 112%;
		margin-left: -6%;
	}

	.msd-town-say {
		display: none;
	}

	.msd-hero > .msd-curve {
		height: 60px;
	}

	.msd-check__grid {
		grid-template-areas:
			"head"
			"talk"
			"mascot";
		grid-template-rows: auto;
	}

	.msd-check__mascot {
		justify-self: end;
	}

	.msd-check__grid,
	.msd-price__grid,
	.msd-faq__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.msd-menu__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}

	.msd-menu__item:nth-child(3n+1) .msd-menu__visual::before,
	.msd-menu__item:nth-child(3n) .msd-menu__visual::before {
		right: 0;
		left: 0;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.msd-menu__item:nth-child(odd) .msd-menu__visual::before {
		left: 4px;
		border-left: 3px solid var(--msd-navy);
		border-radius: 9px 0 0 9px;
	}

	.msd-menu__item:nth-child(even) .msd-menu__visual::before {
		right: 4px;
		border-right: 3px solid var(--msd-navy);
		border-radius: 0 9px 9px 0;
	}

	.msd-flow__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 40px;
	}

	.msd-flow__road {
		display: none;
	}

	.msd-emergency__links {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 782px) {
	.admin-bar .msd-header {
		top: 58px;
	}
}

@media (max-width: 600px) {
	.admin-bar .msd-header {
		top: 8px;
	}
}

@media (max-width: 767px) {
	.msd {
		--msd-header-h: 48px;
		--msd-header-gap: 8px;
	}

	.msd-only-sp {
		display: inline;
	}

	.msd-only-pc {
		display: none;
	}

	.msd-header__brand {
		gap: 8px;
		padding: 0 14px;
	}

	.msd-header__logo {
		height: 18px;
	}

	.msd-header__name {
		padding-left: 8px;
		font-size: 11px;
	}

	.msd-header__cta {
		padding: 0 14px;
		font-size: 13px;
	}

	.msd-hero__big {
		font-size: 12.4vw;
	}

	.msd-hero__art {
		width: 118%;
		margin-left: -9%;
	}

	/* 文章に線がかからないよう、上の余白に収める */
	.msd-about {
		padding-top: 128px;
	}

	.msd-about__art {
		top: -8px;
		right: -6vw;
		width: 60vw;
		-webkit-mask-image: linear-gradient(#000 34%, transparent 58%);
		mask-image: linear-gradient(#000 34%, transparent 58%);
	}

	.msd-btn {
		justify-content: space-between;
		width: 100%;
		padding-left: 24px;
	}

	.msd-hero__actions {
		align-items: stretch;
	}

	.msd-hero__sub {
		text-align: center;
	}

	.msd-terms {
		grid-template-columns: minmax(0, 1fr);
	}

	.msd-talk li {
		gap: 10px;
		padding: 11px 18px 11px 11px;
		font-size: 15px;
	}

	.msd-talk li:nth-child(2),
	.msd-talk li:nth-child(4) {
		margin-left: 10px;
	}

	/* スマホでは「機械は左、説明は右」に詰める */
	.msd-menu__list {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 24px;
	}

	.msd-menu__item {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		column-gap: 14px;
		align-items: start;
		padding: 0;
	}

	.msd-menu__visual {
		grid-row: span 2;
		margin: 0;
	}

	/* 縦に並ぶので、管は機械の左右に短く出すだけにする */
	.msd-menu__visual::before,
	.msd-menu__item:nth-child(3n+1) .msd-menu__visual::before,
	.msd-menu__item:nth-child(3n) .msd-menu__visual::before,
	.msd-menu__item:nth-child(odd) .msd-menu__visual::before,
	.msd-menu__item:nth-child(even) .msd-menu__visual::before {
		right: 0;
		left: 0;
		height: 12px;
		border: 2px solid var(--msd-navy);
		border-radius: 6px;
	}

	.msd-menu__title {
		margin-top: 0;
		font-size: 17px;
	}

	.msd-menu__text {
		margin-top: 4px;
		font-size: 14px;
		line-height: 1.7;
	}

	.msd-flow__list {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 32px;
	}

	.msd-reserve__head {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.msd-mascot--reserve {
		align-self: flex-end;
		margin: -6px 0 -34px;
	}

	.msd-mascot--reserve img {
		width: 104px;
	}

	.msd-mascot--reserve .msd-mascot__say {
		display: none;
	}

	.msd-footer {
		padding-bottom: 120px;
	}
}

@media (max-width: 400px) {
	.msd-header__name {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.msd *,
	.msd *::before,
	.msd *::after {
		transition: none !important;
		animation: none !important;
	}
}

/* ---------- 流れる吹き出しの帯 ---------- */

.msd-marquee {
	overflow: hidden;
	margin-bottom: clamp(32px, 4vw, 56px);
	padding: 6px 0;
}

.msd-marquee__track {
	display: flex;
	gap: 14px;
	width: max-content;
}

.msd-marquee__item {
	padding: 8px 20px;
	border: 2px solid var(--msd-navy);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
}

.msd-marquee__item:nth-child(even) {
	background: var(--msd-navy);
	color: #fff;
}

/* ---------- コラムのカード ---------- */

.msd-column {
	padding-bottom: clamp(56px, 7vw, 104px);
	background: var(--msd-paper);
}

.msd-column__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.msd-column__all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 700;
}

.msd-column__all .msd-btn__arrow {
	width: 34px;
	height: 34px;
	background: var(--msd-navy);
	color: var(--msd-yellow);
	font-size: 15px;
}

.msd-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(32px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
	margin-top: clamp(28px, 3.4vw, 44px);
}

.msd-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* 表紙。アイキャッチがないときは、色の面に機械のイラストを置く */
.msd-cover {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 2.5px solid var(--msd-navy);
	border-radius: 18px;
	background: var(--msd-yellow);
}

.msd-cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.msd-cover[class*="msd-cover--"]::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-radial-gradient(circle at 50% 56%, transparent 0 26px, rgba(16, 48, 66, 0.1) 26px 28px);
}

.msd-cover[class*="msd-cover--"] img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: auto;
	height: 74%;
	object-fit: contain;
	translate: -50% -50%;
}

.msd-cover--1 {
	background: #bfe6cf;
}

.msd-cover--2 {
	background: #cfc7f4;
}

.msd-cover--3 {
	background: #103042;
}

.msd-cover--3::before {
	background: repeating-radial-gradient(circle at 50% 56%, transparent 0 26px, rgba(255, 255, 255, 0.12) 26px 28px) !important;
}

.msd-card__label {
	margin-top: 16px;
	color: var(--msd-red);
	font-family: var(--msd-font-mono);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.msd-card__title {
	margin-top: 6px;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0.01em;
	word-break: normal;
	word-break: auto-phrase;
	text-wrap: pretty;
}

.msd-card__excerpt {
	margin-top: 8px;
	color: var(--msd-muted);
	font-size: 14px;
	line-height: 1.8;
	word-break: normal;
}

.msd-card__meta {
	margin-top: auto;
	padding-top: 12px;
	color: var(--msd-muted);
	font-family: var(--msd-font-mono);
	font-size: 12px;
	line-height: 1.6;
}

.msd-card:hover .msd-card__title,
.msd-lead:hover .msd-lead__title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

/* ---------- コラム一覧 ---------- */

.msd-colhero {
	position: relative;
	overflow: hidden;
	margin-top: calc((var(--msd-header-h) + var(--msd-header-gap)) * -1);
	padding-top: calc(var(--msd-header-h) + 56px);
	background: var(--msd-yellow);
}

.msd-colhero__body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
}

.msd-colhero__title {
	font-size: clamp(36px, 5.6vw, 84px);
	line-height: 1.22;
}

.msd-colhero__text {
	margin-top: 16px;
	font-size: clamp(15px, 1.25vw, 18px);
}

.msd-colhero .msd-curve {
	margin-top: -24px;
}

.msd-collist {
	padding-top: clamp(24px, 3vw, 40px);
	background: var(--msd-paper);
}

.msd-collist .msd-wrap {
	padding-bottom: clamp(56px, 7vw, 96px);
}

.msd-lead {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 44px);
	align-items: center;
}

.msd-lead__body {
	display: flex;
	flex-direction: column;
}

.msd-lead .msd-card__label {
	margin-top: 0;
}

.msd-lead__title {
	margin-top: 8px;
	font-size: clamp(22px, 2.3vw, 32px);
	font-weight: 800;
	line-height: 1.45;
	word-break: normal;
	word-break: auto-phrase;
	text-wrap: pretty;
}

.msd-lead__excerpt {
	margin-top: 14px;
	color: var(--msd-muted);
	font-size: 15px;
	line-height: 1.9;
	word-break: normal;
}

.msd-lead + .msd-cards {
	margin-top: clamp(40px, 5vw, 72px);
}

.msd-collist__empty {
	padding: 80px 0;
	color: var(--msd-muted);
	text-align: center;
}

.msd-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: clamp(40px, 5vw, 64px);
}

.msd-pager a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 2px solid var(--msd-navy);
	border-radius: 50%;
	font-family: var(--msd-font-mono);
	font-size: 14px;
}

.msd-pager a:hover,
.msd-pager .is-current {
	background: var(--msd-navy);
	color: #fff;
}

/* 一覧と記事の下の案内 */
.msd-colcta {
	overflow: hidden;
	padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px);
	background: var(--msd-ink);
	color: #fff;
}

.msd-colcta__body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.msd-colcta .msd-title {
	margin-top: 0;
	font-size: clamp(28px, 3.9vw, 56px);
}

.msd-colcta__text {
	margin: 14px 0 24px;
	color: #c3d0d8;
	font-size: 14px;
}

.msd-colcta__dog {
	width: clamp(120px, 15vw, 210px);
}

.msd-main > .msd-curve--ink {
	margin-top: clamp(40px, 5vw, 72px);
}

/* ---------- コラム記事 ---------- */

.msd-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 200;
	height: 4px;
}

.msd-progress span {
	display: block;
	height: 100%;
	background: var(--msd-red);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.msd-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	padding-top: clamp(28px, 3.4vw, 48px);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.6;
}

.msd-crumbs a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.msd-crumbs span {
	overflow: hidden;
	max-width: 28em;
	color: var(--msd-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.msd-crumbs .msd-icon {
	font-size: 12px;
	stroke-width: 3;
}

.msd-article__head {
	max-width: 920px;
	padding: clamp(28px, 3.4vw, 48px) 0 clamp(24px, 3vw, 40px);
}

.msd-article__title {
	margin-top: 14px;
	font-size: clamp(28px, 3.6vw, 52px);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: 0;
	word-break: normal;
	word-break: auto-phrase;
}

.msd-article__head .msd-card__meta {
	padding-top: 16px;
	font-size: 13px;
}

.msd-article__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	align-items: start;
	gap: clamp(28px, 4vw, 56px);
}

.msd-article__main {
	padding: clamp(24px, 4vw, 56px);
	border: 2.5px solid var(--msd-navy);
	border-radius: 24px;
	background: #fff;
}

.msd-article__thumb {
	display: block;
	width: 100%;
	margin-bottom: 32px;
	border-radius: 14px;
}

/* 本文はツールから入る文章なので、語の途中でも普通に折り返す */
.msd-prose {
	font-size: 16px;
	line-height: 2;
	word-break: normal;
}

.msd-prose > * + * {
	margin-top: 1.4em;
}

.msd-prose h2 {
	margin-top: 2.6em;
	padding-top: 20px;
	border-top: 3px solid var(--msd-navy);
	font-size: clamp(22px, 2.2vw, 30px);
	font-weight: 800;
	line-height: 1.45;
}

.msd-prose h2:first-child {
	margin-top: 0;
}

.msd-prose h3 {
	margin-top: 2.2em;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 800;
	line-height: 1.55;
}

.msd-prose a {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

.msd-prose ul,
.msd-prose ol {
	padding-left: 1.5em;
}

.msd-prose ul {
	list-style: disc;
}

.msd-prose ol {
	list-style: decimal;
}

.msd-prose li + li {
	margin-top: 0.4em;
}

.msd-prose blockquote {
	margin-right: 0;
	margin-left: 0;
	padding: 18px 24px;
	border-left: 6px solid var(--msd-yellow);
	border-radius: 0 12px 12px 0;
	background: var(--msd-paper);
}

.msd-prose code {
	padding: 2px 6px;
	border-radius: 6px;
	background: var(--msd-paper);
	font-family: var(--msd-font-mono);
	font-size: 0.88em;
}

.msd-prose img {
	border-radius: 12px;
}

.msd-prose table {
	display: block;
	overflow-x: auto;
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.7;
}

.msd-prose th {
	background: var(--msd-navy);
	color: #fff;
	font-weight: 700;
	text-align: left;
}

.msd-prose th,
.msd-prose td {
	padding: 10px 14px;
	border: 1px solid var(--msd-line);
}

.msd-article__side {
	position: sticky;
	top: calc(var(--msd-header-h) + var(--msd-header-gap) + 20px);
	display: grid;
	gap: 20px;
}

.msd-toc__title {
	font-family: var(--msd-font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
}

.msd-toc ol {
	margin-top: 10px;
	border-left: 2px solid var(--msd-line);
}

.msd-toc a {
	display: block;
	margin-left: -2px;
	padding: 6px 0 6px 14px;
	border-left: 2px solid transparent;
	color: var(--msd-muted);
	font-size: 14px;
	line-height: 1.6;
	transition: color 0.2s, border-color 0.2s;
	word-break: normal;
}

.msd-toc a:hover,
.msd-toc a.is-current {
	border-left-color: var(--msd-navy);
	color: var(--msd-navy);
	font-weight: 700;
}

.msd-sidecta {
	display: block;
	padding: 18px;
	border: 2.5px solid var(--msd-navy);
	border-radius: 20px;
	background: var(--msd-yellow);
	transition: translate 0.2s;
}

.msd-sidecta:hover {
	translate: 0 -3px;
}

.msd-sidecta__dog {
	width: 84px;
	margin-bottom: 8px;
}

.msd-sidecta__title {
	display: block;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.5;
}

.msd-sidecta__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--msd-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.msd-related {
	padding-top: clamp(56px, 7vw, 96px);
}

.msd-related__title {
	font-size: clamp(24px, 2.6vw, 36px);
	font-weight: 800;
	line-height: 1.4;
}

@media (max-width: 1023px) {
	.msd-article__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.msd-article__side {
		position: static;
	}

	.msd-article__side .msd-toc {
		order: -1;
	}
}

@media (max-width: 767px) {
	.msd-cards,
	.msd-lead {
		grid-template-columns: minmax(0, 1fr);
	}

	.msd-colhero__mascot {
		margin-left: auto;
	}
}

/* ---------- 動き ----------
 * html に msd-motion が付いているときだけ動かす（付与はページ先頭の小さなスクリプト。OSで「視差効果を減らす」設定の人には付けない）。
 * 初めの状態をここで隠し、画面に入ったら security-page.js が is-in を付ける。
 * 吹き出しのポンと出る動きはマネックス証券、雲とピンはサン防災、まばたきと数字の回転と管の流れは Tines、帯は Tracebit・Aikido を参考にした。
 */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

/* 文字や部品がふわっと上がる */
.msd-motion :is(.msd-label, .msd-hero__text, .msd-hero__actions, .msd-statement strong, .msd-statement__more, .msd-terms > div, .msd-check__text, .msd-menu__item, .msd-menu__more, .msd-step, .msd-flow .msd-btn, .msd-price__table > div, .msd-price__note, .msd-faq__item, .msd-column__all, .msd-cards > li, .msd-emergency__box, .msd-reserve__meta li, .msd-reserve__box, .msd-lead, .msd-colhero__text, .msd-colcta__text, .msd-colcta .msd-btn, .msd-article__head, .msd-article__main, .msd-article__side) {
	opacity: 0;
	translate: 0 26px;
}

.msd-motion :is(.msd-label, .msd-hero__text, .msd-hero__actions, .msd-statement strong, .msd-statement__more, .msd-terms > div, .msd-check__text, .msd-menu__item, .msd-menu__more, .msd-step, .msd-flow .msd-btn, .msd-price__table > div, .msd-price__note, .msd-faq__item, .msd-column__all, .msd-cards > li, .msd-emergency__box, .msd-reserve__meta li, .msd-reserve__box, .msd-lead, .msd-colhero__text, .msd-colcta__text, .msd-colcta .msd-btn, .msd-article__head, .msd-article__main, .msd-article__side).is-in {
	opacity: 1;
	translate: 0 0;
	transition: opacity 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) calc(var(--i, 0) * 90ms), translate 0.7s cubic-bezier(0.165, 0.84, 0.44, 1) calc(var(--i, 0) * 90ms);
}

.msd-motion .msd-article__side.is-in {
	transition-delay: 0.2s;
}

/* 見出しは下からせり上がる */
.msd-motion :is(.msd-title > span, .msd-title > b, .msd-hero__lead-in, .msd-hero__big) {
	clip-path: inset(0 0 100% 0);
	translate: 0 0.6em;
}

.msd-motion :is(.msd-title > span, .msd-title > b, .msd-hero__lead-in, .msd-hero__big).is-in {
	clip-path: inset(-10% -5% -20% -5%);
	translate: 0 0;
	transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.175, 1) calc(var(--i, 0) * 120ms), translate 0.9s cubic-bezier(0.77, 0, 0.175, 1) calc(var(--i, 0) * 120ms);
}

/* 吹き出しはしっぽを起点にポンと出て、文字が1文字ずつ続く */
.msd-motion :is(.msd-town-say, .msd-talk li, .msd-mascot__say) {
	opacity: 0;
	scale: 0.2;
}

.msd-motion :is(.msd-town-say, .msd-talk li, .msd-mascot__say).is-in {
	opacity: 1;
	scale: 1;
	transition: scale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) var(--delay, 0ms), opacity 0.05s linear var(--delay, 0ms);
}

.msd-motion .msd-town-say {
	transform-origin: 1.4em 100%;
}

.msd-motion .msd-town-say--l {
	transform-origin: calc(100% - 1.4em) 100%;
}

.msd-motion .msd-town-say--dog {
	transform-origin: 100% 50%;
}

.msd-motion .msd-mascot__say {
	transform-origin: 80% 100%;
}

.msd-chars {
	white-space: nowrap;
}

.msd-char {
	display: inline-block;
	animation: msd-char 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) var(--char-delay, 0ms) both;
}

@keyframes msd-char {
	from {
		opacity: 0;
		scale: 0.3;
	}
}

/* 出たあとの吹き出しは、ゆっくり浮き沈みする */
.msd-motion :is(.msd-town-say, .msd-talk li).is-in {
	animation: msd-float 2.8s ease-in-out calc(var(--i, 0) * -0.7s) infinite alternate;
}

@keyframes msd-float {
	from {
		translate: 0 3px;
	}

	to {
		translate: 0 -3px;
	}
}

/* 街：絵がせり上がり、雲が揺れ、ピンが順番に跳ねて波紋を出す */
.msd-motion .msd-hero__art {
	animation: msd-art-in 1s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

@keyframes msd-art-in {
	from {
		opacity: 0;
		translate: 0 48px;
	}
}

.msd-motion .msd-town-art__cloud {
	animation: msd-cloud 3s ease-in-out calc(var(--i) * -1.1s) infinite alternate;
}

@keyframes msd-cloud {
	from {
		translate: -2% 7%;
		scale: 1.05 1.03;
	}

	to {
		translate: 2% -7%;
		scale: 1;
	}
}

.msd-motion .msd-town-art__pin img {
	transform-origin: 50% 100%;
	animation: msd-pin 6s ease-in-out calc(var(--i) * 1s) infinite;
}

/* 元の絵の真上に重ねているので、1倍より小さくしない */
@keyframes msd-pin {
	0%,
	12%,
	100% {
		scale: 1;
	}

	3% {
		scale: 1.16 1.02;
	}

	6% {
		scale: 1.04 1.26;
	}

	9% {
		scale: 1.1 1.04;
	}
}

.msd-town-art__pin::after {
	content: "";
	position: absolute;
	bottom: -8%;
	left: 50%;
	width: 150%;
	height: 42%;
	border: 2px solid var(--msd-red);
	border-radius: 50%;
	opacity: 0;
	translate: -50% 0;
}

.msd-motion .msd-town-art__pin::after {
	animation: msd-ripple 6s ease-out calc(var(--i) * 1s) infinite;
}

@keyframes msd-ripple {
	0% {
		opacity: 0;
		scale: 0.2;
	}

	4% {
		opacity: 0.9;
	}

	18%,
	100% {
		opacity: 0;
		scale: 1.3;
	}
}

/* 犬：ポンと出て、呼吸して、まばたきする */
.msd-motion .msd-town-art__dog {
	transform-origin: 50% 100%;
	animation: msd-dog-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes msd-dog-in {
	from {
		opacity: 0;
		scale: 0.3;
	}
}

.msd-motion .msd-dog img {
	transform-origin: 50% 100%;
	animation: msd-breathe 3.2s ease-in-out infinite alternate;
}

@keyframes msd-breathe {
	to {
		scale: 1.018 0.982;
	}
}

.msd-motion .msd-dog__lid {
	animation: msd-blink 4.4s steps(1) infinite;
}

@keyframes msd-blink {
	0%,
	100% {
		opacity: 0;
	}

	94%,
	96.5% {
		opacity: 1;
	}

	95.5% {
		opacity: 1;
	}

	97% {
		opacity: 0;
	}
}

.msd-motion .msd-mascot > img {
	animation: msd-sway 3.4s ease-in-out infinite alternate;
	transform-origin: 50% 100%;
}

@keyframes msd-sway {
	from {
		rotate: -2deg;
	}

	to {
		rotate: 2deg;
	}
}

/* 数字は上へ回って止まる */
/* 帯は流れ続ける。指を置くと止まる */
.msd-motion .msd-marquee__track {
	animation: msd-marquee 80s linear infinite;
}

.msd-marquee:hover .msd-marquee__track {
	animation-play-state: paused;
}

@keyframes msd-marquee {
	to {
		translate: -50% 0;
	}
}

/* 機械：ポンと出て、管の中を流れ、触ると揺れる */
.msd-motion .msd-menu__visual::before {
	background: repeating-linear-gradient(90deg, #bfe6cf 0 16px, #8fd3b0 16px 32px);
	animation: msd-pipe 1.1s linear infinite;
}

@keyframes msd-pipe {
	to {
		background-position: 32px 0;
	}
}

.msd-motion .msd-menu__item .msd-menu__visual img {
	scale: 0.7;
	opacity: 0;
}

.msd-motion .msd-menu__item.is-in .msd-menu__visual img {
	scale: 1;
	opacity: 1;
	transition: scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i, 0) * 120ms), opacity 0.2s linear calc(var(--i, 0) * 120ms);
}

.msd-motion .msd-menu__item:hover .msd-menu__visual img,
.msd-motion .msd-card:hover .msd-cover img {
	animation: msd-wiggle 0.6s ease-in-out;
}

@keyframes msd-wiggle {
	25% {
		rotate: -3deg;
	}

	50% {
		rotate: 2.5deg;
	}

	75% {
		rotate: -1.5deg;
	}
}

/* 相談の流れ：点線の道が伸びて流れ、ピンが順に落ちてくる */
.msd-motion .msd-flow__road {
	clip-path: inset(0 100% 0 0);
}

.msd-motion .msd-flow__road.is-in {
	clip-path: inset(-20% -2% -20% 0);
	transition: clip-path 1.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.msd-motion .msd-flow__road path {
	animation: msd-road 0.9s linear infinite;
}

@keyframes msd-road {
	to {
		stroke-dashoffset: -14;
	}
}

.msd-motion .msd-step .msd-step__pin {
	opacity: 0;
	translate: 0 -46px;
}

.msd-motion .msd-step.is-in .msd-step__pin {
	opacity: 1;
	translate: 0 0;
	transition: translate 0.65s cubic-bezier(0.34, 1.7, 0.64, 1) calc(var(--i, 0) * 240ms), opacity 0.15s linear calc(var(--i, 0) * 240ms);
}

/* 注意の帯は、工事のテープのように流れる */
.msd-motion .msd-emergency__tape {
	background-size: 45.25px 45.25px;
	animation: msd-tape 2.2s linear infinite;
}

@keyframes msd-tape {
	to {
		background-position: 45.25px 0;
	}
}

/* ボタン：矢印が抜けて戻ってくる */
.msd-btn__arrow {
	overflow: hidden;
}

.msd-motion :is(.msd-btn, .msd-column__all):hover .msd-btn__arrow .msd-icon {
	animation: msd-arrow 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

@keyframes msd-arrow {
	49% {
		translate: 160% 0;
	}

	50% {
		translate: -160% 0;
	}
}

/* よくある質問：開いたときに答えがふわっと出て、記号が回る */
.msd-faq__toggle {
	transition: rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s;
}

.msd-faq__item[open] .msd-faq__toggle {
	rotate: 180deg;
}

.msd-motion .msd-faq__item[open] .msd-faq__a {
	animation: msd-answer 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes msd-answer {
	from {
		opacity: 0;
		translate: 0 -8px;
	}
}

/* カード：触ると表紙が少し沈む */
.msd-cover {
	transition: translate 0.25s, box-shadow 0.25s;
}

.msd-card:hover .msd-cover,
.msd-lead:hover .msd-cover {
	box-shadow: 5px 5px 0 var(--msd-navy);
	translate: -3px -3px;
}

/* スクロールに合わせて動く背景（対応ブラウザだけ） */
@supports (animation-timeline: view()) {
	.msd-motion .msd-about__art {
		animation: msd-parallax linear both;
		animation-timeline: view();
	}

	.msd-motion .msd-skyline {
		animation: msd-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 100%;
	}
}

@keyframes msd-parallax {
	from {
		translate: 0 -8%;
		rotate: -3deg;
	}

	to {
		translate: 0 10%;
		rotate: 4deg;
	}
}

@keyframes msd-rise {
	from {
		translate: 0 45%;
	}
}

/* ---------- Safari など、word-break: auto-phrase に対応していないブラウザへの補正（対応している Chrome は変えない） ----------
 * iPhone・iPad 幅の WebKit で測って分かったこと（lp-builder の audit-webkit.mjs）：
 * ・word-break: keep-all でも、WebKit は開きかっこの後ろや、閉じかっこと句点のあいだで折り返す（「（」が行末、「。」が行頭に来る）。
 *   text-wrap: pretty は、さらに文節の区切り（<wbr>）と禁則も無視する。
 * ・コラムの題は「word-break: normal; のあとに auto-phrase」の書き方で、Safari は後ろを無視するため normal（どこでも折り返し）が残り、
 *   「確認／できる」のように語の途中で切れる。
 * そこで、文節ごとに包んだ .msd-ph（msd_phrase と msd_auto_phrase が出す span）を inline-block にして、文節の途中では折り返させない。
 * 文節が行より長いときだけ、その中で折り返す（overflow-wrap: anywhere による）。
 * 対応している Chrome では、この指定は読まれない（.msd-ph は普通のインラインのまま）。
 * ・独自の要素名（<msd-ph> など）は使わない：WebKit が独自の要素の中の文字を少し広く組み、文節の境目に余白ができるため。
 * ・word-break は keep-all にする：WebKit は normal だと、文節の最後の文字のあとに 0.3em ほどの余白を足してしまう（題は親が normal なので、ここで上書きする）。
 */
@supports not (word-break: auto-phrase) {
	.msd-ph {
		display: inline-block;
		word-break: keep-all;
	}

	.msd-hero__text {
		text-wrap: wrap;
	}
}


/* ---------- 今回のこと：PHP 以外も ---------- */

.msd-others {
	max-width: 760px;
	margin-top: clamp(36px, 4.4vw, 60px);
	padding: clamp(20px, 2.6vw, 32px);
	border: 2.5px solid var(--msd-navy);
	border-radius: 20px;
	background: #fff;
}

.msd-others__title {
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	line-height: 1.5;
}

.msd-others__text {
	margin-top: 10px;
	color: var(--msd-muted);
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 2;
}

/* 具体的な例（出典つき）は、開いたときだけ見せる */
.msd-more {
	margin-top: 18px;
	border-top: 1px solid var(--msd-line);
}

.msd-more__sum {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 2px 4px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 700;
	list-style: none;
}

.msd-more__sum::-webkit-details-marker {
	display: none;
}

.msd-more[open] .msd-faq__toggle {
	rotate: 180deg;
}

.msd-more[open] .msd-faq__toggle::before {
	-webkit-mask-image: url("../img/icon-minus.webp");
	mask-image: url("../img/icon-minus.webp");
}

.msd-more__list {
	display: grid;
	gap: 12px;
	padding: 10px 0 2px;
}

.msd-more__list li {
	display: grid;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--msd-paper);
}

.msd-more__name {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.6;
}

.msd-more__text {
	color: var(--msd-muted);
	font-size: 14px;
	line-height: 1.8;
}

.msd-more__src,
.msd-ind__facts a {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 4px;
	font-size: 12px;
	line-height: 1.7;
	text-decoration: underline !important;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

/* ---------- 業種ごとの不安（暗いセクション） ---------- */

.msd-industry {
	padding-top: clamp(40px, 5vw, 72px);
	background: var(--msd-ink);
	color: #fff;
}

.msd-industry .msd-label {
	color: var(--msd-yellow);
}

.msd-industry__lead {
	max-width: 30em;
	margin-top: 16px;
	color: #c3d0d8;
	font-size: clamp(15px, 1.25vw, 18px);
}

.msd-ind {
	margin-top: clamp(28px, 3.6vw, 48px);
	padding-bottom: clamp(48px, 6vw, 88px);
}

.msd-ind__tabs {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	gap: 8px;
}

.msd-ind__tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 4px 10px;
	border: 2.5px solid #fff;
	border-radius: 18px;
	background: #fff;
	color: var(--msd-navy);
	text-align: center;
	transition: translate 0.2s, background-color 0.2s, border-color 0.2s;
}

.msd-ind__tab:hover {
	translate: 0 -3px;
}

.msd-ind__tab.is-active {
	border-color: var(--msd-yellow);
	background: var(--msd-yellow);
}

/* 選んでいるボタンから、下の詳細へつなぐ切り欠き */
.msd-ind.is-js .msd-ind__tab.is-active::after {
	content: "";
	position: absolute;
	bottom: -15px;
	left: 50%;
	z-index: 1;
	width: 16px;
	height: 16px;
	background: var(--msd-yellow);
	transform: translateX(-50%) rotate(45deg);
}

.msd-ind__tab-art {
	display: block;
	width: min(100%, 64px);
}

.msd-ind__tab-art svg,
.msd-ind__tab-art img {
	display: block;
	width: 100%;
	height: auto;
}

.msd-ind__tab-label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.msd-ind__panel {
	display: grid;
	grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
	align-items: start;
	gap: clamp(20px, 3vw, 44px);
	margin-top: 20px;
	padding: clamp(22px, 3.2vw, 44px);
	border-radius: 24px;
	background: #fff;
	color: var(--msd-navy);
}

.msd-ind__panel[hidden] {
	display: none;
}

.msd-ind__art {
	padding: 18px;
	border-radius: 20px;
	background: var(--msd-paper);
}

.msd-ind__art svg,
.msd-ind__art img {
	display: block;
	width: 100%;
	height: auto;
}

.msd-ind__kind {
	color: var(--msd-red);
	font-family: var(--msd-font-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
}

.msd-ind__hook {
	margin-top: 4px;
	font-size: clamp(22px, 2.4vw, 34px);
	font-weight: 800;
	line-height: 1.45;
}

.msd-ind__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px clamp(20px, 3vw, 40px);
	margin-top: 24px;
}

.msd-ind__sub {
	padding-bottom: 8px;
	border-bottom: 2px solid var(--msd-navy);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.msd-ind__list {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.msd-ind__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.7;
}

.msd-ind__mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	border-radius: 50%;
	font-size: 14px;
}

.msd-ind__mark .msd-icon {
	stroke-width: 3;
}

.msd-ind__list--worry .msd-ind__mark {
	background: var(--msd-red);
	color: #fff;
}

.msd-ind__list--can .msd-ind__mark {
	background: var(--msd-navy);
	color: var(--msd-yellow);
}

.msd-ind__note {
	margin-top: 20px;
	padding: 12px 16px;
	border-left: 5px solid var(--msd-yellow);
	border-radius: 0 12px 12px 0;
	background: var(--msd-paper);
	font-size: 14px;
	line-height: 1.8;
}

.msd-ind__facts {
	margin-top: 20px;
}

.msd-ind__facts ul {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.msd-ind__facts li {
	display: grid;
	gap: 2px;
	font-size: 14px;
	line-height: 1.8;
}

.msd-ind__body > .msd-btn {
	margin-top: 26px;
}

@media (max-width: 1023px) {
	.msd-ind__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.msd-ind__art {
		width: min(100%, 180px);
	}
}

/* 10個が並ばない幅では、ボタンの列を横にスクロールする */
@media (max-width: 1099px) {
	.msd-ind__tabs {
		display: flex;
		overflow-x: auto;
		margin-right: calc(clamp(20px, 4vw, 56px) * -1);
		margin-left: calc(clamp(20px, 4vw, 56px) * -1);
		padding: 0 clamp(20px, 4vw, 56px) 22px;
		scroll-padding: 0 clamp(20px, 4vw, 56px);
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.msd-ind__tabs::-webkit-scrollbar {
		display: none;
	}

	.msd-ind__tab {
		flex: 0 0 108px;
		scroll-snap-align: start;
	}

	.msd-ind.is-js .msd-ind__tab.is-active::after {
		bottom: -14px;
	}
}

@media (max-width: 767px) {
	.msd-ind__cols {
		grid-template-columns: minmax(0, 1fr);
	}

	.msd-ind__hook {
		font-size: 22px;
	}
}

/* 業種ごとの詳細と、PHP 以外の枠は、画面に入ったらふわっと上がる（動きの設定は html.msd-motion） */
.msd-motion :is(.msd-industry__lead, .msd-ind__tabs, .msd-ind__panel, .msd-others) {
	opacity: 0;
	translate: 0 26px;
}

.msd-motion :is(.msd-industry__lead, .msd-ind__tabs, .msd-ind__panel, .msd-others).is-in {
	opacity: 1;
	translate: 0 0;
	transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), translate 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 出典つきの文は、長い一文なので、文節で折り返す（Safari は .msd-ph の補正で同じ見え方にする） */
.msd-ind__facts li > span,
.msd-more__name,
.msd-more__text {
	word-break: normal;
	word-break: auto-phrase;
}

/* ---------- 2回目の修正（2026-11-09） ---------- */

/* 「PHP だけではありません」の枠は、左に寄せず、ページの幅いっぱいに中央で広げる */
.msd-others {
	max-width: none;
	margin-right: auto;
	margin-left: auto;
	padding: clamp(24px, 3.4vw, 48px);
}

.msd-others__title {
	font-size: clamp(22px, 2.6vw, 34px);
}

.msd-others__text {
	max-width: 46em;
}

.msd-more__list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px clamp(14px, 2vw, 24px);
}

.msd-more__list li {
	align-content: start;
	gap: 0;
	padding: 16px 20px 14px;
}

.msd-more__what {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 2px 0 6px;
	padding: 3px 10px;
	border-radius: 8px;
	background: #fff;
	color: var(--msd-navy);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.7;
	word-break: normal;
	word-break: auto-phrase;
}

.msd-more__list .msd-more__src {
	margin-top: 4px;
}

@media (max-width: 767px) {
	.msd-more__list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 「うちの業界だと、」は、下の「何が起きやすい？」と同じ太さにする */
.msd-industry .msd-title > span {
	font-weight: 800;
}

/* タブレット幅：右上の装飾の絵が、見出しの行末にかからないようにする */
@media (min-width: 768px) and (max-width: 1023px) {
	.msd-about__art {
		top: -30px;
		right: -3vw;
		width: 22vw;
	}

	.msd-about .msd-statement {
		max-width: 76%;
	}
}

/* ---------- 3回目の修正（2026-11-09） ---------- */

/* よくある質問：左の見出しは、右の質問が長くても、画面に追従して余白を作らない */
.msd-faq__side {
	position: sticky;
	top: 112px;
	display: grid;
	justify-items: start;
	gap: 0;
}

.msd-faq__lead {
	margin: 24px 0 24px;
	color: var(--msd-muted);
	font-size: 15px;
	line-height: 1.9;
}

@media (max-width: 1023px) {
	.msd-faq__side {
		position: static;
	}
}

/* ---------- 4回目の修正（2026-11-09） ---------- */

/* 数字4つを外したので、「PHP だけではありません」の枠の下に、曲線までの余白を取る */
.msd-about .msd-others {
	margin-bottom: clamp(48px, 6vw, 88px);
}

/* 一番上の吹き出し（社長の指示：最上部の紺色の帯に、「特設しました！」を白い吹き出しで出す。2026-11-13 山道さんが候補Dを採用）
   1行のコンパクトな吹き出し。黄色い点がゆっくり点滅して、「新しいお知らせ」だと伝える */
.msd-header__cta-wrap {
	position: relative;
	display: flex;
	height: 100%;
}

.msd-alertbar--say {
	padding: 10px 16px 18px;
}

.msd-alertbar__say {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0.5em 1.4em;
	border-radius: 999px;
	background: #fff;
	color: var(--msd-ink);
	font-size: clamp(14px, 1.5vw, 17px);
	font-weight: 700;
	line-height: 1.5;
	text-align: left;
}

.msd-alertbar__dot {
	position: relative;
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--msd-yellow);
}

.msd-alertbar__dot::after {
	content: "";
	position: absolute;
	inset: -5px;
	border: 2px solid var(--msd-yellow);
	border-radius: 50%;
	opacity: 0;
}

.msd-motion .msd-alertbar__dot::after {
	animation: msd-alert-pulse 1.8s ease-out infinite;
}

@keyframes msd-alert-pulse {
	from {
		opacity: 1;
		transform: scale(0.6);
	}

	to {
		opacity: 0;
		transform: scale(1.5);
	}
}

/* 下向きの小さなしっぽ */
.msd-alertbar__say::after {
	content: "";
	position: absolute;
	top: calc(100% - 5px);
	left: 50%;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	background: #fff;
	transform: rotate(45deg);
}

/* 予約：見出しの下の一文と、赤い注意書き */
.msd-reserve__lead {
	margin-top: 20px;
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 700;
	line-height: 1.7;
}

.msd-reserve__note {
	margin-top: 6px;
	color: #b3220a;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.7;
}

.msd-reserve__lead + .msd-reserve__note + .msd-reserve__meta {
	margin-top: 20px;
}
