@charset "utf-8";

/* =========================================================
   SUGAKICO RECRUIT - インタビュー（先輩社員の声）固有スタイル
   - 一覧: キービジュアル / 絞り込み検索 / カード / もっと見る
   - 詳細: キービジュアル / Q&Aセクション / 一覧に戻る
   ========================================================= */

/* ===========================================================
   一覧：キービジュアル + 絞り込み検索
   - 店舗写真を背景に敷き、暗いオーバーレイの上に各要素を載せる
   =========================================================== */
.interview-mv {
  position: relative;
  background: #2a2a2a;
  color: #fff;
  overflow: hidden;
  padding-top: 55px;
}
/* 背景画像（bg_interview.jpg）。元画像が暗めなので軽い暗オーバーレイのみ重ねる */
.interview-mv::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(20, 20, 20, .2), rgba(20, 20, 20, .3)),
    url(../imgs/interview/common/bg_interview.jpg) center / cover no-repeat;
  z-index: 0;
}
.interview-mv > * { position: relative; z-index: 1; }

/* ページヘッダー（タイトル＋パンくず）は共通化（css/common.css の .page-hdr）。
   HTMLは .page-hdr / .page-hdr__title / .page-hdr__breadcrumb を使用。 */


/* 絞り込み検索パネル */
.interview-filter {
  padding-bottom: 56px;
}
.interview-filter__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 8px 0 40px;
}
.interview-filter__head::before,
.interview-filter__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.4);
}
.interview-filter__head h2 {
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

/* すべて / クリア の行 */
.filter-toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.filter-all {
  min-width: 200px;
  padding: 7px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: #ff5c33;
  background: transparent;
  border: 1px solid var(--orange);
  border-radius: 2px;
  transition: background .2s, border-color .2s, color .2s;
}
/* 「すべて」はオレンジ基調（条件ボタンの白と差別化）。off=0% / hover=40%オレンジ / on=100%オレンジ。
   on（クリックで .is-on 付与）はホバーしても 100% のまま。hover はタップ張り付き防止のため hover 可能デバイス限定 */
@media (hover: hover) {
  .filter-all:not(.is-on):hover {
    background: rgba(232, 81, 43, .4);     /* hover：40% オレンジ（--orange #E8512B） */
    color: #fff;
    border-color: var(--orange);
  }
}
.filter-all.is-on {
  background: var(--orange);               /* on：100% オレンジ */
  color: #fff;
  border-color: var(--orange);
}
.filter-clear {
  min-width: 160px;
  padding: 7px 24px;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 2px;
  transition: background .2s;
}
.filter-clear:hover { background: rgba(255,255,255,.12); }

/* 絞り込みグループ */
.filter-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
}
.filter-group.full { grid-column: 1 / -1; }
.filter-group__label {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}
.filter-group__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.filter-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 16px 4px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,0);          /* off：塗りなし（0%） */
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 2px;
  transition: background .2s, color .2s, border-color .2s;
}
/* ※旧 .filter-btn.is-active（見た目専用）は廃止。選択状態は .filter-checkbox:checked で管理する */
/* :hover はマウス等ホバー可能デバイスのみに限定。
   スマホでは :hover が張り付き（sticky hover）、再タップしても選択解除が見た目に反映されない問題を防ぐ。
   ※off（未選択）のホバーのみ 40%。on（選択中）はホバーしても 100% のまま＝マウスが乗っていても on/off を判別できる */
@media (hover: hover) {
  .filter-checkbox:not(:checked) + .filter-btn:hover {
    background: rgba(255,255,255,.4);       /* hover：40% */
    color: #fff;
    border-color: #fff;
  }
}
/* チェックボックス本体は非表示、ラベルでボタンを操作（旧：index.php のインライン<style>から移植） */
.filter-checkbox { display: none; }
.filter-label { cursor: pointer; display: flex; flex: 1 1 auto; }
.filter-checkbox:checked + .filter-btn {
  background: rgba(255,255,255,1);          /* on：100% */
  color: var(--text);
  border-color: #fff;
}

@media (max-width: 768px) {
  /* 絞り込み検索（SP）。filterの基本スタイルはこの上にあるため正しく上書きされる */
  /* すべて／クリアは横並びのまま（flex-direction: column を解除） */
  .filter-toprow { gap: 12px; }
  .filter-all, .filter-clear { width: 50%; min-width: 140px; padding: 8px 10px; font-size: 16px; }
  .filter-btn { font-size: 14px; }
  .filter-groups { grid-template-columns: 1fr; gap: 20px; }
}

/* ===========================================================
   一覧：カードグリッド
   =========================================================== */
.interview-list-sec {
  padding: 150px 0;
}
/* TOPの先輩インタビュー（.iv-card）と同一デザイン。
   ※CMSが出力するクラス名（.interview-card*）は変更せず、スタイルのみTOPに合わせる */
