/* ご相談の流れ（/flow/）。共通部品は assets/css/info.css */

/* すべて0円（工種ページの「すべて0円」の枠を大きくしたもの） */
.flow-free { padding: 22px 32px 24px; background: var(--white); border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.flow-free__label { font-size: 15px; font-weight: 700; color: var(--gray); line-height: 1.6; }
.flow-free__big { margin-top: 2px; font-weight: 900; font-size: 30px; line-height: 1.3; color: var(--red); }
.flow-free__big b { font-size: 52px; margin-left: 4px; }
.flow-free__sub { margin-top: 6px; font-weight: 700; font-size: 16px; line-height: 1.7; }

/* 全体の期間 */
.flow-span { gap: 12px; }
.flow-span__title { font-weight: 900; font-size: 18px; line-height: 1.5; }
.flow-span__bar { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; border: 2px solid var(--ink); background: var(--white); }
.flow-span__seg { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-left: 2px dashed var(--ink); }
.flow-span__seg:first-child { border-left: 0; }
.flow-span__seg--free { background: #FFF3CF; }
.flow-span__t { font-weight: 900; font-size: 15px; line-height: 1.5; }
.flow-span__d { font-size: 14px; line-height: 1.6; }
.flow-span__free { position: absolute; right: 10px; top: 10px; padding: 0 8px; background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; font-size: 12px; line-height: 20px; }
.flow-span__note { font-size: 12.5px; color: var(--gray); line-height: 1.6; }

/* 8つのステップの早見 */
.flow-steps { gap: 26px; }
.flow-map { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.flow-map__link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 10px 6px 12px; background: var(--white); border: 2px solid var(--ink); color: var(--ink); text-decoration: none; text-align: center; }
.flow-map__link:hover { background: #FFF3CF; color: var(--ink); }
.flow-map__item:not(:last-child) .flow-map__link::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 2px; background: var(--ink); }
.flow-map__n { font-family: var(--f-hand); font-weight: 600; font-size: 26px; line-height: 1; color: var(--red); }
.flow-map__name { font-weight: 700; font-size: 13px; line-height: 1.45; }
.flow-map__free { padding: 0 6px; background: var(--yellow); font-weight: 900; font-size: 11px; line-height: 18px; }

/* ステップをくわしく（絵はいつも左） */
.flow-detail { display: flex; flex-direction: column; gap: 28px; }
.flow-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding: 26px 28px; background: var(--white); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--teal); scroll-margin-top: 24px; }
.flow-card__img { width: 100%; aspect-ratio: 4 / 3; height: auto; padding: 0 12px; font-size: 13px; line-height: 1.6; }
.flow-card__body { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.flow-card__head { display: flex; align-items: baseline; gap: 12px; }
.flow-card__n { font-family: var(--f-hand); font-weight: 600; font-size: 44px; line-height: 1; color: var(--red); }
.flow-card__title { font-weight: 900; font-size: 26px; line-height: 1.4; }
.flow-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-card__time { padding: 3px 10px; background: var(--tint); font-weight: 700; font-size: 13.5px; line-height: 1.5; }
.flow-card__free { padding: 3px 10px; background: var(--yellow); border: 2px solid var(--ink); font-weight: 900; font-size: 13px; line-height: 1.4; }
.flow-card__lead { font-weight: 900; font-size: 20px; line-height: 1.6; }
.flow-card__lead span { background: linear-gradient(transparent 62%, #FFE08A 62%); }
.flow-card__do { display: flex; flex-direction: column; gap: 4px; }
.flow-card__do li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.85; }
.flow-card__do li::before { content: ""; position: absolute; left: 4px; top: 0.8em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.flow-card__ask { padding: 10px 14px; background: var(--tint); font-size: 14.5px; line-height: 1.8; }
.flow-card__ask b { display: block; font-size: 13px; }
.flow-qa { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1.5px dashed #B0AAA3; }
.flow-qa__row { display: flex; gap: 12px; align-items: flex-start; }
.flow-qa__face { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--ink); padding: 0; font-size: 9px; line-height: 1.3; overflow: hidden; }
.flow-qa__face small { display: none; }
.flow-qa__face--us { display: flex; align-items: center; justify-content: center; background: var(--white); border: 2px solid var(--ink); }
.flow-qa__face--us img { width: 40px; height: 40px; }
.flow-qa__b { flex: 1; min-width: 0; padding: 8px 14px 10px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.flow-qa__row--a .flow-qa__b { background: #FFF3CF; }
.flow-qa__who { display: block; font-size: 11.5px; font-weight: 700; color: var(--gray); line-height: 1.5; }
.flow-qa__t { font-weight: 700; font-size: 15.5px; line-height: 1.7; }
.flow-qa__row--q .flow-qa__t { font-family: var(--f-hand); font-weight: 600; font-size: 16.5px; }
.flow-card__more { font-size: 14.5px; line-height: 1.9; }
.flow-card__more .text-link, .flow-days .text-link { font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ステップ内の部品 */
.flow-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow-ways__row { padding: 10px 12px; border: 1.5px solid var(--ink); }
.flow-ways dt { font-weight: 900; font-size: 15px; line-height: 1.5; }
.flow-ways dd { display: flex; flex-direction: column; font-size: 13px; line-height: 1.6; color: var(--gray); }
.flow-ways dd b { color: var(--ink); font-size: 14px; }
.flow-box { padding: 12px 16px; border: 2px dashed var(--ink); }
.flow-box__title { font-weight: 900; font-size: 15px; line-height: 1.6; }
.flow-check li, .flow-ok li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.85; }
.flow-check li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 15px; height: 15px; border: 2px solid var(--ink); background: var(--white); box-sizing: border-box; }
.flow-check li::after { content: ""; position: absolute; left: 6px; top: 0.55em; width: 5px; height: 9px; border: solid var(--red); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.flow-ok li::before { content: "○"; position: absolute; left: 2px; top: 0; font-weight: 900; color: var(--teal); }
.flow-days { width: 100%; max-width: 460px; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.flow-days caption { text-align: left; font-weight: 900; font-size: 14px; padding-bottom: 4px; }
.flow-days th, .flow-days td { padding: 7px 10px; border: 1.5px solid var(--ink); text-align: left; font-weight: 700; }
.flow-days td { white-space: nowrap; background: #FFF3CF; }

/* ご相談の前に（色地で区切る） */
.flow-pre { padding: 30px 32px 34px; background: var(--tint); border: 2px solid var(--ink); }
.flow-pre .info-h2 { border-bottom-color: var(--ink); }
.flow-pre__lead { font-weight: 700; font-size: 16px; line-height: 1.8; }
.flow-pre__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.flow-pre__box { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; background: var(--white); border: 2px solid var(--ink); }
.flow-pre__title { font-weight: 900; font-size: 19px; line-height: 1.5; }
.flow-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.flow-photos__item { display: flex; flex-direction: column; gap: 4px; }
.flow-photos__img { width: 100%; aspect-ratio: 4 / 3; height: auto; padding: 0 6px; font-size: 11px; line-height: 1.5; }
.flow-photos__img small { display: none; }
.flow-photos__cap { font-size: 12.5px; font-weight: 700; line-height: 1.5; text-align: center; }
.flow-pre__mans { margin-top: 6px; padding-top: 12px; border-top: 1.5px dashed #B0AAA3; }
.flow-pre__mans-title { font-weight: 900; font-size: 15.5px; line-height: 1.6; }
.flow-pre__mans p { font-size: 14.5px; line-height: 1.85; }

/* よくあるご質問 */
.flow-faq__list { display: flex; flex-direction: column; gap: 10px; }
.flow-faq__item { background: var(--white); border: 2px solid var(--ink); }
.flow-faq__q { display: flex; align-items: baseline; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 900; font-size: 17px; line-height: 1.55; }
.flow-faq__q::-webkit-details-marker { display: none; }
.flow-faq__q::after { content: "＋"; margin-left: auto; font-weight: 900; }
.flow-faq__item[open] .flow-faq__q::after { content: "－"; }
.flow-faq__mark { font-family: var(--f-hand); font-weight: 600; font-size: 20px; color: var(--red); }
.flow-faq__mark--a { color: var(--teal); }
.flow-faq__a { display: flex; gap: 10px; align-items: baseline; padding: 0 20px 16px; font-size: 15.5px; line-height: 1.9; }
.flow-faq__more { font-size: 15px; }

@media (max-width: 1199.98px) {
	.flow-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.flow-map__item:nth-child(4n) .flow-map__link::after { display: none; }
	.flow-card { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 1023.98px) {
	.flow-span__bar { grid-template-columns: 1fr 1fr; }
	.flow-span__seg:nth-child(3) { border-left: 0; }
	.flow-span__seg:nth-child(n+3) { border-top: 2px dashed var(--ink); }
	.flow-pre__cols { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
	.flow-free { padding: 16px 18px 18px; box-shadow: 5px 5px 0 var(--yellow); }
	.flow-free__label { font-size: 13px; }
	.flow-free__big { font-size: 24px; }
	.flow-free__big b { font-size: 42px; }
	.flow-free__sub { font-size: 14.5px; }

	.flow-span__title { font-size: 16px; }
	.flow-span__bar { grid-template-columns: 1fr; }
	.flow-span__seg, .flow-span__seg:nth-child(3) { border-left: 0; border-top: 2px dashed var(--ink); padding: 10px 14px; }
	.flow-span__seg:first-child { border-top: 0; }
	.flow-span__d { font-size: 13.5px; }

	.flow-steps { gap: 18px; }
	.flow-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.flow-map__item .flow-map__link::after { display: none; }
	.flow-map__link { flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 48px; padding: 6px 10px; text-align: left; }
	.flow-map__n { font-size: 22px; width: 18px; flex-shrink: 0; text-align: center; }
	.flow-map__name { flex: 1; font-size: 13px; }
	.flow-map__free { flex-shrink: 0; }

	.flow-detail { gap: 18px; }
	.flow-card { grid-template-columns: 1fr; gap: 12px; padding: 16px; box-shadow: 4px 4px 0 var(--teal); }
	.flow-card__img { font-size: 12.5px; }
	.flow-card__body { gap: 10px; }
	.flow-card__n { font-size: 34px; }
	.flow-card__title { font-size: 21px; }
	.flow-card__lead { font-size: 17px; }
	.flow-card__do li { font-size: 14.5px; line-height: 1.8; }
	.flow-card__ask { font-size: 13.5px; padding: 8px 12px; }
	.flow-qa__row { gap: 10px; }
	.flow-qa__face { width: 44px; height: 44px; font-size: 8px; }
	.flow-qa__face--us img { width: 32px; height: 32px; }
	.flow-qa__b { padding: 6px 12px 8px; }
	.flow-qa__t { font-size: 14px; }
	.flow-qa__row--q .flow-qa__t { font-size: 15px; }
	.flow-card__more { font-size: 13.5px; }
	.flow-ways { grid-template-columns: 1fr; gap: 6px; }
	.flow-ways__row { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; }
	.flow-ways dt { flex: 0 0 4.5em; font-size: 14px; }
	.flow-check li, .flow-ok li { font-size: 14px; }
	.flow-days { font-size: 13.5px; }
	.flow-days th, .flow-days td { padding: 6px 8px; }

	.flow-pre { padding: 18px 16px 20px; }
	.flow-pre__lead { font-size: 14.5px; }
	.flow-pre__box { padding: 14px 16px; }
	.flow-pre__title { font-size: 16.5px; }
	.flow-photos { gap: 6px; }
	.flow-photos__img { font-size: 10px; }
	.flow-photos__cap { font-size: 11.5px; }

	.flow-faq__q { padding: 12px 14px; font-size: 15px; min-height: 56px; box-sizing: border-box; }
	.flow-faq__a { padding: 0 14px 14px; font-size: 14px; }
}

/* 2026-10-12：流れのイラストを差し替え */
.flow-card__pic { display: block; padding: 0; object-fit: contain; background: var(--beige); }
.flow-qa__face--pic { display: block; background: var(--tint); }
.flow-qa__face--pic img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); transform-origin: 50% 30%; }
.flow-photos__pic { display: block; padding: 0; object-fit: contain; background: var(--beige); }

/* 2026-10-12：答えの顔を、ロゴのマークから窓口の担当者の似顔絵に */
.flow-qa__face--staff { display: block; background: var(--tint); }
.flow-qa__face--staff img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
