/* 下層ページ */

.p-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.p-hero__en {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 400;
  line-height: 1.05;
}

.p-hero__leaf {
  width: 47px;
  height: 40px;
  margin-top: 10px;
}

.p-hero__ja {
  margin-top: 8px;
  font-size: clamp(20px, 2.4vw, 35px);
  font-weight: 700;
}

.p-lead {
  width: min(100% - 80px, 1000px);
  margin: 28px auto 64px;
  text-align: center;
}

.p-lead:has(.p-lead__title) {
  width: min(100% - 80px, 1400px);
}

.p-lead__title {
  font-size: clamp(28px, 3.75vw, 60px);
  font-weight: 900;
  line-height: calc(88 / 60);
  color: #101010;
}

.p-lead__text {
  margin-top: 24px;
  font-size: 18px;
  line-height: 2;
}

/* About lead: 2 columns */
.p-aboutintro {
  position: relative;
  background: transparent;
}

body.is-subpage {
  position: relative;
  isolation: isolate;
}

body.is-subpage::before,
body.is-subpage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: #e8f6fb;
  pointer-events: none;
  filter: blur(90px);
  max-width: none;
}

body.is-subpage::before {
  width: 720px;
  height: 570px;
  left: -80px;
  top: calc(var(--header-h) + 160px);
}

body.is-subpage::after {
  width: 612px;
  height: 484px;
  right: -120px;
  top: calc(var(--header-h) - 60px);
}

.p-aboutintro .p-hero,
.p-aboutintro .p-lead {
  position: relative;
  z-index: 1;
}

.p-lead--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 28px 80px;
  width: min(100% - 80px, 1400px);
  margin: 8px auto 72px;
  text-align: left;
}

.p-lead--split .p-lead__title {
  margin: 0;
  font-size: clamp(28px, 3.75vw, 60px);
  font-weight: 700;
  line-height: 1.47;
  color: #101010;
}

.p-lead--split .u-mark-pink {
  color: #ff004a;
}

.p-lead--split .u-mark-blue {
  color: #1b70c8;
}

.p-lead--split .p-lead__body {
  padding-top: 6px;
}

.p-lead--split .p-lead__text {
  margin-top: 0;
  font-size: 18px;
  line-height: 2;
  color: #101010;
}

.p-lead--split .p-lead__text + .p-lead__text {
  margin-top: 28px;
}

.u-mark-pink { color: var(--color-red); }
.u-mark-blue { color: var(--color-blue); }

.p-lead .u-mark-pink {
  color: #ff004a;
}

.p-lead .u-mark-blue {
  color: #1b70c8;
}

.p-wideimg {
  width: calc(100% - max(40px, 21.875vw));
  max-width: 1500px;
  margin: 0 0 80px auto;
  overflow: hidden;
  border-radius: var(--radius-img) 0 0 var(--radius-img);
}

.p-wideimg--start {
  margin-top: 80px;
  margin-left: 0;
  margin-right: auto;
  border-radius: 0 var(--radius-img) var(--radius-img) 0;
}

.p-wideimg img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* About products */
.p-products {
  padding: 40px 0 80px;
  background: linear-gradient(90deg, #f8fdff 0%, #e7f8fe 100%);
}

.p-products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

.p-products__grid .c-pkg {
  min-width: 0;
  width: 100%;
}

@media (min-width: 700px) {
  .p-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }
}

@media (min-width: 900px) {
  .p-products__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 40px 28px;
  }
  .p-products__grid .c-pkg {
    grid-column: span 2;
  }
  .p-products__grid .c-pkg:nth-child(4) {
    grid-column: 2 / 4;
  }
  .p-products__grid .c-pkg:nth-child(5) {
    grid-column: 4 / 6;
  }
}

.c-pkg__img {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #eceff3;
  overflow: hidden;
}

.c-pkg__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.c-pkg__title {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
}

.c-pkg__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
}

/* Data cards */
.p-data {
  padding: 80px 0;
  background: #fff;
}

.p-welfare.p-data {
  padding: 120px 0 140px;
  background: linear-gradient(90deg, #f8fdff 0%, #e7f8fe 100%);
}

.p-data__panel {
  margin-top: 40px;
  padding: 38px;
  background: #ecf9ff;
  border-radius: 10px;
}

.p-data__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 0;
}

