@charset "UTF-8";
/* ============================================================
 * 葬儀社側（invite/）共通レイアウト
 *
 * 全画面で読み込む基盤です。配色・書体・余白・角丸の基準（トークン）と、
 * ヘッダー、ナビゲーション、フッター、ボタン、入力欄、見出し、カードの
 * 共通部品を定義します。画面ごとの調整は css/layouts/ 配下で行います。
 *
 * 配色はメインカラー #7baeb9 とサブカラー #c8e7eb（先方指定）を基準にし、
 * 文字色・濃色・枠線などの派生色は color-mix で自動生成します。
 * 弔事のサービスのため、白を基調に彩度と装飾を抑え、
 * メインカラーは操作要素と進み具合の表示にだけ使います。
 * ============================================================ */

:root {
	/* ---- 配色 ---- */
	--iv-main: #7baeb9;
	--iv-sub: #c8e7eb;
	/* 主ボタンの塗り色。白文字とのコントラスト比 4.5:1 以上になるようメインカラーを濃くしたもの */
	--iv-main-strong: color-mix(in srgb, var(--iv-main) 55%, #0f2a30);
	--iv-main-strong-hover: color-mix(in srgb, var(--iv-main) 45%, #0f2a30);
	/* メインカラー系の文字色（リンク・見出し補助） */
	--iv-main-ink: color-mix(in srgb, var(--iv-main) 48%, #1f3a40);
	/* 本文・見出し */
	--iv-text: #2b2f31;
	--iv-text-muted: #6a7174;
	--iv-text-faint: #9aa2a5;
	/* 面 */
	--iv-canvas: color-mix(in srgb, var(--iv-sub) 10%, #fafbfb);
	--iv-surface: #ffffff;
	--iv-surface-soft: color-mix(in srgb, var(--iv-sub) 28%, #ffffff);
	--iv-surface-muted: #f3f5f6;
	/* 線 */
	--iv-border: color-mix(in srgb, var(--iv-main) 28%, #e3e8ea);
	--iv-border-soft: #e6eaec;
	--iv-border-strong: var(--iv-main);
	/* 入力欄 */
	--iv-input-border: #c9d2d5;
	--iv-focus-ring: color-mix(in srgb, var(--iv-main) 35%, transparent);
	/* 状態 */
	--iv-danger: #9b1c2b;
	--iv-danger-border: #d9a6a3;
	--iv-danger-surface: #fbf1f0;
	--iv-note-surface: #fbf4e8;
	--iv-note-text: #7a4a10;
	--iv-done: var(--iv-main);
	/* 影（カードは枠線で区切り、影は押せる要素の浮きにだけ使う） */
	--iv-shadow-soft: 0 2px 10px rgba(43, 47, 49, 0.06);
	--iv-shadow-hover: 0 6px 18px rgba(43, 47, 49, 0.10);

	/* ---- 書体 ---- */
	--iv-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, serif;
	--iv-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, -apple-system, BlinkMacSystemFont, sans-serif;

	/* ---- 余白・形 ---- */
	--iv-space-1: 8px;
	--iv-space-2: 16px;
	--iv-space-3: 24px;
	--iv-space-4: 32px;
	--iv-space-5: 40px;
	--iv-space-6: 56px;
	--iv-radius-sm: 6px;
	--iv-radius: 10px;
	--iv-radius-lg: 14px;
	--iv-radius-pill: 999px;
	--iv-control-height: 48px;
	--iv-header-height: 64px;
	--iv-page-max: 1000px;
	--iv-content-max: 720px;

	/* 旧コードが参照する喪主側トークン名との互換 */
	--host-color: var(--iv-main);
	--host-sub-color: var(--iv-sub);
	--host-color-dark: var(--iv-main-strong);
	--host-color-hover: var(--iv-main-strong-hover);
	--host-text: var(--iv-text);
	--host-muted: var(--iv-text-muted);
	--host-border: var(--iv-border);
	--host-accent-surface: var(--iv-surface-soft);
	--host-color-focus: var(--iv-focus-ring);
	--host-gift-surface: var(--iv-surface-muted);
	--host-edit-soft-surface: var(--iv-surface-muted);
	--host-shadow-soft: rgba(43, 47, 49, 0.10);
	--host-serif: var(--iv-serif);
	--host-sans: var(--iv-sans);
}

/* ============================================================
 * 基本
 * ============================================================ */
html {
	min-height: 100%;
	-webkit-text-size-adjust: 100%;
}
body {
	background: var(--iv-canvas);
	color: var(--iv-text);
	font-family: var(--iv-sans);
	font-size: 16px;
	line-height: 1.7;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
	box-sizing: border-box;
}
img {
	width: 100%;
	height: auto;
}
a {
	color: var(--iv-main-ink);
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--iv-main) 55%, transparent);
	text-underline-offset: 0.18em;
	transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
a:hover {
	color: var(--iv-main-strong);
}
button, input, select, textarea {
	font-family: inherit;
	font-size: 16px;
	color: inherit;
}
button {
	cursor: pointer;
}
input {
	padding: 5px;
}
input, textarea, select {
	font-size: 16px;
}
textarea {
	font-size: 16px;
}
.noto-serif,
.noto-serif-jp {
	font-family: var(--iv-serif);
}
.noto-sans,
.noto-san {
	font-family: var(--iv-sans);
}
:focus-visible {
	outline: 3px solid var(--iv-focus-ring);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* 旧ユーティリティ（各画面のテンプレートが参照する） */
.my-white { color: #ffffff; }
.att { color: var(--iv-danger); }
.err { color: var(--iv-danger); }
.center { text-align: center; }
.text-center { text-align: center; }
.hidden { display: none; }
.abs { position: absolute; }
.s050 { width: 50px; }
.s070 { width: 70px; }
.s080 { width: 80px; }
.s090 { width: 90px; }
.s100 { width: 100px; }
.s150 { width: 150px; }
.s200 { width: 200px; }
.s250 { width: 250px; }
.s280 { width: 280px; }
.s300 { width: 300px; }
.br560 { display: none; }
.invalid-feedback {
	margin-top: 4px;
	font-size: 13px;
	color: var(--iv-danger);
}

/* ============================================================
 * ページ骨格
 * ============================================================ */
body.invite-body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
body.invite-body > #footer {
	margin-top: auto;
}
#wrapper {
	width: 100%;
}
#header {
	width: 100%;
	height: var(--iv-header-height);
}
#main {
	width: 100%;
}
#main-inner {
	width: 100%;
	max-width: var(--iv-page-max);
	margin: 0 auto;
	padding: var(--iv-space-4) var(--iv-space-2) var(--iv-space-6);
}
#main .topic-path {
	font-size: 12px;
	margin-bottom: 20px;
}
#btm-page-top {
	display: none;
}
#loading2 {
	z-index: 1200 !important;
}

