/* single-works.php 専用の追加スタイル（既存クラス名と衝突しない命名にしている） */
.work-detail-hero{
  width:100%;
  max-width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#d8d2c6;
  margin-bottom:clamp(28px,4vw,54px);
}
.work-detail-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  max-width:100%;
}
/* イベント情報詳細のメイン画像：写真は枠いっぱいにトリミング表示（cover）、
   日時・文字入りのチラシ画像は全体を収めて表示（contain）に切り替えられるようにする。
   ↓ 2026-07-21: 詳細ページでは cover/contain の別に関わらず画像を一切クロップしない方針に変更したため、
   下の body.single-works / body.single-topics スコープの上書きルールが cover/contain 両方で優先される。
   このブロック自体は heiwa-site-core の「メイン画像の表示方法」設定・管理画面を削除しないために残している。 */
.topics-single__hero.topics-single__hero--contain{background:#1c1a17}
.topics-single__hero.topics-single__hero--contain img{object-fit:contain}

/* 施工事例・イベント情報の詳細ページのみ：メイン画像をクロップせず元の縦横比のまま表示する。
   .work-detail-hero / .work-detail-content は 読み物（single.php）や固定ページ（page.php）でも
   共有されているため、body-classでスコープしてそれらの表示には影響させない。 */
body.single-works .work-detail-hero,
body.single-topics .work-detail-hero{
  aspect-ratio:unset;
  overflow:visible;
  background:none;
}
body.single-works .work-detail-hero img,
body.single-topics .work-detail-hero img{
  width:100%;
  height:auto;
  object-fit:unset;
  display:block;
}

.work-detail-heading{
  max-width:820px;
  font-size:clamp(20px,2.4vw,26px);
  font-weight:400;
  letter-spacing:.05em;
  line-height:1.6;
  margin:0 0 20px;
}
.work-detail-txt{
  max-width:820px;
  font-size:14px;
  line-height:1.9;
  color:var(--text);
  margin:0 0 clamp(28px,3vw,40px);
}
.work-detail-txt p{margin:0 0 1.4em}
.work-detail-txt p:last-child{margin-bottom:0}

.work-detail-specs{margin:0 0 clamp(28px,3vw,40px);max-width:820px}
.work-detail-specs__title{font-size:clamp(20px,2.2vw,24px);font-weight:400;letter-spacing:.05em;margin:0 0 20px}
.work-detail-specs__table{width:100%;border-collapse:collapse;font-size:14px}
.work-detail-specs__table tr{border-bottom:1px solid var(--line)}
.work-detail-specs__table th,
.work-detail-specs__table td{text-align:left;padding:14px 12px;vertical-align:top;font-weight:400}
.work-detail-specs__table th{width:220px;color:var(--sub);font-family:var(--sans);font-size:12px;letter-spacing:.06em}
.work-detail-specs__table td{color:var(--text)}
@media (max-width:1023px){
  .work-detail-specs__table th{width:160px}
}
@media (max-width:767px){
  .work-detail-specs__table,
  .work-detail-specs__table tbody,
  .work-detail-specs__table tr,
  .work-detail-specs__table th,
  .work-detail-specs__table td{display:block;width:auto}
  .work-detail-specs__table tr{padding:10px 0}
  .work-detail-specs__table th{padding:0 0 4px}
  .work-detail-specs__table td{padding:0 0 4px}
}

.work-detail-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 clamp(28px,3vw,40px);
}
.work-detail-meta span{
  border:1px solid var(--line);
  padding:6px 14px;
  font-family:var(--sans);
  font-size:11px;
  letter-spacing:.08em;
  color:var(--sub);
}
.event-status-inline{
  border:none !important;
  color:#fff !important;
  background:var(--brown);
}
/* 「キーワード」（自由記述タグ、住宅性能・施工情報テーブルとは別データ） */
.work-detail-keywords{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 clamp(28px,3vw,40px)}
.work-detail-keywords__tag{background:var(--paper);padding:6px 14px;font:11px var(--sans);letter-spacing:.08em;color:var(--text)}
.event-status-inline.is-open{background:var(--green)}
.event-status-inline.is-closed{background:var(--sub)}
.event-status-inline.is-preparing{background:var(--brown)}

.work-detail-content{
  max-width:820px;
  font-size:14px;
  line-height:2.1;
}
.work-detail-content p{margin:0 0 1.6em}
.work-detail-content img{max-width:100%;height:auto;margin:1.6em 0}

.work-gallery{margin-top:clamp(48px,6vw,88px)}
.work-gallery__title,.work-faq__title{font-size:clamp(22px,2.4vw,28px);font-weight:400;letter-spacing:.05em;margin:0 0 28px}
.work-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.work-gallery__item{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;text-align:left}
/* サブ画像は固定比率クロップをせず、元画像の縦横比のまま幅いっぱいに表示する */
.work-gallery__item img{width:100%;height:auto;display:block}
.work-gallery__caption{display:block;margin-top:6px;font:12px var(--sans);color:var(--sub)}
@media (max-width:1023px){
  .work-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:480px){
  .work-gallery__grid{grid-template-columns:1fr}
}

.work-faq{margin-top:clamp(48px,6vw,88px);max-width:820px}

.gallery-lightbox{position:fixed;inset:0;z-index:9000;background:rgba(20,18,15,.92);display:flex;align-items:center;justify-content:center;padding:32px}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox__figure{max-width:min(1100px,92vw);max-height:88vh;margin:0;display:flex;flex-direction:column;gap:12px}
.gallery-lightbox__figure img{max-width:100%;max-height:78vh;object-fit:contain;display:block;margin:0 auto}
.gallery-lightbox__figure figcaption{color:#fff;font:13px var(--sans);text-align:center}
.gallery-lightbox__close{position:absolute;top:24px;right:24px;background:transparent;border:1px solid rgba(255,255,255,.5);color:#fff;padding:8px 16px;cursor:pointer;font:12px var(--sans)}

.work-detail-back{
  margin-top:clamp(40px,5vw,72px);
}

/* スタッフ紹介 */
.staff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(40px,5vw,72px) clamp(32px,4vw,56px)}
.staff-card{display:grid;grid-template-columns:minmax(140px,180px) minmax(0,1fr);gap:clamp(20px,2.4vw,28px)}
.staff-card__photo{
  aspect-ratio:4/5;
  width:100%;
  background:var(--paper);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--sub);
  font:11px var(--sans);
  letter-spacing:.14em;
}
.staff-card__photo img{width:100%;height:100%;object-fit:cover;display:block}
.staff-card__name{font-size:18px;font-weight:400;letter-spacing:.06em;margin:0 0 16px}
.staff-card__label{font:11px var(--sans);letter-spacing:.1em;color:var(--sub);margin:16px 0 6px}
.staff-card__label:first-of-type{margin-top:0}
.staff-card__text{font-size:13px;line-height:1.9;margin:0}
@media (max-width:1023px){
  .staff-grid{grid-template-columns:1fr}
}
@media (max-width:480px){
  .staff-card{grid-template-columns:120px minmax(0,1fr)}
}

@media (max-width:767px){
  .work-detail-content{font-size:13px}
}

