/* =========================================================
   宝歯会グループ 働き方について
   ========================================================= */

:root {
  --color-orange: #f09502;
  --color-text: #4c4c4c;
  --color-text-sub: #826c49;
  --color-body: #4c4c4c;
  --color-white: #ffffff;

  --font-round: "Zen Maru Gothic", "Noto Sans JP", sans-serif;

  --container-width: 1000px;
  --header-height: 80px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-weight: 500;
  font-family: var(--font-round);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding-left: 0em; margin-bottom: 0rem; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: block; }
.pc-only { display: none; }

.background{
  background-image: url(../img/recruit/worklife-bg.png);
  background-size: cover;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.header-logo img { width: 150px; height: auto; }

.gnav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-white);
  padding: 24px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gnav.is-open { transform: translateX(0); }
.gnav-list { display: flex; flex-direction: column; }
.gnav-item { border-bottom: 1px solid #eee; }
.gnav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}
.gnav-item.is-current a { color: var(--color-orange); }
.gnav-arrow { width: 12px; height: auto; transform: rotate(90deg); opacity: 0.6; }

.header-entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  flex-shrink: 0;
}

.menu-trigger { position: relative; width: 32px; height: 24px; flex-shrink: 0; }
.menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 11px; }
.menu-trigger span:nth-child(3) { top: 22px; }
.menu-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-white); padding-top: 40px; }
.footer-brand { text-align: center; margin-bottom: 32px; }
.footer-logo { width: 100px; margin: 0 auto 12px; }
.footer-org { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.footer-address { font-size: 12px; color: var(--color-text); line-height: 1.7; margin-bottom: 20px; }
.footer-btn {
  display: block;
  max-width: 260px;
  margin: 0 auto 10px;
  padding: 14px;
  border-radius: 40px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.footer-btn--sub {
  background: #fff3df;
  border: 2px solid var(--color-text-sub);
  color: var(--color-text-sub);
}
.footer-btn--main {
  background: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
}
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.footer-col-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 12px; color: var(--color-text); }
.footer-bottom { margin-top: 40px; border-top: 1px solid #e5e5e5; padding: 20px 0; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-text); }
.footer-legal-links img { width: 10px; }
.footer-copyright { font-size: 11px; color: var(--color-text); }

/* =========================================================
   Shared headings
   ========================================================= */
.section-en {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 11px;
  color: var(--color-orange);
}
.section-en--center { text-align: center; color: var(--color-text-sub); }
.wl-h2-orange {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-orange);
  margin: 6px 0 16px;
}
.wl-h2-brown {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text-sub);
  margin-top: 6px;
}
.wl-h2-brown--center { text-align: center; }
.wl-h3 {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}
.wl-text {
  font-size: 12px;
  line-height: 1.8;
  color: var(--color-body);
}

/* =========================================================
   HERO 働き方について
   ========================================================= */
.wl-hero { padding: 32px 20px 20px; text-align: center; }
.wl-title {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 22px;
  color: var(--color-text-sub);
  margin-top: 6px;
}
.hero-line {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-text-sub);
  margin: 16px auto 0;
}

/* =========================================================
   WELFARE
   ========================================================= */
.wl-welfare { padding: 20px 0; }
.wl-block { margin-top: 20px; }

/* =========================================================
   Gallery (auto-scrolling photo strip)
   ========================================================= */
.gallery {
  position: relative;
  z-index: 1;
  padding: 60px 0;
}
.gallery-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0 14px;
}
.gallery-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  animation: gallery-scroll 26s linear infinite;
}
.gallery-viewport:hover .gallery-track { animation-play-state: paused; }
@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.gallery-item {
  flex: 0 0 150px;
  height: 210px;
  margin-right: 14px;
  border-radius: 20px;
  overflow: hidden;
}
.gallery-item--down { margin-top: 30px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   CULTURE
   ========================================================= */
.wl-culture { padding: 24px 0; }
.wl-culture-card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 20px 16px;
}
.wl-culture-item { margin-top: 20px; }
.wl-culture-item:first-of-type { margin-top: 0; }
.wl-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin-top: 20px;
}

/* =========================================================
   WORK 女性の働き方について
   ========================================================= */
.wl-work { padding: 24px 0 40px; }
.work-card-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.work-card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 4px 9px rgba(102,102,102,0.1);
  overflow: hidden;
}
.work-card-text { padding: 20px 18px; }
.work-card-title {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-orange);
  margin-bottom: 8px;
}
.work-card-lead {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-body);
}
.work-card-photo { aspect-ratio: 493/278; }
.work-card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Tablet (768px~)
   ========================================================= */
@media (min-width: 768px) {
  .container { padding: 0 32px; }

  .wl-hero { padding: 48px 20px 24px; }
  .section-en { font-size: 13px; }
  .wl-title { font-size: 30px; }
  .wl-hero-line { width: 36px; margin-top: 20px; }

  .wl-welfare { padding: 30px 0; }
  .wl-h2-orange { font-size: 30px; }
  .wl-h3 { font-size: 20px; }
  .wl-text { font-size: 14px; }

  .gallery-viewport { padding: 0 18px; }
  .gallery-track { animation-duration: 30s; }
  .gallery-item { flex: 0 0 220px; height: 300px; margin-right: 18px; }
  .gallery-item--down { margin-top: 50px; }

  .wl-culture { padding: 34px 0; }
  .wl-culture-card { padding: 34px 30px; }

  .wl-work { padding: 34px 0 60px; }
  .wl-h2-brown { font-size: 30px; }
  .work-card { display: flex; }
  .work-card-text { flex: 1; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
  .work-card-title { font-size: 22px; }
  .work-card-lead { font-size: 14px; }
  .work-card-photo { flex: 0 0 40%; aspect-ratio: auto; }
}

/* =========================================================
   Desktop (1024px~)
   ========================================================= */
@media (min-width: 1024px) {
  .sp-only { display: none; }
  .pc-only { display: block; }
  .container { padding: 0 64px; }

  .wl-hero { padding: 60px 20px 30px; }
  .section-en { font-size: 16px; }
  .wl-title { font-size: 32px; }
  .wl-hero-line { width: 44px; margin-top: 24px; }

  .wl-welfare { padding: 40px 0; }
  .wl-h2-orange { font-size: 26px; margin-bottom: 20px; }
  .wl-h3 { font-size: 20px; }
  .wl-text { font-size: 14px; }
  .wl-block { margin-top: 30px; }

  .gallery { padding: 30px 0; }
  .gallery-viewport { padding: 0 24px; }
  .gallery-track { animation-duration: 34s; }
  .gallery-item { flex: 0 0 228px; height: 306px; border-radius: 20px; margin-right: 24px; }
  .gallery-item--down { margin-top: 80px; }

  .wl-culture { padding: 40px 0; }
  .wl-h2-orange { font-size: 26px; }
  .wl-culture-card { padding: 44px 45px; }
  .wl-culture-item { margin-top: 24px; }
  .wl-divider { margin-top: 24px; }

  .wl-work { padding: 40px 0 70px; }
  .wl-h2-brown { font-size: 28px; }
  .work-card { border-radius: 20px; }
  .work-card-title { font-size: 19px; }
  .work-card-lead { font-size: 13px; }
  .work-card-photo { flex-basis: 320px; }
}