.c-stat {
  padding: 28px 24px 24px;
  background: #fff;
  border: 0;
  border-radius: 0;
  min-height: 320px;
}

.c-stat__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #1b70c8;
  font-size: 20px;
  font-weight: 700;
}

.c-stat__label span {
  color: #097cd5;
  font-family: var(--font-en);
  font-weight: 400;
}

.c-stat__num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 12px;
  color: #ff004a;
  font-family: "Roboto", var(--font-en), sans-serif;
  font-size: clamp(56px, 7.2vw, 110px);
  font-weight: 500;
  line-height: 0.95;
}

.c-stat__num small {
  color: #000;
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 36px);
  font-weight: 700;
  margin-left: 2px;
  line-height: 1.2;
}

.c-stat__text {
  font-size: 16px;
  line-height: 1.8;
  color: #101010;
}

/* Sustainability */
.p-sustain {
  padding: 80px 0;
  background: #f4f8fc;
}

.p-sustain__intro {
  margin: 12px 0 40px;
  font-size: 18px;
  line-height: 2;
}

.c-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
}

.c-split img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.c-split__title {
  color: var(--color-headline);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}

.c-split__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.9;
}

/* Outline / History */
.p-dl {
  width: min(100%, 900px);
  margin: 32px auto 0;
}

.p-dl div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 16px;
}

.p-dl dt,
.p-dl dd {
  margin: 0;
  padding: 0;
  text-align: left;
}

.p-dl dt {
  font-weight: 700;
}

.p-history {
  width: min(100%, 900px);
  margin: 32px auto 0;
  padding: 0;
  list-style: none;
}

.p-history li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

.p-history time {
  color: var(--color-blue);
  font-weight: 700;
}

/* Works jobs */
.p-job {
  display: grid;
  grid-template-columns: minmax(280px, 38%) minmax(0, 1fr);
  grid-template-areas:
    "copy main"
    "thumbs thumbs";
  align-items: center;
  column-gap: clamp(40px, 3.2vw, 64px);
  row-gap: 32px;
  margin: 24px 0 96px;
  position: relative;
}

.p-job--rev {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
  grid-template-areas:
    "main copy"
    "thumbs thumbs";
  column-gap: clamp(56px, 7.8vw, 150px);
}

.p-job__copy {
  grid-area: copy;
  padding: 8px 0 40px max(24px, 16.67vw);
}

.p-job--rev .p-job__copy {
  padding: 8px max(24px, 4vw) 40px 0;
}

.p-job__num,
.p-job__title,
.p-job__text {
  max-width: 400px;
}

.p-job__num {
  margin: 0 0 4px;
  color: #1b70c8;
  opacity: 0.2;
  font-family: "Roboto", var(--font-en), sans-serif;
  font-size: clamp(72px, 7.3vw, 110px);
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
}

.p-job__title {
  font-size: clamp(24px, 2.1vw, 40px);
  font-weight: 700;
  line-height: 1.4;
}

.p-job__text {
  margin-top: 12px;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.8;
}

.p-job__main {
  grid-area: main;
  overflow: hidden;
  border-radius: var(--radius-img) 0 0 var(--radius-img);
}

.p-job--rev .p-job__main {
  border-radius: 0 var(--radius-img) var(--radius-img) 0;
}

.p-job__main img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.p-job__thumbs {
  grid-area: thumbs;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 24px;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

.p-job--rev .p-job__thumbs {
  margin: 0 auto;
}

.p-job__thumbs img {
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-img);
  display: block;
}

/* Flow */
.p-flow {
  padding: 80px 0 100px;
  background: linear-gradient(90deg, #f8fdff 0%, #e7f8fe 100%);
}

.p-flow__list {
  position: relative;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}

.p-flow__list::before {
  content: "";
  position: absolute;
  left: 70px;
  top: 70px;
  bottom: 70px;
  width: 2px;
  background: #1b70c8;
  transform: translateX(-50%);
}

.p-flow__item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 60px;
  align-items: center;
  margin-bottom: 40px;
}

.p-flow__item:last-child {
  margin-bottom: 0;
}

