/* =========================================================
   会社情報（/companyinfo/）  Studio の実測値で再現
   PC 1440px：写真の帯 360px → 紹介（縦書き）→ 代表挨拶 → 経営理念 → 沿革 → 会社概要
   画面幅の切り替え：1140px（@small）・840px（@tablet）・540px（@mobile）
   ========================================================= */

/* ---------- 上の写真の帯 ---------- */
.companyinfo-hero { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; height: 360px; overflow: hidden; }
.companyinfo-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center bottom; }
.companyinfo-hero__veil { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; height: 100%; padding: 80px 48px 0; background: rgba(255, 255, 255, .9); }
.companyinfo-hero__in { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.companyinfo-hero__ttl { display: flex; flex-direction: column; align-items: flex-start; }
.companyinfo-hero__ja { margin: 0; color: #000; font-weight: var(--w-l); font-size: 20px; line-height: 1.4; letter-spacing: .05em; }
.companyinfo-hero__en { color: #000; font-weight: var(--w-m); font-size: 40px; line-height: 1.4; letter-spacing: .25em; }

/* ---------- 各区切りの見出し（小さい日本語＋大きい英字） ---------- */
.companyinfo-ttl { display: flex; flex-direction: column; align-items: flex-start; }
.companyinfo-ttl__ja { margin: 0; color: #333; font-weight: var(--w-l); font-size: 20px; line-height: 1.4; letter-spacing: .05em; }
.companyinfo-ttl__en { color: #333; font-weight: var(--w-m); font-size: 40px; line-height: 1.4; letter-spacing: .25em; }

/* ---------- 紹介（写真＋濃い灰色の面に縦書き） ---------- */
.companyinfo-intro { position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 80px 0 0 48px; }
.companyinfo-intro__img { position: absolute; top: 32px; left: 100px; z-index: 1; display: flex; justify-content: center; align-items: center; width: 581.51px; overflow: hidden; }
.companyinfo-intro__img img { width: 100%; height: auto; scale: 1.3; }
.companyinfo-intro__box { display: flex; justify-content: center; align-items: center; width: 100%; padding: 60px 48px 60px 0; background: #464646; }
.companyinfo-intro__in { display: flex; justify-content: center; align-items: center; width: 1080px; max-width: 100%; padding: 0 48px; }
.companyinfo-intro__txt { display: flex; justify-content: flex-end; align-items: flex-start; gap: 24px; width: 100%; }
.companyinfo-intro__body { flex: none; color: #fff; font-weight: var(--w-l); font-size: 20px; line-height: 2; letter-spacing: .1em; writing-mode: vertical-rl; }
.companyinfo-intro__catch { flex: none; color: #fff; font-weight: var(--w-m); font-size: 40px; line-height: 1.4; letter-spacing: .1em; writing-mode: vertical-rl; }

/* ---------- 代表挨拶 ---------- */
.companyinfo-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 1080px; max-width: 100%; margin: 0 auto; padding: 80px 48px 0; }
.companyinfo-msg__row1 { display: flex; flex-direction: row-reverse; justify-content: space-around; align-items: center; gap: 20px; width: 100%; }
.companyinfo-msg__img1 { flex: none; width: 50%; max-width: calc(50% - 10px); height: auto; }
.companyinfo-msg__side1 { flex: none; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: flex-start; width: 50%; max-width: calc(50% - 10px); }
.companyinfo-msg__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; }
.companyinfo-msg__h3 { margin: 0; color: #a4161a; font-weight: var(--w-m); font-size: 32px; line-height: 1.4; letter-spacing: .1em; }
.companyinfo-msg__p { color: #333; font-weight: var(--w-l); font-size: 20px; line-height: 1.4; letter-spacing: .1em; }
.companyinfo-msg__p--wide { width: 100%; letter-spacing: .2em; }
.companyinfo-msg__block { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; padding: 48px 0 0; }
.companyinfo-msg__row2 { display: flex; justify-content: space-between; align-items: flex-start; gap: 56px; width: 100%; padding: 48px 0 0; }
.companyinfo-msg__img2 { flex: none; width: 50%; max-width: calc(50% - 28px); height: auto; }
.companyinfo-msg__side2 { flex: none; display: flex; flex-direction: row-reverse; justify-content: center; align-items: center; width: 50%; max-width: calc(50% - 28px); }

/* ---------- 経営理念 ---------- */
.companyinfo-phil { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; }
.companyinfo-phil__top { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 80px 0 0; }
.companyinfo-phil__ttl { height: 95px; width: 1080px; max-width: 100%; padding: 0 48px; }
.companyinfo-phil__row { position: relative; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-start; width: 100%; padding: 32px 0 0; }
.companyinfo-phil__img { position: absolute; top: -25px; right: 130px; z-index: 1; width: 500px; height: 330px; object-fit: cover; object-position: center top; }
.companyinfo-phil__band { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; width: 100%; max-width: calc(100% - 48px); margin: 0 48px 0 0; padding: 100px 0 100px 48px; background: #eee; }
.companyinfo-phil__lead { width: 1080px; max-width: 100%; padding: 0 48px; color: #333; font-weight: var(--w-l); font-size: 24px; line-height: 1.4; letter-spacing: .1em; }

.companyinfo-phil__bottom { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; width: 1080px; max-width: 100%; }
.companyinfo-phil__role { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 80px 44px 0; }
.companyinfo-phil__img2 { flex: none; width: 50%; height: auto; }
.companyinfo-phil__side { flex: none; display: flex; flex-direction: row-reverse; justify-content: center; align-items: center; width: 50%; }
.companyinfo-phil__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 80%; }
.companyinfo-phil__h3 { margin: 0; color: #333; font-weight: var(--w-m); font-size: 24px; line-height: 1.4; letter-spacing: .1em; }
.companyinfo-phil__p { color: #333; font-weight: var(--w-l); font-size: 24px; line-height: 1.4; letter-spacing: .1em; }
.companyinfo-phil__bg { position: absolute; left: 99px; bottom: 0; z-index: -1; width: 100%; height: 267px; background: #eee; }
.companyinfo-phil__staff { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: 100%; height: 216px; padding: 8px 48px; }

/* ---------- 沿革 ---------- */
.companyinfo-hist { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 1080px; max-width: 100%; margin: 0 auto; padding: 80px 48px 0; }
.companyinfo-hist__bg { display: none; }
.companyinfo-hist__box { display: flex; flex-direction: column; align-items: center; padding: 24px; border-radius: 16px; overflow: hidden; }
.companyinfo-hist__list { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
.companyinfo-hist__item { display: flex; align-items: center; gap: 24px; width: 100%; }
.companyinfo-hist__mark { flex: none; display: flex; justify-content: center; align-items: center; width: 56px; height: 50px; }
.companyinfo-hist__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #a4161a; }
.companyinfo-hist__line { flex: none; width: 1px; height: 100px; margin: 0 0 0 -5px; background: #000; }
.companyinfo-hist__year { flex: none; width: 70.6px; margin: 0 0 0 24px; color: #888; font-weight: var(--w-l); font-size: 28px; line-height: 1.4; text-align: center; }
.companyinfo-hist__era { flex: none; width: 150px; color: #888; font-weight: var(--w-l); font-size: 14px; line-height: 1.4; letter-spacing: .1em; }
.companyinfo-hist__text { flex: none; width: 400px; color: #333; font-weight: var(--w-l); font-size: 16px; line-height: 1.4; letter-spacing: .1em; }

/* ---------- 会社概要 ---------- */
.companyinfo-company { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 1080px; max-width: 100%; margin: 0 auto; padding: 80px 48px; }
.companyinfo-company__box { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; width: 100%; padding: 32px 40px; border: 1px solid #333; border-radius: 32px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.companyinfo-company__list { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 100%; }
.companyinfo-company__item { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; width: 100%; }
.companyinfo-company__row { display: flex; align-items: flex-start; gap: 16px; width: 100%; }
.companyinfo-company__dt { flex: none; width: 250px; color: #333; font-weight: var(--w-m); font-size: 18px; line-height: 1.4; letter-spacing: .1em; }
.companyinfo-company__dd { flex: 1 1 0%; color: #333; font-weight: var(--w-l); font-size: 18px; line-height: 1.4; letter-spacing: .1em; }
.companyinfo-company__line { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; background: #a6a6a6; }
.companyinfo-company__line span { position: relative; z-index: 1; width: 100px; height: 1px; background: #000; }

/* =========================================================
   1140px 以下
   ========================================================= */
@media (max-width: 1140px) {
	.companyinfo-intro__img { top: 30px; left: 48px; width: 600px; height: 620px; }
	.companyinfo-intro__box { align-items: flex-end; justify-content: flex-end; height: 1125.2px; }
	.companyinfo-msg__row1 { gap: 24px; }
	.companyinfo-msg__img1 { width: 48%; max-width: calc(48% - 12px); }
	.companyinfo-msg__side1 { width: 52%; max-width: calc(52% - 12px); }
	.companyinfo-msg__row2 { gap: 24px; }
	.companyinfo-msg__img2, .companyinfo-msg__side2 { max-width: calc(50% - 12px); }
	.companyinfo-phil__img { top: 32px; right: 48px; }
	.companyinfo-phil__band { justify-content: flex-end; align-items: flex-start; height: 554.38px; padding: 100px 0 60px 48px; }
	.companyinfo-phil__lead { padding: 0; }
	.companyinfo-phil__txt { width: 88%; }
	.companyinfo-hist { width: 100%; }
	.companyinfo-hist__box { width: 100%; padding: 24px 16px; }
	.companyinfo-hist__era { width: 120px; }
	.companyinfo-company { width: 100%; }
	.companyinfo-company__dt { width: 160px; }
}

/* =========================================================
   840px 以下
   ========================================================= */
@media (max-width: 840px) {
	.companyinfo-hero { height: 280px; }
	.companyinfo-hero__veil { flex-direction: column; padding: 80px 0 0; }
	.companyinfo-hero__in { flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 0 32px; }
	.companyinfo-hero__ja, .companyinfo-ttl__ja { font-size: 18px; }
	.companyinfo-hero__en, .companyinfo-ttl__en { font-size: 32px; }

	.companyinfo-intro { flex-direction: column; justify-content: flex-start; align-items: center; padding: 0; }
	.companyinfo-intro__img { position: relative; top: 0; left: 0; flex-direction: column; width: 100%; height: auto; }
	.companyinfo-intro__box { flex-direction: column; justify-content: center; align-items: flex-end; height: auto; padding: 40px 32px 24px; }
	.companyinfo-intro__in { flex-direction: column; padding: 0; }
	.companyinfo-intro__txt { justify-content: center; align-items: flex-start; }
	.companyinfo-intro__body { line-height: 2.5; }
	.companyinfo-intro__catch { font-size: 36px; }

	.companyinfo-msg { padding: 80px 32px 0; }
	.companyinfo-msg__row1, .companyinfo-msg__row2 { flex-direction: column; }
	.companyinfo-msg__img1, .companyinfo-msg__side1, .companyinfo-msg__img2, .companyinfo-msg__side2 { width: 100%; max-width: 100%; }
	.companyinfo-msg__side1, .companyinfo-msg__side2 { flex-direction: column; }
	.companyinfo-msg__txt { padding: 20px 0; }
	.companyinfo-msg__h3 { font-size: 36px; }
	.companyinfo-msg__block { padding: 80px 32px 0; }
	.companyinfo-msg__row2 { padding: 80px 32px 0; }

	.companyinfo-phil__top { padding: 80px 32px 0; }
	.companyinfo-phil__ttl { height: auto; padding: 0; }
	.companyinfo-phil__row { flex-direction: column; padding: 20px 0 0; }
	.companyinfo-phil__img { position: relative; top: 0; right: 0; flex: none; width: 100%; }
	.companyinfo-phil__band { height: auto; max-width: 100%; margin: 0; padding: 24px 32px; }
	.companyinfo-phil__lead, .companyinfo-phil__p { font-size: 20px; }
	.companyinfo-phil__role { flex-direction: column; padding: 80px 32px 0; }
	.companyinfo-phil__img2, .companyinfo-phil__side { width: 100%; }
	.companyinfo-phil__side { flex-direction: column; }
	.companyinfo-phil__txt { width: 100%; padding: 20px 0; }
	.companyinfo-phil__h3 { font-size: 20px; }
	.companyinfo-phil__bg { left: 70px; height: 317px; }
	.companyinfo-phil__staff { padding: 20px 32px; }

	.companyinfo-hist { padding: 80px 32px 0; }
	.companyinfo-hist__bg { position: absolute; top: 57px; right: 0; bottom: 0; z-index: -1; display: block; width: 100%; overflow: hidden; }
	.companyinfo-hist__bg img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center bottom; }
	.companyinfo-hist__bg::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .9); }
	.companyinfo-hist__box { align-items: flex-start; }
	.companyinfo-hist__item { gap: 4px; }
	.companyinfo-hist__mark { width: 20px; }
	.companyinfo-hist__year { width: 50.4px; font-size: 20px; }
	.companyinfo-hist__era { font-size: 16px; }
	.companyinfo-hist__text { flex: 1; width: auto; font-size: 14px; }

	.companyinfo-company { padding: 80px 32px; }
	.companyinfo-company__dt, .companyinfo-company__dd { font-size: 16px; }
}

/* =========================================================
   540px 以下：スマホ
   ========================================================= */
@media (max-width: 540px) {
	.companyinfo-hero { height: 240px; }
	.companyinfo-hero__in { padding: 0 16px; }
	.companyinfo-hero__ja { font-size: 14px; }
	.companyinfo-hero__en { font-size: 24px; }
	.companyinfo-ttl__ja { font-size: 16px; }
	.companyinfo-ttl__en { font-size: 28px; }

	.companyinfo-intro__box { padding: 40px 16px 24px; }
	.companyinfo-intro__txt { gap: 19px; }
	.companyinfo-intro__body { font-size: 14px; line-height: 2; }
	.companyinfo-intro__catch { font-size: 28px; }

	.companyinfo-msg { gap: 0; padding: 64px 16px 30px; }
	.companyinfo-msg__row1 { gap: 16px; }
	.companyinfo-msg__txt { gap: 10px; padding: 0; }
	.companyinfo-msg__h3 { font-size: 24px; }
	.companyinfo-msg__p { font-size: 13px; }
	.companyinfo-msg__block { gap: 10px; padding: 24px 16px 0; }
	.companyinfo-msg__row2 { gap: 20px; padding: 64px 16px 0; }

	.companyinfo-phil__top { padding: 64px 16px 0; }
	.companyinfo-phil__row { padding: 0; }
	.companyinfo-phil__lead, .companyinfo-phil__p { font-size: 13px; }
	.companyinfo-phil__bottom { gap: 0; margin: 0 0 30px; }
	.companyinfo-phil__role { padding: 64px 16px 0; }
	.companyinfo-phil__side { padding: 0 32px; }
	.companyinfo-phil__txt { gap: 12px; }
	.companyinfo-phil__h3 { font-size: 24px; }
	.companyinfo-phil__staff { gap: 12px; padding: 20px 16px; }
	.companyinfo-phil__staff .companyinfo-phil__h3 { padding: 0 0 0 32px; }
	.companyinfo-phil__staff .companyinfo-phil__p { padding: 0 32px; }

	.companyinfo-hist { padding: 40px 16px 0; }
	.companyinfo-hist__bg { top: 0; }
	.companyinfo-hist__box { padding: 24px 0; }
	.companyinfo-hist__list { gap: 16px; }
	.companyinfo-hist__item { align-items: flex-start; }
	.companyinfo-hist__mark { height: 20px; }
	.companyinfo-hist__line { height: 160px; }
	.companyinfo-hist__year { width: 32.8px; margin: 0; font-size: 13px; }
	.companyinfo-hist__era { width: 76px; font-size: 13px; }
	.companyinfo-hist__text { font-size: 13px; }

	.companyinfo-company { gap: 10px; padding: 64px 16px; overflow: hidden; }
	.companyinfo-company__box { padding: 32px 16px; border-radius: 16px; }
	.companyinfo-company__row { gap: 10px; }
	.companyinfo-company__dt { width: 121px; font-size: 13px; }
	.companyinfo-company__dd { font-size: 13px; }
}