/* 私たちのこだわり：ページ内ナビゲーション（固定・sticky にはせず、画面を塞がないようにする） */
.quality-nav{
  margin:0 0 clamp(40px,5vw,64px);
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.quality-nav__inner{
  display:flex;
  gap:10px 22px;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.quality-nav__inner a{
  flex:0 0 auto;
  font:11px var(--sans);
  letter-spacing:.08em;
  color:var(--sub);
  white-space:nowrap;
  padding:6px 2px;
}
.quality-nav__inner a:hover{color:var(--text)}

.quality-section{
  max-width:820px;
  margin:0 0 clamp(56px,7vw,96px);
  padding-top:clamp(40px,5vw,64px);
  border-top:1px solid var(--line);
  scroll-margin-top:88px;
}
.quality-section:first-of-type{border-top:0;padding-top:0}
.quality-section--sub{
  max-width:760px;
  margin-left:auto;
  margin-right:0;
  padding-top:clamp(28px,3.4vw,40px);
}
.quality-section__en{
  font:10px var(--sans);
  letter-spacing:.2em;
  color:var(--sub);
  margin:0 0 10px;
}
.quality-section__title{
  font-size:clamp(21px,2.6vw,28px);
  font-weight:400;
  letter-spacing:.05em;
  line-height:1.6;
  margin:0 0 24px;
}
.quality-section--sub .quality-section__title{font-size:clamp(18px,2.1vw,22px)}
.quality-section__image{margin:0 0 24px;background:var(--paper)}
.quality-section__image img{width:100%;height:auto;display:block}
.quality-section__body{font-size:14px;line-height:1.9;color:var(--text)}
.quality-section__body p{margin:0 0 1.4em}
.quality-section__body p:last-child{margin-bottom:0}

.zeh-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.zeh-table{width:100%;min-width:420px;border-collapse:collapse;font-size:14px}
.zeh-table th,.zeh-table td{border:1px solid var(--line);padding:12px 16px;text-align:center}
.zeh-table thead th{background:var(--paper);font-weight:400;font-size:12px;letter-spacing:.08em;color:var(--sub)}
.quality-section__note{margin-top:14px;font-size:12px;color:var(--sub)}

@media (max-width:767px){
  .quality-section--sub{margin-left:0;margin-right:0}
  .zeh-table{min-width:0;font-size:12px}
  .zeh-table th,.zeh-table td{padding:8px 6px}
}

/* 会社情報：住所直下のGoogleマップ（company-map、page-company.php専用） */
.company-map{max-width:820px;margin:0 0 clamp(40px,5vw,64px)}
.company-map__embed{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  background:var(--paper);
  overflow:hidden;
}
.company-map__embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.company-map__link{margin-top:12px}
@media (max-width:767px){
  .company-map__embed{aspect-ratio:4/5}
}

/* 家づくりの流れ：縦タイムライン（page-flow.php専用） */
.flow-timeline{
  position:relative;
  max-width:980px;
  margin:0 auto;
  padding-left:56px;
}
.flow-timeline::before{
  content:"";
  position:absolute;
  left:19px;
  top:8px;
  bottom:8px;
  width:1px;
  background:var(--line);
}
.flow-timeline__item{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:clamp(24px,3vw,48px);
  align-items:center;
  margin-bottom:clamp(48px,6vw,80px);
}
.flow-timeline__item:last-child{margin-bottom:0}
.flow-timeline__item--right{grid-template-columns:1.2fr 1fr}
.flow-timeline__item--right .flow-timeline__media{order:2}
.flow-timeline__item--right .flow-timeline__body{order:1}
.flow-timeline__num{
  position:absolute;
  left:-56px;
  top:0;
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:50%;
  background:var(--bg);
  display:flex;
  align-items:center;
  justify-content:center;
  font:11px var(--sans);
  letter-spacing:.05em;
  color:var(--sub);
  z-index:1;
}
.flow-timeline__media{aspect-ratio:4/3;overflow:hidden;background:var(--paper)}
.flow-timeline__media img{width:100%;height:100%;object-fit:cover;display:block}
.flow-timeline__body h3{font-size:clamp(18px,2vw,22px);font-weight:400;letter-spacing:.05em;margin:0 0 10px}
.flow-timeline__body p{font-size:13px;line-height:1.9;color:var(--sub);margin:0}

@media (max-width:767px){
  .flow-timeline{padding-left:44px}
  .flow-timeline::before{left:15px}
  .flow-timeline__item,
  .flow-timeline__item--right{grid-template-columns:1fr;gap:16px}
  .flow-timeline__item--right .flow-timeline__media{order:0}
  .flow-timeline__item--right .flow-timeline__body{order:0}
  .flow-timeline__num{left:-44px;width:32px;height:32px;font-size:10px}
}


/* ==========================================================
   v1.4.0 家づくりの流れ
   ========================================================== */
.flow-page{
  background:#f3f0e8;
}
.flow-page .breadcrumb{
  position:relative;
  z-index:2;
}
.flow-hero{
  position:relative;
  min-height:min(760px,78svh);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
}
.flow-hero__media,
.flow-hero__shade{
  position:absolute;
  inset:0;
}
.flow-hero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transform:scale(1.02);
}
.flow-hero__shade{
  background:
    linear-gradient(180deg,rgba(20,17,14,.08),rgba(20,17,14,.2) 46%,rgba(20,17,14,.72)),
    linear-gradient(90deg,rgba(20,17,14,.42),transparent 65%);
}
.flow-hero__body{
  position:relative;
  z-index:1;
  width:min(1180px,calc(100% - clamp(40px,10vw,180px)));
  margin:0 auto;
  padding:clamp(80px,11vw,145px) 0;
}
.flow-hero__body .eyebrow{
  color:rgba(255,255,255,.75);
}
.flow-hero__body h1{
  max-width:760px;
  margin:0 0 22px;
  font-size:clamp(34px,5vw,70px);
  line-height:1.35;
  letter-spacing:.08em;
  font-weight:400;
}
.flow-hero__body>p:last-child{
  max-width:620px;
  margin:0;
  font-size:clamp(14px,1.4vw,17px);
  line-height:2.05;
}

.flow-intro{
  display:grid;
  grid-template-columns:minmax(160px,.4fr) minmax(0,1fr);
  gap:clamp(50px,9vw,130px);
  align-items:start;
  padding-block:clamp(100px,13vw,180px);
}
.flow-intro__label{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:10px;
  color:var(--sub);
  font:10px var(--sans);
  letter-spacing:.18em;
}
.flow-intro__copy{
  max-width:740px;
}
.flow-intro__copy h2{
  margin:0 0 clamp(28px,4vw,48px);
  font-size:clamp(28px,4vw,48px);
  line-height:1.6;
  letter-spacing:.08em;
  font-weight:400;
}
.flow-intro__copy>p:not(.eyebrow){
  max-width:650px;
  margin:0 0 1.4em;
  font-size:clamp(14px,1.2vw,16px);
  line-height:2.1;
  color:var(--sub);
}

.flow-process{
  padding-bottom:clamp(100px,14vw,190px);
}
.flow-phase{
  margin-bottom:clamp(110px,14vw,190px);
}
.flow-phase:last-child{
  margin-bottom:0;
}
.flow-phase__head{
  display:grid;
  grid-template-columns:minmax(120px,.3fr) minmax(0,1fr);
  gap:clamp(30px,7vw,100px);
  padding:0 0 clamp(42px,6vw,76px);
  border-top:1px solid var(--line);
}
.flow-phase__head>p{
  margin:22px 0 0;
  font:10px var(--sans);
  letter-spacing:.18em;
  color:var(--sub);
}
.flow-phase__head>div{
  padding-top:20px;
}
.flow-phase__head h2{
  margin:0 0 14px;
  font-size:clamp(24px,3vw,38px);
  line-height:1.55;
  letter-spacing:.06em;
  font-weight:400;
}
.flow-phase__head>div>p{
  max-width:620px;
  margin:0;
  color:var(--sub);
  line-height:2;
}

.flow-page .flow-timeline{
  position:relative;
  max-width:none;
  margin:0;
  padding:0;
}
.flow-page .flow-timeline::before{
  left:50%;
  top:0;
  bottom:0;
  background:rgba(43,38,33,.16);
}
.flow-page .flow-timeline__item{
  display:grid;
  grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr);
  grid-template-areas:"media number body";
  gap:clamp(24px,4vw,62px);
  align-items:center;
  margin:0 0 clamp(72px,10vw,135px);
}
.flow-page .flow-timeline__item:last-child{
  margin-bottom:0;
}
.flow-page .flow-timeline__item--right{
  grid-template-areas:"body number media";
}
.flow-page .flow-timeline__media{
  grid-area:media;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#ddd8ce;
}
.flow-page .flow-timeline__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform 1.1s cubic-bezier(.19,1,.22,1);
}
.flow-page .flow-timeline__item:hover .flow-timeline__media img{
  transform:scale(1.035);
}
.flow-page .flow-timeline__number{
  grid-area:number;
  position:relative;
  z-index:2;
  width:58px;
  height:58px;
  margin:auto;
  display:grid;
  place-items:center;
  border:1px solid rgba(43,38,33,.28);
  border-radius:50%;
  background:#f3f0e8;
  color:var(--sub);
  font:11px var(--sans);
  letter-spacing:.08em;
}
.flow-page .flow-timeline__body{
  grid-area:body;
  max-width:430px;
}
.flow-page .flow-timeline__item--right .flow-timeline__body{
  justify-self:end;
}
.flow-timeline__step{
  margin:0 0 13px!important;
  color:#9a8974!important;
  font:9px var(--sans)!important;
  letter-spacing:.2em;
}
.flow-page .flow-timeline__body h3{
  margin:0 0 17px;
  font-size:clamp(22px,2.6vw,34px);
  line-height:1.55;
  letter-spacing:.07em;
  font-weight:400;
}
.flow-page .flow-timeline__body>p:last-child{
  margin:0;
  color:var(--sub);
  font-size:clamp(13px,1.1vw,15px);
  line-height:2.05;
}

