/* 愛着スタイル診断（/aichaku-shindan/）2026-09-28 — template-parts/aichaku-shindan-app.php */
.acs { --acs-lav: #f3edff; --acs-pink: #fde8f2; --acs-rose: #c0418a; --acs-pur: #7a3a8a; --acs-gold: #f0b35a; --acs-ink: #2b2338; --acs-sub: #5f5270;
	margin: 22px 0 30px; color: var(--acs-ink); scroll-margin-top: 70px; }
.acs [hidden] { display: none !important; }
.acs, .acs *, .acs *::before, .acs *::after { box-sizing: border-box; }
.acs-shared { display: flex; align-items: center; gap: 10px; background: var(--acs-pink); border-radius: 12px; padding: 10px 14px; font-size: .92rem; line-height: 1.6; margin: 0 0 12px; }
.acs-shared img { width: 48px; height: 48px; flex: 0 0 48px; }
.acs-start { background: linear-gradient(180deg, var(--acs-lav), #fff 70%); border: 1.5px solid #e4d8f5; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 22px rgba(122, 58, 138, .10); }
/* 2026-09-29 開始画面は4人が大きく並ぶサムネイル（640×360）をそのまま */
.acs-start__art { overflow: hidden; aspect-ratio: 16 / 9; background: #e9dcfa; }
.acs-start__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acs-start__body { padding: 18px 18px 20px; text-align: center; }
.acs-start__kicker { display: inline-block; margin: 0 0 6px; padding: 3px 12px; border-radius: 99px; background: #fff; border: 1px solid #ead9f2; color: var(--acs-rose); font-size: .82rem; font-weight: 700; }
.acs .acs-start__title { font-size: 1.35rem; line-height: 1.45; margin: 4px 0 10px; color: var(--acs-pur); border: 0; padding: 0; background: none; }
.acs-start__lead { font-size: .95rem; line-height: 1.85; text-align: left; margin: 0 0 16px; }
.acs-start__note { font-size: .8rem; color: var(--acs-sub); line-height: 1.7; margin: 12px 0 0; }
.acs-start__last { font-size: .88rem; margin: 10px 0 0; }
.acs-link { background: none; border: 0; color: var(--acs-rose); text-decoration: underline; font-size: inherit; cursor: pointer; padding: 0 0 0 6px; }

.acs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border-radius: 99px; font-size: 1rem; font-weight: 800; line-height: 1.4; text-decoration: none; cursor: pointer; border: 0; -webkit-tap-highlight-color: transparent; }
.acs-btn--main { background: linear-gradient(135deg, #d4549a, var(--acs-pur)); color: #fff !important; width: 100%; max-width: 360px; box-shadow: 0 6px 16px rgba(192, 65, 138, .28); }
.acs-btn--main:active { transform: translateY(1px); }
.acs-btn--ghost { background: #fff; color: var(--acs-sub); border: 1.5px solid #d9cfe6; min-height: 44px; padding: 8px 20px; font-size: .92rem; }
.acs-btn--line { background: #fff; color: var(--acs-pur) !important; border: 1.5px solid #d9c6ea; font-size: .92rem; min-height: 46px; width: 100%; }

.acs-quiz { background: #fff; border: 1.5px solid #e4d8f5; border-radius: 18px; padding: 14px 14px 12px; box-shadow: 0 6px 22px rgba(122, 58, 138, .08); }
.acs-prog { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.acs-prog__bar { flex: 1; height: 8px; background: #efe7f7; border-radius: 99px; overflow: hidden; }
.acs-prog__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--acs-rose), var(--acs-pur)); transition: width .25s; }
.acs-prog__num { font-size: .85rem; font-weight: 700; color: var(--acs-sub); min-width: 3.6em; text-align: right; }
.acs-scene { position: relative; border-radius: 12px; overflow: hidden; margin: 0 0 14px; }
.acs-scene img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; max-height: 34vh; }
.acs-scene span { position: absolute; left: 10px; bottom: 10px; background: rgba(43, 35, 56, .78); color: #fff; font-size: .82rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.acs-scene.is-new img { animation: acsIn .4s ease; }
@keyframes acsIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.acs-q { font-size: 1.12rem; font-weight: 800; line-height: 1.65; margin: 0 0 14px; min-height: 3.3em; }
.acs-opts { display: flex; flex-direction: column; gap: 8px; }
.acs-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #e2d7ee; background: #fcfaff; color: var(--acs-ink); font-size: 1rem; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .12s, border-color .12s; }
.acs-opt:hover { border-color: #cdb6e3; }
.acs-opt.is-on { background: var(--acs-pink); border-color: var(--acs-rose); font-weight: 700; }
.acs-dot { flex: 0 0 auto; border-radius: 50%; border: 2px solid #b9a6cf; background: #fff; }
.acs-dot--5 { width: 24px; height: 24px; border-color: var(--acs-rose); }
.acs-dot--4 { width: 20px; height: 20px; border-color: #d27aac; }
.acs-dot--3 { width: 16px; height: 16px; margin: 0 2px; }
.acs-dot--2 { width: 20px; height: 20px; border-color: #7f93b8; }
.acs-dot--1 { width: 24px; height: 24px; border-color: #3f5a86; }
.acs-opt.is-on .acs-dot { background: var(--acs-rose); border-color: var(--acs-rose); }
.acs-nav { display: flex; justify-content: flex-start; margin: 12px 0 0; }

.acs-result { background: #fff; border: 1.5px solid #e4d8f5; border-radius: 18px; padding: 18px 16px 20px; box-shadow: 0 6px 22px rgba(122, 58, 138, .10); }
.acs-res__head { text-align: center; background: radial-gradient(circle at 50% 38%, #fff 0, var(--acs-lav) 70%); border-radius: 14px; padding: 12px 10px 16px; }
.acs-res__img { display: block; width: 180px; height: auto; margin: 0 auto 4px; }
.acs-res__kicker { margin: 0; font-size: .88rem; color: var(--acs-sub); }
.acs .acs-res__name { margin: 2px 0 6px; font-size: 2rem; line-height: 1.3; color: var(--acs-c, var(--acs-pur)); border: 0; padding: 0; background: none; }
.acs-res__one { margin: 0; font-size: .98rem; font-weight: 700; line-height: 1.7; }
.acs-res__near { background: #fbf3e2; border-radius: 10px; padding: 10px 12px; font-size: .9rem; line-height: 1.7; margin: 12px 0 0; }
.acs-res__grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0 0; align-items: center; }
.acs-map { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.acs-axis { margin: 0 0 12px; }
.acs-axis__head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: .86rem; line-height: 1.5; }
.acs-axis__head b { font-size: 1.15rem; white-space: nowrap; }
.acs-axis__head small { font-size: .75rem; color: var(--acs-sub); font-weight: 400; }
.acs-axis__bar { position: relative; height: 10px; background: #efe7f7; border-radius: 99px; margin: 6px 0 0; overflow: hidden; }
.acs-axis__bar i { display: block; height: 100%; border-radius: 99px; }
.acs-axis__bar em { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: #fff; }
.acs-res__note { font-size: .78rem; color: var(--acs-sub); margin: 0; }
.acs-res__cols { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 16px 0 0; }
.acs-res__box { background: #fcfaff; border: 1px solid #ece3f5; border-radius: 12px; padding: 12px 14px; }
.acs .acs-res__box h3 { font-size: 1rem; margin: 0 0 6px; color: var(--acs-pur); border: 0; padding: 0; background: none; }
.acs-res__box ul { margin: 0; padding-left: 1.2em; font-size: .92rem; line-height: 1.75; }
.acs-res__tip { background: var(--acs-pink); border-radius: 12px; padding: 12px 14px; font-size: .93rem; line-height: 1.8; margin: 12px 0 0; }
.acs-res__tip b { display: block; color: var(--acs-rose); margin: 0 0 2px; }
.acs-res__links { display: grid; gap: 8px; margin: 14px 0 0; }
.acs-res__next { margin: 18px 0 0; text-align: center; background: linear-gradient(135deg, #f7ecff, #fde8f2); border-radius: 14px; padding: 16px 14px 18px; }
.acs-res__next-k { margin: 0; font-size: .8rem; color: var(--acs-sub); }
.acs-res__next-t { margin: 2px 0 6px; font-size: 1.12rem; font-weight: 800; color: var(--acs-pur); }
.acs-res__next-d { margin: 0 0 12px; font-size: .9rem; line-height: 1.75; text-align: left; }
.acs-share { margin: 18px 0 0; text-align: center; }
.acs-share p { margin: 0 0 8px; font-size: .88rem; font-weight: 700; color: var(--acs-sub); }
.acs-share__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.acs-share__row a, .acs-share__row button { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 4px; border-radius: 12px; font-size: .86rem; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; line-height: 1.3; }
.acs-share__x { background: #111; color: #fff !important; }
.acs-share__line { background: #06c755; color: #fff !important; }
.acs-share__copy { background: #f1ecf7; color: var(--acs-ink); }
.acs-res__again { text-align: center; margin: 16px 0 0; }
.acs-res__legal { font-size: .76rem; color: var(--acs-sub); line-height: 1.7; margin: 12px 0 0; }

/* 低い画面（iPhone SE など）: 5つめの選択肢まで1画面に収める */
@media (max-height: 720px) {
	.acs-quiz { padding: 10px 12px; }
	.acs-prog { margin: 0 0 8px; }
	.acs-scene { margin: 0 0 10px; }
	.acs-scene img { max-height: 20vh; }
	.acs-q { font-size: 1.04rem; line-height: 1.55; margin: 0 0 10px; min-height: 0; }
	.acs-opts { gap: 6px; }
	.acs-opt { min-height: 44px; padding: 7px 12px; }
}
@media (min-width: 720px) {
	.acs-start { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
	.acs-start__art { align-self: stretch; aspect-ratio: auto; position: relative; min-height: 320px; }
	.acs-start__art img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: 50% 50%; }
	.acs-start__body { padding: 22px 26px; }
	.acs-quiz, .acs-result { padding: 22px 26px; }
	.acs-res__grid { grid-template-columns: 1fr 1fr; }
	.acs-res__cols { grid-template-columns: 1fr 1fr; }
	.acs-res__links { grid-template-columns: 1fr 1fr; }
}
