/**
 * File: subp.css
 * Usage: トップページ以外の共通スタイルを定義します。
 * Example: サブページ共通のヘッダーなど
*/

.bl_subpFvTtl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 160px 20px 40px 20px;
  position: relative;
  z-index: 10;
}

.bl_subpFvTtl span {
  font-size: clamp(3rem, 2.1429rem + 4.2857vw, 6rem);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.bl_subpFvTtl h1 {
  font-size: clamp(1rem, 0.9286rem + 0.3571vw, 1.25rem);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl_subpSecTtl>span {
  color: var(--color-accent);
  display: flex;
  gap: 8px;
  align-items: center;
}

.bl_subpSecTtl>span path {
  fill: var(--color-accent);
}

.bl_subpSecTtl h2 {
  font-size: clamp(1.75rem, 1.3929rem + 1.7857vw, 3rem);
}

.bl_subpSecTtl h2 span.txt_md {
  font-size: clamp(2.125rem, 1.7321rem + 1.9643vw, 3.5rem);
}

.bl_subpSecTtl h2 span.txt_lg {
  font-size: clamp(3.125rem, 2.0179rem + 5.5357vw, 7rem);
}

.bl_visionPhilosophy p {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
}

.subp_only {
  display: block;
}

.ly_subpFv {
  background: #fd5500;
  position: relative;
}

/* Section title - reusable element */
.el_sectionTitle {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el_sectionTitle span {
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: clamp(1rem, 0.8214rem + 0.8929vw, 1.25rem);
  font-weight: 700;
}

.el_sectionTitle span path {
  fill: var(--color-accent);
}

.el_sectionTitle h2 {
  font-size: clamp(1.5rem, 1.1429rem + 1.7857vw, 2rem);
  font-weight: 700;
}

.el_sectionTitle p {
  font-weight: 500;
  font-size: clamp(1rem, 0.8214rem + 0.8929vw, 1.25rem);
}

.el_sectionTitle ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el_sectionTitle ul li {
  list-style-type: disc;
  margin-left: 20px;
  font-weight: 500;
  font-size: clamp(1rem, 0.8214rem + 0.8929vw, 1.25rem);
}

.el_sectionTitle_mdInline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ReasonTop  - reusable class */

.ly_reasonTop {
  background: var(--color-text);
  color: #fff;
  padding: 240px 20px 100px;
  position: relative;
  --clip: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  clip-path: var(--clip);
}

.ly_reasonTop::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/reason/reason-fv-sp.webp) no-repeat left top;
  z-index: 1;
}

.ly_reasonTop::before {
  position: absolute;
  height: 100%;
  width: 100%;
  content: '';
  top: -1px;
  left: 0;
  z-index: 2;
  background: url(../img/vision/vision-swiper-triangle.svg) no-repeat top left;
  background-size: 100% auto;
}

.bl_reasonTop {
  position: relative;
  z-index: 3;
}

.bl_reasonTop h2 {
  font-size: clamp(1.25rem, 0.8979rem + 1.5023vw, 2.25rem);
  font-weight: 900;
  transform: skewX(-9deg);
  margin-bottom: 32px;
}

.bl_reasonTop h2 span:not(.hp_txtCenter) {
  font-size: clamp(2rem, 1.6479rem + 1.5023vw, 3rem);
}

.bl_reasonTop h2 .hp_txtCenter {
  display: block;
  width: 100%;
  align-items: center;
  font-size: clamp(1.5rem, 0.9643rem + 2.6786vw, 3.375rem);
}

.bl_reasonTop h2 span.un_txtBig {
  font-size: clamp(2.5rem, 1.6964rem + 4.0179vw, 5.3125rem);
}

.bl_reasonTop {
  font-size: 18px;
  padding-bottom: 80px;
}

/* VisionWant  - reusable class */

.bl_visionWant {
  padding: 80px 20px;
}

.bl_visionWant_content {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bl_visionWant_card {
  background: #fdbe4c;
  transform: skewY(-5deg);
  position: relative;
  padding: 12px;
  max-width: 380px;
  margin-inline: auto;
  overflow: clip;
}

.bl_visionWant_card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: url(../img/top/group-logo.svg) no-repeat center;
  background-size: contain;
  opacity: 8%;
  filter: invert(1);
  transform: translateX(-30%) skewY(5deg);
}

.bl_visionWant_card .hp_txtEng {
  display: block;
  width: 100%;
  margin-inline: auto 0;
  border-bottom: 1px solid var(--color-text);
  text-align: right;
  font-size: 14px;
  padding-top: 12px;
  max-width: 80%;
  margin-inline: auto 0;
  text-transform: uppercase;
}

.bl_visionWant_card p {
  font-size: 48px;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  line-height: 1;
  width: 75%;
  margin-inline: auto 0;
  margin-top: 50px;
}

.bl_visionWant_card p span:first-child {
  align-self: flex-start;
}

.bl_visionWant_card p span:last-child {
  align-self: flex-end;
}

.bl_visionWant_txt {
  margin-top: 32px;
  font-size: 16px;
}

.bl_visionWant_txt ul,
.bl_visionWant_item ul {
  margin: 24px 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bl_visionWant_txt ul li,
.bl_visionWant_item ul li {
  list-style: disc;
}

.bl_visionWant_item:nth-child(2) .bl_visionWant_card p,
.bl_visionWant_item:nth-child(3) .bl_visionWant_card p {
  width: 95%;
}

.bl_visionWant_item:nth-child(2) .bl_visionWant_card p span:first-child,
.bl_visionWant_item:nth-child(3) .bl_visionWant_card p span:first-child {
  font-size: 42px;
}

.ly_visionTeam {
  background: linear-gradient(0deg,
      rgba(253, 190, 76, 1) 50%,
      rgba(255, 255, 255, 1) 50%);
  aspect-ratio: 375 / 420;
  position: relative;
}

.ly_visionTeam::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 32px;
  height: 52px;
  content: '';
  background: url(../img/vision/vision-team-arrows.svg) no-repeat top center;
  background-size: contain;
  z-index: 2;
  transform: translateX(-50%);
}

.bl_visionTeam {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 240px 12px 120px;
  color: #fff;
  font-weight: 900;
}

.bl_visionTeam p {
  position: relative;
  z-index: 3;
  transform: skewX(-9deg);
  font-size: clamp(0.875rem, 0.4821rem + 1.9643vw, 2.25rem);
}

.bl_visionTeam p:nth-child(2) {
  font-size: clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
}

.bl_visionTeam p span {
  font-size: clamp(1.5rem, 0.7857rem + 3.5714vw, 4rem);
}

.bl_visionTeam::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-10%);
  width: 110%;
  height: 110%;
  background: url(../img/vision/vision-team.webp) no-repeat top center;
  background-size: contain;
  --clip: polygon(0 20%, 100% 10%, 100% 90%, 0 100%);
  clip-path: var(--clip);
  z-index: 1;
}

