/* HIYORI TOP — 募集中の旅 (tours open now, from microCMS via hiyori-tours.js).
   Paper, like WHY OJIYA; set like a travel magazine page: tall photographs carry the section, a vertical status label
   sits in the photograph's top-right corner, and a few quiet lines follow beneath. Two columns on PC, one on phones. */
.trs{container-type:inline-size;container-name:trs}
.trs[hidden]{display:none}
/* WHY OJIYA, next, rises over this section's foot by the same early rise it makes over KATAKAI (its own margin-top);
   the foot is made that much deeper, so the cards end the same distance above WHY at every window size */
.trs-stage{--trs-why-rise:calc(0.35 * max(0px, min(100vh, 920px) / 2 - 78px));
  max-width:1200px;margin:0 auto;box-sizing:border-box;padding:160px 48px calc(40px + var(--trs-why-rise))}
.trs-label{font-size:12px;letter-spacing:.38em;line-height:1;color:rgba(26,29,32,.5)}
.trs-h2{margin:8px 0 0;font-size:32px;font-weight:500;line-height:1.75;letter-spacing:.14em;color:#1a1d20}
.trs-list{margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:72px;row-gap:120px;align-items:start}
.trs-list:has(>.trs-card:only-child){grid-template-columns:minmax(0,520px)}
.trs-card{min-width:0}
/* the photograph: one portrait shape (4:5) for every tour; on a link it swells slowly inside its frame under the mouse */
.trs-ph{display:block;position:relative;overflow:hidden;aspect-ratio:4 / 5;background:#d9d5cc}
.trs-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transform:scale(1);transition:transform 1.8s cubic-bezier(.22,.61,.36,1)}
@media (hover:hover) and (pointer:fine){a.trs-ph:hover img{transform:scale(1.04)}}
a.trs-ph:focus-visible{outline:1px solid #1a1d20;outline-offset:6px}
/* the status, set vertically on a slip of the section's paper in the top-right corner */
.trs-tag{position:absolute;top:0;right:0;z-index:1;writing-mode:vertical-rl;text-orientation:mixed;background:#f1efea;
  padding:16px 12px 18px;font-size:13px;line-height:1;letter-spacing:.24em;color:#1a1d20;white-space:nowrap}
.trs-card[data-status="満席"] .trs-tag,.trs-card[data-status="募集終了"] .trs-tag,.trs-card[data-status="企画中"] .trs-tag{color:rgba(26,29,32,.55)}
/* beneath: name, date, words, price — and, when it can be applied for, the way to write */
.trs-body{padding-top:26px}
.trs-title{margin:0;font-size:20px;font-weight:500;line-height:1.7;letter-spacing:.05em;color:#1a1d20;font-feature-settings:"palt" 1}
.trs-date{margin:8px 0 0;font-size:13px;line-height:1.9;letter-spacing:.1em;color:rgba(26,29,32,.72);white-space:pre-line}
.trs-desc{margin:14px 0 0;font-size:13.5px;line-height:2.05;letter-spacing:.06em;color:rgba(26,29,32,.72);white-space:pre-line;word-break:auto-phrase;text-wrap:pretty}
.trs-price{margin:14px 0 0;font-size:12.5px;line-height:1.8;letter-spacing:.12em;color:rgba(26,29,32,.62)}
.trs-cta{display:inline-flex;align-items:center;gap:20px;margin-top:20px;font-size:13.5px;line-height:1.6;letter-spacing:.1em;color:#1a1d20}
.trs .trs-cta-line{display:block;flex:none;width:48px;height:1px;background:currentColor;opacity:.7;transition:width .4s ease-out}
.trs a.trs-cta:hover .trs-cta-line,.trs a.trs-cta:focus-visible .trs-cta-line{width:88px}
@media (hover:none){.trs .trs-cta-line,.trs a.trs-cta:hover .trs-cta-line{width:48px;transition:none}}
/* entrance: the heading, then the cards one after another — the same quiet rise as the sections around it */
[data-js].trs .trs-head{opacity:0;transition:opacity 1.6s ease}
[data-js].trs .trs-card{opacity:0;transform:translate3d(0,16px,0);transition:opacity 1.6s ease .5s,transform 2s cubic-bezier(.16,.6,.2,1) .5s}
[data-js].trs .trs-card:nth-child(2n){transition-delay:.8s}
[data-js].trs.on .trs-head,[data-js].trs.on .trs-card{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  [data-js].trs .trs-head,[data-js].trs .trs-card{opacity:1;transform:none;transition:none}
  .trs-ph img,.trs .trs-cta-line{transition:none}
  a.trs-ph:hover img{transform:none}
}
/* phones: one column; the photograph keeps its 4:5 shape across the screen */
@container trs (max-width:767px){
  .trs-stage{padding:104px 24px calc(16px + var(--trs-why-rise))}
  .trs-h2{margin-top:7px;font-size:26px}
  .trs-list,.trs-list:has(>.trs-card:only-child){margin-top:13px;grid-template-columns:minmax(0,1fr);row-gap:80px}
  .trs-tag{padding:13px 10px 15px;font-size:12px}
  .trs-body{padding-top:22px}
  .trs-title{font-size:18px;letter-spacing:.04em}
  [data-js].trs .trs-card:nth-child(2n){transition-delay:.5s}
}
/* English: the type of the English TOP (Cormorant Garamond headings, EB Garamond text); the label turns on its side in small capitals */
.ab.en .trs-h2{font-family:'Cormorant Garamond',Georgia,serif;font-size:44px;font-weight:400;line-height:1.2;letter-spacing:0}
.ab.en .trs-tag{font-family:'Cormorant Garamond',Georgia,serif;font-size:12px;letter-spacing:.22em;text-transform:uppercase;padding:14px 10px 16px}
.ab.en .trs-title{font-family:'Cormorant Garamond',Georgia,serif;font-size:27px;font-weight:500;line-height:1.25;letter-spacing:.005em}
.ab.en .trs-date{margin-top:6px;font-size:14.5px;letter-spacing:.02em}
.ab.en .trs-desc{font-size:15.5px;line-height:1.8;letter-spacing:0}
.ab.en .trs-price{font-size:14px;letter-spacing:.02em}
.ab.en .trs-cta{font-size:15px;letter-spacing:.08em}
/* the English heading sits on a tight line with descenders, so its list starts a little lower to keep the same visible gap */
.ab.en .trs-h2{margin-top:10px}
.ab.en .trs-list{margin-top:30px}
@container trs (max-width:767px){
  .ab.en .trs-h2{font-size:36px}
  .ab.en .trs-h2{margin-top:9px}
  .ab.en .trs-list{margin-top:21px}
  .ab.en .trs-title{font-size:24px}
}