.flow-finish{
  position:relative;
  padding:clamp(100px,14vw,190px) 0;
  background:#29241f;
  color:#f6f1e8;
}
.flow-finish__inner{
  max-width:830px;
}
.flow-finish .eyebrow{
  color:rgba(255,255,255,.58);
}
.flow-finish h2{
  margin:0 0 25px;
  font-size:clamp(29px,4vw,50px);
  line-height:1.55;
  letter-spacing:.07em;
  font-weight:400;
}
.flow-finish p{
  max-width:620px;
  color:rgba(255,255,255,.72);
  font-size:15px;
  line-height:2.05;
}
.flow-finish__button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:250px;
  min-height:54px;
  margin-top:28px;
  padding:12px 24px;
  border:1px solid rgba(255,255,255,.55);
  color:#fff;
  font:12px var(--sans);
  letter-spacing:.1em;
  transition:background .35s,color .35s;
}
.flow-finish__button:hover,
.flow-finish__button:focus-visible{
  background:#fff;
  color:#29241f;
}

.flow-page [data-flow-reveal]{
  opacity:1;
  transform:none;
  filter:none;
}
.flow-page.is-js [data-flow-reveal]{
  opacity:0;
  transform:translate3d(0,38px,0);
  filter:blur(3px);
  transition:
    opacity .9s cubic-bezier(.19,1,.22,1),
    transform .9s cubic-bezier(.19,1,.22,1),
    filter .9s cubic-bezier(.19,1,.22,1);
}
.flow-page.is-js .flow-timeline__item--left[data-flow-reveal]{
  transform:translate3d(-52px,24px,0);
}
.flow-page.is-js .flow-timeline__item--right[data-flow-reveal]{
  transform:translate3d(52px,24px,0);
}
.flow-page.is-js [data-flow-reveal].is-inview{
  opacity:1;
  transform:translate3d(0,0,0);
  filter:blur(0);
}

/* ==========================================================
   v1.4.0 施工写真ギャラリー
   ========================================================== */
.work-gallery{
  margin-top:clamp(72px,9vw,130px);
}
.work-gallery__header{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:clamp(42px,6vw,76px);
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.work-gallery__title{
  margin:0!important;
  font-size:clamp(28px,3.5vw,44px)!important;
}
.work-gallery__count{
  flex:0 0 auto;
  margin:0;
  color:var(--sub);
  font:10px var(--sans);
  letter-spacing:.18em;
}
.work-gallery__grid{
  display:flex!important;
  flex-direction:column;
  gap:clamp(58px,9vw,120px)!important;
}
.work-gallery__item{
  position:relative;
  width:min(100%,1120px)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:inherit;
  overflow:visible;
}
.work-gallery__item:nth-child(odd){
  align-self:flex-start;
}
.work-gallery__item:nth-child(even){
  width:min(88%,980px)!important;
  align-self:flex-end;
}
.work-gallery__number{
  display:block;
  margin:0 0 12px;
  color:var(--sub);
  font:10px var(--sans);
  letter-spacing:.18em;
  text-align:left;
}
.work-gallery__media{
  position:relative;
  display:block;
  width:100%;
  overflow:hidden;
  background:#e8e4db;
}
.work-gallery__media img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
  object-fit:contain!important;
  transition:transform .9s cubic-bezier(.19,1,.22,1),filter .9s;
}
.work-gallery__view{
  position:absolute;
  right:18px;
  bottom:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:112px;
  min-height:38px;
  padding:8px 14px;
  background:rgba(30,27,24,.72);
  color:#fff;
  font:9px var(--sans);
  letter-spacing:.14em;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .35s,transform .35s;
}
.work-gallery__item:hover .work-gallery__media img{
  transform:scale(1.018);
  filter:brightness(.94);
}
.work-gallery__item:hover .work-gallery__view,
.work-gallery__item:focus-visible .work-gallery__view{
  opacity:1;
  transform:translateY(0);
}
.work-gallery__caption{
  max-width:760px;
  margin-top:13px!important;
  color:var(--sub)!important;
  font:13px var(--sans)!important;
  line-height:1.8;
  text-align:left;
}
.work-gallery.is-animated .work-gallery__item{
  opacity:0;
  transition:
    opacity 1s cubic-bezier(.19,1,.22,1),
    transform 1s cubic-bezier(.19,1,.22,1),
    filter 1s cubic-bezier(.19,1,.22,1);
  filter:blur(3px);
}
.work-gallery.is-animated .work-gallery__item:nth-child(odd){
  transform:translate3d(-72px,22px,0);
}
.work-gallery.is-animated .work-gallery__item:nth-child(even){
  transform:translate3d(72px,22px,0);
}
.work-gallery.is-animated .work-gallery__item.is-visible{
  opacity:1;
  transform:translate3d(0,0,0);
  filter:blur(0);
}