.p-flow__time {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #1b70c8;
  color: #fff;
  font-family: "Roboto", var(--font-en), sans-serif;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
}

.p-flow__body {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 40px;
  background: #fff;
  /*border: 1px solid #707070;*/
}

.p-flow__body h3 {
  color: #1b70c8;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.p-flow__body p {
  margin-top: 8px;
  color: #101010;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.p-note {
  max-width: 1020px;
  margin: 100px auto 0;
  padding: 48px 64px 44px;
  background: #fff;
  border: 2px solid #1b70c8;
  border-radius: 20px;
}

.p-note h3 {
  color: #101010;
  font-size: clamp(22px, 2.2vw, 36px);
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.p-note p {
  margin-top: 20px;
  color: #101010;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

/* Quality */
.p-quality {
  padding: 40px 0 100px;
}

.p-quality .c-headline {
  color: #101010;
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 700;
  line-height: 1.5;
}

.p-quality .p-lead__text {
  margin-top: 16px;
  color: #101010;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}

.p-quality__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 4.2vw, 80px);
  row-gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.p-quality__grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.p-quality__grid h3 {
  margin-top: 20px;
  color: #1b70c8;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.p-quality__grid p {
  margin-top: 16px;
  color: #101010;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

.p-quality__points {
  margin-top: 20px;
  display: grid;
  gap: 18px;
}

.p-quality__points li {
  position: relative;
  margin-top: 0;
  padding-left: 20px;
}

.p-quality__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b70c8;
}

.p-quality__points strong {
  display: block;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.p-quality__points span {
  display: block;
  margin-top: 4px;
  color: #101010;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

/* Environment */
.p-envgallery {
  margin: 0 0 80px;
}

.p-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 0 0 80px;
}

.p-feature--rev {
  direction: rtl;
}

.p-feature--rev > * {
  direction: ltr;
}

.p-feature img {
  width: 100%;
  border-radius: var(--radius-img);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.p-feature h3 {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.6;
}

.p-feature p,
.p-feature li {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.9;
}

.p-gift {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.p-feature .p-gift li {
  margin-top: 28px;
  font-size: inherit;
  line-height: inherit;
}

.p-feature .p-gift li:first-child {
  margin-top: 0;
}

.p-gift__label {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.p-gift__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b70c8;
}

.p-feature .p-gift__text {
  margin-top: 8px;
  color: #101010;
  /*font-size: 18px;*/
  font-weight: 500;
  line-height: 2;
}

.p-chip {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  margin-top: 16px;
  padding: 16px 18px;
  background: #eef6fb;
  border-radius: 8px;
}

.p-chip dt {
  color: var(--color-blue);
  font-weight: 700;
}

.p-welfare {
  padding: 40px 0 80px;
}

.p-welfare__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 40px;
  justify-content: center;
  margin-top: 56px;
}

.p-welfare__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 340px;
  min-height: 380px;
  padding: 68px 35px 48px;
  background: #fff;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.p-welfare__item h3 {
  margin: 0;
  color: #1b70c8;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.p-welfare__icon {
  display: block;
  width: auto;
  height: 114px;
  margin: 18px 0 24px;
  object-fit: contain;
}

.p-welfare__item p {
  width: 100%;
  max-width: 270px;
  margin-top: auto;
  color: #101010;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  text-align: left;
}

.p-career__photos {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.p-career__photos img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-img);
}

/* Interview detail */
body.single-interview::before,
body.single-interview::after {
  display: none;
}

.p-ivhero {
  position: relative;
  width: 100%;
  height: min(900px, 72vw);
  min-height: 560px;
  margin: 0 0 80px;
  overflow: hidden;
}

.p-ivhero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.p-ivhero__head {
  position: absolute;
  top: 70px;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 450px;
  max-width: 100%;
  height: 180px;
  background: #fff;
  border-radius: 0 20px 20px 0;
  text-align: center;
}

.p-ivhero__en {
  color: var(--color-blue);
  font-family: var(--font-en);
  font-size: clamp(48px, 4.5vw, 86px);
  font-weight: 400;
  line-height: 1;
}

.p-ivhero__ja {
  margin-top: 4px;
  color: #000;
  font-size: clamp(16px, 1.4vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}

.p-ivhero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 80px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  padding: 0 50px 0 114px;
  max-width: 100%;
  box-sizing: border-box;
}

.p-ivhero__quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.p-ivhero__quote span {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 90px;
  padding: 16px 24px 16px 16px;
  background: #fff;
  color: var(--color-blue-btn);
  font-size: clamp(18px, 2.4vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.p-ivhero__profile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-height: 90px;
  padding: 12px 28px 12px 30px;
  background: #fff;
  color: #000;
}

.p-ivhero__name {
  font-size: clamp(28px, 2.4vw, 46px);
  font-weight: 500;
  line-height: 1.2;
}

.p-ivhero__dept,
.p-ivhero__year {
  font-size: clamp(14px, 1.15vw, 22px);
  font-weight: 400;
  line-height: 1.4;
}

.p-ivhero__sep {
  display: block;
  width: 1px;
  height: 28px;
  background: var(--color-green);
  transform: rotate(37deg);
  flex-shrink: 0;
}

.p-ivblock {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: start;
  margin: 0 0 120px;
}

.p-ivblock--rev {
  grid-template-columns: 0.9fr 1fr;
}

.p-ivq + .p-ivq {
  margin-top: 36px;
}

.p-ivq h3 {
  position: relative;
  padding-left: 75px;
  color: var(--color-blue-btn);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.46;
}

.p-ivq h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 64px;
  height: 1px;
  background: var(--color-blue-btn);
}

.p-ivq p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 2;
}

.p-ivblock img {
  width: 100%;
  aspect-ratio: 620 / 740;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.p-ivmsg {
  padding: 64px 0 120px;
  margin-bottom: 48px;
  background: #eef6fb;
  text-align: center;
}

.p-ivmsg p {
  max-width: 880px;
  margin: 16px auto 0;
  text-align: left;
  line-height: 2;
}

/* Recruit */
.p-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 40px;
}

.p-tabs button {
  min-width: 240px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: #e9eef3;
  font-size: 16px;
  font-weight: 700;
}

.p-tabs button.is-active {
  background: var(--color-blue);
  color: #fff;
}

.p-rectable {
  width: min(100%, 1000px);
  margin: 0 auto;
  border-collapse: collapse;
  border-top: 1px solid var(--color-line);
}

.p-rectable th,
.p-rectable td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
  border-bottom: 1px solid var(--color-line);
}

