@charset "utf-8";
/* 部署詳細ページ専用スタイル */

/* ===== Department Hero ===== */

.dept-hero {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 350px;
  max-height: 500px;
  overflow: hidden;
  margin-top: var(--header-height);
}

.dept-hero__img {
  position: absolute;
  inset: 0;
}

.dept-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dept-hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 5%;
  background: linear-gradient(transparent, rgba(26, 10, 36, 0.85));
  color: #fff;
}

.dept-hero__label {
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin: 0 0 8px;
}

.dept-hero__title {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px;
}

.dept-hero__subtitle {
  font-size: 1rem;
  opacity: 0.8;
}


@media screen and (max-width: 768px) {
  .dept-hero {
    height: 45vh;
    min-height: 280px;
  }
}

@media screen and (max-width: 550px) {
  .dept-hero {
    height: 40vh;
    min-height: 250px;
  }
  .dept-hero__overlay {
    padding: 25px 5%;
  }
}

/* ===== Breadcrumb ===== */

.breadcrumb {
  position: relative;
  padding: 15px 5%;
  font-size: 0.8rem;
  background: var(--color-bg-tint);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before {
  content: ">";
  margin: 0 8px;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ===== Section Heading ===== */

.dept-section-heading {
  text-transform: uppercase;
  font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.5rem);
  text-align: center;
  margin: 0 0 clamp(50px, 5vw + 20px, 80px);
}

.dept-section-heading span.bgLRextend::before {
  background: var(--color-text);
}

/* ===== Department Intro ===== */

.dept-intro {
  margin: 0 0 120px;
}

.dept-intro__content {
  max-width: 750px;
  margin: 0 auto;
}

.dept-intro__text {
  text-align: center;
  line-height: 2.2;
  font-size: 1rem;
}

@media screen and (max-width: 768px) {
  .dept-intro {
    margin: 0 0 80px;
  }
}

/* ===== Interview Section ===== */

.dept-interview {
  margin: 0 0 120px;
}

.interview-profile {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 30px;
  background: var(--color-bg-tint);
}

.interview-profile__photo {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

.interview-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.interview-profile__dept {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 5px;
}

.interview-profile__name {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.interview-profile__joined {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  padding: 2px 10px;
}

@media screen and (max-width: 590px) {
  .interview-profile {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px;
  }
  .interview-profile__photo {
    width: 140px;
    height: 140px;
  }
}

/* Interview Q&A */

.interview-qa {
  max-width: 800px;
  margin: 0 auto;
}

.interview-qa__item {
  margin: 0 0 50px;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--color-border-light);
}

.interview-qa__item:last-child {
  border-bottom: none;
}

.interview-qa__q {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.interview-qa__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
}

.interview-qa__a {
  line-height: 2;
  padding-left: 42px;
}

/* Q&A内の写真 */
.interview-qa__media {
  margin: 20px 0 0 42px;
  max-width: 400px;
}

.interview-qa__media img {
  display: block;
  width: 100%;
  border-radius: 4px;
}

.interview-qa__media figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted, #888);
}

@media screen and (max-width: 768px) {
  .interview-qa__a {
    padding-left: 25px;
  }
  .interview-qa__media {
    margin-left: 25px;
  }
}

@media screen and (max-width: 590px) {
  .interview-qa__a {
    padding-left: 0;
    margin-top: 10px;
  }
  .interview-qa__item {
    margin: 0 0 30px;
    padding: 0 0 25px;
  }
  .interview-qa__media {
    margin-left: 0;
    max-width: 100%;
  }
}

/* ===== Vehicles (車種紹介) ===== */

.dept-vehicles {
  margin: 0 0 120px;
}

.dept-vehicles__lead {
  max-width: 720px;
  margin: 0 auto 45px;
  text-align: center;
  line-height: 2;
  color: var(--color-text);
}

.dept-vehicles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.dept-vehicles__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dept-vehicles__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.dept-vehicles__card-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.dept-vehicles__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dept-vehicles__card:hover .dept-vehicles__card-img img {
  transform: scale(1.05);
}

.dept-vehicles__card-body {
  padding: 22px 20px 26px;
}

.dept-vehicles__card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
}

.dept-vehicles__card-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin: 0;
}

@media screen and (max-width: 550px) {
  .dept-vehicles {
    margin: 0 0 80px;
  }
  .dept-vehicles__grid {
    max-width: 360px;
  }
}

/* ===== Timeline (Daily Schedule) ===== */

.dept-schedule {
  margin: 0 0 120px;
  position: relative;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-border-light));
}

.timeline__item {
  position: relative;
  padding: 0 0 40px 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(107, 29, 142, 0.2);
}

.timeline__time {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 5px;
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 5px;
}

.timeline__content p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

@media screen and (max-width: 550px) {
  .timeline {
    padding-left: 20px;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline__item {
    padding-left: 30px;
  }
  .timeline__item::before {
    left: -17px;
    width: 10px;
    height: 10px;
  }
}

@media screen and (max-width: 768px) {
  .dept-schedule {
    margin: 0 0 80px;
  }
}

/* ===== Work List Section ===== */

.dept-work-list {
  margin: 0 0 120px;
}

.work-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.work-list__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.work-list__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.work-list__img {
  overflow: hidden;
  margin: 0;
}

.work-list__img img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-list__card:hover .work-list__img img {
  transform: scale(1.05);
}

.work-list__body {
  padding: 18px 20px;
}

.work-list__num {
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin: 0 0 6px;
}

.work-list__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.work-list__desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin: 0;
}