.gallery-lightbox{
  padding:clamp(18px,4vw,52px)!important;
  background:rgba(15,13,11,.96)!important;
}
.gallery-lightbox__figure{
  width:min(1180px,86vw);
  max-width:none!important;
  max-height:90vh!important;
}
.gallery-lightbox__figure img{
  max-height:80vh!important;
}
.gallery-lightbox__counter{
  color:rgba(255,255,255,.55);
  font:10px var(--sans);
  letter-spacing:.18em;
  text-align:center;
}
.gallery-lightbox__nav{
  position:absolute;
  top:50%;
  z-index:2;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:50%;
  background:rgba(0,0,0,.18);
  color:#fff;
  cursor:pointer;
  transform:translateY(-50%);
}
.gallery-lightbox__nav--prev{left:24px}
.gallery-lightbox__nav--next{right:24px}

@media(max-width:767px){
  .flow-hero{
    min-height:620px;
  }
  .flow-hero__body{
    width:calc(100% - 40px);
    padding-bottom:80px;
  }
  .flow-hero__body h1{
    font-size:36px;
  }
  .flow-intro{
    grid-template-columns:1fr;
    gap:32px;
    padding-block:90px;
  }
  .flow-intro__label{
    flex-direction:row;
  }
  .flow-phase{
    margin-bottom:110px;
  }
  .flow-phase__head{
    grid-template-columns:1fr;
    gap:8px;
    padding-bottom:38px;
  }
  .flow-phase__head>p{
    margin-top:18px;
  }
  .flow-phase__head>div{
    padding-top:0;
  }
  .flow-page .flow-timeline::before{
    left:16px;
  }
  .flow-page .flow-timeline__item,
  .flow-page .flow-timeline__item--right{
    grid-template-columns:42px minmax(0,1fr);
    grid-template-areas:
      "number media"
      ". body";
    gap:16px 18px;
    margin-bottom:76px;
  }
  .flow-page .flow-timeline__number{
    width:34px;
    height:34px;
    margin:0;
    font-size:9px;
  }
  .flow-page .flow-timeline__item--right .flow-timeline__body{
    justify-self:stretch;
  }
  .flow-page .flow-timeline__media{
    aspect-ratio:4/3;
  }
  .flow-page .flow-timeline__body h3{
    font-size:24px;
  }
  .flow-page.is-js .flow-timeline__item--left[data-flow-reveal],
  .flow-page.is-js .flow-timeline__item--right[data-flow-reveal]{
    transform:translate3d(0,32px,0);
  }

  .work-gallery__header{
    align-items:flex-start;
  }
  .work-gallery__item,
  .work-gallery__item:nth-child(even){
    width:100%!important;
  }
  .work-gallery__grid{
    gap:64px!important;
  }
  .work-gallery.is-animated .work-gallery__item:nth-child(odd){
    transform:translate3d(-36px,16px,0);
  }
  .work-gallery.is-animated .work-gallery__item:nth-child(even){
    transform:translate3d(36px,16px,0);
  }
  .work-gallery__view{
    opacity:1;
    transform:none;
    right:10px;
    bottom:10px;
  }
  .gallery-lightbox__nav{
    top:auto;
    bottom:20px;
    transform:none;
  }
  .gallery-lightbox__nav--prev{left:20px}
  .gallery-lightbox__nav--next{right:20px}
  .gallery-lightbox__close{
    top:14px!important;
    right:14px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .flow-page.is-js [data-flow-reveal],
  .work-gallery.is-animated .work-gallery__item{
    opacity:1!important;
    transform:none!important;
    filter:none!important;
    transition:none!important;
  }
}


/* ==========================================================
   v1.5.0 私たちのこだわり：Editorial / Magazine layout
   ========================================================== */
.quality-page{
  overflow:hidden;
  background:
    radial-gradient(circle at 86% 5%,rgba(195,177,147,.15),transparent 23%),
    #f3f0e8;
}
.quality-page .breadcrumb{
  position:relative;
  z-index:3;
}
.quality-hero{
  width:min(1320px,calc(100% - clamp(40px,8vw,120px)));
  min-height:min(820px,82svh);
  margin:0 auto;
  padding:clamp(70px,8vw,120px) 0 clamp(90px,11vw,150px);
  display:grid;
  grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
  gap:clamp(50px,8vw,130px);
  align-items:center;
}
.quality-hero__copy{
  position:relative;
  z-index:2;
}
.quality-hero__copy h1{
  margin:0 0 28px;
  max-width:9em;
  font-size:clamp(38px,5.4vw,78px);
  line-height:1.3;
  letter-spacing:.08em;
  font-weight:400;
}
.quality-hero__copy>p:last-child{
  max-width:520px;
  margin:0;
  color:var(--sub);
  font-size:clamp(14px,1.3vw,17px);
  line-height:2.1;
}
.quality-hero__visual{
  position:relative;
  min-height:620px;
}
.quality-hero__image{
  position:absolute;
  margin:0;
  overflow:hidden;
  background:#ddd7cc;
}
.quality-hero__image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.quality-hero__image--main{
  inset:0 0 55px 13%;
}
.quality-hero__image--sub{
  left:0;
  bottom:0;
  width:38%;
  aspect-ratio:4/5;
  border:12px solid #f3f0e8;
}
.quality-hero__issue{
  position:absolute;
  right:-18px;
  top:42px;
  writing-mode:vertical-rl;
  color:rgba(43,38,33,.52);
  font:9px/1.8 var(--sans);
  letter-spacing:.2em;
}

.quality-custom-content{
  padding-block:clamp(80px,10vw,140px);
}
.quality-nav{
  margin-bottom:clamp(90px,11vw,150px);
  padding:17px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.quality-nav__inner{
  display:flex;
  gap:12px 30px;
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:none;
}
.quality-nav__inner::-webkit-scrollbar{display:none}
.quality-nav__inner a{
  flex:0 0 auto;
  color:var(--sub);
  font:10px var(--sans);
  letter-spacing:.1em;
  transition:color .25s;
}
.quality-nav__inner a:hover,
.quality-nav__inner a:focus-visible{
  color:var(--text);
}

.quality-editorial{
  padding-bottom:clamp(100px,13vw,180px);
}
.quality-chapter{
  margin:0 0 clamp(130px,17vw,230px);
  scroll-margin-top:100px;
}
.quality-chapter:last-of-type{
  margin-bottom:clamp(90px,12vw,160px);
}
.quality-chapter__masthead{
  display:grid;
  grid-template-columns:auto minmax(40px,1fr) auto;
  align-items:center;
  gap:16px;
  margin-bottom:clamp(36px,5vw,65px);
}
.quality-chapter__number{
  color:#9b876e;
  font:11px var(--sans);
  letter-spacing:.18em;
}
.quality-chapter__rule{
  height:1px;
  background:var(--line);
}
.quality-chapter__english{
  color:var(--sub);
  font:10px var(--sans);
  letter-spacing:.18em;
}

.quality-feature{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:clamp(18px,2.8vw,42px);
  align-items:center;
}
.quality-feature__media{
  grid-column:1/8;
  position:relative;
  margin:0;
}
.quality-feature--right .quality-feature__media{
  grid-column:6/13;
  order:2;
}
.quality-feature__media img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}
.quality-feature__media figcaption{
  margin-top:11px;
  color:var(--sub);
  font:10px/1.8 var(--sans);
  letter-spacing:.06em;
}
.quality-feature__copy{
  grid-column:8/13;
  position:relative;
  z-index:2;
  padding:clamp(28px,4vw,58px);
  margin-left:clamp(-70px,-5vw,-26px);
  background:rgba(243,240,232,.94);
  box-shadow:0 26px 70px rgba(58,48,37,.08);
}
.quality-feature--right .quality-feature__copy{
  grid-column:1/7;
  grid-row:1;
  margin-left:0;
  margin-right:clamp(-70px,-5vw,-26px);
}
.quality-feature__kicker{
  margin:0 0 14px;
  color:#9b876e;
  font:9px var(--sans);
  letter-spacing:.2em;
}
.quality-feature__copy h2{
  margin:0 0 25px;
  font-size:clamp(25px,3vw,42px);
  line-height:1.55;
  letter-spacing:.07em;
  font-weight:400;
}
.quality-feature__body{
  color:var(--sub);
  font-size:clamp(13px,1.05vw,15px);
  line-height:2.05;
}
.quality-feature__body p{
  margin:0 0 1.35em;
}
.quality-feature__body p:last-child{
  margin-bottom:0;
}
.quality-chapter--text-only .quality-feature{
  display:block;
}
.quality-chapter--text-only .quality-feature__copy{
  width:min(820px,100%);
  margin:0 auto;
  padding:clamp(48px,7vw,90px);
  background:
    linear-gradient(135deg,rgba(188,169,139,.16),transparent 58%),
    rgba(255,255,255,.33);
  box-shadow:none;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.quality-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(30px,5vw,72px);
  margin-top:clamp(72px,9vw,130px);
}
.quality-detail{
  padding:26px 0 0;
  border-top:1px solid var(--line);
}
.quality-detail:nth-child(even){
  margin-top:clamp(45px,6vw,90px);
}
.quality-detail__media{
  margin:0 0 26px;
  overflow:hidden;
}
.quality-detail__media img{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  transition:transform .9s cubic-bezier(.19,1,.22,1);
}
.quality-detail:hover .quality-detail__media img{
  transform:scale(1.025);
}
.quality-detail__english{
  margin:0 0 10px;
  color:#9b876e;
  font:9px var(--sans);
  letter-spacing:.19em;
}
.quality-detail h3{
  margin:0 0 18px;
  font-size:clamp(19px,2vw,27px);
  line-height:1.55;
  letter-spacing:.06em;
  font-weight:400;
}
.quality-detail__body{
  color:var(--sub);
  font-size:13px;
  line-height:2;
}
.quality-detail__body p{
  margin:0 0 1.3em;
}
.quality-detail__body p:last-child{
  margin-bottom:0;
}

.quality-zeh{
  scroll-margin-top:100px;
  display:grid;
  grid-template-columns:minmax(200px,.45fr) minmax(0,1fr);
  gap:clamp(38px,7vw,100px);
  padding:clamp(50px,7vw,90px);
  background:#2b2723;
  color:#f6f1e9;
}
.quality-zeh header h2{
  margin:0;
  font-size:clamp(24px,3vw,38px);
  line-height:1.55;
  font-weight:400;
}
.quality-zeh .eyebrow{
  color:rgba(255,255,255,.56);
}
.quality-zeh .zeh-table-wrap{
  grid-column:2;
}
.quality-zeh .zeh-table{
  color:#f6f1e9;
}
.quality-zeh .zeh-table th,
.quality-zeh .zeh-table td{
  border-color:rgba(255,255,255,.18);
}
.quality-zeh .quality-section__note{
  grid-column:2;
  color:rgba(255,255,255,.6);
}

.quality-closing{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  min-height:700px;
  background:#2c2823;
  color:#f5f0e7;
}
.quality-closing__image{
  min-height:620px;
  overflow:hidden;
}
.quality-closing__image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.quality-closing__copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(48px,8vw,110px);
}
.quality-closing__copy .eyebrow{
  color:rgba(255,255,255,.55);
}
.quality-closing__copy h2{
  margin:0 0 26px;
  font-size:clamp(28px,4vw,52px);
  line-height:1.55;
  letter-spacing:.07em;
  font-weight:400;
}
.quality-closing__copy>p:not(.eyebrow){
  margin:0 0 32px;
  color:rgba(255,255,255,.7);
  line-height:2.05;
}
.quality-closing__copy .text-link{
  color:#fff;
}

