@charset "UTF-8";

/* ========================================
   Smartphone — max-width: 599px
======================================== */
@media screen and (max-width: 599px) {

  /* Header */
  .header {
    height: 64px;
  }

  .header__logo img {
    width: 180px;
  }

  .header__drawer {
    top: 64px;
    padding: 0 5% 30px;
  }

  .header__drawer a {
    padding: 16px 0;
    font-size: 16px;
  }

  .header__drawer-contact,
  .header__drawer .header__contact {
    margin-top: 24px;
    height: 44px;
    font-size: 14px;
    color: #fff;
  }

  .header__drawer-contact:hover,
  .header__drawer-contact:focus,
  .header__drawer-contact:active,
  .header__drawer .header__contact:hover,
  .header__drawer .header__contact:focus,
  .header__drawer .header__contact:active,
  .header__drawer a.header__drawer-contact:hover,
  .header__drawer a.header__drawer-contact:focus,
  .header__drawer a.header__drawer-contact:active {
    color: #fff;
  }

  /* Fixed header offset */
  .mv,
  .service-kv,
  .recruit-kv,
  .lower-kv {
    margin-top: 64px;
  }

  /* Section spacing / headings */
  /* .about,
  .why-ks,
  .service,
  .strength,
  .recruit,
  .news,
  .message,
  .person,
  .job-description,
  .greeting,
  .overview,
  .access,
  .other-business,
  .service-item,
  .news-list-section,
  .news-detail,
  .faq,
  .policy-content,
  .terms-content,
  .legal-content,
  .contact-intro,
  .contact-form-section,
  .contact-tel,
  .common-contact {
    padding-top: 50px;
    padding-bottom: 50px;
  } */

  .section-heading {
    font-size: 24px;
  }

  .section-label {
    font-size: 18px;
  }

  /* TOP — MV（縦長画像＋上部テキスト重ね） */
  .mv {
    height: calc(100vh - 64px);
    overflow: hidden;
  }

  .mv__inner {
    position: relative;
    display: block;
    min-height: 0;
  }

  .mv__visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    z-index: 1;
  }

  .mv__visual picture,
  .mv__visual img {
    display: block;
    width: 100%;
  }

  .mv__visual img {
    width: 100%;
    height: auto;
  }

  .mv__content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    padding-top: 28px;
    padding-bottom: 0;
    padding-left: 5%;
    padding-right: 5%;
    background: transparent;
  }

  .mv__ja {
    font-size: 18px;
    margin-left: 0;
  }

  .mv__en {
    margin-top: 12px;
    font-size: 60px;
    line-height: 1.05;
  }

  .mv__scroll {
    display: flex;
    left: 2%;
    bottom: 0;
  }

  /* TOP — ABOUT */
  .about__inner {
    flex-direction: column;
    gap: 32px;
  }

  .about__visual,
  .about__content {
    width: 100%;
  }

  .about__bg {
    right: -12px;
    bottom: -12px;
  }

  /* TOP — WHY KS */
  .why-ks__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .why-ks__card {
    padding: 24px 20px 28px;
  }

  .why-ks__card-title {
    margin-top: 0;
  }

  .section-text {
    margin-top: 15px;
  }

  /* TOP — SERVICE */
  .service__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .service__other {
    align-items: center;
    gap: 15px;
    padding: 20px 24px;
  }

  .service__other-list {
    flex-direction: column;
    gap: 8px;
  }

  .service__other-list li,
  .service__other-list li:last-child {
    border: none;
  }

  .service__button-wrap {
    margin-top: 30px;
  }

  /* TOP — STRENGTH */
  .strength {
    padding-bottom: 0;
  }

  .strength__box {
    padding: 32px 24px;
    margin-top: 32px;
  }

  .strength__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0;
  }

  .strength__item:first-child {
    padding-top: 0;
  }

  .strength__item:last-child {
    padding-bottom: 0;
  }

  .strength__num {
    font-size: 48px;
  }

  .strength__title {
    font-size: 20px;
    align-self: end;
  }

  .strength__visual {
    width: 100%;
  }

  .strength__text {
    margin-top: 0;
  }

  .strength-loop {
    height: 150px;
    margin-top: 30px;
  }

  /* TOP — RECRUIT / NEWS */
  .recruit__inner,
  .news__inner {
    flex-direction: column;
    gap: 0;
  }

  .recruit__content {
    width: 90%;
    max-width: none;
    margin-left: 5%;
    margin-right: 5%;
  }

  .recruit__visual {
    position: static;
    left: auto;
    right: auto;
    width: 100%;
    height: auto;
    transform: none;
    margin-top: 0;
  }

  .news__head,
  .news__list {
    width: 100%;
  }

  .news__link {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding: 18px 4px;
  }

  .news__date {
    flex: 0 0 auto;
  }

  .news__title {
    flex: 1 1 70%;
    font-size: 16px;
  }

  .recruit__button-wrap {
    margin-top: 30px;
  }

  .news__button-wrap {
    margin-top: 30px;
  }

  /* SERVICE — KV（縦長画像＋上部テキスト重ね） */
  .service-kv {
    height: calc(100vh - 64px);
  }

  .service-kv__inner {
    position: relative;
    display: block;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .service-kv__parts {
    display: none;
  }

  .service-kv__visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    flex: none;
    width: 100%;
    height: auto;
    z-index: 1;
  }

  .service-kv__visual picture,
  .service-kv__visual img {
    display: block;
    width: 100%;
  }

  .service-kv__visual img {
    width: 100%;
    height: auto;
    opacity: 0.4;
  }
  .service-kv__label {
    font-size: 18px;
  }
  .service-kv__content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    flex: none;
    width: 100%;
    padding: 36px 5% 0;
    background: transparent;
  }

  .service-kv__title {
    font-size: 28px;
    line-height: 1.5;
  }

  .service-kv__text {
    font-size: 15px;
    line-height: 1.8;
    text-align: left;
    margin-top: 20px;
  }

  /* RECRUIT — KV（縦長画像＋上部テキスト重ね） */
  .recruit-kv__inner {
    position: relative;
    display: block;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .recruit-kv__visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    flex: none;
    width: 100%;
    height: calc(100vh - 64px);
    clip-path: none;
    z-index: 1;
  }

  .recruit-kv__visual picture,
  .recruit-kv__visual img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .recruit-kv__visual img {
    width: 100%;
    height: auto;
    clip-path: none;
  }

  .recruit-kv__content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    flex: none;
    width: 100%;
    padding: 36px 5% 0;
    background: transparent;
  }

  .recruit-kv__label {
    font-size: 18px;
  }

  .recruit-kv__title {
    font-size: 28px;
  }

  .recruit-kv__text {
    line-height: 1.8;
    text-align: left;
    margin-top: 16px;
  }

  /* SERVICE — Item blocks */
  .service-item__inner,
  .service-item--reverse .service-item__inner {
    position: relative;
    gap: 0;
    align-items: normal;
  }

  .service-item__body {
    display: contents;
  }

  .service-item__num {
    position: absolute;
    top: -40px;
    left: -15px;
    z-index: 1;
    font-size: 80px;
    line-height: 1;
  }

  .service-item__title {
    margin-top: 0;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    font-size: 21px;
    align-self: baseline;
    margin-top: 20px;
  }

  .service-item__text {
    font-size: 16px;
    margin-top: 10px;
  }

  .service-item__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

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

  .service-point__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* SERVICE — Other business */
  .other-business__cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .other-business-card__body {
    padding: 20px;
  }

  /* RECRUIT — Message */
  .message {
    padding-bottom: 60px;
  }

  .message__inner {
    text-align: left;
  }

  .message__parts {
    display: none;
  }

  .message__highlight {
    margin-top: 32px;
    padding: 14px 24px;
    font-size: 20px;
  }

  .message__body {
    margin-top: 30px;
  }

  .message__body p {
    font-size: 16px;
  }

  .message__body p + p {
    margin-top: 10px;
  }

  /* COMPANY GREETING */
  .greeting {
    padding: 30px 0 50px;
  }

  .greeting__text {
    margin-left: 0;
  }

  .greeting__sign-name {
    margin-left: 0;
  }

  .greeting__sign {
    width: 180px;
    bottom: 40px;
  }

  .people-diagonal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 30px;
  }

  .people-diagonal__item {
    width: 100%;
    margin-left: 0;
    clip-path: none;
  }

  .people-diagonal__item:first-child,
  .people-diagonal__item:last-child {
    clip-path: none;
  }

  .people-diagonal__item img {
    aspect-ratio: 3 / 4;
  }

  /* RECRUIT — Person */
  .person__cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .person-card {
    padding: 32px 24px 36px;
  }

  .person-card__title {
    font-size: 20px;
  }

  /* COMPANY — Access */
  .access__content {
    margin-top: 20px;
  }

  .access__info,
  .access-map {
    width: 100%;
  }

  .access__address {
    font-size: 16px;
  }

  .access-map {
    height: 280px;
    padding: 5px;
    border-radius: 5px;
  }

  .access-map iframe {
    border-radius: 5px;
  }

  /* Info table (dl/dt/dd) */
  .info-table__row {
    flex-direction: column;
  }

  .info-table__label,
  .info-table__value {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    line-height: 28px;
  }

  .info-table__label {
    border-bottom: none;
  }

  /* Tel: SPのみリンク可 */
  .tel-text {
    display: none;
  }

  .tel-link {
    display: inline;
  }

  /* Lower KV */
  .lower-kv {
    min-height: auto;
  }

  .lower-kv__inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    padding: 20px 0 0;
  }

  .lower-kv__content {
    max-width: none;
    padding-bottom: 24px;
  }

  .lower-kv__en {
    font-size: 36px;
  }

  .lower-kv__title {
    font-size: 20px;
  }

  .lower-kv__visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 200px;
    order: 2;
  }

  .lower-kv__visual::before {
    display: none;
  }

  /* Breadcrumb */
  .breadcrumb__inner {
    height: auto;
    min-height: 48px;
    padding: 12px 0;
    font-size: 13px;
  }

  /* NEWS — List */
  .news-list__link {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 12px;
    padding: 18px 4px;
  }

  .news-list__date,
  .news-category {
    flex: 0 0 auto;
  }

  .news-list__title {
    flex: 1 1 70%;
    font-size: 16px;
  }

  .news-list__arrow {
    margin-left: auto;
  }

  /* NEWS — Pagination */
  .pagination__prev,
  .pagination__next,
  .pagination__number {
    display: none;
  }

  .pagination__sp-prev,
  .pagination__sp-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    height: 44px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    border: 1px solid #d9dee8;
    transition: color 0.3s ease, border-color 0.3s ease;
  }

  .pagination__sp-prev::before,
  .pagination__sp-next::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
  }

  .pagination__sp-prev::before {
    transform: rotate(-135deg);
  }

  .pagination__sp-next::after {
    transform: rotate(45deg);
  }

  .pagination__sp-prev:hover,
  .pagination__sp-next:hover {
    color: #013bcc;
    border-color: #013bcc;
  }

  .pagination__sp-prev--disabled,
  .pagination__sp-next--disabled {
    color: #bbb;
    border-color: #e5e8ef;
    pointer-events: none;
  }

  .pagination {
    margin-top: 30px;
  }

  /* NEWS — List / Detail */
  .news-list-section {
    padding: 30px 0 0;
  }

  .news-detail {
    padding: 30px 0 0;
  }

  /* NEWS — Detail */
  .news-detail__title {
    font-size: 22px;
  }

  .news-detail__intro {
    font-size: 16px;
  }

  .news-detail__heading {
    font-size: 20px;
  }

  .news-detail__back {
    width: 100%;
    justify-content: center;
  }

  /* FAQ */
  .faq {
    padding: 30px 0 0;
  }

  .faq-item__question {
    align-items: flex-start;
    padding: 20px;
  }

  .faq-item__question-text {
    white-space: normal;
    font-size: 16px;
  }

  .faq-item__answer {
    padding: 0 20px;
  }

  .faq-item.is-open .faq-item__answer {
    padding: 0 20px;
  }

  .faq-item__answer-text {
    padding-bottom: 20px;
    font-size: 16px;
  }

  /* Policy / Terms */
  .policy-content {
    padding: 30px 0 0;
  }

  .policy-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      "text text";
    gap: 8px 16px;
    padding: 24px 0;
    align-items: start;
  }

  .policy-item__number {
    grid-area: num;
    flex: none;
    width: auto;
    padding-right: 16px;
    padding-bottom: 0;
    text-align: left;
    border-right: 1px solid #d9dee8;
    border-bottom: none;
  }

  .policy-item__body {
    display: contents;
  }

  .policy-item__title {
    grid-area: title;
    font-size: 20px;
    align-self: center;
  }

  .policy-item__text {
    grid-area: text;
  }

  .policy-item__link {
    grid-column: 1 / -1;
  }

  .policy-enacted {
    grid-column: 1 / -1;
  }

  .terms-content {
    padding: 30px 0 0;
  }

  .terms-item__heading {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
  }

  .terms-item__title {
    font-size: 20px;
  }

  .terms-item__contact {
    padding: 20px;
  }

  .terms-enacted {
    margin-top: 10px;
  }

  .legal-content {
    padding: 30px 0 0;
  }

  /* CONTACT — Form */
  .contact-intro {
    padding: 30px 0 0;
  }

  .contact-form-section {
    padding: 30px 0;
  }

  .contact-intro__text {
    font-size: 16px;
    text-align: left;
  }

  .contact-form {
    padding: 15px;
  }

  .contact-form__label {
    display: block;
    font-size: 16px;
  }

  .contact-form__field--privacy {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 15px;
  }

  .contact-form__submit {
    margin-top: 30px;
  }

  .contact-form__button {
    width: 100%;
    max-width: none;
    height: 56px;
    font-size: 16px;
  }

  .contact-tel {
    padding: 0;
  }

  .contact-tel__inner {
    display: grid;
    grid-template-columns: 45px 1fr;
    grid-template-areas:
      "icon title"
      "text text"
      "number number";
    column-gap: 12px;
    row-gap: 12px;
    align-items: center;
    padding: 20px 15px;
  }

  .contact-tel__icon {
    grid-area: icon;
    width: 45px;
    height: 45px;
    padding: 10px;
  }

  .contact-tel__content {
    display: contents;
  }

  .contact-tel__title {
    grid-area: title;
    font-size: 18px;
    margin: 0;
  }

  .contact-tel__text {
    grid-area: text;
  }

  .contact-tel__number {
    grid-area: number;
    font-size: 24px;
  }

  /* Common CONTACT CTA */
  .common-contact {
    padding: 30px 0 0;
  }
  .common-contact__box {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px 20px;
  }

  .common-contact__title {
    font-size: 20px;
  }

  .common-contact__button {
    width: 100%;
    max-width: none;
  }

  /* Modal */
  .modal__dialog {
    width: 100%;
    padding: 32px 20px;
  }

  .modal__title {
    font-size: 20px;
  }

  .modal__actions {
    flex-direction: column;
    gap: 12px;
  }

  .modal__button {
    width: 100%;
    max-width: none;
  }

  /* CONTACT — Confirm / Complete modal */
  #confirm-modal .modal__dialog,
  #complete-modal .modal__dialog {
    padding: 36px 20px 28px;
  }

  #complete-modal .modal__dialog {
    padding-top: 44px;
    padding-bottom: 32px;
  }

  #confirm-modal .modal__title,
  #complete-modal .modal__title {
    margin-top: 4px;
    padding: 0 24px;
    font-size: 20px;
  }

  #confirm-modal .confirm-list {
    margin-top: 28px;
  }

  #confirm-modal .confirm-list__row {
    margin-bottom: 20px;
  }

  #confirm-modal .confirm-list__label {
    font-size: 15px;
  }

  #confirm-modal .confirm-list__value {
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  #confirm-modal .modal__actions,
  #complete-modal .modal__actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  #confirm-modal .modal__button,
  #complete-modal .modal__button {
    width: 100%;
    max-width: none;
    height: 48px;
  }

  #complete-modal .modal__text {
    margin-top: 20px;
    max-width: none;
    font-size: 15px;
    line-height: 1.9;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer__main {
    flex-direction: column;
    gap: 20px;
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: 28px 24px;
  }

  .footer__nav-column {
    width: calc(50% - 12px);
  }

  .footer__nav-column ul li {
    display: none;
  }

  .footer__nav-title {
    font-size: 16px;
  }

  .footer__nav-title--sub {
    padding-top: 0;
  }

  .footer__logo img {
    width: 180px;
  }

  .footer__tel {
      margin-top: 0;
  }

  .footer__policy a {
    font-size: 12px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    text-align: center;
  }

  .footer__policy {
    justify-content: center;
  }

  .footer__copyright {
    text-align: center;
  }

  /* Buttons */
  .service__button-wrap .btn,
  .recruit__button-wrap .btn,
  .news__button-wrap .btn {
    width: 100%;
  }

  /* Page top */
  .page-top {
    right: 16px;
    bottom: 80px;
    width: 44px;
    height: 44px;
  }
}
