/* ============================================
   Frontpage Styles
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */
.section-hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 80%;
  height: 100%;
  background: linear-gradient(to right, rgba(139, 222, 229, 0.17), rgba(139, 222, 229, 0));
  z-index: 2;
}

.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  left: 5%;
  text-align: left;
}

.hero-title {
  line-height: var(--line-height-hero);
}

.hero-title__main {
  display: block;
  font-size: var(--font-size-hero-title);
  font-weight: bold;
  letter-spacing: 0.2em;
  color: var(--color-white);
  text-shadow: 0px 4px 4px var(--color-file-button);
}

.hero-title__highlight {
  color: var(--color-accent-yellow);
}



/* ============================================
   Message Section
   ============================================ */

.message-hero__background {
  background-image: url('../images/TOP-sec1-title.jpg');
}

.message-content {
  margin: 0;
}

.message-body {
  line-height: var(--line-height-body);
}

.message-text {
  color: var(--color-text);
}

/* Text formatting */
.bold {
  font-weight: 700;
}

.section-message .section-inner {
  padding: 80px 25px 105px 0;
  margin: 0 95px;
}

.message-quote {
  position: relative;
  padding: 4.5rem 5.1rem 4rem;
  width: auto;
  margin: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('../images/TOP-sec1-bg.jpg');
  background-size: cover;
  background-position: center;
  border: solid 1px #C1AC7A;
  box-shadow: 2px 2px 4px var(--color-shadow);
}

.message-quote::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--color-teal);
  z-index: -10;
  right: -25px;
  bottom: -25px;
}

.message-quote__opening,
.message-quote__closing {
  width: 53px;
  height: 39px;
  background-image: url('../images/message-sec-quote.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 1;
  filter: drop-shadow(2px 2px 4px rgba(170, 170, 170, 0.25));
}

.message-quote__opening {
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  background-position: left top;
}

.message-quote__closing {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  background-position: right bottom;
  transform: rotate(180deg);
}

.message-quote__text {
  margin: 1.5rem 0;
  font-size: var(--font-size-message-quote);
  line-height: var(--line-height-message-quote);
  color: var(--color-text);
  letter-spacing: 0.09em;
}

.message-quote__author {
  text-align: left;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.message-quote__author-name {
  font-weight: bold;
  color: var(--color-text);
  margin-top: 0.5rem;
  font-size: 1rem;
}


/* ============================================
   Company Section
   ============================================ */

.company-hero__background {
  background-image: url('../images/TOP-sec2-title.jpg');
}

.company-info {
  font-size: var(--font-size-hero-subtitle);
  display: grid;
  grid-template-columns: max-content;
  width: fit-content;
  margin: 0 auto;
}

.company-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
}

.company-item__label {
  font-weight: bold;
  color: var(--color-text);
  font-size: var(--font-size-body);
}

.company-item__value {
  color: var(--color-text);
  font-size: var(--font-size-body);
}

.company-item:last-child {
  border-bottom: none;
}



/* ============================================
   Service Section
   ============================================ */

.service-intro__text {
  color: var(--color-white);
  margin: 1rem 0;
  line-height: var(--line-height-body);
}

.service-list {
  margin: 30px auto;
  padding: 0;
}

.service-item {
  background-color: var(--color-white);
  color: var(--color-text);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
  display: flex;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-item__image-wrapper {
  overflow: hidden;
  flex: 0 0 47%;
}

.service-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  background: var(--color-bg);
}

.service-item__title {
  font-size: var(--font-size-service-item-title);
  font-weight: bold;
  align-self: center;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-item__subtitle {
  color: var(--color-accent-yellow);
  font-size: var(--font-size-service-item-subtitle);
  align-self: center;
  line-height: 1;
  margin-bottom: 1rem;
}

.service-item__description {
  color: var(--color-text);
  font-size: var(--font-size-service-item-description);
  line-height: 1.6;
}


/* ============================================
   Training Section
   ============================================ */

.training-hero__background {
  background-image: url('../images/training-heading-image.jpg');
}

.training-intro__text {
  margin: 1rem 0;
  line-height: var(--line-height-body);
  color: var(--color-text);
}

/* ============================================
   Recruit Section
   ============================================ */

.recruit-intro__text {
  color: var(--color-white);
}

.recruit-positions {
  margin: 3rem 0;
}

.recruit-position {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
  height: 205px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.recruit-position:hover {
transform: translateY(-5px) scale(1.04);
}

.recruit-position__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.recruit-position__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.recruit-position__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--color-white);
  text-align: center;
}

.recruit-position__title {
  font-size: var(--font-size-recruit-position-title);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--color-white);
}