/* JS成功時のみ左右からの表示演出を有効化。 */
.quality-page [data-quality-reveal]{
  opacity:1;
  transform:none;
  filter:none;
}
.quality-page.is-js [data-quality-reveal]{
  opacity:0;
  filter:blur(3px);
  transition:
    opacity 1s cubic-bezier(.19,1,.22,1),
    transform 1s cubic-bezier(.19,1,.22,1),
    filter 1s cubic-bezier(.19,1,.22,1);
}
.quality-page.is-js [data-quality-reveal="left"]{
  transform:translate3d(-70px,18px,0);
}
.quality-page.is-js [data-quality-reveal="right"]{
  transform:translate3d(70px,18px,0);
}
.quality-page.is-js [data-quality-reveal="up"]{
  transform:translate3d(0,42px,0);
}
.quality-page.is-js [data-quality-reveal].is-inview{
  opacity:1;
  transform:translate3d(0,0,0);
  filter:blur(0);
}

@media(max-width:900px){
  .quality-hero{
    grid-template-columns:1fr;
    min-height:0;
    padding-top:80px;
  }
  .quality-hero__copy{
    max-width:680px;
  }
  .quality-hero__visual{
    min-height:600px;
  }
  .quality-feature,
  .quality-feature--right{
    grid-template-columns:1fr;
    display:grid;
    gap:0;
  }
  .quality-feature__media,
  .quality-feature--right .quality-feature__media{
    grid-column:1;
    grid-row:1;
    order:0;
  }
  .quality-feature__copy,
  .quality-feature--right .quality-feature__copy{
    grid-column:1;
    grid-row:2;
    width:calc(100% - 42px);
    margin:-50px 0 0 auto;
    padding:clamp(30px,6vw,55px);
  }
  .quality-feature--right .quality-feature__copy{
    margin:-50px auto 0 0;
  }
  .quality-zeh{
    grid-template-columns:1fr;
  }
  .quality-zeh .zeh-table-wrap,
  .quality-zeh .quality-section__note{
    grid-column:1;
  }
  .quality-closing{
    grid-template-columns:1fr;
  }
  .quality-closing__image{
    min-height:480px;
  }
}