.interview-cards {
  display: grid;
  grid-template-columns: repeat(3, 316px);
  gap: 48px 32px;
  justify-content: center;
}
.interview-card {
  display: block;
  text-align: left;
  transition: transform .2s;
}
/* 上にずれる演出はホバー可能デバイス（PC等）のみ。SP等タッチ端末ではタップ時に張り付く（sticky hover）ため無効化 */
@media (hover: hover) {
  .interview-card:hover { transform: translateY(-4px); }
}
.interview-card__thumb {
  position: relative;
  width: 316px;
  height: 421px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
  background: #eee;
}
.interview-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.interview-card__thumb .ph { width: 100%; height: 100%; }
.interview-card__cat {
  display: block;
  background: #E34529;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-top: 16px;
}
.interview-card__copy {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.6;
  min-height: 54px;
  color: var(--text);
  margin: 16px 4px 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--text);
}
.interview-card__copy .em { color: inherit; }
.interview-card__meta {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.interview-card__meta .name {
  font-size: 18px;
  font-weight: 500;
  margin-left: 6px;
}
@media (max-width: 1024px) {
  .interview-cards { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; justify-content: stretch; }
  .interview-card__thumb { width: 100%; height: auto; aspect-ratio: 316 / 421; }
}
/* インタビューカード（SP）。カードの基本スタイルより後ろに置くことで確実に上書きする */
@media (max-width: 768px) {
  .interview-card__cat { font-size: 12px; }
  .interview-card__copy { margin: 12px 2px 0; padding-bottom: 10px; font-size: 14px; min-height: 79px; }
  /* SP：キャッチが長いカード（JSで .is-long を付与）だけ手動改行(<br>)を解除して自然に折り返す。
     短いキャッチは手動改行を維持する */
  .interview-card__copy.is-long br { display: none; }
  .interview-card__meta { font-size: 12px; }
  .interview-card__meta .name { font-size: 16px; }
}
@media (max-width: 560px) {
  .interview-cards { gap: 28px 16px; }
  .interview-list-sec { padding: 40px 0 24px; }
}

/* もっと見る（一覧ページ本来のデザイン＝全幅・右側の下向きキャレット） */
.more-wrap {
  padding: 100px 0 0;
}
.more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .12em;
  transition: opacity .2s;
}
.more-btn:hover { opacity: .88; }
.more-btn .caret {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-3px);
}
@media (max-width: 768px) {
  .more-wrap { padding: 60px 0 30px; text-align: center; }
  .more-btn { width: 80%; font-size: 20px; }
}

/* ===========================================================
   詳細：全体背景（白＋薄グレーのドット柄。タイトルヘッダーは白背景で覆われドット無し）
   =========================================================== */
#interview-detail {
  background-color: #fff;
  background-image: radial-gradient(#f5f5f5 20%, transparent 20%);
  background-size: 24px 24px;
  overflow-x: hidden; /* 2つ目写真の 100vw フルブリードで横スクロールを出さない */
}

/* ===========================================================
   詳細：キービジュアル（オレンジ＋ #de6049 のドット柄）
   =========================================================== */
.detail-hero {
  position: relative;
  background-color: var(--orange);
  background-image: radial-gradient(#de6049 20%, transparent 20%);
  background-size: 24px 24px;
  color: #fff;
  overflow: hidden;
}
/* 背景装飾（dec_interview_main.png）。人物の背面・右上に配置 */
.detail-hero::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 0;
  width: min(646px, 52%);
  aspect-ratio: 646 / 342;
  background: url("../imgs/interview/common/dec_interview_main.png") right top / contain no-repeat;
  pointer-events: none;
  z-index: 0;
}
.detail-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 0;
}
.detail-hero__body {
  padding: 12px 0;
}
.detail-hero__head {
  display: flex;
  align-items: baseline;
  gap: 35px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.detail-hero__head .year {
  font-size: 18px;
  font-weight: 500;
}
.detail-hero__head .name {
  font-size: 32px;
  font-weight: 500;
}
.detail-hero__cat {
  display: inline-block;
  background: var(--black);
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  width: 400px;
  max-width: 100%;
  height: 48px;
  line-height: 46px;
  text-align: center;
  margin-bottom: 14px;
}
.detail-hero__role {
  font-size: 14px;
  font-weight: 500;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.5);
  margin-bottom: 28px;
}
.detail-hero__title {
  margin-bottom: 22px;
}
.detail-hero__title img {
  display: block;
  width: min(400px, 80%);
  height: auto;
}
.detail-hero__sub span {
  display: inline;
  background: #fff;
  color: var(--red);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.8;
  padding: 2px 15px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.detail-hero__photo { align-self: end; } /* 人物を下揃え（立ち姿）に */
.detail-hero__photo .ph { width: 100%; aspect-ratio: 4/5; }
.detail-hero__photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
}
@media (max-width: 880px) {
  .detail-hero::before { width: 72%; top: 38%; }
  .detail-hero .container { grid-template-columns: 1fr; padding: 32px 0 0; }
  .detail-hero__body { padding: 12px 0 5px 15px; }
  /* SP：パンくずと同様、名前が長い場合のみ項目をまるごと折り返す（「2025年入社」は割らない） */
  .detail-hero__head { gap: 6px 25px; flex-wrap: wrap; }
  .detail-hero__head .year { white-space: nowrap; }
  .detail-hero__head .name { font-size: 26px; }
  .detail-hero__cat { width: 100%; max-width: 320px; height: 44px; line-height: 42px; font-size: 22px; }
  .detail-hero__title img { width: min(300px, 70%); }
  .detail-hero__sub span { font-size: 20px; }
}

