/* ページ専用：会社情報（company.html） */
p.jp-wrap {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

.msg__body p {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 2.15;
  letter-spacing: .04em;
  color: #1E1E1E;
}

.msg__ph {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16/8;
  background: #ddd;
}

@media (max-width:768px) {
  .msg__ph {
    aspect-ratio: 4/3;
  }
}

.msg__ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

.msg__g {
  display: grid;
  gap: clamp(32px,5vw,88px);
  align-items: start;
}

@media (max-width:900px) {
  .msg__g {
    grid-template-columns: 1fr;
  }
}

.msg__g {
  margin-top: 0;
  grid-template-columns: minmax(0,4fr) minmax(0,7fr);
}

.msg__head {
  top: 120px;
}

@media (max-width:900px) {
  .msg__head {
    position: static;
  }
}

.msg__head {
  position: static;
}

.msg__head .h2 {
  font-size: clamp(26px,2.6vw,38px);
  line-height: 1.6;
}

.msg__head .h2 span {
  display: inline-block;
}

.msg__sign {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: clamp(24px,2.6vw,36px) 0 0;
  padding-top: 18px;
  border-top: 1px solid #E6E6E6;
}

.msg__sign small {
  font-size: 12.5px;
  color: var(--sub);
  letter-spacing: .06em;
}

.msg__sign b {
  font-family: var(--min);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .16em;
}

.msg__body p + p {
  margin-top: 1.4em;
}

.msg__body p:first-child {
  font-family: var(--min);
  font-weight: 600;
  font-size: clamp(18px,1.5vw,20px);
  line-height: 2;
  color: var(--ink);
}

.name__g {
  display: grid;
  grid-template-columns: minmax(0,4fr) minmax(0,8fr);
  gap: clamp(24px,4vw,64px);
  align-items: start;
}

@media (max-width:900px) {
  .name__g {
    grid-template-columns: 1fr;
  }
}

.name__t {
  margin: 0;
  font-family: var(--min);
  font-weight: 600;
  font-size: clamp(19px,1.7vw,24px);
  line-height: 2;
  letter-spacing: .04em;
  color: #fff;
}

.ol {
  margin: clamp(28px,3vw,40px) 0 0;
  border-top: 1px solid #E2E2E2;
}

.ol div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid #E2E2E2;
}

.ol dt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #555;
}

.ol dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
}

.ol dd ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ol dd li {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--card);
  font-size: 14.5px;
}

.ol__sns {
  display: flex;
  gap: 10px;
}

.ol__sns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 0 0 1px #D6D6D6;
  font-size: 14px;
  font-weight: 700;
  transition: background .3s,color .3s;
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}

.ol__sns a:hover {
  background: var(--ink);
  color: #fff;
}

.ol__sns svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

#outline {
  padding-bottom: clamp(72px,7vw,110px);
}

.msg {
  padding-top: clamp(72px,7vw,112px);
}

.msg__body {
  padding-top: clamp(52px,5vw,72px);
}

@media (max-width:900px) {
  .msg__body {
    padding-top: 0;
  }
}

.ol__sns a span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.msg .msg__head {
  position: static;
  max-width: none;
}

.msg .msg__head .h2 {
  font-size: clamp(28px,3vw,44px);
  line-height: 1.5;
}

.msg .msg__g {
  grid-template-columns: minmax(0,7fr) minmax(0,5fr);
  gap: clamp(32px,4.4vw,72px);
  margin-top: clamp(28px,3vw,44px);
  align-items: stretch;
}

@media (max-width:900px) {
  .msg .msg__g {
    grid-template-columns: 1fr;
  }
}

.msg .msg__body {
  padding-top: 0;
}

.msg .msg__ph {
  width: 100%;
  aspect-ratio: auto;
  margin: 0;
  border-radius: var(--r);
  box-shadow: none;
}

.msg .msg__ph img {
  width: 100%;
  height: auto;
  transform: none;
  object-fit: contain;
}

.msg .msg__sign {
  margin-top: clamp(28px,3vw,40px);
}

.name {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(90% 120% at 85% 100%,#E5152A 0%,#C40018 45%,#8E0012 100%);
  color: #fff;
}

.name .cap {
  color: rgba(255,255,255,.8);
}

.name .h2 {
  color: #fff;
}

.name__r {
  display: grid;
  gap: clamp(20px,2.4vw,32px);
}

.name__logo {
  display: block;
  width: min(100%,360px);
  height: auto;
}

.msg__side {
  display: flex;
  flex-direction: column;
}

.msg__side .msg__sign {
  margin-top: auto;
  padding-top: 18px;
  align-items: flex-start;
  text-align: left;
}

.msg__side .msg__ph + .msg__sign {
  margin-top: auto;
}

.msg__side .msg__ph {
  margin-bottom: 24px;
}

/* SP：会社概要は「項目｜内容」の2列のまま（縦に積まない） */
@media (max-width:768px) {
  .ol div {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 2px;
  }
  .ol dt {
    font-size: 13px;
  }
  .ol dd {
    font-size: 14.5px;
  }
}

/* SP（2026-10 改修）：セクションの間は56px、見出しは26px */
@media (max-width:768px) {
  #outline {
    padding-bottom: 56px;
  }
  .msg {
    padding-top: 56px;
  }
}

/* 2026-10 山下の直し：メッセージの見出しは、スマホでは改行を固定しない */
@media (max-width:768px) {
  .msg__head .h2 {
    word-break: auto-phrase;
    text-wrap: balance;
  }
}

/* 「この会社で働くのが楽しい」を1行に収め、言葉のまとまりごとに3行で組む */
@media (max-width:768px) {
  .msg__head .h2 span {
    display: inline-block;
  }
  .msg .msg__head .h2 {
    font-size: 22px;
    letter-spacing: .02em;
  }
}

/* 共通の部品にそろえる（2026-10）：写真は角丸20px・影なし、灰色は1色 */
.msg__ph {
  border-radius: var(--card-r);
  box-shadow: none;
}