@media(max-width:640px){
  .quality-hero{
    width:calc(100% - 36px);
    padding-top:64px;
    padding-bottom:90px;
    gap:45px;
  }
  .quality-hero__copy h1{
    max-width:none;
    font-size:36px;
  }
  .quality-hero__visual{
    min-height:440px;
  }
  .quality-hero__image--main{
    inset:0 0 42px 8%;
  }
  .quality-hero__image--sub{
    width:42%;
    border-width:8px;
  }
  .quality-hero__issue{
    right:-8px;
  }
  .quality-nav{
    margin-bottom:90px;
  }
  .quality-chapter{
    margin-bottom:120px;
  }
  .quality-chapter__masthead{
    grid-template-columns:auto 1fr;
  }
  .quality-chapter__english{
    grid-column:1/-1;
  }
  .quality-feature__copy,
  .quality-feature--right .quality-feature__copy{
    width:calc(100% - 20px);
    margin-top:-32px;
    padding:28px 22px;
  }
  .quality-details{
    grid-template-columns:1fr;
    gap:58px;
    margin-top:72px;
  }
  .quality-detail:nth-child(even){
    margin-top:0;
  }
  .quality-detail__media img{
    aspect-ratio:4/3;
  }
  .quality-zeh{
    margin-left:-18px;
    margin-right:-18px;
    padding:44px 22px;
  }
  .quality-closing{
    min-height:0;
  }
  .quality-closing__image{
    min-height:360px;
  }
  .quality-closing__copy{
    padding:62px 22px 74px;
  }
  .quality-page.is-js [data-quality-reveal="left"]{
    transform:translate3d(-34px,14px,0);
  }
  .quality-page.is-js [data-quality-reveal="right"]{
    transform:translate3d(34px,14px,0);
  }
}

@media(prefers-reduced-motion:reduce){
  .quality-page.is-js [data-quality-reveal]{
    opacity:1!important;
    transform:none!important;
    filter:none!important;
    transition:none!important;
  }
}


/* v1.6.0 works gallery layered / company page refresh */
.work-gallery__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(18px,2.4vw,30px);
  align-items:start;
}
.work-gallery__item{
  position:relative;
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  text-align:left;
  box-shadow:0 20px 44px rgba(48,40,31,.10);
  transition:transform .8s cubic-bezier(.19,1,.22,1), box-shadow .35s ease, opacity .8s ease;
}
.work-gallery__item:nth-child(3n+2){margin-top:clamp(18px,2vw,34px)}
.work-gallery__item:nth-child(3n){margin-top:clamp(-10px,-1.2vw,-22px)}
.work-gallery__item:hover{box-shadow:0 28px 52px rgba(48,40,31,.18)}
.has-work-gallery-reveal .work-gallery__item[data-work-reveal]{opacity:0}
.has-work-gallery-reveal .work-gallery__item[data-work-reveal="left"]{transform:translate3d(-56px,24px,0)}
.has-work-gallery-reveal .work-gallery__item[data-work-reveal="right"]{transform:translate3d(56px,24px,0)}
.has-work-gallery-reveal .work-gallery__item.is-inview{opacity:1;transform:translate3d(0,0,0)}