.bl_visionTeam::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 36.84%, #000000 50.09%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.56));
  --clip: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
  clip-path: var(--clip);
  z-index: 2;
}

.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-top: 64px;
}

.wp-pagenavi span,
.wp-pagenavi a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
}

.wp-pagenavi span.extend {
  border: none;
}

.wp-pagenavi span.current,
.wp-pagenavi a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.el_btnViewMore {
  font-weight: 700;
  font-size: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-accent);
  width: fit-content;
  margin-inline: auto 0;
}

@media screen and (min-width: 768px) {
  .bl_subpFvTtl {
    max-width: min(72vw, 1040px);
    min-height: 460px;
    margin: 0 auto;
    padding-block: 200px 120px;
  }

  .bl_subpFvTtl span {
    -webkit-text-stroke: 2px var(--color-text);
  }

  .bl_subpSecTtl>span {
    font-size: 20px;
  }

  .el_sectionTitle_mdInline {
    flex-direction: row;
    gap: 24px;
    align-items: baseline;
  }

  .ly_reasonTop {
    padding-top: 320px;
    padding-inline: 10vw 5vw;
    --clip: polygon(-1% -1%, 100% 0, 100% 90%, 0 100%);
  }

  .ly_reasonTop::after {
    background: url(../img/reason/reason-fv-pc.webp) no-repeat left top;
    background-size: contain;
  }

  .ly_reasonTop::before {
    background: url(../img/vision/vision-swiper-triangle-pc.svg) no-repeat top left;
    background-size: 100% auto;
  }

  .bl_reasonTop {
    max-width: 690px;
    margin-inline: auto;
  }

  .bl_reasonTop .un_ml {
    margin-left: 4ch;
  }

  /* VisionWant  - reusable class */

  .bl_visionWant {
    max-width: 1080px;
    margin-inline: auto;
  }

  .bl_visionWant_content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .bl_visionWant_card {
    transform: none;
    aspect-ratio: 32 / 23;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .bl_visionWant_content {
    transform: skewY(-5deg);
  }

  .bl_visionWant_txt {
    transform: skewY(5deg);
  }

  .bl_visionWant_card p {
    width: 90%;
  }

  .bl_visionWant_card p {
    font-size: 45px;
  }

  .bl_visionWant_item:nth-child(2) .bl_visionWant_card p span:first-child,
  .bl_visionWant_item:nth-child(3) .bl_visionWant_card p span:first-child {
    font-size: 40px;
  }

  .ly_visionTeam {
    aspect-ratio: 1440 / 614;
  }

  .bl_visionTeam {
    padding-block: 320px 160px;
  }

  .bl_visionTeam::before {
    background-position: center 60%;
    transform: none;
    left: 0;
    background-size: cover;
    width: 100%;
    height: 100%;
    --clip: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
  }

  .bl_visionTeam::after {
    background: #0000008f;
    --clip: polygon(0 15%, 100% 0, 100% 85%, 0 100%);
  }

  .ly_visionTeam::after {
    top: -10px;
    width: 48px;
    height: 78px;
    background-size: cover;
  }
}

@media screen and (min-width: 1440px) {
  .ly_reasonTop {
    padding-inline: 30vw 5vw;
  }
}

/* CardsContent - reusable cards grid component */

.bl_cardsContent {
  padding: 80px 20px;
}

.bl_cardsContent+.bl_cardsContent {
  padding-top: 0;
}

.bl_cardsContent_grid {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bl_cardsContent_card {
  background: none;
  padding: 0;
  transform: skewY(-3deg);
  max-width: 380px;
  margin-inline: auto;
}

.bl_cardsContent_card svg {
  width: 100%;
  height: auto;
}

.bl_cardsContent_txt {
  margin-top: 16px;
  font-size: 16px;
}

@media screen and (min-width: 768px) {
  .bl_cardsContent {
    max-width: 1080px;
    margin-inline: auto;
    padding-block: 160px;
  }

  .bl_cardsContent_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .bl_cardsContent_card {
    transform: skewY(5deg);
  }

  .bl_cardsContent_grid {
    transform: skewY(-5deg);
  }

  .bl_cardsContent_txt {
    transform: skewY(5deg);
  }
}

/* BottomCatch - reusable catch phrase component */

.bl_bottomCatch {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 20px;
}

.bl_bottomCatch h3 {
  font-size: clamp(2rem, 1.7143rem + 1.4286vw, 3rem);
}

@media screen and (min-width: 768px) {
  .bl_bottomCatch {
    align-items: center;
  }
}

/* EducationItem - reusable content block component */

.bl_educationItem {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-bottom: 64px;
}

.bl_educationItem_top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bl_educationItem_headTxt,
.bl_educationItem_txt {
  display: contents;
}

.bl_educationItem_ttl {
  position: relative;
}

.bl_educationItem_ttl h2 {
  font-weight: 700;
  font-size: clamp(1.625rem, 1.375rem + 1.25vw, 2.5rem);
}

.bl_educationItem_txt {
  display: flex;
  flex-direction: column;
  gap: 32px;
  order: 999;
  font-size: 16px;
}

.bl_educationItem_txt ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bl_educationItem_txt ul li {
  list-style-type: disc;
  font-size: inherit;
}

.bl_educationItem_txt ul li::marker {
  font-size: 10px;
}

.bl_educationItem_txt p strong {
  font-size: clamp(1.25rem, 1.0714rem + 0.8929vw, 1.5rem);
}

.bl_educationItem_img {
  width: calc(100% + 20px);
}

.bl_educationItem_topReverse .bl_educationItem_img {
  margin-left: -20px;
}

.bl_educationItem_topReverse .bl_educationItem_ttl {
  align-items: flex-end;
  text-align: right;
}

.bl_educationItem_topReverse .bl_educationItem_headTxt {
  align-items: flex-end;
  padding-right: 20px;
}

@media screen and (min-width: 768px) {
  .bl_educationItem {
    gap: 80px;
  }

  .bl_educationItem_headTxt {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 500px;
    width: 100%;
  }

  .bl_educationItem_top {
    flex-direction: row;
    width: calc(100% + 20px);
    align-items: center;
    gap: 40px;
  }

  .bl_educationItem_top:has(.bl_educationItem_img) {
    justify-content: flex-end;
    max-width: 1440px;
    margin: 0 auto;
  }

  .bl_educationItem_top:not(:has(.bl_educationItem_img)) {
    max-width: 1040px;
    margin: 0 auto;
  }

  .bl_educationItem_topReverse {
    flex-direction: row-reverse;
  }

  .bl_educationItem_topReverse .bl_educationItem_ttl {
    align-items: flex-start;
    text-align: left;
  }

  .bl_educationItem_topReverse .bl_educationItem_headTxt {
    align-items: flex-start;
    padding-right: 0px;
  }

  .bl_educationItem_img {
    width: 50vw;
    max-width: 720px;
  }
}

.bl_formField {
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bl_formField label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.bl_formField input:not([type='checkbox']),
.bl_formField select,
.bl_formField textarea {
  appearance: none;
  width: 100%;
  height: 46px;
  border: 1px solid #909090;
  background: #fff;
  border-radius: 4px;
  padding: 12px;
  color: var(--color-text);
}

.date-input-wrapper {
  position: relative;
  width: 100%;
}

.date-placeholder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  font-size: inherit;
  display: none;
}

/* JavaScript controls visibility for iOS devices (including iPad) */
/* No media query needed - JS handles display based on device detection */

.bl_formField input[type='date'] {
  position: relative;
  cursor: pointer;
  width: 100%;
  /* Calendar icon on right side - works on iOS */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

/* Hide native date text when empty (for iOS) */
@media screen and (max-width: 768px) {
  .bl_formField input[type='date'].is_empty {
    color: transparent;
  }
}

.bl_formField input[type='date']::-webkit-date-and-time-value {
  text-align: left;
}

/* Hide native calendar icon on desktop to use custom one */
.bl_formField input[type='date']::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Placeholder color for empty date */
.bl_formField input[type='date'].is_empty::-webkit-datetime-edit {
  color: #999;
}

.bl_formField textarea {
  height: 200px;
  resize: none;
}

.bl_formFieldAuto {
  padding: 16px;
  background: #f5f5f5;
  margin-bottom: 16px;
}

.bl_formFieldAuto textarea {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0;
  color: var(--color-accent) !important;
  resize: none;
  overflow: hidden;
  min-height: 0;
  height: auto;
  line-height: 1.5;
  font-size: inherit;
  font-family: inherit;
  box-sizing: border-box;
  display: block;
}

.el_required {
  border: 1px solid #f76d1d;
  padding: 4px 8px;
  color: #f76d1d;
  line-height: 1;
}

.el_notrequired {
  border: 1px solid #767777;
  padding: 4px 8px;
  color: #767777;
  line-height: 1;
}

.bl_formAccept {
  font-size: clamp(0.8125rem, 0.6786rem + 0.6696vw, 1rem);
  text-align: center;
}

.bl_formAccept a {
  text-decoration: underline;
}

.bl_formAccept+.bl_formAccept {
  margin-top: 32px;
}

.bl_formAccept :not(p) a {
  text-decoration: underline;
  color: var(--color-accent);
}

.bl_formSubmit {
  position: relative;
}

.bl_formSubmit input[type='submit'] {
  width: 100%;
  max-width: 320px;
  height: 55px;
  color: #fff;
  background: var(--color-accent);
  border-radius: 999px;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-top: 32px;
  border: none;
  margin-inline: auto;
  cursor: pointer;
}

.wpcf7-form.submitting .bl_formSubmit input[type='submit'] {
  pointer-events: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.bl_formSubmit::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-size: contain;
  z-index: 1;
}

.wpcf7-list-item {
  margin: 0;
}

.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.bl_customContent {
  font-size: 16px;
}

.bl_customContent h2 {
  margin-top: 40px;
  font-size: 28px;
  font-weight: 500;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-accent);
}

.bl_customContent h3 {
  background: #f5f5f5;
  padding: 14px;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent);
  margin-top: 40px;
}

.bl_customContent h4 {
  color: #fd5500;
  font-weight: 700;
  font-size: 18px;
  margin-top: 32px;
}

.bl_customContent p {
  margin-top: 20px;
  line-height: 1.8;
}

.bl_customContent p:has(img) {
  margin-top: 20px;
}

.bl_customContent p:has(img.aligncenter) {
  display: flex;
  justify-content: center;
}

.bl_customContent p:has(img.alignright) {
  display: flex;
  justify-content: flex-end;
}

.bl_customContent table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.bl_customContent table tr {
  border: 1px solid #d9d9d9;
  height: 78px;
}

.bl_customContent table th {
  background: #f5f5f5;
  padding-inline: 10px;
}

.bl_customContent table td {
  padding-inline: 10px;
}

.bl_customContent table p {
  margin: 0;
}

.bl_customContent small {
  font-size: 14px;
  color: #767777;
}

.bl_customContent a {
  color: #417ed9;
  text-decoration: underline;
}

.bl_customContent ul,
ol {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bl_customContent ul li {
  list-style: url(../img/list-check.svg) outside;
  margin-left: 20px;
}

.bl_customContent ol li {
  list-style: decimal outside;
  margin-left: 20px;
}

.bl_customContent ol li::marker {
  color: var(--color-accent);
}