/* ============================================================
 * ヘッダー
 *  - 画面上部に固定した白い帯。ロゴは左、利用者名は右。
 *  - PC（561px以上）：帯の中にナビを横並びで出す（.s-navi）
 *  - スマートフォン（560px以下）：slicknav が作る .slicknav_menu の
 *    ハンバーガーを右端に置き、ロゴと利用者名を帯の上に重ねる
 * ============================================================ */
#header .slick-menu {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 998;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--iv-space-3);
	width: 100%;
	height: var(--iv-header-height);
	padding: 0 var(--iv-space-3);
	background: var(--iv-surface);
	border-bottom: 1px solid var(--iv-border-soft);
}
/* PC では .header_fixed の中身（ロゴ・代理ログイン表示・利用者名）を帯の直接の並びにし、
   ロゴ → 代理ログイン表示 → ナビ → 利用者名 の順に置く */
.header_fixed {
	display: contents;
}
.header-title { order: 1; }
.proxy-login-label { order: 2; }
.proxy-login-end { order: 3; }
.s-navi { order: 4; margin-left: auto; }
.header_user { order: 5; }
.header-title {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	height: 100%;
	text-align: left;
}
.header-title a {
	display: flex;
	align-items: center;
	height: 100%;
}
.header-title img {
	display: block;
	width: auto;
	height: 26px;
	margin: 0;
}
.header_user {
	flex: 0 0 auto;
	color: var(--iv-text-muted);
	font-size: 12px;
	line-height: 1.4;
	text-align: right;
	white-space: nowrap;
}
.header_user p {
	margin: 0;
}
.header_user p a {
	color: inherit;
	text-decoration: none;
}
.header-manager {
	position: static;
	transform: none;
}
.manager {
	display: inline-block;
	padding: 2px 10px;
	border-radius: var(--iv-radius-pill);
	background: var(--iv-surface-soft);
	color: var(--iv-main-ink);
	font-size: 13px;
}

