/* ===========================================================
   recruit LP — base layout stylesheet
   自社ブランドカラーで構築したオリジナルレイアウト
   =========================================================== */

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  color: #666;
  line-height: 1.9;
  letter-spacing: 0.08em;
  background: #faf7f3;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  background: transparent;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
table { border-collapse: collapse; }
hr {
  border: 0;
  border-top: 1px solid #e8e0d3;
  margin: 28px 0;
}

/* ---------- Utility ---------- */
.cf::after, .row::after { content: ""; display: block; clear: both; }
.cb { clear: both; }
.fr { float: right; }
.fm { font-weight: 500; }
.fs { font-size: 11px; }
.cen, .center { text-align: center; }
.nm { margin: 0; }
.b { font-weight: 700; }
.pdt-20 { padding-top: 20px; }
.dsp_smt { display: none; }
.dsp_tbs { display: none; }
@media (max-width: 768px) {
  .dsp_hp { display: none !important; }
  .dsp_smt { display: inline; }
}

/* ---------- Layout wrapper ---------- */
#wrap {
  max-width: 1150px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 30px rgba(107, 90, 69, 0.08);
}

/* Header / Drawer / Navigation は HTML 内インラインで一括管理 */

/* ---------- Page Title (hero) ---------- */
html, body { overflow-x: hidden; }
body { margin: 0; padding: 0; }
#page_title {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
}
#page_title .re-img {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  position: relative;
  line-height: 0;
  font-size: 0;
  box-sizing: border-box;
  display: block;
}
#page_title .re-img img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: initial !important;
  object-position: initial !important;
}

/* ===== HEROオーバーレイ ===== */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* タイトル（左上） */
.hero-title {
  position: absolute;
  top: 7%;
  left: 5%;
  max-width: 60%;
  font-family: 'Noto Serif JP', '游明朝', serif;
  color: #2a2a2a;
  text-shadow: 0 1px 3px rgba(255,255,255,0.4);
}
.hero-sub {
  font-size: clamp(13px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  line-height: 1.4;
}
.hero-main {
  display: inline-block;
  position: relative;
  padding: 4px 22px 8px;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.hero-main-text {
  position: relative;
  z-index: 1;
  font-size: clamp(26px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2a2a2a;
}

/* 赤い円バッジ */
.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #D14542;
  color: #fff;
  border-radius: 50%;
  font-family: 'Noto Serif JP', '游明朝', serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}
.hero-badge span { padding: 0 8px; }

.hero-badge--1 {
  top: 38%;
  left: 4%;
  width: clamp(90px, 11vw, 150px);
  height: clamp(90px, 11vw, 150px);
  font-size: clamp(14px, 1.5vw, 22px);
}
.hero-badge--2 {
  top: 32%;
  left: calc(22% + 100px);
  width: clamp(120px, 15vw, 200px);
  height: clamp(120px, 15vw, 200px);
  font-size: clamp(15px, 1.8vw, 26px);
}
.hero-badge--3 {
  top: 60%;
  left: 14%;
  width: clamp(100px, 13vw, 170px);
  height: clamp(100px, 13vw, 170px);
  font-size: clamp(13px, 1.4vw, 20px);
}

@media (max-width: 768px) {
  .hero-title { top: 8%; left: 5%; max-width: 70%; }
  .hero-badge--1 { top: 42%; left: 3%; }
  .hero-badge--2 { top: 35%; left: 30%; }
  .hero-badge--3 { top: 65%; left: 18%; }
}

@media (max-width: 480px) {
  .hero-badge--1 { width: 70px; height: 70px; font-size: 12px; }
  .hero-badge--2 { width: 90px; height: 90px; font-size: 13px; }
  .hero-badge--3 { width: 78px; height: 78px; font-size: 11px; }
}
#page_title .re-img img[src=""],
#page_title .re-img img:not([src]) { display: none; }

/* ---------- Container ---------- */
#container {
  padding: 36px 24px 48px;
}
.main { display: block; }
#main { width: 100%; }

/* ---------- Breadcrumb ---------- */
#page_navi {
  display: flex;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: 0 0 24px;
  color: #888;
}
#page_navi li { list-style: none; }
#page_navi a { color: #8B7355; }

/* ---------- Recruit content / intro ---------- */
.recruit_cont { padding: 0; }
.rc_right_tt {
  text-align: center;
  margin: 0 0 24px;
}
.rc_right_tt img { max-height: 64px; }
.rc_right_des p,
.recruit_cont .cb p {
  margin: 0 0 18px;
}