@media screen and (max-width: 768px) {
  .dept-work-list {
    margin: 0 0 80px;
  }
}

@media screen and (max-width: 590px) {
  .work-list__grid {
    max-width: 400px;
  }
}

/* ===== Department FAQ ===== */

.dept-faq {
  margin: 0 0 120px;
}

.dept-faq .accordion-area {
  max-width: 800px;
  margin: 0 auto;
}

.dept-faq .box p {
  line-height: 2;
  padding: 0 20px 10px;
}

@media screen and (max-width: 768px) {
  .dept-faq {
    margin: 0 0 80px;
  }
}

/* ===== Other Departments ===== */

.dept-other {
  margin: 0 0 100px;
  text-align: center;
}

.dept-other__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.dept-other__card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: var(--color-text);
}

.dept-other__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.dept-other__card-img {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.dept-other__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dept-other__card:hover .dept-other__card-img img {
  transform: scale(1.05);
}

.dept-other__card-body {
  padding: 20px 15px;
}

.dept-other__card-name {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 5px;
}

.dept-other__card-link {
  font-size: 0.8rem;
  color: var(--color-primary);
}

@media screen and (max-width: 550px) {
  .dept-other__grid {
    max-width: 350px;
  }
}

/* ===== CTA Section ===== */

.dept-cta {
  margin: 0 0 80px;
  text-align: center;
}

.dept-cta__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 30px;
  background: linear-gradient(135deg, var(--color-dark-bg), #2d1040);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dept-cta__inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(107, 29, 142, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.dept-cta__heading {
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem);
  margin: 0 0 15px;
  position: relative;
}

.dept-cta__text {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0 0 30px;
  line-height: 1.8;
  position: relative;
}

.dept-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  position: relative;
}

.dept-cta__btn {
  display: inline-block;
  padding: 14px 35px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.dept-cta__btn--primary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid #fff;
}

.dept-cta__btn--primary:hover {
  background: transparent;
  color: #fff;
}

.dept-cta__btn--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.dept-cta__btn--secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 550px) {
  .dept-cta__inner {
    padding: 40px 20px;
  }
  .dept-cta__buttons {
    flex-direction: column;
    align-items: center;
  }
  .dept-cta__btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* ===== Department page overrides ===== */

/* Prevent splash curtain & wrapper fade on department pages */
body.dept-page .splashbg {
  display: none;
}

.dept-page #wrapper {
  opacity: 1;
}

body.appear.dept-page #wrapper {
  animation: none;
  opacity: 1;
}

.dept-page #main-area {
  padding-top: 20px;
}

/* ===== Reusable Media Components (interview / schedule photos) ===== */
/* どの部署ページでも流用可。全画像 object-fit:cover・4px角丸・現行のホバー演出に統一 */

/* 大判フィーチャー画像（部署紹介の下などに敷く横長ビジュアル） */
.dept-feature {
  max-width: 960px;
  margin: 50px auto 0;
  text-align: center;
}

.dept-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

.dept-feature figcaption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

/* インタビュー冒頭の引用付き大判（quote-on-image） */
.interview-feature {
  position: relative;
  max-width: 900px;
  margin: 0 auto 60px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.interview-feature img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.interview-feature__quote {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 45px);
  background: linear-gradient(transparent 35%, rgba(26, 10, 36, 0.85));
  color: #fff;
}

.interview-feature__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.1rem, 0.85rem + 1.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.interview-feature__cite {
  display: block;
  margin-top: 14px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* 働く様子ギャラリー（2〜3枚グリッド・ホバーでキャプション表示） */
.interview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  max-width: 820px;
  margin: 0 auto 55px;
}

.interview-gallery figure {
  position: relative;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
}

.interview-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.interview-gallery figure:hover img {
  transform: scale(1.05);
}

.interview-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 8px;
  background: linear-gradient(transparent, rgba(26, 10, 36, 0.78));
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.interview-gallery figure:hover figcaption,
.interview-gallery figure:focus-within figcaption {
  opacity: 1;
}

/* Q&Aの間に挟む単写真 */
.interview-figure {
  max-width: 560px;
  margin: 0 auto 50px;
}

.interview-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

.interview-figure figcaption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 10px;
  text-align: center;
}

/* 一日の流れ：各ステップのサムネ写真 */
.timeline__media {
  margin: 14px 0 0;
  max-width: 280px;
  border-radius: 4px;
  overflow: hidden;
}

.timeline__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.timeline__media:hover img {
  transform: scale(1.05);
}

/* シャワー室など縦長の写真は全体を枠内に収める */
.timeline__media--portrait {
  max-width: 240px;
}

.timeline__media--portrait img {
  aspect-ratio: auto;
  height: auto;
}

.timeline__media figcaption {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  background: #f5f5f5;
}

/* 2枚横並びのサムネ写真 */
.timeline__media--double {
  display: flex;
  gap: 10px;
  max-width: 570px;
  border-radius: 0;
  overflow: visible;
}

.timeline__media--double img {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 4px;
}

.timeline__media--double:hover img {
  transform: none;
}

@media screen and (max-width: 590px) {
  .interview-feature {
    margin-bottom: 40px;
  }
  .interview-gallery {
    max-width: 380px;
    gap: 12px;
  }
  .timeline__media {
    max-width: 100%;
  }
}