/* 元のメニュー（.s-navi）は slicknav が複製して使うため、ページ上には出さない
   （以下の指定は、表示に戻す場合の横並びの見た目） */
.s-navi {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
	overflow: hidden;
}
.s-navi > li {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}
.s-navi > li > a,
.s-navi .s-navi-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 12px;
	border-radius: var(--iv-radius-pill);
	color: var(--iv-text);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.s-navi > li > a:hover,
.s-navi .s-navi-menu a:hover {
	background: var(--iv-surface-soft);
	color: var(--iv-main-strong);
}
.s-navi .s-navi-menu {
	display: flex;
	align-items: center;
	margin: 0 0 0 6px;
	padding: 0;
	background: transparent;
	border-radius: 0;
}
.s-navi .s-navi-menu a {
	border: 1px solid var(--iv-input-border);
	color: var(--iv-text-muted);
}
.s-navi .s-navi-menu a:hover {
	border-color: var(--iv-main);
	background: var(--iv-surface);
}
.s-navi-title {
	color: var(--iv-text-muted);
	padding: 10px 6px;
}
.s-navi-flex {
	display: flex;
	justify-content: space-between;
}
.s-navi-flex .menu__item {
	width: calc(50% - 10px);
	background-color: var(--iv-surface-soft);
	border-radius: var(--iv-radius);
	text-align: center;
}
.s-navi-flex .menu__item p {
	color: var(--iv-text);
	font-weight: bold;
	padding-bottom: 20px;
}
.menu__item-img {
	max-width: 80px;
	margin: 0 auto;
}

/* 未ログイン時のヘッダー（ログイン画面） */
.login_mobile,
.login_mobile.hr_more3 {
	display: none;
}
#header .login {
	width: 100%;
	height: 60px;
	background: var(--iv-surface);
}

/* メニューは全幅で slicknav のハンバーガーを使う（表示の指定は layout_responsible.css） */

/* ============================================================
 * 代理ログイン中の表示（ヘッダーのロゴの右）と終了ボタン
 * ============================================================ */
.header_fixed.is-proxy-login {
	gap: 12px;
}
.proxy-login-label {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	flex-shrink: 1;
	min-width: 0;
	padding: 5px 12px;
	border-radius: var(--iv-radius-pill);
	background: var(--iv-danger);
	color: #ffffff;
	font-size: 12px;
	font-weight: bold;
	line-height: 1.3;
	white-space: nowrap;
}
.proxy-login-label__limit {
	font-weight: normal;
}
.proxy-login-end {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 32px;
	padding: 0 14px;
	border: 1px solid var(--iv-danger);
	border-radius: var(--iv-radius-pill);
	background: var(--iv-surface);
	color: var(--iv-danger);
	font-size: 12px;
	font-weight: bold;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}
.proxy-login-end:hover {
	background: var(--iv-danger);
	color: #ffffff;
	opacity: 1;
}

/* ============================================================
 * フッター
 * ============================================================ */