.p-rectable th {
  width: 180px;
  font-weight: 700;
}

.p-recruit__mynavi {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 1000px);
  margin: 80px auto 120px;
  text-align: center;
}

.p-recruit__mynavi-text {
  width: 100%;
  font-size: 18px;
  line-height: 2;
  text-align: center;
}

.p-recruit__btn {
  margin: 32px 0 0;
  text-align: center;
}

.p-recruit__btn .c-btn {
  min-width: min(100%, 400px);
}

/* Form */
.p-form {
  width: min(100%, 920px);
  margin: 0 auto 80px;
}

.p-form__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}

.p-form__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.p-req {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 20px;
  border-radius: 4px;
  background: var(--color-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.p-form input[type="text"],
.p-form input[type="email"],
.p-form input[type="tel"],
.p-form input[type="number"],
.p-form textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d7d9dc;
  border-radius: 8px;
  background: #f7f8fa;
  font: inherit;
}

.p-form textarea {
  height: 140px;
  padding: 12px 14px;
  resize: vertical;
}

.p-form__names,
.p-form__birth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* CF7 wpautop の <p>/<br> を潰して姓・名を1行に並べる */
.p-form__names > p,
.p-form__birth > p {
  display: contents;
}

.p-form__names br,
.p-form__birth br {
  display: none;
}

.p-form__radios {
  display: grid;
  gap: 10px;
}

.p-form__radios .wpcf7-radio,
.p-form__radios .wpcf7-list-item,
.p-form__radios label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.p-form__radios .wpcf7-radio {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.p-form input[type="radio"],
.p-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-green);
  flex-shrink: 0;
}

.p-form__agree {
  margin: 28px 0;
  text-align: center;
}

