/* --- 共通化: 装飾ボーダー --- */
.kazari-top1,
.kazari-under1,
.kazari-under2 {
  height: 64px;
  background-repeat: no-repeat;
  background-position: right;
}

.kazari-top1 {
  background-image: url(/images/1_home/about_us/kazari_top.webp);
  background-size: 95% 60px;
  background-position-y: top;
}

.kazari-under1 {
  background-image: url(/images/1_home/about_us/kazari_under.webp);
  background-size: 92% 60px;
}

.kazari-under2 {
  background-image: url(/images/1_home/about_us/kazari_top.webp);
  background-size: 92% 70px;
  transform: rotate(180deg);
}

/* =====================================================
  c-decoX（横飾りテンプレ：div挿入型）
  - 1要素挿すだけで使える
  - レイアウトに影響しない（position:absolute）
  - 背面に回す（z-index）
  - サイズ/位置/画像はCSS変数で調整
===================================================== */

/* 飾りの基準になる親 */
.c-decoX{
  position: relative;
  isolation: isolate; /* 背面管理を安定させる */
  
  /* ---- 調整用の変数（必要最低限） ---- */
  --deco-img: none;      /* url(...) を入れる */
  --deco-w: 60%;         /* 幅：%で調整 */
  --deco-h: 160px;       /* 高さ */
  --deco-top: 0;         /* 上から */
  --deco-bottom: auto;   /* 下から置くなら 0 にして top を auto に */

  --deco-pos: center;    /* 背景位置 */
  --deco-size: contain;  /* contain / cover */
  --deco-repeat: no-repeat;
}

/* 飾り本体（挿入するdiv） */
.c-decoX::before{
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;

  top: var(--deco-top);
  bottom: var(--deco-bottom);
  width: var(--deco-w);
  height: var(--deco-h);

  background-image: var(--deco-img);
  background-position: var(--deco-pos);
  background-size: var(--deco-size);
  background-repeat: var(--deco-repeat);
}

/* 親の中身を前面に（飾りを背面化） */
.c-decoX > *{
  position: relative;
  z-index: 1;
}
/* ===== バリエーション：右寄せ ===== */
.c-decoX--right::before{
  right: calc(50% - 50vw); /* = viewportの右端 */
  left: auto;
}

/* ===== バリエーション：左寄せ ===== */
.c-decoX--left::before{
  left: calc(50% - 50vw);  /* = viewportの左端 */
  right: auto;
}

/* ===== バリエーション：左右いっぱい（フルブリード） ===== */
.c-decoX--full::before{
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;   /* fallback */
  width: 100dvw;
}

/* フルブリードで横スクロールが出るページだけ、必要なら有効化 */
/*
html, body{ overflow-x: clip; }
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}
*/

.c-decoX{
  position: relative;
  isolation: isolate;

  --deco-img: none;
  --deco-w: 60%;      /* 幅は%で指定（親幅じゃなく“飾り要素自体の幅”） */
  --deco-h: 160px;
  --deco-top: 0px;
  --deco-bottom: auto;

  --deco-size: contain;
  --deco-repeat: no-repeat;
}

/* 飾り本体（背面） */
.c-decoX::before{
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;

  top: var(--deco-top);
  bottom: var(--deco-bottom);
  width: var(--deco-w);
  height: var(--deco-h);

  background-image: var(--deco-img);
  background-size: var(--deco-size);
  background-repeat: var(--deco-repeat);
}

/* 中身は前面に */
.c-decoX > *{
  position: relative;
  z-index: 1;
}

/* ===== 左端吸着（画面左） ===== */
.c-decoX-left::before{
  left: calc(50% - 50vw);   /* 画面左端 */
  right: auto;
}

/* ===== 右端吸着（画面右） ===== */
.c-decoX-right::before{
  right: calc(50% - 50vw);  /* 画面右端 */
  left: auto;
}

/* ===== 左右いっぱい ===== */
.c-decoX-full::before{
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  width: 100dvw;
  background-position: center;
}


/* component */
.section-container {
  padding: 56px 24px 56px;
  max-width: 900px;
  margin: 0 auto;
}