#footer {
	color: var(--iv-text-muted);
	background: var(--iv-surface);
	border-top: 1px solid var(--iv-border-soft);
}
#footer .bg {
	background: transparent;
}
#footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--iv-space-3);
	width: 100%;
	max-width: var(--iv-page-max);
	margin: 0 auto;
	padding: var(--iv-space-4) var(--iv-space-2);
	font-size: 14px;
}
#footer-inner .clearfix {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--iv-space-3);
	width: 100%;
}
#footer-inner .fl {
	float: none;
	width: auto;
	padding: 0;
	color: var(--iv-text-muted);
}
#footer-inner .fr {
	float: none;
	width: auto;
	max-width: 520px;
	padding: 0;
	line-height: 1.7;
}
#footer-inner .clear {
	display: none;
}
#footer-inner .s {
	margin-bottom: 6px;
	font-size: 12px;
	letter-spacing: 0.08em;
}
.footer_logo {
	max-width: 200px;
}
.footer_logo img {
	display: block;
}
#footer-inner .free {
	display: flex;
	align-items: center;
	margin-top: 10px;
	color: var(--iv-text);
}
#footer-inner .free .tel {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--iv-serif);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: 0.04em;
}
#footer-inner .fr .free .tel svg {
	width: 16px;
	height: auto;
	margin: 0;
}
#footer-inner .fr .free .tel svg path,
#footer-inner .mail svg path {
	fill: var(--iv-main-ink);
}
#footer-inner .time {
	margin: 0 0 6px;
	font-size: 13px;
	color: var(--iv-text-muted);
}
#footer-inner .mail {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--iv-text);
	font-size: 16px;
}
#footer-inner .mail svg {
	width: 18px;
	height: auto;
}
#footer-inner .mail .addr {
	padding: 0;
	font-size: 16px;
	font-weight: 500;
	word-break: break-all;
}
#footer .copyright {
	padding: 10px 16px;
	background: var(--iv-surface-muted);
	color: var(--iv-text-muted);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-align: center;
}

/* ============================================================
 * 見出し
 *  - ページ見出し：明朝、中央、左右に細い線（.title_form / .title__url .h1 /
 *    .title__reform .t / .invitation__title）。線は薄い色にして目立たせない
 * ============================================================ */
.iv-page-title,
.title_form,
.title__url .h1,
.title__reform .t,
.invitation__title__line .invitation__title,
.title_template {
	position: relative;
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 0 8px;
	font-family: var(--iv-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.08em;
	color: var(--iv-text);
}
.title_form:before,
.title_form:after,
.title__url .h1:before,
.title__url .h1:after,
.title__reform .t:before,
.title__reform .t:after,
.invitation__title__line .invitation__title:before,
.invitation__title__line .invitation__title:after,
.title_template:before,
.title_template:after {
	content: "";
	position: absolute;
	top: 50%;
	display: block;
	width: 28px;
	height: 1px;
	background-color: var(--iv-border);
}
.title_form:before,
.title__url .h1:before,
.title__reform .t:before,
.invitation__title__line .invitation__title:before,
.title_template:before {
	left: -40px;
	right: auto;
}
.title_form:after,
.title__url .h1:after,
.title__reform .t:after,
.invitation__title__line .invitation__title:after,
.title_template:after {
	right: -40px;
	left: auto;
}
.title__url,
.title__reform,
.invitation__title__line {
	text-align: center;
}
/* ページ見出しの上に置く小さな分類名（例：旅立ちのお知らせ） */
.h3 {
	margin: 0 0 4px;
	color: var(--iv-text-muted);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-align: center;
}
/* 見出し下の説明文 */
.info {
	max-width: var(--iv-content-max);
	margin: 12px auto 0;
	padding: 0 8px;
	color: var(--iv-text-muted);
	font-size: 14px;
	line-height: 1.8;
	text-align: center;
}

/* ============================================================
 * ボタン
 *  .b-btn       主操作（塗り）
 *  .a-btn       副操作（枠線）
 *  .c-btn       小さな補助操作（枠線・淡い面）
 *  .m-btn       戻る（枠線・灰色）
 *  .funeral-btn 喪主進捗ページの操作（枠線、--main で塗り、--danger で削除）
 * ============================================================ */
.b-btn,
.a-btn,
.c-btn,
.m-btn,
.funeral-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	padding: 8px 22px;
	border-radius: var(--iv-radius-pill);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.b-btn {
	border: 1px solid var(--iv-main-strong);
	background: var(--iv-main-strong);
	color: #ffffff;
	margin-top: 0;
}
.b-btn:hover {
	background: var(--iv-main-strong-hover);
	border-color: var(--iv-main-strong-hover);
	opacity: 1;
	transition: background-color 0.2s ease;
}
.b-btn:disabled,
.b-btn.is-disabled {
	border-color: var(--iv-border-soft);
	background: var(--iv-surface-muted);
	color: var(--iv-text-faint);
	cursor: not-allowed;
}
.a-btn {
	border: 1px solid var(--iv-main);
	background: var(--iv-surface);
	color: var(--iv-main-ink);
	font-weight: 500;
}
.a-btn:hover {
	background: var(--iv-surface-soft);
	opacity: 1;
}
.a-btn span {
	display: inline-block;
	font-size: 14px;
	margin-left: 5px;
	vertical-align: middle;
}
.c-btn {
	min-height: 36px;
	padding: 4px 14px;
	border: 1px solid var(--iv-input-border);
	background: var(--iv-surface);
	color: var(--iv-text);
	font-size: 14px;
}
.c-btn:hover {
	border-color: var(--iv-main);
	background: var(--iv-surface-soft);
	opacity: 1;
}
.m-btn {
	min-width: 160px;
	margin: 0 auto;
	border: 1px solid var(--iv-input-border);
	background: var(--iv-surface);
	color: var(--iv-text-muted);
}
.m-btn:hover {
	border-color: var(--iv-text-muted);
	color: var(--iv-text);
	opacity: 1;
}
.btnm {
	width: 100%;
	margin: var(--iv-space-3) auto 0;
	text-align: center;
}
/* 戻るリンク（各画面の最下部） */
.btn-return {
	width: 100%;
	max-width: var(--iv-content-max);
	margin: var(--iv-space-3) auto 0;
	padding: 0;
	text-align: center;
}
.btn-return a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 160px;
	min-height: 44px;
	margin: 0 auto;
	padding: 8px 22px;
	border: 1px solid var(--iv-input-border);
	border-radius: var(--iv-radius-pill);
	background: var(--iv-surface);
	color: var(--iv-text-muted);
	font-size: 15px;
	text-decoration: none;
}
.btn-return a:hover {
	border-color: var(--iv-text-muted);
	color: var(--iv-text);
	opacity: 1;
}