.recruit-position__description {
  line-height: var(--line-height-recruit-position);
  color: var(--color-white);
  font-size: var(--font-size-recruit-position-desc);
  font-weight: normal;
  letter-spacing: 0.09em;
}


/* ============================================
   Entry Section
   ============================================ */

.entry-hero__background {
  background-image: url('../images/entry-heading-image.jpg');
}

.entry-intro__text {
  margin-bottom: 73px;
}

.entry-form {
  margin: 0 76px;
  padding: 0;
}

.form-group {
  margin-bottom: 27px;
}

.form-label {
  display: block;
  margin-bottom: 18px;
  font-size: var(--font-size-form-label);
  font-weight: bold;
  color: var(--color-text);
  line-height: 1;
}

.form-required {
  color: var(--color-required);
}

.form-control {
  width: 100%;
  padding: 20px 17px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  font-family: inherit;
  font-size: var(--font-size-form-control);
  color: var(--color-text);
  transition: all 0.3s ease;
  background-color: var(--color-white);
  user-select: auto;
}

.form-control::placeholder {
  color: var(--color-inactive);
  font-weight: normal;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3e%3cpolygon points='12 20 2 3 22 3' fill='%23C6C6C6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1em 1em;
  padding-right: 2.5rem;
}

select.form-control:invalid {
  color: var(--color-inactive);
}

select.form-control:valid {
  color: var(--color-text);
}

select.form-control option {
  color: var(--color-text);
}


/* Contact Form 7のセレクトボックス*/
.wpcf7 select.form-control:invalid {
  color: var(--color-inactive);
}

.wpcf7 select.form-control:valid {
  color: var(--color-text);
}

.wpcf7 select.form-control option {
  color: var(--color-text);
}


input[type="date"]:invalid {
  color: var(--color-inactive);
}