/* --- 共通化: 見出しコンポーネント --- */
.h2-gradation {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 28px;
  background: -webkit-linear-gradient(0deg, #2067A7 0%, #2488CC 15%, #23A7EE 30%, #2488CC 60%, #2067A7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.h2-type1-wrap h2 { font-weight: 600; }

.h2-type2-wrap h2,
.h2-type3-wrap h2,
.h2-type4-wrap h2,
.h2-type5-wrap h2,
.h2-type6-wrap h2 { font-weight: 700; }

.h2-type2-wrap,
.h2-type3-wrap,
.h2-type6-wrap {
  letter-spacing: 0.4px;
  text-align: center;
}

.h2-type4-wrap,
.h2-type5-wrap { text-align: left; }

.h2-type2-wrap p,
.h2-type3-wrap p,
.h2-type4-wrap p,
.h2-type5-wrap p,
.h2-type6-wrap p {
  color: var(--primary-color);
  font-family: var(--text-font-roboto);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
}

/* h2-type1 */
.h2-type1-wrap p {
  font-family: var(--text-font-roboto);
  font-weight: 500;
  letter-spacing: 0.6px;
  margin: 0 0 12px;
}

.h2-type1-wrap h2 { font-size: 24px; }

.h2-type1-wrap h2::after {
  content: "";
  border: 1px #fff solid;
  display: block;
  margin: 19px 0 26px;
  width: 40px;
}

/* h2-type2 */
.h2-type2-wrap h2 { font-size: 26px; }

.h2-type2-wrap h2::after {
  content: "";
  border: 1px var(--primary-color) solid;
  display: block;
  margin: 22px auto 40px;
  width: 40px;
}

/* h2-type3 */
.h2-type3-wrap p { margin: 0 0 4px; }
.h2-type3-wrap h2 { font-size: 24px; }

/* h2-type4 */
.h2-type4-wrap p { margin: 0 0 4px; }
.h2-type4-wrap h2 { font-size: 24px; }

/* h2-type5 */
.h2-type5-wrap h2 { font-size: 26px; }

.h2-type5-wrap h2::after {
  content: "";
  border: 1px var(--primary-color) solid;
  display: block;
  margin: 16px auto 38px 0;
  width: 40px;
}

/* h2-type6 */
.h2-type6-wrap { font-size: 24px; }
/* --- 見出しコンポーネント 共通化終了 --- */

/* ファーストビュー タイプ2 */
.fv-type2 {
  position: relative;
  background-color: #fff;
}

.fv-type2-image-wrapper { position: relative; }
.fv-type2-white-back { display: none; }

.fv-type2-image-sp {
  width: 100%;
  height: auto;
  display: block;
}

.fv-type2-image-pc { display: none; }

.fv-type2-content-wrapper {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  z-index: 2;
}

.fv-type2-title-box {
  background-color: #2067a7f2;
  color: white;
  padding: 38px 30px;
  height: 142px;
  width: 318px;
  margin: 0 auto;
}

.fv-type2-title-box h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.fv-type2-subtitle {
  font-size: 16px;
  letter-spacing: 0.18px;
  margin: 0;
  display: flex;
  align-items: center;
}

.fv-type2-subtitle::after {
  content: '';
  display: block;
  height: 1px;
  background-color: white;
  flex-grow: 1;
  margin-left: 15px;
}

/* ファーストビュー タイプ3 */
.fv-type3 { position: relative; }
.fv-type3-image-wrapper { position: relative; }

.fv-type3-image-sp {
  width: 100%;
  height: auto;
  display: block;
}

.fv-type3-image-pc { display: none; }

.fv-type3-content-wrapper {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  z-index: 2;
}

.fv-type3-title-box {
  background-color: #2067a7ea;
  color: white;
  padding: 38px 30px;
  height: 164px;
  width: 318px;
  margin: 0 auto;
}

.fv-type3-title-box h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

.fv-type3-subtitle {
  font-family: var(--text-font-roboto);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.6px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
}

.fv-type3-subtitle::after {
  content: '';
  display: block;
  height: 1px;
  background: #fff;
  flex-grow: 1;
  margin-left: 15px;
}

.fv-type3-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  width: 172px;
}

.fv-type3-info::before {
  content: "●";
  color: #a1d9ff;
  font-size: 9px;
  margin: 0 6.5px 0 0;
}

.fv-type3-info dt { font-weight: 400; }

.fv-type3-info dt::after {
  content: "";
  background: #fff;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  margin: 0 8px;
  bottom: 2px;
  height: 1px;
  width: 18px;
}

.blue-back-section {
  background: var(--primary-color);
  color: #fff;
}

.border-radius-design {
  border-top-left-radius: 64px;
  border-bottom-right-radius: 64px;
}

.btn {
  border: 1px solid var(--primary-color);
  box-shadow: 4px 4px 0px 0px #00000026;
  color: var(--primary-color);
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin: 40px auto 0;
  padding: 16px 34px 16px 24px;
  width: 100%;
}

.btn .right-arrow {
  display: inline-block;
  position: relative;
  width: 8px;
  height: 8px;
  transform: translate(18px, -2px) rotate(45deg);
}

.btn .right-arrow::before,
.btn .right-arrow::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
}

.btn .right-arrow::before {
  top: 0;
  left: 0;
  right: 0;
  height: 0.1em;
}

.btn .right-arrow::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.1em;
}

/* フッター前の採用情報セクション */
.common-recruit-section {
  background: url(/images/common/Recruitment_pic.webp) no-repeat 80% 10%;
}

.common-recruit-section .section-container {
  padding: 60px 0;
  margin: 0 auto;
}

.recruit-btn {
  background: var(--primary-color);
  box-shadow: 4px 4px 0px 0px #00000043;
  color: #fff;
  display: block;
  align-content: center;
  font-size: 16px;
  font-weight: 700;
  height: 74px;
  margin: 40px auto 0;
  text-align: center;
  max-width: 320px;
  width: 54%;
}