/* ============================================================
 * 入力欄
 * ============================================================ */
.form-control,
.form .row .col2 input,
.custom-select,
.prefectures_select {
	min-height: var(--iv-control-height);
	padding: 10px 14px;
	border: 1px solid var(--iv-input-border);
	border-radius: var(--iv-radius-sm);
	background: var(--iv-surface);
	color: var(--iv-text);
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control::placeholder {
	color: var(--iv-text-faint);
}
.form-control:focus,
.form .row .col2 input:focus,
.custom-select:focus,
.prefectures_select:focus,
textarea:focus {
	outline: none;
	border-color: var(--iv-main);
	box-shadow: 0 0 0 3px var(--iv-focus-ring);
}
.form-control[readonly],
.form .row .col2 input[readonly] {
	background: var(--iv-surface-muted);
	color: var(--iv-text-muted);
}
.form-control.is-invalid {
	border-color: var(--iv-danger-border);
}
textarea.form-control,
.form textarea {
	min-height: 160px;
	padding: 12px 14px;
	border: 1px solid var(--iv-input-border);
	border-radius: var(--iv-radius-sm);
	background: var(--iv-surface);
	font-size: 16px;
	line-height: 1.7;
}
.custom-select,
.prefectures_select {
	width: 100%;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%236a7174' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px;
	color: var(--iv-text-faint);
}
.custom-select:valid,
.prefectures_select:valid {
	color: var(--iv-text);
}
/* 必須・任意の印 */
.required_select,
.optional_select,
.form .row .req {
	display: inline-flex;
	align-items: center;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 4px;
	background: var(--iv-danger);
	color: #ffffff;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.6;
	vertical-align: middle;
}
.optional_select,
.form .row .req.optional {
	background: var(--iv-text-faint);
}
/* 項目名（旧 .form_title はメインカラーの帯だったが、文字見出しに変更） */
.form_title {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	margin: 0 0 10px;
	padding: 0;
	background: transparent;
	color: var(--iv-text);
	font-size: 16px;
	font-weight: 600;
	text-align: left;
}
.form .in {
	padding: var(--iv-space-3);
	border: 1px solid var(--iv-border-soft);
	border-radius: var(--iv-radius-lg);
	background: var(--iv-surface);
	box-shadow: none;
}

/* ============================================================
 * カード・面
 * ============================================================ */
.iv-card {
	padding: var(--iv-space-3);
	border: 1px solid var(--iv-border-soft);
	border-radius: var(--iv-radius-lg);
	background: var(--iv-surface);
}
/* 選択中の旅立ちのお知らせ（送る・喪主様用URLの画面） */
#container_gift {
	max-width: var(--iv-content-max);
	margin: var(--iv-space-2) auto 0;
}
#container_gift .in {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--iv-space-2);
	width: 100%;
	margin: 0 auto;
	padding: var(--iv-space-2);
	border: 1px solid var(--iv-border);
	border-radius: var(--iv-radius-lg);
	background: var(--iv-surface);
}
#container_gift .in .img {
	flex: 0 0 96px;
	width: 96px;
	padding: 0;
	overflow: hidden;
	border-radius: var(--iv-radius-sm);
	background: var(--iv-surface-muted);
}
#container_gift .in .img img {
	display: block;
}
#container_gift .in .img a {
	display: block;
}
#container_gift .in_info {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0 48px 0 0;
}
#container_gift .in_info-top .title {
	padding: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	word-break: break-all;
}
#container_gift .in_info-top .title .att {
	color: var(--iv-text);
}
#container_gift .c-btn.btn-edit2 {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	width: 40px;
	min-height: 40px;
	padding: 8px;
	border: 1px solid var(--iv-border-soft);
	border-radius: 50%;
	background: var(--iv-surface);
}
#container_gift .c-btn.btn-edit2 img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}
#container_gift .in .misentaku {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	font-size: 12px;
}
/* 「次へ」を示す下向き矢印 */
.step__arrow-down {
	max-width: 24px;
	margin: var(--iv-space-2) auto;
	opacity: 0.5;
}

