/* --- 共通化: 装飾ボーダー --- */
.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;
  line-height: 1.6;
}

.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;
  width: 318px;
  margin: 0 auto;
}

.fv-type3-small {
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}

.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;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
}

.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;
    width: fit-content;
  }

  .fv-type3-small {
    font-size: 24px;
    margin: 0;
  }

  .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;
  }
}

/* =========================
  2カラム・リード
  - SP: 1列（見出し→本文→画像）
  - 768+: 2列
========================= */

.c-2col-lead {
  margin-top: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
}

/* 見出しは常に全幅（2列時もまたぐ） */
.c-2col-lead>.h2-type5-wrap {
  grid-column: 1 / -1;
}

.c-2col-lead__p {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
}

.c-2col-lead__p+.c-2col-lead__p {
  margin-top: clamp(16px, 2.5vw, 24px);
}

/* 画像 */
.c-2col-lead__media {
  margin-top: 40px;
}

/* ===== 768px+：2列 ===== */
@media (min-width: 768px) {
  .c-2col-lead {
    grid-template-columns: minmax(0, 520px) minmax(0, 624px);
    column-gap: clamp(40px, 8vw, 96px);
    /* メモ: 160 相当まで広げる */
  }

  .c-2col-lead__media {
    margin-top: -60px;
  }
}

/* タイトル（共通） */
.c-title-box-center {
  text-align: center;
}

.c-title-box-center p {
  font-family: var(--text-font-roboto);
  font-weight: 700;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--primary-color);
}

.c-title-box-center h2 {
  font-weight: 700;
  font-size: 24px;
  line-height: 160%;
  letter-spacing: 0.03em;
}

@media(min-width:768px) {
  .c-title-box-center {
    text-align: center;
  }

  .c-title-box-center p {
    font-size: 20px;
  }

  .c-title-box-center h2 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0.05em;
  }
}

/* アコーディオン */
/* list：間隔 24→32 */
.c-accordionList {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  margin-inline: auto;
}

/* 枠 1px */
.c-accordion {
  border: 1px solid #888888;
}

/* summary
  - 横padding：16→32
  - 縦padding：8→16 をclampで寄せる（減る設計にも一応追従）
*/
.c-accordion__summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 2.5vw, 24px);
  cursor: pointer;
  padding: clamp(8px, 1.5vw, 16px) clamp(12px, 3vw, 32px);
}

/* 数字：Roboto Bold 32→40 */
.c-accordion__no {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1;
  color: var(--primary-color);
}

/* タイトル：16→24 / line-height 160% */
.c-accordion__title {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.6;
  font-weight: 700;
}

/* 矢印：32×32 */
.c-accordion__arrow {
  width: 32px;
  height: 32px;
  position: relative;
}

.c-accordion__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
}

.c-accordion[open] .c-accordion__arrow::before {
  transform: rotate(-135deg);
}

/* 中身：padding 16 16 → 8 32（clampで寄せる） */
.c-accordion__content {
  padding: clamp(8px, 2vw, 16px) clamp(16px, 3vw, 32px) clamp(16px, 3vw, 24px);
}

/* 中身がpでもulでも自然に間が空くよう最小限 */
.c-accordion__content * {
  font-size: 16px;
  line-height: 1.6;
}

.c-accordion__content>*+* {
  margin-top: 16px;
}

.c-accordion__list li {
  list-style: disc;
  margin-left: 1.5em;
  line-height: 1.8;
}

.c-accordionList__item {
  background: #fff;
}

/* 画像：MaxW480 */
.c-accordion__figure img {
  max-width: 480px;
}

/* 2要素（タイトル＋矢印）版のsummaryレイアウト */
.c-accordion__summary--split {
  grid-template-columns: 1fr auto;
}

/* タイトル内：青＋黒の並び */
.c-accordion__titleSplit {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(2px, 2vw, 24px);
}

/* 見出し（青） Bold 20→30 */
.c-accordion__titleBlue {
  color: var(--primary-color);
  font-size: clamp(12px, 2.5vw, 30px);
  font-weight: 700;
}

.c-accordion__titleBlue .c-accordion__titleBlue--bold {
  font-size: clamp(19px, 3.5vw, 40px);
  margin-inline: clamp(2px, 0.5vw, 4px);
}

/* 見出し（黒） Bold 16→30 */
.c-accordion__titleBlack {
  font-weight: 700;
  font-size: clamp(17px, 2.5vw, 30px);
}

/* 開いた時の本文（必要最低限） */
.c-accordion__text {
  line-height: 1.6;
}