.recruit-btn span {
  letter-spacing: 1.4px;
  margin: 0 16px 0 0;
}

.recruit-btn:last-child {
  margin: 14px auto 0;
}

.recruit-btn img {
  width: 18px;
  transform: translateY(-2px);
}

/* カミングスーン（共通コンポーネント扱い） */
.comingsoon{
  max-width: 1280px;
  margin: 0 auto;
}

.comingsoon-img{
  max-width: 327px;
  margin: 0 auto;
}

.comingsoon-img img{
  max-width: 327px;
  height: 226px;
  margin: 40px 0; /* 加藤追記 */
}

/* TAB */
@media screen and (min-width: 768px) {
  /* ファーストビュー タイプ2 */
  .fv-type2 { position: relative; background-color: #fff; }
  .fv-type2-image-wrapper { display: flex; }
  .fv-type2-white-back { display: block; width: 20%; }
  .fv-type2-image-sp { display: none; }
  .fv-type2-image-pc { width: 100%; height: auto; display: block; }
  .fv-type2-content-wrapper { bottom: 88px; left: 44px; right: unset; }

  /* カミングスーン PC表示（森） */
  .comingsoon-img{
    max-width: 716px;
    margin: 0 auto;
  }

  .comingsoon-img img{
    max-width: 716px;
    height: 160px;
    margin: 118px 0; /* 加藤追記 */
  }
}

/* PC */
@media screen and (min-width: 1024px) {
  /* --- 共通化: 装飾ボーダー --- */
  .kazari-top1 { background-size: 76% 60px; }
  .kazari-under1 { background-size: 92% 60px; }
  .kazari-under2 { background-size: 92% 60px; transform: rotate(180deg); }

  /* component */
  .section-container {
    padding: 80px 80px;
    max-width: 1280px;
  }

  .btn {
    font-size: 20px;
    font-weight: 400;
    padding: 16px 60px 16px 32px;
    width: fit-content;
  }

  .btn .right-arrow {
    width: 9px;
    height: 9px;
    transform: translatex(20px) rotate(45deg);
  }

  /* --- 見出しコンポーネント --- */
  .h2-gradation {
    color: var(--primary-color);
    font-size: 46px;
    background: -webkit-linear-gradient(0deg, #2067A7 0%, #2488CC 15%, #23A7EE 30%, #2488CC 60%, #2067A7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 16px 0 46px;
  }

  .h2-type1-wrap h2,
  .h2-type2-wrap h2,
  .h2-type3-wrap h2,
  .h2-type4-wrap h2,
  .h2-type5-wrap h2,
  .h2-type6-wrap h2 {
    font-size: 40px;
  }

  .h2-type1-wrap h2::after,
  .h2-type2-wrap h2::after,
  .h2-type3-wrap h2::after,
  .h2-type5-wrap h2::after,
  .h2-type6-wrap h2::after {
    width: 70px;
  }

  .h2-type4-wrap { text-align: center; }

  .h2-type6-wrap {
    margin: 0 auto 0 0;
    width: fit-content;
  }

  .h2-type6-wrap h2::after {
    content: "";
    border: 1px var(--primary-color) solid;
    display: block;
    margin: 22px auto 80px;
  }

  /* FV type2 */
  .fv-type2-image-sp { display: none; }
  .fv-type2-content-wrapper { top: 30%; bottom: auto; left: 60px; }
  .fv-type2-title-box { padding: 38px; height: 260px; width: fit-content; }
  .fv-type2-title-box h1 { font-size: 56px; margin-bottom: 26px; letter-spacing: 1.8px; }
  .fv-type2-subtitle { font-size: 24px; }

  /* FV type3 */
  .fv-type3-image-sp { display: none; }
  .fv-type3-image-pc { display: block; }
  .fv-type3-content-wrapper { top: 30%; bottom: auto; left: 60px; right: unset; }
  .fv-type3-title-box { padding: 48px 32px 40px; height: 260px; width: fit-content; }
  .fv-type3-title-box h1 { font-size: 56px; margin-bottom: 12px; letter-spacing: 1.8px; }
  .fv-type3-subtitle { font-size: 24px; letter-spacing: 1.6px; margin: 0 0 32px; }
  .fv-type3-subtitle::after { width: 234px; }

  /* フッター前の採用情報セクション */
  .common-recruit-section {
    background: url(/images/common/Recruitment_pic.webp) repeat center 100%;
  }

  .common-recruit-section .section-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 508px;
    padding: 46px 0 0;
    margin: 0 auto;
  }

  .recruit-btn-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 44px;
    margin: 78px auto;
    width: 760px;
  }

  .recruit-btn {
    height: 84px;
    margin: 0 0 0;
    width: 54%;
  }

  .recruit-btn span {
    font-size: 20px;
    letter-spacing: 1.4px;
    margin: 0 16px 0 0;
  }

  .recruit-btn:last-child { margin: 0; }
  .recruit-btn img { width: 26px; }
}