/* ============================================================
 * お知らせ作成のステップ表示（STEP 1 デザインの選択 / STEP 2 内容の編集）
 *  旧：矢印型の帯。新：番号付きの丸をつないだ、ご葬家様一覧と同じ表現
 * ============================================================ */
.form-step {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0;
	width: 100%;
	max-width: 480px;
	margin: var(--iv-space-3) auto 0;
	overflow: visible;
	counter-reset: iv-form-step;
}
.form-step__item {
	position: relative;
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	width: auto;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	clip-path: none;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--iv-text-faint);
	z-index: auto;
}
.form-step__item:before,
.form-step__item:after {
	clip-path: none;
	aspect-ratio: auto;
}
.form-step__item:before {
	content: counter(iv-form-step);
	counter-increment: iv-form-step;
	position: relative;
	z-index: 1;
	top: auto;
	right: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: 6px;
	border: 2px solid var(--iv-input-border);
	border-radius: 50%;
	background: var(--iv-surface);
	color: var(--iv-text-faint);
	font-size: 14px;
	font-weight: 600;
}
.form-step__item:not(:last-child):after {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(50% + 20px);
	right: auto;
	width: calc(100% - 40px);
	height: 2px;
	background: var(--iv-input-border);
}
.form-step__item.active:before {
	border-color: var(--iv-main);
	color: var(--iv-main-ink);
	box-shadow: 0 0 0 4px var(--iv-surface-soft);
}
.form-step__item--01:not(.active):before {
	content: "\2713";
	border-color: var(--iv-main);
	background: var(--iv-main);
	color: #ffffff;
}
.form-step__item--01:not(.active):after {
	background: var(--iv-main);
}
.form-step__square {
	width: 100%;
	text-align: center;
}
.form-step__square-inner {
	display: block;
	text-align: center;
}
.form-step__title {
	margin: 0;
	color: var(--iv-text-faint);
	font-size: 11px;
	letter-spacing: 0.08em;
	line-height: 1.4;
}
.form-step__content {
	margin: 0;
	color: var(--iv-text-muted);
	font-size: 13px;
	line-height: 1.4;
	white-space: nowrap;
}
.form-step__item.active .form-step__title {
	color: var(--iv-main-ink);
}
.form-step__item.active .form-step__content {
	color: var(--iv-text);
	font-weight: 600;
}