input[type="date"]:valid {
  color: var(--color-text);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

input[type="file"] {
  color: transparent;
  font-size: var(--font-size-form-file);
}

input .entry-file {
  font-size: var(--font-size-form-file);
}

input[type="file"]::file-selector-button {
  background:
    linear-gradient(var(--color-button-bg), var(--color-button-bg)) padding-box,
    linear-gradient(to right, var(--color-teal), var(--color-file-button), var(--color-teal)) border-box;
  border: 1.5px solid transparent;
  border-radius: 7px;
  color: var(--color-file-button);
  padding: 24px 32px;
  line-height: 1;
  cursor: pointer;
  font-weight: bold;
  font-size: var(--font-size-form-file);
  text-shadow: 2px 2px 3px var(--color-green-shadow);
  transition: all 0.3s ease;
}

/* ホバー時 */
input[type="file"]::file-selector-button:hover {
  background: linear-gradient(var(--color-teal), var(--color-teal)) padding-box,
    linear-gradient(to right, #75AC62, var(--color-file-button), #75AC62) border-box !important;
  color: var(--color-white);
}

.form-file-note {
  margin-top: 18px;
  color: var(--color-inactive);
}

.form-file-note:not(.form-file-note--empty) {
  color: var(--color-text);
}

.form-group--info {
  margin-bottom: 18px;
}

.form-checkbox {
  display: none;
}

.form-group--checkbox .form-label {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

/* クリック前 */
.form-group--checkbox .form-label::before {
  content: '';
  display: inline-block;
  width: 31px;
  height: 31px;
  border: 1px solid var(--color-accent-yellow);
  border-radius: 3px;
  margin-right: 18px;
  transition: all 0.3s ease;
  background-color: var(--color-white);
  filter: drop-shadow(2px 2px 3px var(--color-green-shadow));
}

/* クリック後 */
.form-label--checkbox:has(input:checked)::before {
  background-color: var(--color-accent-yellow);
  content: '✓';
  color: var(--color-white);
  font-size: var(--font-size-checkbox-large);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(2px 2px 3px var(--color-green-shadow));
}

.form-label--checkbox span {
  position: relative;
  font-size: var(--font-size-checkbox);
}

.form-info__content {
  margin-top: 18px;
}

.form-info__body {
  background-color: var(--color-white);
  padding: 3px 17px;
  border-radius: 7px;
  border: 1px solid var(--color-border);
  max-height: 225px;
  overflow-y: auto;
  font-size: var(--font-size-form-info);
  line-height: 2;
  color: var(--color-text);
}

/* 個人情報セクション内の見出し（<p><strong>）に上余白を設定 */
.form-info__body p:first-child {
  margin-top: 0;
}

.form-info__body p:has(strong):not(:first-of-type) {
  margin-top: 30px;
}

.form-actions {
  text-align: center;
  margin: 2rem 0;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-submit {
  background-color: var(--color-inactive);
  color: var(--color-white);
  padding: 0.875rem 3rem;
  font-size: var(--font-size-btn-submit);
  font-weight: bold;
  border: solid 1px var(--color-text);
}

.btn-submit--active {
  background-color: var(--color-accent-yellow);
  border: solid 1px var(--color-accent-orange);
}

.btn-submit--active:hover {
  background-color: var(--color-accent-orange);
}

.btn-submit:disabled {
  background-color: var(--color-inactive);
  cursor: not-allowed;
}


/* ============================================
   Access Section
   ============================================ */
.access-locations {
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1010px;
  margin: 0 auto;
}

.access-location {
  color: var(--color-white);
  overflow: hidden;
  padding: 36px 0;
  display: flex;
  justify-content: space-between;
  max-width: 1010px;
}

.access-location__title {
  font-size: var(--font-size-access-location-title);
  font-weight: bold;
  margin-bottom: 22px;
  font-size: var(--font-size-body);
  text-shadow: 2px 2px 3px var(--color-green-shadow);
}

.access-location__address {
  line-height: var(--line-height-access);
  margin-bottom: 22px;
  font-size: var(--font-size-body);
  text-shadow: 2px 2px 3px var(--color-green-shadow);
  display: flex;
  flex-direction: column;
}

.access-location__address-responsive {
  display: none;
}

.access-location__transit {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.access-location__transit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  line-height: 1.6;
  font-size: var(--font-size-body);
  text-shadow: 2px 2px 3px var(--color-green-shadow);
}

.access-location__transit-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.access-location__icon {
  height: 27px;
  width: 27px;
  flex-shrink: 0;
  margin-top: 6px;
  filter: drop-shadow(2px 2px 3px var(--color-green-shadow));
}

.access-location__map {
  overflow: hidden;
  width: 380px;
  height: 252px;
}

.access-location__map iframe {
  width: 100%;
  height: 100%;
  max-height: 400px;
}



/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 1100px) {

  .section-message .section-inner {
    padding: 60px 25px 85px 0;
    margin: 0 70px;
  }

  .service-item__content {
    padding: 1rem;
  }

  .service-item__title {
    font-size: var(--font-size-responsive-1100-service-item-title);
    margin-bottom: 5px;
  }

  .service-item__subtitle {
    margin-bottom: 0.8rem;
  }

  .service-item__description {
    font-size: var(--font-size-responsive-1100-service-item-desc);
  }

  .section-training .section-inner {
    padding: 60px 6.4vw 1px;
  }

  .section-access .section-inner {
    padding: 0 6.4vw 60px;
  }

  .access-location__map {
    width: 34.5vw;
    height: 22.9vw;
  }

}

@media (max-width: 845px) {

  .access-location__left {
    width: 100%;
  }

  .access-locations {
    padding: 0;
  }

  .access-location {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .access-location__content {
    display: flex;
    justify-content: space-between;
  }

  .access-location__map {
    width: 100%;
    height: unset;
    aspect-ratio: 1 / 0.66;
  }

}

@media (max-width: 768px) {

  .section-hero {
    height: 65vw;
    min-height: unset;
  }
  .hero-title__highlight,
  .hero-title__main,
  .sec-hero-title {
    font-size: var(--font-size-responsive-768-title);
  }

  .sec-hero-subtitle {
    font-size: var(--font-size-responsive-768-subtitle);
  }

  .section-message .section-inner {
    padding: 35px 25px 50px 0;
    margin: 0 30px;
  }

  .message-quote__opening, .message-quote__closing {
    width: 45px;
    height: 33px;
  }

  .message-quote {
    padding: 4rem 2.6rem 2.5rem;
  }

  .block-480-768 {
    display: block;
  }

  .company-item {
    grid-template-columns: 105px 1fr;
    gap: 1rem;
    max-width: calc(100vw - 61px);
  }

  .service-hero,
  .recruit-hero,
  .access-hero {
    height: 150px;
  }

  .service-list {
    padding: 0;
  }

  .service-item,
  .recruit-position {
    grid-template-columns: 1fr;
  }

  .service-item[data-service-layout="image-right"] .service-item__image-wrapper,
  .service-item[data-service-layout="image-right"] .service-item__content {
    order: unset;
  }

  .recruit-position {
    height: clamp(90px, 21.5vw, 165px);
  }

  .recruit-position__image-wrapper {
    height: 200px;
  }

  .recruit-position__content {
    padding: 5px;
  }

  .recruit-position__title {
    font-size: var(--font-size-responsive-768-recruit-position-title);
    margin-bottom: 10px;
  }

  .recruit-position__description {
    font-size: var(--font-size-responsive-768-recruit-position-desc);
  }

  .entry-form {
    margin: 0;
  }

  .form-control {
    padding: 15px 12px;
  }

  .form-file-button {
    padding: 15px 1.2rem;
  }

  .form-group--checkbox .form-label::before {
    width: 25px;
    height: 25px;
    margin-right: 12px;
  }

  .form-label--checkbox:has(input:checked)::before {
    font-size: 20px;
  }

  .section-access .section-inner {
    padding: 0 30px 35px;
  }

  .access-locations {
    padding: 0;
  }

  .access-location__content {
    display: unset;
  }

  .access-location__address {
    display: none;
  }

  .access-location__address-responsive {
  display: block;
  line-height: var(--line-height-access);
  margin-bottom: 22px;
  font-size: var(--font-size-body);
  text-shadow: 2px 2px 3px var(--color-green-shadow);
}

  .access-location__transit-text {
    flex-direction: row;
    gap: 1rem;
  }

}

@media (max-width: 555px) {
  
  input[type="file"] {
    max-width: calc(100vw - 60px);
  }
  
  .access-location__transit-text {
    flex-direction: column;
    gap: 0;
  }
  
}

@media (max-width: 480px) {

  .hero-title__highlight,
  .hero-title__main {
    font-size: 1rem;
  }

  .section-message .section-inner {
    padding: 20px 15px 35px 0;
    margin: 0 8px;
  }

  .message-quote {
    padding: 1rem 1.1rem 0.5rem;
  }

  .message-quote__opening,
  .message-quote__closing {
    width: 15.8px;
    height: 11.5px;
  }

  .message-quote__opening {
    top: 1rem;
    left: 1rem;
  }

  .message-quote__closing {
    bottom: 1rem;
    right: 1rem;
  }

  .message-quote__text {
    font-size: var(--font-size-responsive-480-message-quote);
  }

  .message-quote:last-child p {
    margin-bottom: 10px;
  }

  .message-quote::after {
    right: -15px;
    bottom: -15px;
  }

  .company-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.4rem 0;
  }

  .company-item__label {
    font-size: var(--font-size-responsive-480-company-label);
  }

  .company-item__value {
    font-size: var(--font-size-responsive-480-body);
  }

  .block-480-768 {
    display: inline;
  }

  .service-intro__text {
    margin: 0;
  }

  .service-hero, .recruit-hero, .access-hero {
    height: 105px;
  }

  .service-item__image-wrapper {
    flex: 0 0 34%;
  }

  .section-training .section-inner {
    padding: 0 8px 1px;
  }

  .recruit-positions {
    margin: 10px 0 0;
  }

  .recruit-position {
    margin-bottom: 15px;
  }

  .recruit-position__title {
    margin-bottom: 5px;
  }

  .entry-intro__text {
    margin-bottom: 30px;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-label {
    font-size: var(--font-size-responsive-480-form-label);
    margin-bottom: 11px;
  }

  .form-control {
    font-size: var(--font-size-responsive-480-form-control);
  }

  input[type="file"]::file-selector-button {
    font-size: var(--font-size-responsive-480-form-control);
    padding: 15px 20px;
  }

  .form-info__body {
    font-size: var(--font-size-responsive-480-body);
  }

  .form-label--checkbox span {
    font-size: var(--font-size-responsive-480-form-label);
  }

  .form-actions {
    margin: 1.5rem 0 0;
  }

  .section-access .section-inner {
    padding: 0 8px 20px;
  }

  .access-location {
    padding: 0;
  }

  .access-location:not(:last-child) {
    margin-bottom: 20px;
  }

  .access-location__title,
  .access-location__address-responsive,
  .access-location__transit-item {
    font-size: var(--font-size-responsive-480-body);
  }

  .access-location__title,
  .access-location__address-responsive {
    margin-bottom: 15px;
    line-height: 1.6;
  }

  .access-location__icon {
    height: 22px;
    width: 22px;
    margin-top: 4px;
  }

  .access-location__map {
    width: 100%;
    aspect-ratio: 1 / 0.66;
  }

}
/* ============================================
   End of Frontpage Styles
   ============================================ */