/* ---------- Section titles ---------- */
.rc_title {
  background: #8B7355;
  color: #fff;
  padding: 22px 16px;
  text-align: center;
  margin: 40px 0 28px;
  font-weight: 400;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0.2em;
  line-height: 1.6;
  border-radius: 4px;
}
.rc_title span { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* ---------- Points ---------- */
.point {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "img  tt"
    "des  des";
  gap: 18px 36px;
  padding: 40px 4px;
  border-bottom: 1px dashed #e8e0d3;
  align-items: center;
}
.point:last-of-type { border-bottom: none; }
.point_img,
.point .point_des02 + .point_des {
  grid-area: img;
  text-align: center;
}
.point_img img,
.point .point_des02 + .point_des img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  display: block;
  margin: 0;
}
@media (max-width: 768px) {
  .point_img img,
  .point .point_des02 + .point_des img {
    aspect-ratio: 16 / 10;
  }
}
.point_tt {
  grid-area: tt;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.point_des {
  grid-area: des;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2;
}

/* variant: 画像右配置 */
.point:has(.point_tt02) {
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "tt   img"
    "des  des";
}
.point .point_tt02 {
  grid-area: tt;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.point .point_des02 {
  grid-area: des;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 2;
}
.point .point_des02 + .point_des {
  grid-area: img;
  margin: 0;
}

/* variant: 画像なし */
.point:not(:has(.point_img)):not(:has(.point_des02)) {
  grid-template-columns: 1fr;
  grid-template-areas:
    "tt"
    "des";
}

@media (max-width: 768px) {
  .point,
  .point:has(.point_tt02) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "img"
      "tt"
      "des";
  }
}

/* ---------- Staff voice ---------- */
#staff_voice { margin-top: 40px; }
#staff_voice .bg {
  background: #FCF8F5;
  padding: 28px 24px;
  border-radius: 8px;
}
#staff_voice .box { background: transparent; }
#staff_voice .scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
#staff_voice dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e8e0d3;
  align-items: start;
}
#staff_voice dl:last-of-type { border-bottom: none; }
#staff_voice dt {
  text-align: center;
  padding-top: 4px;
}
#staff_voice .name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #6B5A45;
  margin: 0 0 8px;
}
#staff_voice .about {
  display: block;
  font-size: 12px;
  line-height: 1.8;
  opacity: 0.75;
}
#staff_voice dd {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 2;
}
#staff_voice dd .img {
  float: left;
  margin: 4px 20px 8px 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #C4A87C;
  background: #FCF8F5;
  flex-shrink: 0;
}
#staff_voice dd .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  #staff_voice dl {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  #staff_voice dd .img {
    float: none;
    margin: 0 auto 16px;
  }
  #staff_voice dd { text-align: left; }
}

/* ---------- 画像欠落時のフォールバック ---------- */
/* ヒーロー：imgが無くてもグラデ＋RECRUIT文字で成立 */
#page_title .re-img.img-missing { min-height: 240px; }

/* ポイント画像が無い場合：1カラムにしてバランス維持 */
.point.has-missing-img {
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "tt"
    "des" !important;
}
.point.has-missing-img .point_img { display: none; }

/* スタッフ写真が無い場合：枠だけ残し、内部は薄いアイコン背景 */
#staff_voice .img.img-missing {
  position: relative;
  background:
    radial-gradient(circle at 50% 38%, #C4A87C 18%, transparent 19%) no-repeat,
    radial-gradient(ellipse at 50% 95%, #C4A87C 50%, transparent 51%) no-repeat,
    #FCF8F5;
  background-size: 100% 100%;
}
#staff_voice .img.img-missing::after {
  content: "";
  display: block;
  position: absolute;
  inset: 18%;
  border-radius: 50%;
}

/* セクションタイトル内のロゴ装飾imgが無い場合：spanごと非表示 */
.rc_title span.img-missing { display: none; }
.rc_title .has-missing-img > img { display: none; }

/* セクションタイトル直後の大きな装飾画像（staff_all等）が無い場合：非表示 */
.rc_title > .img-missing { display: none; }

/* イントロのロゴ画像が無い場合 */
.rc_right_tt.img-missing,
.rc_right_tt .img-missing { display: none; }

/* ---------- Tables ---------- */
.rc_tbl { margin: 0 0 28px; }
.rc_tbl table {
  width: 100%;
  border: 1px solid #e8e0d3;
}
.rc_tbl th,
.rc_tbl td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border: 1px solid #e8e0d3;
  font-size: 14px;
  line-height: 1.9;
}
.rc_tbl th {
  background: #FCF8F5;
  color: #6B5A45;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  width: 160px;
}
.rc_tbl td {
  background: #fff;
  color: #666;
}
.rc_tbl tr:first-child th {
  background: #8B7355;
  color: #fff;
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 16px;
  width: auto;
  padding: 18px;
}
@media (max-width: 640px) {
  .rc_tbl th,
  .rc_tbl td {
    display: block;
    width: 100%;
  }
  .rc_tbl tr:first-child th { display: block; }
}