/* ============================================================
 * モーダル（iziModal / プレビュー）
 * ============================================================ */
.iziModal .in {
	padding: 30px;
}
.iziModal .iziModal-header.iziModal-noSubtitle {
	background-color: var(--iv-main-strong) !important;
}
.modal-preview .btn .b-btn.js-submit {
	background-color: var(--iv-main-strong);
	border-radius: var(--iv-radius-pill);
	font-size: 16px;
}
.modal-preview .btn .b-btn.modal-close {
	background-color: var(--iv-surface-muted) !important;
	border-color: var(--iv-surface-muted);
	color: var(--iv-text);
}
.modal-preview .in .btn-area {
	background-color: var(--iv-surface);
}
/* モーダルと背景の暗幕は、固定ヘッダー（z-index 998〜1000）より手前に出す */
.iziModal-overlay {
	z-index: 1090 !important;
}
.iziModal {
	z-index: 1100 !important;
}
/* お知らせ・葬家の削除モーダル（invitation_delete.tpl。ご葬家様一覧・喪主進捗ページ）
 *  ユーザー情報の登録名の削除モーダルと同じく、文は中央寄せ、「キャンセル」は白の枠線、「削除」は危険色にする
 *  （「キャンセル」の灰色はテンプレートのインライン style のため !important で上書き） */
.modal-invitation-delete .info {
	margin-bottom: 16px;
	line-height: 1.8;
	text-align: center;
}
.modal-invitation-delete .input {
	max-width: 280px;
	margin: 0 auto 20px;
}
.modal-invitation-delete #input-del-text {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	font-size: 16px;
	text-align: center;
}
.modal-invitation-delete .btn {
	display: flex;
	justify-content: center;
	gap: 12px;
}
.modal-invitation-delete .btn .b-btn {
	flex: 0 1 200px;
	width: auto;
}
.modal-invitation-delete .js-delete-cancel {
	border-color: var(--iv-input-border);
	background: var(--iv-surface) !important;
	color: var(--iv-text-muted);
}
.modal-invitation-delete .js-delete-cancel:hover {
	border-color: var(--iv-text-muted);
	color: var(--iv-text);
}
.modal-invitation-delete .js-delete-submit,
.modal-invitation-delete .js-delete-submit:hover {
	border-color: var(--iv-danger);
	background: var(--iv-danger);
}
.modal-invitation-delete .js-delete-submit:hover {
	filter: brightness(0.9);
}
/* お知らせのプレビュー（_templates/preview.tpl。ご葬家様一覧・喪主進捗ページで使用）
 *  ゲストがスマートフォンで見る幅（480px）の枠を画面の高さに収め、
 *  上に見出し（プレビュー・×）、下に「閉じる」を置く。
 *  作成画面のプレビュー（invitation/preview.tpl、.btn-area を持つ）は各画面のCSSで指定するため対象外 */
.iziModal.modal-preview:has(.in > .btns) {
	max-width: 480px !important;
	border-bottom: 0 !important;
	border-radius: var(--iv-radius-lg) !important;
}
.modal-preview:has(.in > .btns) .iziModal-wrap {
	overflow: hidden !important;
}
.modal-preview:has(.in > .btns) .iziModal-content,
.modal-preview:has(.in > .btns) .in {
	height: 100%;
}
.iziModal.modal-preview:has(.in > .btns) .in {
	display: flex;
	flex-direction: column;
	padding: 0;
}
/* iziModal は中身の高さから枠の高さを決めるため、プレビュー部分に高さを明示する
   （画面の高さ − 見出し45px − 「閉じる」の帯約65px − 上下の余白） */
