/* 花以想 例文ページ共通部品 v1.0.9 */

/* ボタン */
.hni-x-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 16px;
	background: #01796a;
	color: #fff !important;
	border-radius: 6px;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: bold;
	box-sizing: border-box;
}
.hni-x-btn--line {
	background: #fff;
	color: #015e53 !important;
	border: 1px solid #01796a;
	margin-top: 12px;
}

/* P1 コピー後の案内画面 */
.hni-x-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.45);
}
.hni-x-modal[hidden] { display: none; }
.hni-x-modal__box {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 92%;
	max-width: 440px;
	max-height: 88vh;
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	padding: 24px 20px;
	box-sizing: border-box;
	color: #222;
	font-size: 15px;
	line-height: 1.85;
}
.hni-x-modal__title { margin: 0 0 4px; font-size: 17px; font-weight: bold; color: #015e53; }
.hni-x-modal__code { margin: 0 0 10px; font-size: 14px; color: #555; }
.hni-x-modal__memo { margin: 0 0 12px; padding: 10px 12px; background: #faf7f2; border: 1px solid #c6d8d3; border-radius: 6px; font-size: 14px; }
.hni-x-modal__text { background: #f4f8f6; border: 1px solid #c6d8d3; border-radius: 6px; padding: 12px; font-size: 15px; white-space: pre-wrap; }
.hni-x-modal__note { margin: 12px 0; font-size: 14px; }
.hni-x-modal__deadline { margin: 0 0 16px; font-size: 14px; color: #015e53; font-weight: bold; }
.hni-x-modal__close {
	display: block;
	width: 100%;
	min-height: 44px;
	margin-top: 8px;
	background: #fff;
	border: 1px solid #c6d8d3;
	border-radius: 6px;
	color: #555;
	font-size: 14px;
	text-align: center;
	cursor: pointer;
}

/* P2 選ばれているお花 */
.hni-x-pick {
	margin: 32px auto;
	padding: 20px 16px;
	max-width: 720px;
	background: #f4f8f6;
	border: 1px solid #c6d8d3;
	border-radius: 10px;
	box-sizing: border-box;
	color: #222;
}
.hni-x-pick__deadline { margin: 0 0 10px; padding: 8px 12px; background: #01796a; color: #fff; border-radius: 6px; font-size: 14px; font-weight: bold; text-align: center; }
.hni-x-pick__title { margin: 0 0 6px !important; font-size: 18px !important; line-height: 1.5; color: #015e53; }
.hni-x-pick__lead { margin: 0 0 14px; font-size: 14px; line-height: 1.8; }
.hni-x-card {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 10px;
	padding: 12px;
	background: #fff;
	border: 1px solid #c6d8d3;
	border-radius: 8px;
	text-decoration: none !important;
	color: #222 !important;
}
.hni-x-card__img { flex: 0 0 30%; width: 30%; max-width: 150px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.hni-x-card__body { flex: 1 1 auto; min-width: 0; }
.hni-x-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; }
.hni-x-badge { display: inline-block; padding: 2px 8px; background: #faf7f2; border: 1px solid #b8893a; border-radius: 999px; color: #7a5a22; font-size: 12px; line-height: 1.6; }
.hni-x-card__name { margin: 0 !important; font-size: 15px; font-weight: bold; line-height: 1.6; }
.hni-x-card__price { margin: 2px 0 4px !important; font-size: 15px; color: #015e53; font-weight: bold; }
.hni-x-card__who { margin: 0 !important; font-size: 14px; line-height: 1.7; color: #555; }
.hni-x-pick__extra { margin: 4px 0 8px; font-size: 14px; line-height: 1.8; }
.hni-x-pick__extra a { color: #015e53; }
.hni-x-pick__info { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: #555; }

/* 例文番号と例文のあいだに余白を足す（パソコンで番号と1文字目がくっつくため） */
.example_item { column-gap: 16px; }

/* P4 例文ごとの「この文面で注文」 */
.example_item .hni-x-order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 36px;
	margin: 8px 0 0;
	padding: 0 10px;
	border: 1px solid #01796a;
	border-radius: 4px;
	background: #fff;
	color: #015e53 !important;
	font-size: 13px;
	font-weight: bold;
	text-decoration: none !important;
	white-space: nowrap;
}

/* P3 スマホの下部固定ボタン */
.hni-x-sticky { display: none; }
@media (max-width: 768px) {
	.hni-x-sticky {
		position: fixed;
		left: 8px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		z-index: 9000;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 56px;
		background: #01796a;
		color: #fff !important;
		border-radius: 8px;
		text-decoration: none !important;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
		transform: translateY(140%);
		transition: transform 0.25s ease;
	}
	.hni-x-sticky.is-show { transform: translateY(0); }
	.hni-x-sticky__main { font-size: 15px; font-weight: bold; line-height: 1.4; padding: 0 8px; text-align: center; }
	.hni-x-sticky__sub { font-size: 12px; line-height: 1.4; }
	/* ボタンで最後の行が隠れないよう、ページの下に余白を足す */
	body.hni-x-has-sticky { padding-bottom: 80px; }
}

/* 案内画面を開いたときの枠線を目立たせない（キーボード操作のときだけ出す） */
.hni-x-modal .hni-x-btn:focus { outline: none; }
.hni-x-modal__box:focus { outline: none; }
.hni-x-modal .hni-x-btn:focus-visible { outline: 2px solid #b8893a; outline-offset: 2px; }

/* P5 例文の折りたたみ（喪中見舞いページと同じ見た目） */
.hni-x-more { border: 1px solid #c6d8d3; border-radius: 3px; background: #fff; margin: 16px 0 10px; }
.hni-x-more > summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; position: relative; font-size: 15px; font-weight: 700; line-height: 1.85; color: #222; }
.hni-x-more > summary::-webkit-details-marker { display: none; }
.hni-x-more > summary::after { content: ""; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px; border-right: 2px solid #01796a; border-bottom: 2px solid #01796a; transform: rotate(45deg); }
.hni-x-more[open] > summary::after { transform: rotate(-135deg); top: 26px; }
.hni-x-more[open] > summary { border-bottom: 1px solid #c6d8d3; margin: 0 18px; padding-left: 0; padding-right: 26px; }
.hni-x-more[open] > summary::after { right: 0; }
.hni-x-more > .example_item { padding-left: 18px; padding-right: 18px; }

/* 2026-11-27 スマホで商品画像を大きく（横並びカード→縦並び、画像を横幅いっぱい） */
@media (max-width: 600px) {
  .hni-pick .hni-pick__card { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px; }
  .hni-pick .hni-pick__img { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: none; }
  .hni-pick .hni-pick__body { flex: 1 1 auto; }
  a[style*="display:flex"][style*="flex-wrap:nowrap"] { flex-direction: column !important; align-items: stretch !important; }
  a[style*="flex-wrap:nowrap"] > img[style*="max-width:150px"] { width: 100% !important; max-width: none !important; }
  a[style*="flex-wrap:wrap"] > img[style*="width:120px"] { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; }
}
