/* The supplied mobile profile uses one continuous lilac-to-blush wash.
   Text remains in document flow; only decorative art and photo crops overlay. */
body.is-teacher-profile .teacher-profile-page{padding:0;min-height:0;background:transparent}
body.is-teacher-profile .teacher-profile-page>.back-link{display:none}
.teacher-profile{--profile-ink:#283158;--profile-gold:#ad995e;position:relative;isolation:isolate;width:100%;overflow:hidden;color:var(--profile-ink);font-family:var(--serif);background:linear-gradient(180deg,#f5edf7 0%,#eae7fc 9%,#eae7fc 29%,#f4edf7 45%,#fff2f5 68%,#fff3f6 100%)}
.teacher-profile p,.teacher-profile h1,.teacher-profile h2,.teacher-profile h3{font-weight:400}
.profile-top-curtain{position:absolute;z-index:-1;inset:0 0 auto;height:35cqw;background:url('./assets/listing-hero-clean.webp') right top/100% auto no-repeat;mask-image:radial-gradient(ellipse 82% 110% at 100% 0,#000 15%,#000 35%,transparent 78%);pointer-events:none}
.profile-flower-spray{position:absolute;z-index:-1;right:-9cqw;top:12cqw;width:48cqw;height:61cqw;opacity:.83;filter:blur(.15cqw);mask-image:linear-gradient(#000 65%,transparent);pointer-events:none}
.profile-hero{padding-top:8.8cqw;text-align:center;background:radial-gradient(ellipse 66% 59% at 0 9%,#fffef3e6,transparent 90%)}
.profile-english-heading{font-family:Georgia,'Times New Roman',serif;font-size:9.8cqw;line-height:1.2;color:#a58a45}
.profile-portrait{position:relative;width:43.14cqw;aspect-ratio:8/9;margin:5.9cqw auto 0;overflow:hidden;background:#f0eff4}
.profile-portrait>img{position:absolute;max-width:none;width:104.198473%;height:auto;left:-3.816794%;top:-6.785411%;user-select:none;pointer-events:none}
.teacher-profile .profile-hero h1{font-size:8.3cqw;line-height:1.55;letter-spacing:.01em;margin:4.1cqw 4cqw 0;overflow-wrap:anywhere}
.profile-first-name{font-family:Georgia,'Times New Roman',serif;font-size:5.8cqw;line-height:1.45;letter-spacing:.015em;color:#ab975c}
.profile-professional-title{font-family:var(--serif);font-size:4.7cqw;line-height:1.65;letter-spacing:.015em;color:#ab975c;margin:.6cqw 5cqw 0;overflow-wrap:anywhere}
.profile-intro-heading{font-size:5.5cqw;line-height:1.5;margin:5.6cqw 5cqw 0;letter-spacing:-.02em}
.profile-intro-copy{font-size:4.25cqw;line-height:1.52;margin:3.5cqw auto 0;max-width:92%}
.profile-sample-notice{display:block;font-family:var(--serif);font-size:max(10px,2.5cqw);line-height:1.55;margin:5.4cqw 6.5cqw 0;color:#756c8b;letter-spacing:0}
.profile-sample-notice>span{display:inline-block;margin-right:1.5cqw;padding:.15cqw 1.2cqw;border:1px solid #b5a67c88;border-radius:.7cqw;color:#8a7845;white-space:nowrap;background:#fff9}
.profile-information{width:97.06%;margin:6cqw auto 0;border:.3cqw solid #c4b887;background:#fffffff2;box-shadow:0 0 1.6cqw #baacd71a}
.profile-information h2{font-size:5.3cqw;line-height:1.45;text-align:center;padding:2.5cqw 1cqw 2.4cqw;color:var(--profile-gold);border-bottom:.3cqw solid #b6a66d}
.profile-information table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:3.3cqw;line-height:1.5}
.profile-information th,.profile-information td{border-bottom:.25cqw solid #c8bf9a9c;padding:1.8cqw 2.5cqw;text-align:left;vertical-align:middle;font-weight:400;overflow-wrap:anywhere}
.profile-information th{width:33%;padding-left:3.5cqw;padding-right:1.5cqw;white-space:nowrap;font-size:3.25cqw}
.profile-information td{padding-left:2.2cqw}
.teacher-profile--provided .profile-information th{white-space:normal}
.teacher-profile--provided .profile-information td{line-height:1.65}
.profile-information tbody tr:first-child th,.profile-information tbody tr:first-child td{padding-block:3cqw}
.profile-information tbody tr:nth-child(5) td{line-height:1.65;padding-block:2.5cqw}
.profile-rating{display:flex;align-items:center;gap:1cqw;white-space:nowrap;font-size:3.25cqw}
.profile-stars{width:31.2cqw;height:6.2cqw;flex:0 0 auto}
.profile-table-foot{display:block;height:9.8cqw}
.profile-style{margin-top:9.2cqw}
.profile-flourished-heading{display:flex;justify-content:center;align-items:center;gap:4.2cqw;text-align:center;color:var(--profile-gold);font-size:5.7cqw;line-height:1.55;letter-spacing:.08em}
.profile-flourished-heading>span{min-width:0}
.profile-flourish{width:15cqw;height:5.6cqw;flex:0 0 auto;color:#cbb77b}
.profile-flourish:last-child{transform:scaleX(-1)}
.profile-chart{position:relative;isolation:isolate;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto minmax(32cqw,auto) auto;column-gap:38cqw;row-gap:7.2cqw;width:88.24%;min-height:84.8cqw;margin:3.4cqw auto 0;padding:4.2cqw 3cqw 5cqw;border:.28cqw solid #b7b0ce;border-radius:11cqw;background:linear-gradient(160deg,#fff,#fff 70%,#fffafd);box-shadow:0 .5cqw .9cqw #dacbdc2b}
.profile-chart-axes{position:absolute;z-index:0;left:27%;top:24%;width:46%;height:53%;overflow:visible;pointer-events:none}
.profile-chart-point{position:relative;isolation:isolate;text-align:center;align-self:center;z-index:1}
.profile-chart-point::before{content:'';position:absolute;z-index:-1;inset:-4cqw -5cqw;border-radius:50%;filter:blur(2.6cqw);pointer-events:none}
.profile-chart-top,.profile-chart-bottom{grid-column:1/-1;justify-self:center;width:90%}
.profile-chart-top{grid-row:1}
.profile-chart-bottom{grid-row:3}
.profile-chart-left{grid-column:1;grid-row:2}
.profile-chart-right{grid-column:2;grid-row:2}
.profile-chart-top::before{inset:6cqw 1cqw -1cqw;background:radial-gradient(ellipse,#d9d4ffbb,transparent 72%)}
.profile-chart-bottom::before{inset:4cqw -2cqw -2cqw;background:radial-gradient(ellipse,#a0e1ffba,transparent 76%)}
.profile-chart-left::before{inset:7cqw -3cqw -4cqw;background:radial-gradient(ellipse,#c5e277d9,transparent 76%)}
.profile-chart-right::before{inset:7cqw -3cqw -4cqw;background:radial-gradient(ellipse,#faf1a8e8,transparent 76%)}
.profile-chart-label{display:inline-block;min-width:17cqw;padding:.1cqw 1.8cqw;background:linear-gradient(#86b7ff,#76bdff);color:#fff;font-size:3.8cqw;line-height:1.05;letter-spacing:.08em;vertical-align:top}
.profile-chart-left .profile-chart-label,.profile-chart-right .profile-chart-label{width:100%;min-width:0;padding:.7cqw .7cqw .6cqw;background:linear-gradient(#b997e5,#ae9ce0);font-size:3.6cqw;letter-spacing:0}
.profile-chart h3{font-size:4.45cqw;line-height:1.2;margin-top:1.8cqw;white-space:nowrap;font-weight:400}
.profile-chart p{font-size:3.25cqw;line-height:1.12;margin-top:.5cqw;letter-spacing:-.015em}
.profile-chart-top p,.profile-chart-bottom p{font-size:3.1cqw;white-space:nowrap}
.profile-chart-left h3,.profile-chart-right h3{font-size:4.05cqw;letter-spacing:-.04em}
.profile-session{margin-top:9cqw}
.profile-session .profile-flourished-heading{gap:2.7cqw;font-size:5.4cqw;letter-spacing:.07em}
.profile-copy-card{width:88.24%;margin:3.6cqw auto 0;padding:4.8cqw 4.5cqw 5.2cqw;background:#fffffff2;border:.28cqw solid #cfc1dc;box-shadow:0 0 .8cqw #cbc0d526;font-size:3.9cqw;line-height:1.14;letter-spacing:-.012em;overflow-wrap:anywhere}
.profile-copy-card p+p{margin-top:4cqw}
.profile-recommendation{margin-top:10.7cqw}
.profile-divider{position:relative;display:flex;align-items:center;justify-content:center;gap:1.2cqw;width:72%;height:3.6cqw;margin:auto;color:#c4af7a}
.profile-divider::before,.profile-divider::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#bba46a)}
.profile-divider::after{transform:rotate(180deg)}
.profile-divider i{display:block;width:5.2cqw;height:.75cqw;background:radial-gradient(circle,#d2ba81 40%,transparent 47%) 0 0/1.75cqw .75cqw repeat-x}
.profile-divider b{display:block;position:relative;width:2.8cqw;height:5cqw;background:linear-gradient(#e1cfaa,#b69a60,#e1cfaa);clip-path:polygon(50% 0,66% 33%,100% 50%,66% 67%,50% 100%,34% 67%,0 50%,34% 33%)}
.profile-recommendation-heading{position:relative;width:75%;margin:2.1cqw auto 0;text-align:center;font-size:6.1cqw;line-height:1.5;letter-spacing:.07em;color:var(--profile-gold)}
.profile-heading-sparkles{position:absolute;left:3%;top:1.5cqw;width:5.8cqw;height:9cqw;background:linear-gradient(#eedcc0,#c4ac6a,#eedcc0);clip-path:polygon(50% 0,60% 39%,100% 50%,60% 61%,50% 100%,40% 61%,0 50%,40% 39%)}
.profile-heading-sparkles:last-child{left:auto;right:3%;top:3cqw}
.profile-recommendation-heading::before,.profile-recommendation-heading::after{content:'';position:absolute;left:10%;top:12cqw;width:3.7cqw;height:6cqw;background:linear-gradient(#efddbc,#bea46b,#efddbc);clip-path:polygon(50% 0,60% 39%,100% 50%,60% 61%,50% 100%,40% 61%,0 50%,40% 39%)}
.profile-recommendation-heading::after{left:auto;right:10%;top:13cqw}
.profile-recommendation .profile-copy-card{margin-top:4.5cqw}
.profile-message{margin-top:9cqw}
.profile-message>h2{text-align:center;color:var(--profile-gold);font-size:5.7cqw;line-height:1.5;letter-spacing:.02em;margin-top:2.6cqw}
.profile-message .profile-copy-card{margin-top:5.8cqw;padding-bottom:12.8cqw}
.profile-reviews{margin-top:27.4cqw}
.profile-review-list{display:grid;gap:6.3cqw;width:93.14%;margin:0 auto}
.profile-review-card{padding:10.1cqw 5.2cqw 8.2cqw;border:.25cqw solid #e1dce6;border-radius:9.8cqw;background:linear-gradient(147deg,#e7e5ff 0%,#f0eafa 33%,#fff2f7 82%);box-shadow:0 .4cqw 1.8cqw #c6bdab35,0 0 2.2cqw #d9d5bd38;color:#283158}
.profile-review-tags{display:grid;gap:5cqw;margin:0;font-size:3.45cqw;line-height:1.35}
.profile-review-tags>div{display:grid;grid-template-columns:21cqw 1fr;align-items:center;column-gap:3.3cqw}
.profile-review-tags dt{margin:0;padding:.45cqw .3cqw;text-align:center;border:.3cqw solid #c2baa4;font-weight:400;white-space:nowrap}
.profile-review-tags dd{margin:0;min-width:0}
.profile-review-features{display:flex;align-items:center;flex-wrap:wrap;gap:.5cqw 2.1cqw}
.profile-review-body{font-size:3.45cqw;line-height:1.55;letter-spacing:-.015em;margin-top:5.3cqw;overflow-wrap:anywhere}
.profile-empty-reviews{font-size:3.7cqw;line-height:1.8;text-align:center;padding:4cqw 2cqw}
.profile-review-footer{display:flex;justify-content:space-between;align-items:center;gap:2cqw;margin-top:4.6cqw;margin-inline:-1.4cqw;font-size:3.05cqw;line-height:1.45;letter-spacing:-.04em}
.profile-review-footer>span{white-space:nowrap}
.profile-more-reviews{display:flex;align-items:center;justify-content:center;gap:2.5cqw;position:relative;width:max-content;max-width:92%;margin:20cqw auto 0;padding:0 1cqw 2.1cqw;border:0;border-bottom:.35cqw solid #b29b61;background:none;color:#ad9454;font-size:5.7cqw;line-height:1.6;letter-spacing:.045em}
.profile-more-reviews>span{font-size:6.7cqw;line-height:1}
.profile-ending{position:relative;isolation:isolate;padding-top:11cqw;padding-bottom:29cqw}
.profile-return-link{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8cqw;width:63.8%;min-height:11.8cqw;margin:auto;padding:1.5cqw 5cqw;border:.3cqw solid #c5aa69;border-radius:1.5cqw;box-shadow:inset 0 0 0 .65cqw #f7e8bf,0 .5cqw 1.4cqw #d9bb7c22;background:linear-gradient(#e1c58d,#dfc18b);color:#fffaf1;font-size:5cqw;line-height:1.5;letter-spacing:.09em}
.profile-return-link>span{font-size:5.7cqw;line-height:1}
.profile-bottom-curtain{position:absolute;z-index:-1;left:0;right:0;bottom:0;height:48cqw;transform:rotate(180deg);background:url('./assets/listing-hero-clean.webp') center top/100% auto no-repeat;mask-image:linear-gradient(#000 4%,#000 32%,transparent 74%);pointer-events:none}
.teacher-profile button:focus-visible,.teacher-profile a:focus-visible{outline:2px solid #6b63aa;outline-offset:4px}
.profile-dialog{width:min(92vw,456px);max-width:calc(100vw - 24px);max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;margin:auto;padding:10cqw 6cqw 6cqw;border:1px solid #bca876;border-radius:4cqw;background:linear-gradient(160deg,#eeebff,#fff4f6);box-shadow:0 2cqw 9cqw #423b6e33;color:var(--profile-ink);font-family:var(--serif);font-size:max(14px,3.7cqw);line-height:1.8}
.profile-dialog::backdrop{background:#514d6f66;backdrop-filter:blur(3px)}
.profile-dialog h2{font-size:max(20px,5.6cqw);line-height:1.5;color:#9d8546;text-align:center;margin:0 0 5cqw}
.profile-dialog p+p{margin-top:4cqw}
.profile-dialog-close{position:absolute;top:1.8cqw;right:2.4cqw;display:grid;place-items:center;min-width:40px;min-height:40px;border:0;border-radius:50%;background:transparent;color:#927c49;font-size:28px;line-height:1}
.profile-dialog-teacher{font-size:max(18px,4.9cqw);text-align:center;margin-bottom:5cqw}
.profile-dialog-note{color:#6c6581;font-size:max(13px,3.3cqw);line-height:1.8}
.profile-dialog-done{display:block;width:70%;text-align:center;text-decoration:none;min-height:44px;margin:7cqw auto 0;padding:2cqw 5cqw;border:1px solid #bea675;border-radius:1.5cqw;background:#e0c58e;color:#fffaf3;font-size:max(14px,3.8cqw);line-height:1.5}
.profile-all-reviews .profile-review-list{width:100%;margin-top:6cqw;gap:5cqw}
.profile-all-reviews .profile-review-card{padding:7cqw 4cqw}
.profile-all-reviews .profile-review-tags>div{grid-template-columns:20cqw 1fr;column-gap:2cqw}
.profile-all-reviews .profile-review-body{font-size:max(12px,3.3cqw)}
.profile-all-reviews .profile-review-footer{flex-wrap:wrap;font-size:max(11px,2.8cqw)}
.profile-dialog:not([open]){display:none}
body.has-profile-dialog{overflow:hidden}
@media(prefers-reduced-motion:no-preference){.profile-return-link,.profile-more-reviews,.profile-dialog-done{transition:filter .15s,box-shadow .15s}.profile-return-link:hover,.profile-dialog-done:hover{filter:brightness(1.035)}}

/* 料金ランクの★（tools/build_teachers.py の rank_stars） */
.rank-stars{color:#b8984d;letter-spacing:.12em;white-space:nowrap}.rank-stars .off{color:#d9d4c4}

/* 鑑定タイプの図に置く先生の位置（type-chart.js） */
.profile-chart-dot{position:absolute;z-index:3;width:5.6cqw;height:5.6cqw;margin:-2.8cqw 0 0 -2.8cqw;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff3c4,#d6aa45 60%,#a57d24);box-shadow:0 0 0 1.2cqw #d6aa4533,0 .6cqw 1.6cqw #8f743266}
.profile-chart-note{text-wrap:balance;word-break:auto-phrase;width:88.24%;margin:2.4cqw auto 0;font-size:3.2cqw;line-height:1.6;color:#6f6b88;text-align:center}

/* プロフィールの口コミの星（tools/build_teachers.py の review_card。シートの口コミは★5） */
.profile-review-stars{margin:0 0 2cqw;color:#b8984d;font-size:4cqw;letter-spacing:.12em;line-height:1}

/* 鑑定士情報：口コミの星と件数／占術・ご相談内容の「得意」（2026-11-20） */
.profile-review-stars-inline{color:#b8984d;letter-spacing:.12em;margin-right:1cqw}
.profile-review-count{white-space:nowrap}
.profile-fav-label,.profile-rest-label{display:inline-block;margin-right:1.6cqw;padding:0 1.6cqw;border-radius:99px;font-size:.85em;line-height:1.7;vertical-align:.08em}
.profile-fav-label{background:#b8984d;color:#fff}
.profile-rest-label{border:1px solid #c9bfa6;color:#6f6b88;margin-top:1cqw}

/* 先生ごとの傾向マップ（画像）。type-chart.js が図の代わりに入れる */
.profile-chart-image{display:block;width:100%;height:auto;margin:3cqw auto 0}
/* 口コミの★の平均（2026-11-21）。金の★を平均の分だけ塗る。（◯件）は口コミの欄へのリンク */
.profile-review-summary{display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 1.4cqw}
.profile-rating{position:relative;display:inline-block;line-height:1;letter-spacing:.12em;white-space:nowrap}
.profile-rating-base{color:#e2d8bd}
.profile-rating-fill{position:absolute;left:0;top:0;overflow:hidden;color:#b8984d}
.profile-review-avg{font-weight:700;color:#8a6d2a}
a.profile-review-count{color:#4b3b97;text-decoration:underline;text-underline-offset:.25em}
#teacher-reviews{scroll-margin-top:20px}
.profile-review-name{margin-top:2cqw;text-align:right;font-size:3.2cqw;color:#6b6f8a}