/* ===========================================================
   詳細：Q&A セクション（交互レイアウト）
   =========================================================== */
.qa-sec { padding: 120px 0 0; }
.qa-block {
  align-items: center;
  margin-bottom: 96px;
}
.qa-block.has-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
/* 偶数ブロックは画像を左に */
.qa-block.is-reverse .qa-block__text { order: 2; }
.qa-block.is-reverse .qa-block__img { order: 1; }

.qa-block__num {
  display: block;
  align-items: center;
  margin-bottom: 20px;
}
.qa-block__num .no {
  display: block;
  font-family: var(--font-en);
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.qa-block__num .q {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 8px 6px 12px;
}
.qa-block__heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 18px;
}
.qa-block__heading .em,
.qa-block__body .em { color: var(--orange); }
.qa-block__body {
  line-height: 2.1;
  font-weight: 500;
  color: var(--text);
  max-width: 500px;
}
.qa-block__img {
  position: relative;
  isolation: isolate; /* 独立した重なり階層を作り、背面装飾(::before/::after)が背景に隠れないようにする */
  max-width: 430px;   /* 1・3枚目：親要素を430pxに（装飾を写真端に揃える）。2枚目は下で解除 */
}
/* 1つ目・3つ目の写真（縦長 430:570） */
.qa-block__img .ph,
.qa-block__img img {
  width: 100%;
  aspect-ratio: 430 / 570;
  object-fit: cover;
  display: block;
}
/* 2つ目の写真（横長 668:570・左端いっぱいまでフルブリード） */
.qa-block.is-reverse.has-image {
  box-sizing: border-box;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-right: calc(50vw - 50%);
}
.qa-block.is-reverse .qa-block__img { max-width: none; } /* フルブリードのため上限解除 */
.qa-block.is-reverse .qa-block__img .ph,
.qa-block.is-reverse .qa-block__img img {
  aspect-ratio: 668 / 570;
}

/* 写真装飾：左上=赤ドット柄(97×134/前面)／右下=赤い長方形(170×220/背面・10pxずらしのL字アクセント) */
.qa-block__img::before {
  content: "";
  position: absolute;
  top: -32px;
  left: -22px;
  width: 97px;
  height: 134px;
  background-image: radial-gradient(#E34529 26%, transparent 26%);
  background-size: 11px 11px;
  z-index: -1;
  pointer-events: none;
}
.qa-block__img::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 170px;
  height: 220px;
  background: #E34529;
  z-index: -1;
  pointer-events: none;
}
/* 2つ目はドット柄を右上に */
.qa-block.is-reverse .qa-block__img::before { left: auto; right: -22px; }

@media (max-width: 880px) {
  .qa-sec { padding: 60px 0 0; }
  .qa-block { margin-bottom: 56px; }
  /* SP：写真付きブロックを1カラムに（specificityを合わせて確実に上書き） */
  .qa-block.has-image { grid-template-columns: 1fr; gap: 24px; }
  /* SP：is-reverse もテキスト→画像の順に */
  .qa-block.is-reverse .qa-block__text { order: 0; }
  .qa-block.is-reverse .qa-block__img { order: 1; }
  /* フルブリード解除（1カラム時） */
  .qa-block.is-reverse.has-image { width: auto; margin-left: 0; padding-right: 0; }
  .qa-block__heading { font-size: 24px; }
  .qa-block__img::before { width: 70px; height: 96px; }
  .qa-block__img::after { width: 110px; height: 150px; }
}

/* 一覧に戻る */
.detail-back {
  padding: 50px 0 150px;
  background: #fff;
  text-align: center;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  padding: 13px 40px 13px 60px;
  background: var(--black);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  border-radius: 999px;
  transition: opacity .2s;
}
.back-btn:hover { opacity: .88; }
.back-btn .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  flex-shrink: 0;
}
.back-btn .ico::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
  transform: translateX(1px) rotate(45deg);
}
