/* The supplied directory art is measured on a 224px-wide design canvas.
   cqw keeps the same single mobile layout at the site's 496px maximum. */
.is-teacher-directory .site-shell{background:#f1eef1}
.is-teacher-directory .site-header{background:linear-gradient(100deg,#edf7f5,#f7eafa);border-bottom:.12cqw solid #bba679}
.is-teacher-directory .header-art{aspect-ratio:224/34!important}
.is-teacher-directory .header-art>img{width:93.2%!important;mask-image:linear-gradient(90deg,#000 80%,transparent 100%)}
.is-teacher-directory .site-footer{display:none}
.teacher-directory-page{padding:0;min-height:0;background:none}
.teacher-directory-page>.back-link{display:none}
.teacher-listing{position:relative;color:#273560;isolation:isolate;font-family:var(--serif);background-color:#f5f1f4;background-image:var(--category-page-image,url('./assets/listing-background-underlay.webp'));background-position:center top;background-size:380.686695% 100%;background-repeat:no-repeat}
.teacher-listing [hidden]{display:none!important}
.directory-symbols{position:absolute;pointer-events:none}
.directory-body{position:relative;isolation:isolate;padding-bottom:3.125cqw}
.directory-backdrop{position:absolute;inset:0;overflow:hidden;z-index:-2;background:none;pointer-events:none}
.directory-backdrop:after{content:'';position:absolute;top:0;left:0;width:100%;height:120.982143cqw;background:url('./assets/listing-hero-clean.webp') center/100% 100% no-repeat;mask-image:linear-gradient(#000 0%,#000 84%,transparent 100%);z-index:1}
.directory-underlay{position:absolute;inset:0;background:none;pointer-events:none}
.directory-intro{position:relative;min-height:120.982143cqw;padding-top:45.982143cqw;padding-bottom:5.357143cqw;text-align:center}
.teacher-directory-page .directory-intro h1{font-size:7.589286cqw;line-height:10.714286cqw;font-weight:400;letter-spacing:.07em;color:#6671b7;text-shadow:0 0 2.5cqw #fff,0 0 .5cqw #fff}
.directory-english{margin-top:2.678571cqw;font-size:3.125cqw;line-height:5.357143cqw;letter-spacing:.12em;color:#b99b72;text-shadow:0 0 1cqw #fff}
.directory-subtitle{margin-top:12.5cqw;font-size:3.348214cqw;line-height:5.803571cqw;letter-spacing:.08em;color:#6872ae;text-shadow:0 0 1.5cqw #fff}
.directory-heading-rule{position:absolute;top:70.535714cqw;left:18%;width:64%;height:3cqw;background:linear-gradient(90deg,transparent,#bda57b 20%,#bda57b 45%,transparent 45%,transparent 55%,#bda57b 55%,#bda57b 80%,transparent) center/100% .15cqw no-repeat}
.directory-heading-rule:after{background:#bba374;width:2.4cqw;height:4.5cqw;left:calc(50% - 1.2cqw);top:-.75cqw;clip-path:polygon(50% 0,66% 36%,100% 50%,66% 64%,50% 100%,34% 64%,0 50%,34% 36%);transform:none}
.directory-filter-stack{width:70.089286%;margin:5.803571cqw 0 0 16.071429%;display:grid;gap:3.571429cqw}
.directory-filter-button{position:relative;width:100%;height:11.607143cqw;min-height:11.607143cqw;border:.22cqw solid #b6a27a;border-radius:99px 0 0 99px;padding:1.2cqw 3.35cqw 1.2cqw 10.5cqw;background:linear-gradient(110deg,#fff,#fffefa);display:flex;align-items:center;justify-content:space-between;gap:2cqw;color:#6872ae;font-size:4.464286cqw;line-height:1.35;letter-spacing:.06em;box-shadow:none}
.directory-filter-button>span:not(.directory-down){white-space:nowrap}
.directory-filter-icon{flex:0 0 7cqw;width:7cqw;height:7cqw;color:#b8b0cd}
.directory-down{position:relative;display:block;flex:0 0 5.6cqw;width:5.6cqw;height:5.6cqw;border:.2cqw solid #b8ab8b;border-radius:50%;color:#b8ab8b}
.directory-down:before,.directory-down:after{position:absolute;content:'';width:2.65cqw;height:2.65cqw;left:1.2cqw;top:.45cqw;border-bottom:.2cqw solid;border-right:.2cqw solid;transform:rotate(45deg)}
.directory-down:after{top:-.35cqw}
.directory-filter-button[aria-expanded=true] .directory-down{transform:rotate(180deg)}
.directory-filter-button[aria-expanded=true]>.directory-down{opacity:1;background:#fff;z-index:1;color:#b8ab8b}
.directory-filter-panel{position:relative;text-align:left;margin:3cqw -7cqw 2cqw;padding:4cqw;border:1px solid #cbb98f;border-radius:3cqw;background:#fffdfbf5;box-shadow:0 1cqw 3cqw #b0a3bc18;color:#4c5f92}
.directory-method-links{display:grid;grid-template-columns:1fr;gap:0}
.directory-method-links a{display:flex;align-items:center;justify-content:space-between;font-size:3.9cqw;line-height:1.5;padding:2.7cqw 1.5cqw;border-bottom:1px solid #d6cdbb;min-height:10cqw}
.directory-method-links a:last-child{border-bottom:0}
.directory-method-links a>span{font-size:6cqw;color:#b19a6f}
.directory-concern-group+.directory-concern-group{margin-top:4cqw}
.directory-concern-group h3{font-size:4cqw;line-height:1.5;margin-bottom:2cqw;color:#9c8454}
.directory-concern-group>div{display:flex;flex-wrap:wrap;gap:2cqw}
.directory-concern-group a{display:flex;align-items:center;justify-content:center;flex:1 0 42%;font-size:3.5cqw;line-height:1.4;border:1px solid #d6c9af;border-radius:99px;padding:2cqw;min-height:9.5cqw;background:#f5f4fb;text-align:center}
.directory-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:4.464286cqw;row-gap:4.464286cqw;margin:0 4.910714cqw 0 6.696429cqw;align-items:stretch}
.directory-card{position:relative;isolation:isolate;min-width:0;min-height:124.107143cqw;padding-top:60.267857cqw;display:flex;flex-direction:column}
.directory-card:nth-child(3),.directory-card:nth-child(4){margin-top:.892857cqw}
.directory-card-wash{position:absolute;z-index:-1;inset:4.464286cqw 0 0;border:0;border-radius:21cqw 21cqw 0 0;background:linear-gradient(180deg,#e4eefce6 0%,#eef3fbe6 29%,#fffaf0f0 54%,#fff9efed 83%,#fffaf4dd 100%)}
.directory-card-wash:before{position:absolute;content:'';top:24.491071cqw;left:1.888393cqw;right:1.888393cqw;bottom:0;border-left:.18cqw solid #e6d8ba55;border-right:.18cqw solid #e6d8ba55}
.directory-card:before{content:'';position:absolute;z-index:1;pointer-events:none;top:28.955357cqw;bottom:0;left:.419643cqw;right:.419643cqw;border:.2cqw solid #d8c9a678;border-top:0}
.directory-arch{position:absolute;inset:0 0 auto;width:100%;height:auto;z-index:2;pointer-events:none}
.directory-portrait-link{position:absolute;left:1.339286cqw;right:1.785714cqw;top:8.482143cqw;display:block}
.directory-photo{position:relative;display:block;width:100%;aspect-ratio:87/118;border-radius:50% 50% 0 0 / 37% 37% 0 0;overflow:hidden;background:#e8effa;mask-image:linear-gradient(#000 0%,#000 68%,#000 75%,#000b 84%,#0003 94%,transparent 100%)}
.directory-photo img{position:absolute;max-width:none;height:auto;user-select:none}
.directory-card[data-teacher-id="5"] .directory-photo{mask-image:linear-gradient(#000 0%,#000 60%,#0009 70%,transparent 82%)}
.directory-copy{padding:0 2.232143cqw 4.017857cqw;display:flex;flex-direction:column;flex:1;min-width:0}
.directory-copy h2{font-size:5.803571cqw;line-height:8.928571cqw;letter-spacing:.02em;overflow-wrap:anywhere;font-weight:400}
.directory-catch{font-size:2.901786cqw;line-height:4.464286cqw;margin-top:3.125cqw;letter-spacing:.06em;overflow-wrap:anywhere}
.directory-methods{font-size:2.678571cqw;line-height:4.017857cqw;margin-top:3.125cqw;letter-spacing:.04em;overflow-wrap:anywhere}
.directory-concerns{font-size:2.455357cqw;line-height:2.77cqw;margin-top:2.232143cqw;letter-spacing:0;overflow-wrap:anywhere;min-height:16.62cqw}
.directory-rating{display:flex;align-items:center;justify-content:space-between;gap:.5cqw;margin-top:3.125cqw;line-height:1}
.directory-provided-reviews{margin-top:3.125cqw;color:#9c8454;font-size:max(10px,2.8cqw);line-height:1.5}
.directory-stars{display:block;flex:0 0 25.9cqw;width:25.9cqw;height:5.18cqw;overflow:visible;margin-left:-1cqw}
.directory-rating>span{white-space:nowrap;font-size:2.678571cqw;letter-spacing:-.08em}
.directory-details{position:relative;display:flex;align-items:center;justify-content:center;gap:.45cqw;align-self:center;width:27.678571cqw;min-height:5.803571cqw;margin-top:2.678571cqw;padding:.4cqw 1cqw;border-radius:99px;background:linear-gradient(180deg,#afa0ff 0%,#83a4ff 27%,#5e9afb 60%,#94a7ff 86%,#bdadf9 100%);box-shadow:inset 0 .25cqw .35cqw #ece3ff9c,0 .3cqw .45cqw #c3b9d73b;color:white;font-size:3.125cqw;line-height:1.3;letter-spacing:.025em;text-shadow:0 .15cqw .2cqw #587abd70}
.directory-details:after{content:'';position:absolute;inset:-1.4cqw -1cqw}
.directory-details:hover{filter:brightness(1.06)}
.directory-card:focus-visible{outline:1px solid #a18b58;outline-offset:3px}
.directory-footer{position:relative;isolation:isolate;width:100%;min-height:135.714286cqw;padding-top:16.964286cqw;background:transparent}
.directory-footer-underlay,.directory-footer-art{position:absolute;inset:0;z-index:-1;background:none;pointer-events:none}
.directory-more{position:relative;display:flex;align-items:center;justify-content:center;gap:8cqw;width:73.660714%;height:13.839286cqw;min-height:13.839286cqw;margin:0 0 0 12.946429%;border:.2cqw solid #8f92be;border-radius:99px;background:linear-gradient(115deg,#fffdf8,#f3f2fa);color:#7b7fb5;font-size:4.464286cqw;line-height:1.4;letter-spacing:.06em;padding:1cqw 4cqw 1cqw 11cqw}
.directory-more .directory-down{width:5.7cqw;height:5.7cqw;color:#b4a6c8;border-color:#b4a6c8}
.directory-footer-brand{position:absolute;left:35.7%;top:58.7%;width:34.5%;height:10%;border-radius:1cqw}
.directory-footer-brand .brand-vector{display:block;width:100%;height:auto}
.directory-footer-nav{position:absolute;left:7.5%;right:6%;top:73.8%;height:8%;display:flex;justify-content:space-between;align-items:center;gap:.5cqw}
.directory-footer-nav a{color:transparent;white-space:nowrap;font-size:2.1cqw;height:100%;display:flex;align-items:center}
.directory-footer-nav a:focus-visible{color:#8f7d50;background:#fff}
.teacher-listing.is-expanded .directory-body,.teacher-listing.is-expanded .directory-footer{background:transparent}
.teacher-listing.is-expanded .directory-backdrop{mask-image:none}
.teacher-listing.is-expanded .directory-more{gap:0;padding-inline:4cqw}
.teacher-listing.is-expanded .directory-more .directory-down{display:none}
@media(prefers-reduced-motion:reduce){.directory-filter-button .directory-down{transition:none}}

/* Category references: 224px canvas, shared header y0..34, first arch y250.
   This is a minimum height: long real titles/descriptions grow in normal flow. */
.category-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 96.428571cqw;
  padding: 9.375cqw 7cqw 10.267857cqw;
  text-align: center;
}

.category-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  mask-image: linear-gradient(#000 0%, #000 67%, transparent 100%);
}

.category-hero--method::before {
  background-image: linear-gradient(180deg,#fff1eabc,#fff8f3ad 65%,#fff8f000),
    var(--category-hero-image,url('./assets/news-background.webp'));
  background-position: center;
  background-size: 100% 100%;
}

.category-hero--concern::before {
  background-image: var(--category-hero-image,url('./assets/listing-background-underlay.webp'));
  background-size: 380.686695% 673.684211%;
  background-position: center 15%;
}

.category-method-symbol {
  display: block;
  flex: 0 0 auto;
  width: 28.571429cqw;
  height: 26.785714cqw;
  color: #b79a53;
}

.category-method-symbol > svg,
.category-method-symbol > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-heading-rule {
  display: block;
  flex: 0 0 auto;
  width: 74.107143cqw;
  max-width: 100%;
  height: 3.571429cqw;
}

.category-hero--method .category-heading-rule {
  margin-top: 1.785714cqw;
}

.category-listing .category-hero h1 {
  max-width: 100%;
  margin: 3.571429cqw 0 0;
  color: #263763;
  font-size: 7.589286cqw;
  font-weight: 400;
  line-height: 9.821429cqw;
  letter-spacing: .065em;
  word-break: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 0 2cqw #fff8;
}

.category-description {
  max-width: 100%;
  margin-top: 3.125cqw;
  color: #2c365c;
  font-size: 4.910714cqw;
  line-height: 6.25cqw;
  letter-spacing: .025em;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.category-description:empty {
  display: none;
}

.category-hero--concern {
  padding-top: 10.714286cqw;
}

.category-spark {
  display: block;
  flex: 0 0 auto;
  width: 15cqw;
  height: 18.75cqw;
  filter: drop-shadow(0 0 1.6cqw #fff);
}

.category-listing .category-hero--concern h1 {
  margin-top: 3.125cqw;
  color: #6671b2;
}

.category-english {
  margin-top: 6.25cqw;
  color: #b39a6c;
  font-size: 3.125cqw;
  line-height: 5.357143cqw;
  letter-spacing: .12em;
}

.category-hero--concern .category-heading-rule {
  margin-top: 5.357143cqw;
}

/* Cards use the same uncapped document flow for every reference variant. */
.category-listing .directory-grid,
.category-listing .directory-copy {
  min-width: 0;
}
/* Keep the dense reference cards legible on narrow phones without clipping. */
.directory-catch{font-size:max(10px,2.901786cqw)}
.directory-methods{font-size:max(11px,3cqw);line-height:1.5}
.directory-concerns{font-size:max(10px,2.455357cqw);line-height:1.22}
.directory-rating>span{font-size:max(9px,2.678571cqw)}
.directory-stars{flex-shrink:1;min-width:0}
.directory-details:after{top:50%;bottom:auto;height:max(44px,100%);transform:translateY(-50%)}

/* 一覧カード：「お客様の声◯件」と「詳細をみる」をカードの下端にそろえる（文章の量で位置がばらばらだった） */
.directory-copy>.directory-sample-copy{display:flex;flex-direction:column;flex:1}
.directory-sample-copy>.directory-provided-reviews{margin-top:auto;padding-top:3.125cqw}
/* 一覧カードの★（2026-11-24）。プロフィールの★と同じ金色 */
.directory-provided-reviews{display:flex;align-items:center;gap:1.6cqw}.directory-card-stars{color:#b8984d;letter-spacing:.06em;font-size:max(14px,4.2cqw);line-height:1}.directory-review-count{color:#9c8454}
