.page-company { background: #fff; }
.page-company .site-header {
  background: rgba(0, 0, 0, .28);
  border: 0;
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}
.company-page { overflow: hidden; background: #fff; }
.company-page h1,
.company-page h2,
.company-page p,
.company-page figure,
.company-page dl,
.company-page dd,
.company-page ol { margin-top: 0; }

.company-narrow {
  width: min(calc(100% - 96px), 790px);
  margin-inline: auto;
}

/* HERO */
.company-hero {
  position: relative;
  overflow: hidden;
  background: #1767d0;
  line-height: 0;
}

/* hiko.jpg はトリミングせず、縦横とも画像全体を表示する */
.company-hero__visual {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.company-hero__overlay {
  position: absolute;
  inset: 0;
  width: min(calc(100% - 96px), 1180px);
  margin-inline: auto;
  color: #fff;
  pointer-events: none;
}

.company-hero__anniversary {
    position: absolute;
    top: clamp(86px, 14vw, 170px);
    left: 50%;
    width: clamp(104px, 15vw, 200px);
    transform: translateX(-50%);
}

.company-hero__message {
    position: absolute;
    top: clamp(220px, 32vw, 400px);
    left: 50%;
    width: min(430px, 53vw);
    transform: translateX(-50%);
    text-align: center;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.company-hero__message h1 {
  margin-bottom: 18px;
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
}

.company-hero__message p {
    margin-bottom: 0;
    font-size: clamp(15px, 1.2vw, 15px);
    line-height: 1.9;
    letter-spacing: .02em;
    text-align: left;
}
/* COMMON SECTION */
.company-section {
  position: relative;
  padding: clamp(68px, 6.5vw, 100px) 0;
}

.company-greeting,
.company-history {
  background: #f5f5f5;
}

.company-profile,
.company-people {
  background: #fff;
}

.company-section__head {
  margin-bottom: 26px;
}

.company-section__en {
  margin-bottom: 5px;
  color: #8c8c8c;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.company-section__head h2 {
  margin-bottom: 0;
  color: #111;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 500;
  line-height: 1.35;
}

.company-section__head--small {
  margin-bottom: 20px;
}

.company-section__head--small h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-bottom: 0;
  font-size: clamp(22px, 1.8vw, 28px);
  white-space: nowrap;
}

/* 「社員教育 ーーー」のように、見出しの右へラインを伸ばす */
.company-section__head--small h2::after {
  content: "";
  display: block;
  width: clamp(72px, 8vw, 112px);
  height: 2px;
  flex: 0 0 auto;
  background: #f5b18f;
}

/* GREETING */
.company-greeting__photo {
  width: 100%;
  margin: 0 0 34px;
}
.company-greeting__photo img { width: 100%; height: auto; }

.company-greeting__text {
    color: #333;
    font-size: clamp(12px, .84vw, 14px);
    line-height: 2;
    position: relative;
}
.company-greeting__text p { margin-bottom: 17px; }
.company-greeting__text strong { font-weight: 700; }
.company-greeting__sign {
    text-align: right;
    margin-top: 22px;
    position: absolute;
    bottom: -9vw;
    right: 0;
}

.company-president {
  position: relative;
  min-height: 155px;
  margin: 34px auto -6px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.company-president__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54px;
  background: #ffb28e;
}
.company-president img {
  position: relative;
  z-index: 1;
  max-height: 175px;
  width: auto;
}

/* WHITE / GRAY ZIGZAG SEPARATORS
   見本のセクション境界にある細かな白×グレーのギザギザ */
.company-profile::before,
.company-history::before,
.company-history::after {
  content: "";
  position: absolute;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 11px;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 18px 11px;
}

/* グレー → 白：グレーの小さな▽が白側へ入る */
.company-profile::before,
.company-history::after {
  top: 0;
  transform: translateY(-1px);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='11' viewBox='0 0 18 11'%3E%3Crect width='18' height='11' fill='%23ffffff'/%3E%3Cpath d='M0 0 L9 10 L18 0 Z' fill='%23f5f5f5'/%3E%3C/svg%3E");
}

/* 白 → グレー：白い小さな▽がグレー側へ入る */
.company-history::before {
  top: 0;
  transform: translateY(-1px);
  background-color: #f5f5f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='11' viewBox='0 0 18 11'%3E%3Crect width='18' height='11' fill='%23f5f5f5'/%3E%3Cpath d='M0 0 L9 10 L18 0 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

.company-history::after {
  top: auto;
  bottom: 0;
  transform: translateY(100%) rotate(180deg);
}

/* PROFILE */
.company-profile__list {
  margin: 0;
  padding: 0;
  border-top: 1px solid #bbb;
}
.company-profile__row {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid #bbb;
  color: #333;
  font-size: clamp(12px, .84vw, 14px);
  line-height: 1.85;
}
.company-profile__row dt { font-weight: 700; }
.company-profile__row dd { margin: 0; min-width: 0; }
.company-profile__row dd p { margin-bottom: 3px; }
.company-profile__row dd p:last-child { margin-bottom: 0; }
.company-profile__row--address { padding-bottom: 22px; }

.company-map {
  width: min(100%, 540px);
  margin-top: 16px;
  border: 1px solid #ddd;
  background: #eee;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
}
.company-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* HISTORY */
.company-history__timeline {
  position: relative;
  list-style: none;
  margin: 4px 0 0;
  padding: 2px 0 2px 31px;
}
.company-history__timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #168bd0;
}
.company-history__timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  min-height: 42px;
  padding: 7px 0 9px;
  color: #2c2c2c;
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.72;
}
.company-history__timeline li::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 13px;
    width: 8px;
    height: 8px;
    border: 2px solid #168bd0;
    border-radius: 50%;
    background: #168bd0;
}
.company-history__timeline time {
  display: block;
  color: #111;
  font-weight: 700;
  white-space: nowrap;
}
.company-history__timeline p {
  margin-bottom: 0;
  color: #3f3f3f;
}

/* TRAINING / WELFARE */
.company-people__layout {
  width: min(calc(100% - 96px), 900px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 42px;
  align-items: start;
}
.company-people__article {
  margin-bottom: 44px;
  color: #333;
  font-size: clamp(12px, .84vw, 14px);
  line-height: 1.9;
}
.company-people__article:last-child { margin-bottom: 0; }
.company-people__article p { margin-bottom: 11px; }
.company-people__image {
  margin: 58px 0 0;
}
.company-people__image img { width: 100%; height: auto; }

.company-recruit-link {
  margin-top: 46px;
  text-align: center;
}
.company-recruit-link a {
  display: inline-flex;
  min-width: 250px;
  min-height: 48px;
  padding: 10px 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #050505;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: opacity .2s ease, transform .2s ease;
}
.company-recruit-link a:hover {
  opacity: .82;
  transform: translateY(-2px);
}

.majin9{
  margin:15px 0;
}

.pc99{
display:block !important;
}
.sp99{
display:none !important;
}

@media (max-width: 1023px) {
  .company-narrow { width: min(calc(100% - 56px), 760px); }
  .company-hero__overlay { width: calc(100% - 56px); }
  .company-people__layout { width: min(calc(100% - 56px), 820px); grid-template-columns: 1fr 235px; }
}

@media (max-width: 760px) {
.pc99{
display:none !important;
}
.sp99{
display:block !important;
}
    .pc99 {
        display: none !important;
    }
.sp99 {
    display: block !important;
}
  .company-narrow,
  .company-people__layout { width: calc(100% - 44px); }

  .company-hero__overlay { width: calc(100% - 44px); }
  .company-hero__anniversary {
        top: 142px;
        width: 135px;
    }
  .company-hero__message {
    top: 38%;
    left: 50%;
    width: min(86vw, 360px);
    transform: translateX(-50%);
    text-align: center;
  }
  .company-hero__message h1 { font-size: 20px; }
  .company-hero__message p { font-size: 11px; }

  .company-section { padding: 52px 0; }
  .company-greeting__photo { width: 100%; margin-inline: auto; }
  .company-president { width: 86%; }
  .company-profile__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
  .company-history__timeline {
    padding-left: 27px;
  }
  .company-history__timeline::before {
    left: 8px;
  }
  .company-history__timeline li {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
    min-height: 40px;
  }
  .company-history__timeline li::before {
    left: -23px;
  }
  .company-people__layout {
    display: block;
  }
  .company-people__image {
    width: min(72%, 260px);
    margin: 34px auto 0;
  }
  .company-recruit-link { margin-top: 38px; }
}

/* 採用ページ準備中：会社案内の導線はリンクにしない。 */
.company-recruit-link__pending {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 250px;
  min-height: 48px;
  padding: 10px 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #050505;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: default;
}
.company-recruit-link__pending small {
  color: #9bdcf6;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .03em;
}