.p-form__agree .wpcf7-list-item,
.p-form__agree label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.p-form__submit {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.p-form__notice,
.p-form__error {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: 8px;
}

.p-form__notice {
  background: #e8f8f2;
}

.p-form__error {
  background: #fff0f3;
}

.wpcf7 {
  width: min(100%, 920px);
  margin: 0 auto 80px;
}

.wpcf7 .p-form {
  width: 100%;
  margin: 0;
}

.wpcf7-form-control-wrap {
  display: block;
}

.p-form__names .wpcf7-form-control-wrap,
.p-form__birth .wpcf7-form-control-wrap {
  min-width: 0;
}

.wpcf7-list-item {
  display: block;
  margin: 0 0 8px;
}

.wpcf7-list-item-label {
  font-weight: 500;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: var(--color-red);
  font-size: 13px;
}

div.wpcf7-response-output,
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 0;
  border-radius: 8px;
  background: #f3f5f7;
}

.wpcf7 form.sent .wpcf7-response-output {
  background: #e8f8f2;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
  background: #fff0f3;
}

.p-form .wpcf7-submit.c-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  color: var(--color-white);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
}

.p-form .wpcf7-submit.c-btn::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
}

.wpcf7 .ajax-loader,
.p-form__submit .wpcf7-spinner,
.wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: calc(50% + 132px);
  width: 24px;
  height: 24px;
  margin: 0;
  transform: translateY(-50%);
}

/* Legal */
.p-legal {
  width: min(100% - 80px, 1000px);
  margin: 0 auto 80px;
}

.p-legal h2 {
  margin: 2em 0 0.7em;
  font-size: 22px;
  font-weight: 700;
}

.p-legal p {
  margin: 0 0 1.2em;
  line-height: 2;
}

.p-legal__box {
  margin: 16px 0 24px;
  padding: 20px 24px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  list-style: none;
}

.p-legal__box li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: #101010;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.p-legal__box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
}

.p-legal__num {
  counter-reset: legal;
}

.p-legal__num li {
  padding-left: 40px;
}

.p-legal__num li::before {
  counter-increment: legal;
  content: counter(legal);
  top: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #1b70c8;
  border-radius: 50%;
  background: #fff;
  color: #1b70c8;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

/* News article */
.p-article {
  width: min(100% - 80px, 900px);
  margin: 0 auto 48px;
}

.p-article__title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.6;
}

.p-article__date {
  margin: 12px 0 28px;
  color: var(--color-blue);
}

.p-article .entry-content {
  color: #101010;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.p-article .entry-content > *:first-child {
  margin-top: 0;
}

.p-article .entry-content p {
  margin: 0 0 1.5em;
}

.p-article .entry-content h2 {
  margin: 2em 0 0.8em;
  color: #000;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.75;
}

.p-article .entry-content h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  margin-top: 10px;
  background: #1b70c8;
}

.p-article .entry-content h3 {
  margin: 1.8em 0 0.8em;
  padding: 11px 16px;
  background: #f5f5f5;
  border-left: 5px solid #1b70c8;
  color: #1b70c8;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.p-article .entry-content h4 {
  margin: 1.6em 0 0.6em;
  padding-bottom: 10px;
  border-bottom: 1px solid #1b70c8;
  color: #000;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.p-article .entry-content h5,
.p-article .entry-content h6 {
  margin: 1.4em 0 0.5em;
  color: #1b70c8;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.p-article .entry-content a:not(.wp-block-button__link):not(.wp-element-button) {
  color: #1b70c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-article .entry-content ul,
.p-article .entry-content ol {
  margin: 0 0 1.5em;
  padding-left: 0;
  list-style: none;
}

.p-article .entry-content li {
  position: relative;
  margin: 0 0 0.2em;
  padding-left: 22px;
  color: #101010;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 26px;
}

.p-article .entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b70c8;
}

.p-article .entry-content ol {
  counter-reset: article-ol;
}

.p-article .entry-content ol > li {
  padding-left: 28px;
  counter-increment: article-ol;
}

.p-article .entry-content ol > li::before {
  content: counter(article-ol);
  position: absolute;
  left: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #1b70c8;
  border-radius: 50%;
  color: #1b70c8;
  font-family: "Roboto", sans-serif;
  font-size: 8px;
  font-weight: 400;
  line-height: 1;
}

.p-article .entry-content .wp-block-table,
.p-article .entry-content figure.wp-block-table {
  margin: 1.5em 0;
  overflow-x: auto;
}

.p-article .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.p-article .entry-content th,
.p-article .entry-content td {
  padding: 9px 14px;
  border: 1px solid #bcbcbc;
  color: #222426;
  font-size: 16px;
  font-weight: 400;
  line-height: 38px;
  text-align: left;
}

.p-article .entry-content thead th,
.p-article .entry-content th {
  background: #f6f6f6;
  font-weight: 700;
}

.p-article .entry-content td {
  background: #fff;
}

.p-article .entry-content .wp-block-buttons {
  margin: 1.5em 0;
}

.p-article .entry-content .wp-block-button__link,
.p-article .entry-content .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 26px;
  background: #1bc895;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
}

