@charset "UTF-8";

/* ========================================
   Laptop adjust — max-width: 1440px
======================================== */
@media screen and (max-width: 1440px) {

  /* 共通 */
  .section-heading {
    font-size: 40px;
  }

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

  /* TOPページ */
  .about {
    padding: 80px 0;
  }

  .why-ks {
    padding: 80px 0;
  }

  .service {
    padding: 80px 0;
  }

  .strength {
    padding: 80px 0 0;
  }

  .recruit {
    padding: 80px 0;
  }

  .news {
    padding: 80px 0;
  }

  /* 事業内容ページ */
  .service-kv__title {
    font-size: 55px;
  }

  .service-item__title {
    font-size: 40px;
  }

  /* 採用情報ページ */
  .recruit-kv__visual {
    width: 65%;
  }

  .message {
    padding: 80px 0;
  }

  .person {
    padding: 80px 0;
  }

  .job-description {
    padding: 80px 0;
  }

  /* 会社情報ページ */
  .greeting {
    padding: 80px 0;
  }

  .overview {
    padding: 80px 0;
  }

  .access {
    padding: 80px 0;
  }

  /* お問い合わせページ */
  .contact-form-section {
    padding: 50px 0;
  }
}

/* ========================================
   Laptop adjust — max-width: 1300px
======================================== */
@media screen and (max-width: 1300px) {

  /* TOPページ */
  .mv__content {
    padding-left: 5%;
  }

  /* 事業内容ページ */
  .service-kv__title {
    font-size: 50px;
  }

  .service-kv__parts {
    width: 380px;
    opacity: 0.4;
  }

  .service-kv__content {
    padding: 80px 0 150px;
  }

  .service-item__inner {
    gap: 40px;
  }

  /* 採用情報ページ */
  .recruit-kv__content {
    padding: 80px 0 150px;
  }

  .recruit-kv__visual {
    width: 60%;
  }

  .message {
    padding: 50px 0 80px;
  }
}

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

  /* Header / Drawer */
  .header__nav {
    display: none;
  }

  .header__right > .header__contact {
    display: none;
  }

  .header__menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header__drawer {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    overflow-y: auto;
    padding: 40px 5%;
    background: #fff;
  }

  .header__drawer.is-open {
    display: block;
  }

  .header__drawer ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .header__drawer li {
    border-bottom: 1px solid #e5e8ef;
  }

  .header__drawer a {
    display: block;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #000;
    transition: color 0.3s ease;
  }

  .header__drawer a:hover,
  .header__drawer a.is-active {
    color: #013bcc;
  }

  .header__drawer-contact,
  .header__drawer .header__contact,
  .header__drawer a.header__drawer-contact,
  .header__drawer a.header__contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 32px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(90deg, #013bcc 0%, #27c7f3 100%);
    border-radius: 999px;
    transition: opacity 0.3s ease;
  }

  .header__drawer-contact img,
  .header__drawer .header__contact img,
  .header__drawer a.header__drawer-contact img,
  .header__drawer a.header__contact img {
    width: 16px;
    height: auto;
  }

  .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,
  .header__drawer a.header__contact:hover,
  .header__drawer a.header__contact:focus,
  .header__drawer a.header__contact:active {
    color: #fff;
    opacity: 0.85;
  }

  /* Common CONTACT CTA */
  .common-contact {
    padding: 50px 0 10px;
  }

  .common-contact__box {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 32px;
    max-width: 500px;
  }

  .common-contact__button {
    width: 280px;
  }

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

  /* Footer — 2行×3列（1行目SERVICE/RECRUIT/COMPANY、2行目NEWS/FAQ/CONTACT） */
  .footer__main {
    gap: 40px;
  }

  .footer__nav {
    display: flex;
    gap: 40px;
    align-items: stretch;
  }

  .footer__nav-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .footer__nav-title--sub {
    margin-top: auto;
    padding-top: 28px;
  }

  .header__logo img {
    width: 200px;
  }

  /* 共通見出し */
  .section-heading {
    font-size: 28px;
  }

  /* TOP — MV（縦長画像＋上部テキスト重ね） */
  .mv {
    height: calc(100vh - 80px);
    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: 40px;
    padding-bottom: 0;
    padding-left: 5%;
    padding-right: 5%;
    background: transparent;
  }

  .mv__en {
    margin-top: 30px;
    font-size: 14vw;
    line-height: 1.02;
  }

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

  /* TOP — ABOUT */
  .about {
    padding: 50px 0;
  }

  /* TOP — SERVICE cards */
  .service {
    padding: 50px 0;
  }

  .service__cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 30px;
  }

  /* TOP — OTHER BUSINESS 2行構成 */
  .service__other {
    flex-direction: column;
    align-items: flex-start;
  }

  .service__other-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* TOP — WHY KS */
  .why-ks {
    padding: 50px 0;
  }

  .why-ks__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
  }

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

  .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;
    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;
  }

  .service-kv__content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    padding: 50px 5% 0;
    background: transparent;
  }

  .service-kv__text {
    text-align: left;
  }


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

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

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

  /* TOP STRENGTH: 番号＋見出し / 概要 / 画像 */
  .strength {
    padding: 50px 0 0;
  }

  .strength__box {
    margin-top: 30px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .strength__item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      "text text"
      "visual visual";
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .strength__item:first-child {
    padding-top: 28px;
  }

  .strength__item:last-child {
    padding-bottom: 28px;
  }

  .strength__num {
    grid-area: num;
    flex-basis: auto;
    padding-right: 0;
    border-right: none;
    font-size: 56px;
  }

  .strength__content {
    display: contents;
  }

  .strength__title {
    grid-area: title;
  }

  .strength__text {
    grid-area: text;
  }

  .strength__visual {
    grid-area: visual;
    flex: none;
    width: 100%;
  }

  .strength__visual img {
    width: 100%;
  }

  /* TOP — RECRUIT */
  .recruit {
    padding: 50px 0;
  }

  .recruit__inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .recruit__content {
    display: contents;
  }

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

  .recruit__button-wrap {
    order: 3;
  }

  /* TOP — NEWS */
  .news {
    padding: 50px 0;
  }

  .news__inner {
    flex-direction: column;
    gap: 40px;
  }

  .news__head {
    display: contents;
  }

  .news__list {
    width: 100%;
    order: 2;
  }

  .news__button-wrap {
    order: 3;
  }

  /* SERVICE KV: 画像全幅のため左右余白を解除 */
  .service-kv__inner {
    padding-right: 0;
  }

  /* 事業内容ページ — 各事業 */
  .service-item {
    padding: 50px 0 0;
  }

  /* .service-item + .service-item {
    padding-top: 80px;
  } */

  .service-item__title {
    font-size: 28px;
  }

  .service-item__num {
    left: -25px;
  }

  .service-item__text {
    margin-top: 20px;
    line-height: 1.75;
  }

  .service-item__media {
    aspect-ratio: 4 / 3;
  }

  .service-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
  }

  .service-point__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .service-point {
    margin-top: 25px;
    padding-top: 25px;
  }

  .other-business {
    padding: 50px 0;
    margin-top: 50px;
  }

  .other-business__cards {
    margin-top: 30px;
  }

  /* 採用情報ページ — 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;
    width: 100%;
    height: calc(100vh - 80px);
    clip-path: none;
    z-index: 1;
  }

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

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

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

  .recruit-kv__text {
    text-align: left;
  }

  .message {
    padding: 30px 0 50px;
  }

  .person {
    padding: 50px 0;
  }

  .person__cards {
    margin-top: 30px;
  }

  .job-description {
    padding: 50px 0;
  }

  .job-description-table {
    margin-top: 30px;
  }

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

  .greeting__body {
    margin-top: 30px;
  }

  .greeting__sign {
    position: absolute;
    width: 300px;
    max-width: initial;
  }

  .overview {
    padding: 50px 0;
  }

  .company-overview-table {
    margin-top: 30px;
  }

  .access {
    padding: 50px 0;
  }

  .access__content {
    margin-top: 30px;
    gap: 20px;
  }

  /* お知らせページ */
  .news-list-section {
    padding: 50px 0 0;
  }

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

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

  /* プライバシーポリシー */
  .policy-content {
    padding: 50px 0 0;
  }

  .policy-intro {
    text-align: left;
  }

  .policy-list {
    margin-top: 30px;
  }

  .policy-item {
    padding: 25px 0;
  }

  /* 利用規約 */
  .terms-content {
    padding: 50px 0 0;
  }

  .terms-intro {
    text-align: left;
  }

  .terms-list {
    margin-top: 30px;
  }

  .terms-item {
    padding: 25px 0;
  }

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

  /* 特定商取引法 */
  .legal-content {
    padding: 50px 0 0;
  }
}

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

  /* Section headings */
  .section-heading {
    font-size: 32px;
  }

  /* TOP — ABOUT / RECRUIT / NEWS */
  .about__inner,
  .recruit__inner,
  .news__inner {
    flex-direction: column;
    min-height: 0;
  }

  .about__visual,
  .recruit__content,
  .news__head {
    flex: none;
    width: 100%;
  }

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

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

  .news__list {
    width: 100%;
  }

  /* TOP — WHY KS */
  .why-ks__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* TOP — STRENGTH */
  .strength__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .strength__item:first-child {
    padding-top: 32px;
  }

  .strength__item:last-child {
    padding-bottom: 32px;
  }

  .strength__num {
    flex-basis: auto;
    padding-right: 0;
    border-right: none;
    font-size: 56px;
  }

  .strength__visual {
    flex: none;
    width: 100%;
  }

  /* COMPANY GREETING: 本文と重なる場合はフローへ */

  /* SERVICE — Item blocks */
  .service-item__inner,
  .service-item--reverse .service-item__inner {
    flex-direction: column;
    gap: 32px;
  }

  .service-item__media,
  .service-item__body {
    flex: none;
    width: 100%;
  }

  .service-item__num {
    font-size: 120px;
  }

  .service-item__title {
    font-size: 32px;
  }

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

  /* SERVICE — KV */
  .service-kv__inner {
    flex-direction: column;
    gap: 32px;
  }

  .service-kv__content,
  .service-kv__visual {
    flex: none;
    width: 100%;
  }

  .service-kv__parts {
    display: none;
  }

  /* RECRUIT — KV */
  /* SERVICE — Other business */
  .other-business__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* RECRUIT — Person cards */
  .person__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* COMPANY — Access */
  .access__content {
    flex-direction: column;
    gap: 32px;
  }

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

  .access-map {
    height: 400px;
  }

  /* CONTACT — Form */
  .contact-form {
    padding: 36px 32px;
  }

  .contact-form__label {
    display: block;
    margin-bottom: 10px;
  }

  .contact-form__field {
    margin-bottom: 24px;
  }

  /* Modal */
  .modal__dialog {
    width: 90%;
    max-width: none;
  }

  .modal__actions {
    flex-wrap: wrap;
  }

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

  #complete-modal .modal__dialog {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  #confirm-modal .modal__button,
  #complete-modal .modal__button {
    width: 220px;
  }

  /* Lower KV */
  .lower-kv__inner {
    min-height: 280px;
  }

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

  .lower-kv__visual {
    width: 45%;
  }
}