.modal-preview .in:has(> .btns) .preview {
	flex: 0 0 auto;
	height: calc(100vh - 150px);
	height: calc(100dvh - 150px);
	background: var(--iv-surface-muted);
}
.modal-preview .in:has(> .btns) .preview iframe {
	display: block;
	width: 100%;
	height: 100% !important;
	border: 0;
}
.modal-preview .in > .btns {
	display: flex;
	flex: 0 0 auto;
	justify-content: center;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--iv-border-soft);
	background: var(--iv-surface);
}
.modal-preview .in > .btns .btn {
	width: 100%;
	max-width: 280px;
}
.modal-preview .in > .btns .b-btn.modal-close {
	width: 100%;
	border-color: var(--iv-input-border);
	background: var(--iv-surface) !important;
	color: var(--iv-text-muted);
}
.modal-preview .in > .btns .b-btn.modal-close:hover {
	border-color: var(--iv-text-muted);
	color: var(--iv-text);
}
#close_preview {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99;
	font-size: 14px;
	line-height: 1;
}
#close_preview a {
	display: block;
	width: 70px;
	padding: 20px 5px;
	border-radius: 50px;
	background: var(--iv-main-strong);
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	opacity: 0.95;
	transition: all 0.3s ease;
}
#close_preview a:hover {
	text-decoration: none;
	opacity: 0.7;
}

/* ============================================================
 * 一覧（ご葬家様一覧）の「旅立ちのお知らせをつくる」ボタン
 * ============================================================ */
.tutorial_step {
	max-width: var(--iv-content-max);
	margin: 0 auto var(--iv-space-4);
}
.tutorial_step .step {
	display: flex;
	flex-wrap: wrap;
}
.tutorial_step .step .step__p,
.tutorial_step .step .step__p.edit2,
.tutorial_step .step .step__p.edit2.step__02 {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 72px;
	margin: 0;
	padding: 14px 20px;
	border: 1px solid var(--iv-main);
	border-radius: var(--iv-radius-lg);
	background: var(--iv-surface) !important;
	color: var(--iv-text);
	text-decoration: none;
	box-shadow: var(--iv-shadow-soft);
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.tutorial_step .step .step__p:hover {
	background: var(--iv-surface-soft) !important;
	box-shadow: var(--iv-shadow-hover);
	opacity: 1;
}
.tutorial_step .step .step__p .tutorial_title {
	display: none;
}
.tutorial_step .step .tutorial_text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.tutorial_step .step .step__02 .tutorial_text p,
.tutorial_step .step .tutorial_text p {
	margin: 0;
	padding: 0;
	color: var(--iv-text);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.tutorial_step .step .tutorial_text p:after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-left: 12px;
	border-top: 2px solid var(--iv-main-ink);
	border-right: 2px solid var(--iv-main-ink);
	transform: rotate(45deg);
	vertical-align: middle;
}
.tutorial_step .step .tutorial_img {
	flex: 0 0 auto;
	width: 40px;
	max-width: 40px;
	margin: 0;
}
.tutorial_step .step .tutorial_img img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.btns.edit .btn-more {
	border: 1px solid var(--iv-main-strong) !important;
	background-color: var(--iv-main-strong) !important;
}
.btn-reibun {
	background-color: var(--iv-main-strong) !important;
}

/* ============================================================
 * 通知・注意
 * ============================================================ */
.title_complete {
	max-width: var(--iv-content-max);
	margin: 0 auto var(--iv-space-3);
	padding: 12px 16px;
	border: 1px solid var(--iv-border);
	border-radius: var(--iv-radius);
	background: var(--iv-surface-soft);
	color: var(--iv-main-ink);
	font-size: 14px;
	text-align: center;
}
.title_complete p {
	margin: 0;
}
.msg {
	max-width: var(--iv-content-max);
	margin: 0 auto var(--iv-space-3);
	padding: 16px 20px;
	border: 1px solid var(--iv-border-soft);
	border-radius: var(--iv-radius);
	background: var(--iv-surface);
	color: var(--iv-text);
	text-align: center;
}