.p-article .entry-content .wp-block-button__link:hover,
.p-article .entry-content .wp-element-button:hover {
  background: #16b085;
  color: #fff;
}

.p-postnav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(100% - 80px, 1000px);
  margin: 0 auto 80px;
  padding-top: 48px;
}

.p-postnav a,
.p-postnav__disabled {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 36px;
  text-decoration: none;
}

.p-postnav a:hover {
  color: var(--color-green);
}

.p-postnav a:hover .p-postnav__circle {
  background: var(--color-green-dark);
}

.p-postnav__circle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
}

.p-postnav__circle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.p-postnav__prev .p-postnav__circle::after {
  margin-left: 3px;
  transform: rotate(-135deg);
}

.p-postnav__next .p-postnav__circle::after {
  margin-right: 3px;
  transform: rotate(45deg);
}

.p-postnav__next {
  text-align: right;
}

.p-postnav__next a,
.p-postnav__next .p-postnav__disabled {
  justify-content: flex-end;
}

.p-postnav__back a {
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.p-postnav__dots {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 4px;
}

.p-postnav__dots span {
  width: 6px;
  height: 6px;
  background: var(--color-green);
}

.p-postnav__disabled {
  opacity: 0.35;
  pointer-events: none;
}

.p-news__list--page {
  width: min(100%, 900px);
  margin: 20px auto 48px;
}

.section {
  padding: 40px 0 120px;
}

@media (max-width: 900px) {
  .p-lead,
  .p-legal {
    width: min(100% - 40px, 1000px);
  }

  .p-lead--split {
    grid-template-columns: 1fr;
    gap: 24px;
    width: min(100% - 40px, 1400px);
    margin-bottom: 48px;
  }

  body.is-subpage::before {
    width: min(280px, 70vw);
    height: min(220px, 56vw);
    left: -12vw;
    top: calc(var(--header-h) + 80px);
    filter: blur(48px);
  }

  body.is-subpage::after {
    width: min(240px, 64vw);
    height: min(190px, 50vw);
    right: -10vw;
    top: calc(var(--header-h) - 40px);
    filter: blur(48px);
  }

  .p-data__panel {
    padding: 20px;
  }

  .p-job,
  .p-job--rev {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "main"
      "thumbs";
    column-gap: 0;
    margin: 32px 0 64px;
  }

  .p-job__num,
  .p-job__title,
  .p-job__text {
    max-width: none;
  }

  .p-job__copy,
  .p-job--rev .p-job__copy {
    margin: 0;
    padding: 0 20px 20px;
  }

  .p-job__main,
  .p-job--rev .p-job__main {
    border-radius: 0;
  }

  .p-job__thumbs,
  .p-job--rev .p-job__thumbs {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    width: auto;
    margin: 0 16px;
  }

  .p-data__grid,
  .p-quality__grid,
  .p-welfare__grid,
  .p-feature,
  .p-feature--rev,
  .p-ivblock,
  .p-ivblock--rev,
  .c-split,
  .p-form__row,
  .p-career__photos {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .p-welfare.p-data {
    padding: 72px 0 80px;
  }

  .p-welfare__grid {
    gap: 20px;
    margin-top: 32px;
  }

  .p-welfare__item {
    width: 100%;
    max-width: 340px;
    min-height: 0;
    padding: 48px 24px 36px;
    justify-self: center;
  }

  .p-welfare__item p {
    width: 100%;
  }

  .p-flow__list {
    padding-left: 0;
  }

  .p-flow__list::before {
    left: 36px;
    top: 36px;
    bottom: 36px;
  }

  .p-flow__item {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 16px;
    margin-bottom: 24px;
  }

  .p-flow__time {
    width: 72px;
    height: 72px;
    font-size: 15px;
  }

  .p-flow__body {
    min-height: 0;
    padding: 20px 18px;
  }

  .p-flow__body h3 {
    font-size: 18px;
  }

  .p-note {
    margin-top: 48px;
    padding: 28px 20px;
  }

  .p-ivhero {
    height: auto;
    min-height: 520px;
    aspect-ratio: 3 / 4;
    max-height: 760px;
  }

  .p-ivhero__head {
    top: 16px;
    left: 0;
    width: auto;
    max-width: 46%;
    height: auto;
    min-height: 0;
    padding: 8px 14px 8px 12px;
  }

  .p-ivhero__en {
    font-size: clamp(22px, 6.4vw, 30px);
  }

  .p-ivhero__ja {
    font-size: 12px;
  }

  /* 顔が左寄りの写真は、見出しと被らない位置へ */
  .p-ivhero--mn .p-ivhero__img,
  .p-ivhero--ss .p-ivhero__img,
  .p-ivhero--dy .p-ivhero__img,
  .p-ivhero--ky .p-ivhero__img {
    object-position: 28% 36%;
  }

  .p-ivhero__meta {
    flex-direction: column;
    align-items: stretch;
    bottom: 24px;
    padding: 0 16px;
    gap: 12px;
    width: 100%;
  }

  .p-ivhero__quote {
    width: 100%;
  }

  .p-ivhero__quote span {
    min-height: 0;
    padding: 10px 14px;
    font-size: clamp(16px, 4.4vw, 20px);
    line-height: 1.4;
  }

  .p-ivhero__profile {
    align-self: start;
    width: fit-content;
    max-width: 100%;
    min-height: 0;
    gap: 6px 12px;
    padding: 8px 14px 8px 16px;
  }

  .p-ivhero__name {
    font-size: 22px;
  }

  .p-ivhero__dept,
  .p-ivhero__year {
    font-size: 13px;
  }

  .p-ivhero__sep {
    height: 20px;
  }

  .p-dl div,
  .p-history li {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
    text-align: left;
  }

  .p-dl dd {
    margin-inline-start: 0;
  }

  .p-recruit__mynavi {
    margin: 40px auto 64px;
  }

  .p-recruit__mynavi-text {
    font-size: 16px;
    text-align: center;
  }

  .p-recruit__btn .c-btn {
    min-width: 0;
    width: min(100%, 400px);
    padding: 0 20px;
  }

  .p-tabs {
    flex-direction: column;
    align-items: center;
  }

  .p-tabs button {
    width: min(100%, 340px);
    min-width: 0;
  }

  .p-rectable,
  .p-rectable tbody,
  .p-rectable tr,
  .p-rectable th,
  .p-rectable td {
    display: block;
    width: 100%;
  }

  .p-rectable th,
  .p-rectable td {
    padding: 0;
    border-bottom: 0;
    text-align: left;
  }

  .p-rectable tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .p-rectable th {
    width: auto;
    padding-bottom: 6px;
  }

  .p-postnav {
    grid-template-columns: 1fr auto 1fr;
    width: min(100% - 32px, 1000px);
    gap: 8px;
    padding-top: 32px;
    margin-bottom: 56px;
  }

  .p-postnav a,
  .p-postnav__disabled {
    font-size: 12px;
    gap: 6px;
    letter-spacing: 0;
    line-height: 1.3;
  }

  .p-postnav__circle {
    width: 30px;
    height: 30px;
  }

  .p-postnav__back a {
    font-size: 11px;
    gap: 8px;
    text-align: center;
  }

  .p-postnav__next {
    text-align: right;
  }

  .p-postnav__next a,
  .p-postnav__next .p-postnav__disabled {
    justify-content: flex-end;
  }
}