.company-hero{
  width:min(1320px,calc(100% - 40px));
  margin:0 auto clamp(48px,8vw,90px);
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.55fr);
  gap:clamp(18px,4vw,40px);
  align-items:end;
}
.company-hero__main,.company-hero__sub{margin:0;overflow:hidden;box-shadow:0 26px 60px rgba(55,45,33,.12)}
.company-hero__main img,.company-hero__sub img,.company-access-visual img,.renovation-finish__media img{display:block;width:100%;height:100%;object-fit:cover}
.company-hero__main{min-height:360px}
.company-hero__sub{align-self:end;margin-left:clamp(-80px,-6vw,-24px);min-height:240px;border:10px solid #f6f3ed}
.company-intro{max-width:900px;margin:0 auto clamp(32px,5vw,56px)}
.company-access-visual{margin:0 0 26px;overflow:hidden;box-shadow:0 18px 42px rgba(55,45,33,.12)}

.renovation-finish{padding:clamp(90px,12vw,150px) 0 0}
.renovation-finish__grid{display:grid;grid-template-columns:minmax(300px,.7fr) minmax(0,1.3fr);gap:clamp(28px,5vw,70px);align-items:center}
.renovation-finish__media{margin:0;overflow:hidden;box-shadow:0 26px 56px rgba(42,36,29,.14)}
.renovation-finish__copy h2{margin:0 0 20px;font-size:clamp(28px,4vw,52px);line-height:1.55;font-weight:400;letter-spacing:.06em}
.renovation-finish__copy p{margin:0;color:var(--sub);line-height:2}

@media (max-width:1023px){
  .work-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .company-hero,.renovation-finish__grid{grid-template-columns:1fr}
  .company-hero__sub{margin-left:auto;width:min(72%,420px)}
}
@media (max-width:767px){
  .work-gallery__grid{grid-template-columns:1fr}
  .work-gallery__item:nth-child(3n+2),.work-gallery__item:nth-child(3n){margin-top:0}
  .has-work-gallery-reveal .work-gallery__item[data-work-reveal="left"]{transform:translate3d(-28px,18px,0)}
  .has-work-gallery-reveal .work-gallery__item[data-work-reveal="right"]{transform:translate3d(28px,18px,0)}
  .company-hero{width:calc(100% - 36px)}
  .company-hero__sub{width:78%;min-height:180px;border-width:8px}
}
@media (prefers-reduced-motion: reduce){
  .has-work-gallery-reveal .work-gallery__item[data-work-reveal]{opacity:1!important;transform:none!important}
}


/* ==========================================================
   v1.7.0 Flow page refinement / Staff representative
   ========================================================== */
.flow-hero__body h1{
  max-width:720px;
  font-size:clamp(27px,3.4vw,48px)!important;
  line-height:1.58!important;
  letter-spacing:.1em;
}
.flow-hero__body>p:last-child{
  max-width:560px;
}
.flow-planning-collage{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(260px,.55fr);
  gap:clamp(24px,5vw,70px);
  align-items:end;
  margin-bottom:clamp(110px,14vw,190px);
}
.flow-planning-collage__main,
.flow-planning-collage__sub{
  margin:0;
  overflow:hidden;
  background:#f3f0e8;
}
.flow-planning-collage__main{
  min-height:420px;
}
.flow-planning-collage__sub{
  width:min(92%,430px);
  min-height:250px;
  margin-left:clamp(-100px,-7vw,-40px);
  margin-bottom:-58px;
  border:12px solid #f3f0e8;
  position:relative;
  z-index:2;
}
.flow-planning-collage__main img,
.flow-planning-collage__sub img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.flow-planning-collage__copy{
  grid-column:1/-1;
  width:min(650px,100%);
  margin:0 0 0 auto;
  padding-top:40px;
}
.flow-planning-collage__copy h2{
  margin:0 0 22px;
  font-size:clamp(24px,3.1vw,40px);
  line-height:1.65;
  letter-spacing:.08em;
  font-weight:400;
}
.flow-planning-collage__copy>p:last-child{
  margin:0;
  color:var(--sub);
  line-height:2.05;
}

.staff-representative{
  display:grid;
  grid-template-columns:minmax(180px,.34fr) minmax(0,1fr);
  gap:clamp(30px,6vw,90px);
  margin-bottom:clamp(60px,8vw,110px);
  padding:clamp(34px,5vw,70px);
  background:
    linear-gradient(135deg,rgba(184,164,134,.15),transparent 62%),
    rgba(255,255,255,.34);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.staff-representative__meta{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:24px;
}
.staff-representative__role{
  margin:0;
  color:#9b876e;
  font:10px var(--sans);
  letter-spacing:.18em;
}
.staff-representative__name{
  margin:0;
  font-size:clamp(28px,4vw,48px);
  line-height:1.4;
  letter-spacing:.08em;
  font-weight:400;
}
.staff-representative__body .staff-card__label:first-child{
  margin-top:0;
}

@media(max-width:767px){
  .flow-hero__body h1{
    font-size:clamp(26px,8vw,36px)!important;
  }
  .flow-planning-collage{
    grid-template-columns:1fr;
    margin-bottom:100px;
  }
  .flow-planning-collage__main{
    min-height:280px;
  }
  .flow-planning-collage__sub{
    width:72%;
    min-height:180px;
    margin:-70px 0 0 auto;
    border-width:8px;
  }
  .flow-planning-collage__copy{
    padding-top:10px;
  }
  .staff-representative{
    grid-template-columns:1fr;
  }
}


/* ==========================================================
   v1.8.0 Flow refinement / Compact quality page
   ========================================================== */
.flow-hero__body h1{
  max-width:680px;
  font-size:clamp(25px,3vw,42px)!important;
  line-height:1.65!important;
  letter-spacing:.1em;
}

/* 写真が重なる部分の縁を白ではなく背景色へ統一 */
.flow-planning-collage__sub,
.company-hero__sub,
.quality-hero__image--sub{
  border-color:#f3f0e8!important;
  background:#f3f0e8!important;
}

.quality-compact-nav{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-bottom:clamp(90px,12vw,160px);
  border-top:1px solid var(--line);
}
.quality-compact-nav a{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-height:76px;
  padding:18px 12px;
  border-bottom:1px solid var(--line);
  color:inherit;
  font-size:clamp(13px,1.2vw,16px);
  line-height:1.55;
}
.quality-compact-nav a:nth-child(3n+2),
.quality-compact-nav a:nth-child(3n){
  border-left:1px solid var(--line);
}
.quality-compact-nav a span{
  color:#9b876e;
  font:9px var(--sans);
  letter-spacing:.16em;
}

.quality-compact{
  padding-bottom:clamp(100px,13vw,180px);
}
.quality-compact-group{
  margin-bottom:clamp(100px,13vw,175px);
  scroll-margin-top:100px;
}
.quality-compact-group__head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:18px;
  margin-bottom:clamp(28px,4vw,52px);
}
.quality-compact-group__head span{
  color:#9b876e;
  font:11px var(--sans);
  letter-spacing:.18em;
}
.quality-compact-group__head p{
  margin:0;
  padding-left:18px;
  border-left:1px solid var(--line);
  color:var(--sub);
  font:10px var(--sans);
  letter-spacing:.18em;
}
.quality-compact-feature{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
  gap:clamp(30px,6vw,90px);
  align-items:center;
  margin-bottom:clamp(42px,6vw,75px);
}
.quality-compact-feature--right .quality-compact-feature__media{
  order:2;
}
.quality-compact-feature__media{
  margin:0;
}
.quality-compact-feature__media img{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}
.quality-compact-feature__media figcaption{
  margin-top:11px;
  color:var(--sub);
  font:10px/1.8 var(--sans);
}
.quality-compact-feature__copy{
  padding:clamp(22px,3vw,44px) 0;
}
.quality-compact-feature__copy h2{
  margin:0 0 24px;
  font-size:clamp(26px,3.6vw,48px);
  line-height:1.55;
  letter-spacing:.07em;
  font-weight:400;
}
.quality-compact-feature__copy p{
  margin:0;
  color:var(--sub);
  font-size:clamp(14px,1.15vw,16px);
  line-height:2.05;
}
.quality-compact-group--no-image .quality-compact-feature{
  display:block;
  width:min(880px,100%);
  padding:clamp(42px,6vw,80px);
  background:
    linear-gradient(135deg,rgba(185,165,135,.14),transparent 60%),
    rgba(255,255,255,.32);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.quality-compact-group--no-image .quality-compact-feature__copy{
  padding:0;
}

.quality-accordion-list{
  border-top:1px solid var(--line);
}
.quality-accordion{
  scroll-margin-top:100px;
  border-bottom:1px solid var(--line);
}
.quality-accordion summary{
  position:relative;
  display:grid;
  grid-template-columns:minmax(110px,.3fr) minmax(0,1fr) 32px;
  gap:18px;
  align-items:center;
  min-height:78px;
  padding:18px 0;
  cursor:pointer;
  list-style:none;
}
.quality-accordion summary::-webkit-details-marker{
  display:none;
}
.quality-accordion__en{
  color:#9b876e;
  font:9px var(--sans);
  letter-spacing:.16em;
}
.quality-accordion summary strong{
  font-size:clamp(15px,1.5vw,19px);
  line-height:1.6;
  font-weight:400;
  letter-spacing:.05em;
}
.quality-accordion__icon{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:1px solid rgba(43,38,33,.24);
  border-radius:50%;
  transition:transform .35s var(--ease);
}
.quality-accordion[open] .quality-accordion__icon{
  transform:rotate(45deg);
}
.quality-accordion__body{
  max-width:820px;
  padding:0 42px 34px calc(30% + 18px);
  color:var(--sub);
  font-size:14px;
  line-height:2;
}
.quality-accordion__body p{
  margin:0 0 1.35em;
}
.quality-accordion__body p:last-child{
  margin-bottom:0;
}

@media(max-width:800px){
  .quality-compact-nav{
    grid-template-columns:1fr;
  }
  .quality-compact-nav a:nth-child(n){
    border-left:0;
  }
  .quality-compact-feature,
  .quality-compact-feature--right{
    grid-template-columns:1fr;
  }
  .quality-compact-feature--right .quality-compact-feature__media{
    order:0;
  }
  .quality-compact-feature__copy h2{
    font-size:clamp(25px,7vw,36px);
  }
  .quality-accordion summary{
    grid-template-columns:1fr 32px;
    gap:8px 14px;
  }
  .quality-accordion__en{
    grid-column:1;
  }
  .quality-accordion summary strong{
    grid-column:1;
  }
  .quality-accordion__icon{
    grid-column:2;
    grid-row:1/3;
  }
  .quality-accordion__body{
    padding:0 0 30px;
  }
}

@media(max-width:767px){
  .flow-hero__body h1{
    font-size:clamp(25px,7.5vw,32px)!important;
  }
}


/* ==========================================================
   v1.8.1 Quality performance without photos
   ========================================================== */
#quality-performance .quality-compact-feature__media,
#quality-performance .quality-detail__media,
#quality-performance img{
  display:none!important;
}
#quality-performance.quality-compact-group--no-image .quality-compact-feature{
  display:block;
}


/* ==========================================================
   v1.8.2 Flow text-only editorial process
   ========================================================== */

