@charset "UTF-8";
/* ==========================================================================
   記事内共通ボタン  .almond-btn
   SEOP-146 / 2026-08-10

   ・指示書で参考指定された下記ページの DESIGN B（.almondButton）を再現
     https://clinic-article-buttons.workspace-673159.chatgpt.site/
     色・余白・角丸・影・文字サイズは同ページのCSSから取得した実測値
   ・Shortcoder のショートコードから呼び出して使う
   ・.almond-btn 配下にのみ適用。テーマの他ページには影響しない
   ========================================================================== */

.almond-btn,
.almond-btn *,
.almond-btn *::before,
.almond-btn *::after {
	box-sizing: border-box;
}

.almond-btn {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(520px, 100%);
	min-height: 76px;
	/* 記事本文の段落間隔（SWELLの .post_content > * と同じ 2em）に合わせつつ中央寄せ。
	   本文の最後の要素になったときは SWELL 側の
	   「.post_content > :last-child { margin-bottom: 0 !important }」で下の余白が消える */
	margin: 2em auto;
	padding: 10px 14px 10px 20px;
	background: linear-gradient(110deg, #c70e25, #ed3447);
	border: 1px solid #ad091c;
	border-radius: 999px;
	box-shadow: 0 10px 25px rgba(190, 16, 41, .25), inset 0 1px 0 rgba(255, 255, 255, .32);
	transition: transform .2s, box-shadow .2s, filter .2s;
}

/* 記事本文のリンク色・下線を持ち込ませない（詳細度を上げて確実に打ち消す） */
.almond-btn,
.almond-btn:link,
.almond-btn:visited,
.almond-btn:hover,
.almond-btn:active {
	color: #fff;
	text-decoration: none;
}

/* 内側の白いリング */
.almond-btn::after {
	content: "";
	position: absolute;
	inset: 5px;
	z-index: -1;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
}

/* --- 左のきらめき --- */
.almond-btn__spark {
	flex: none;
	margin-right: 14px;
	color: #fff1e9;
	font-size: 17px;
	line-height: 1;
}

.almond-btn__spark::before {
	content: "✦";
}

/* --- 文言 --- */
.almond-btn__text {
	flex: 1 1 auto;
	padding-left: 12px;
	text-align: center;
}

.almond-btn__sub {
	display: block;
	margin-bottom: 3px;
	opacity: .82;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .11em;
	line-height: 1.4;
}

.almond-btn__main {
	display: block;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.4;
}

/* --- 右の丸アイコン（外部リンク） --- */
.almond-btn__arrow {
	flex: none;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(123, 23, 42, .16);
}

.almond-btn__arrow::before {
	content: "";
	width: 21px;
	height: 21px;
	background: #d3172e;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 5h5v5M19 5l-8 8M17 13v5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 5h5v5M19 5l-8 8M17 13v5a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- 操作時 --- */
@media (hover: hover) {
	.almond-btn:hover {
		box-shadow: 0 12px 28px rgba(190, 16, 41, .30), inset 0 1px 0 rgba(255, 255, 255, .32);
		filter: saturate(1.08) brightness(1.03);
		transform: translateY(-2px);
	}
}

.almond-btn:active {
	transform: translateY(1px);
}

.almond-btn:focus-visible {
	outline: 3px solid #222;
	outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
	.almond-btn {
		transition: none;
	}

	.almond-btn:hover,
	.almond-btn:active {
		transform: none;
	}
}

/* ==========================================================================
   スマホ（600px以下）  ※SWELL本体のSPブレークポイントに合わせる
   参考ページの compact 表示の実測値
   ========================================================================== */
@media (max-width: 600px) {

	.almond-btn {
		min-height: 67px;
		padding-left: 13px;
	}

	.almond-btn__spark {
		margin-right: 3px;
		font-size: 14px;
	}

	.almond-btn__text {
		padding-left: 4px;
	}

	.almond-btn__sub {
		font-size: 8px;
	}

	.almond-btn__main {
		font-size: 14px;
	}

	.almond-btn__arrow {
		width: 41px;
		height: 41px;
	}
}