/* DESIGN MEETINGは削除済み。工程は写真を使わず文字で構成する。 */
.flow-page .flow-timeline{
  position:relative;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 clamp(42px,7vw,110px);
  max-width:none;
  margin:0;
  padding:0;
}
.flow-page .flow-timeline::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:50%;
  width:1px;
  background:linear-gradient(
    180deg,
    transparent,
    rgba(43,38,33,.18) 8%,
    rgba(43,38,33,.18) 92%,
    transparent
  );
}
.flow-text-step{
  position:relative;
  display:grid;
  grid-template-columns:74px minmax(0,1fr);
  gap:clamp(20px,3vw,38px);
  align-items:start;
  min-height:245px;
  padding:clamp(34px,5vw,62px) 0;
  border-top:1px solid var(--line);
}
.flow-text-step:nth-child(even){
  margin-top:clamp(70px,9vw,125px);
}
.flow-text-step__number{
  color:rgba(155,135,110,.52);
  font:clamp(34px,5vw,70px)/1 var(--serif);
  letter-spacing:-.03em;
}
.flow-text-step__body{
  max-width:470px;
}
.flow-text-step__label{
  margin:3px 0 14px!important;
  color:#9b876e!important;
  font:9px var(--sans)!important;
  letter-spacing:.2em;
}
.flow-text-step__body h3{
  margin:0 0 19px;
  font-size:clamp(22px,2.5vw,34px);
  line-height:1.55;
  letter-spacing:.07em;
  font-weight:400;
}
.flow-text-step__body>p:last-child{
  margin:0;
  color:var(--sub);
  font-size:clamp(13px,1.05vw,15px);
  line-height:2.05;
}
.flow-text-step::after{
  content:"";
  position:absolute;
  top:-1px;
  left:0;
  width:54px;
  height:1px;
  background:#9b876e;
}
.flow-text-step--right{
  padding-left:clamp(10px,2vw,28px);
}
.flow-text-step--left{
  padding-right:clamp(10px,2vw,28px);
}

/* Flowページの全要素へ方向付きアニメーション */
.flow-page [data-flow-reveal]{
  opacity:1;
  transform:none;
  filter:none;
}
.flow-page.is-js [data-flow-reveal]{
  opacity:0;
  filter:blur(2px);
  transition:
    opacity .95s cubic-bezier(.19,1,.22,1),
    transform .95s cubic-bezier(.19,1,.22,1),
    filter .95s cubic-bezier(.19,1,.22,1);
}
.flow-page.is-js [data-flow-reveal="left"]{
  transform:translate3d(-48px,18px,0);
}
.flow-page.is-js [data-flow-reveal="right"]{
  transform:translate3d(48px,18px,0);
}
.flow-page.is-js [data-flow-reveal="up"],
.flow-page.is-js [data-flow-reveal]:not([data-flow-reveal="left"]):not([data-flow-reveal="right"]){
  transform:translate3d(0,36px,0);
}
.flow-page.is-js [data-flow-reveal].is-inview{
  opacity:1;
  transform:translate3d(0,0,0);
  filter:blur(0);
}

@media(max-width:820px){
  .flow-page .flow-timeline{
    grid-template-columns:1fr;
    gap:0;
  }
  .flow-page .flow-timeline::before{
    display:none;
  }
  .flow-text-step,
  .flow-text-step:nth-child(even){
    margin-top:0;
    min-height:0;
    padding:38px 0 46px;
  }
  .flow-text-step{
    grid-template-columns:54px minmax(0,1fr);
  }
  .flow-text-step--right,
  .flow-text-step--left{
    padding-left:0;
    padding-right:0;
  }
  .flow-text-step__number{
    font-size:36px;
  }
}

@media(max-width:520px){
  .flow-text-step{
    grid-template-columns:1fr;
    gap:14px;
  }
  .flow-text-step__number{
    font-size:27px;
  }
  .flow-page.is-js [data-flow-reveal="left"]{
    transform:translate3d(-28px,15px,0);
  }
  .flow-page.is-js [data-flow-reveal="right"]{
    transform:translate3d(28px,15px,0);
  }
}


/* ==========================================================
   v1.9.1 Quality fullscreen hero / Staff representative photo
   ========================================================== */
.quality-page .quality-hero--fullscreen{
  position:relative;
  width:100vw;
  min-height:100svh;
  margin-left:calc(50% - 50vw);
  padding:0;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  color:#fff;
}
.quality-hero__fullscreen-media,
.quality-hero__fullscreen-shade{
  position:absolute;
  inset:0;
}
.quality-hero__fullscreen-media{
  margin:0;
}
.quality-hero__fullscreen-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.quality-hero__fullscreen-shade{
  background:
    linear-gradient(180deg,rgba(18,16,14,.05) 30%,rgba(18,16,14,.66) 100%),
    linear-gradient(90deg,rgba(18,16,14,.28),transparent 62%);
}
.quality-hero__fullscreen-copy{
  position:relative;
  z-index:2;
  width:min(760px,calc(100% - clamp(40px,9vw,150px)));
  margin:0 0 clamp(48px,8vw,105px) clamp(20px,5vw,80px);
}
.quality-hero__fullscreen-copy .eyebrow{
  color:rgba(255,255,255,.68);
}
.quality-hero__fullscreen-copy h1{
  margin:0 0 16px;
  font-size:clamp(27px,3.4vw,46px);
  line-height:1.45;
  letter-spacing:.1em;
  font-weight:400;
}
.quality-hero__fullscreen-copy>p:last-child{
  margin:0;
  max-width:510px;
  color:rgba(255,255,255,.82);
  font-size:clamp(12px,1.05vw,15px);
  line-height:1.95;
}

.quality-closing__visuals{
  position:relative;
  min-height:680px;
  overflow:hidden;
  background:#2c2823;
}
.quality-closing__visuals .quality-closing__image--main{
  position:absolute;
  inset:0 14% 0 0;
  min-height:0;
}
.quality-closing__visuals .quality-closing__image--sub{
  position:absolute;
  right:0;
  bottom:9%;
  width:38%;
  aspect-ratio:4/5;
  min-height:0;
  border:12px solid #2c2823;
  background:#2c2823;
  box-shadow:0 24px 60px rgba(0,0,0,.18);
}
.quality-closing__visuals .quality-closing__image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.staff-representative{
  grid-template-columns:minmax(230px,.64fr) minmax(150px,.34fr) minmax(0,1fr);
  align-items:center;
}
.staff-representative__photo{
  margin:0;
  overflow:hidden;
  aspect-ratio:4/5;
  background:#dfd8cd;
  box-shadow:0 24px 60px rgba(53,44,34,.14);
}
.staff-representative__photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}

@media(max-width:1023px){
  .staff-representative{
    grid-template-columns:minmax(210px,.55fr) minmax(0,1fr);
  }
  .staff-representative__photo{
    grid-row:1/3;
  }
}

@media(max-width:767px){
  .quality-page .quality-hero--fullscreen{
    min-height:100svh;
  }
  .quality-hero__fullscreen-media img{
    object-position:center;
  }
  .quality-hero__fullscreen-copy{
    width:calc(100% - 36px);
    margin:0 18px calc(52px + env(safe-area-inset-bottom));
  }
  .quality-hero__fullscreen-copy h1{
    font-size:clamp(25px,8vw,34px);
  }
  .quality-closing__visuals{
    min-height:500px;
  }
  .quality-closing__visuals .quality-closing__image--main{
    inset:0 8% 54px 0;
  }
  .quality-closing__visuals .quality-closing__image--sub{
    right:0;
    bottom:0;
    width:46%;
    border-width:8px;
  }
  .staff-representative{
    grid-template-columns:1fr;
  }
  .staff-representative__photo{
    grid-row:auto;
    width:min(100%,380px);
    margin-inline:auto;
  }
}
