/*----------------------------------------
	utility（PC表示用）
----------------------------------------*/
.hamburger,
.gnav__toggle,
.gnav__overlay,
.gnav__item--entry,
.sp_only {
  display: none;
}

/*----------------------------------------
	mobile
----------------------------------------*/
@media only screen and (max-width: 780px) {
  body:has(#menu-toggle:checked) {
    overflow: hidden;
  }

  .pc_only {
    display: none !important;
  }

  .sp_only {
    display: block;
  }

  /*----------------------------------------
  	header / gnav / hamburger
  ----------------------------------------*/
  .header {
    height: 60px;
  }

  .header__inner {
    position: relative;
    padding: 0 15px;
  }

  .header__logo-img {
    width: 120px;
  }

  .header__body {
    gap: 0;
  }

  .gnav {
    position: static;
  }

  .gnav__toggle {
    display: none;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    z-index: 1002;
    width: 25px;
    height: 18px;
    margin-top: -9px;
    cursor: pointer;
  }

  .hamburger::before,
  .hamburger::after,
  .hamburger span {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--c_txt);
    transition: 0.3s;
    transform-origin: center;
  }

  .hamburger span {
    top: 50%;
    transform: translateY(-50%);
  }

  .hamburger::before {
    top: 0;
  }

  .hamburger::after {
    bottom: 0;
  }

  .gnav__toggle:checked + .hamburger::before {
    top: 50%;
    transform: rotate(45deg);
  }

  .gnav__toggle:checked + .hamburger::after {
    top: 50%;
    bottom: auto;
    transform: rotate(-45deg);
  }

  .gnav__toggle:checked + .hamburger span {
    opacity: 0;
  }

  .gnav__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
  }

  .gnav__toggle:checked ~ .gnav__overlay {
    display: block;
  }

  .gnav__list {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(280px, 80%);
    height: 100vh;
    padding: 70px 20px 30px;
    background-color: var(--c_white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .gnav__toggle:checked ~ .gnav__list {
    display: flex;
  }

  .gnav__item {
    width: 100%;
    border-top: 1px solid #E4E4E4;
  }

  .gnav__item:last-child {
    border-bottom: 1px solid #E4E4E4;
  }

  .gnav__link {
    display: block;
    width: 100%;
    padding: 16px 10px 16px 28px;
    font-size: 15px;
  }

  .gnav__item--entry {
    display: block;
    margin-top: 20px;
    border-top: 0;
  }

  .gnav__item--entry:last-child {
    border-bottom: 0;
  }

  .gnav__entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: var(--c_blue);
  }

  .gnav__entry span {
    color: var(--c_white);
    font-size: 14px;
    font-weight: 700;
  }

  /*----------------------------------------
  	main / common
  ----------------------------------------*/
  .main {
    margin-top: 60px;
  }

  .wrap {
    padding: 0;
  }

  .section {
    padding: 50px 20px;
  }

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

  /* full-bleedセクション：背景は画面幅、余白は20pxに統一 */
  .section.recruit,
  .section.greet,
  .section.about,
  .section.office,
  .section.service,
  .section.cta,
  .section.contact,
  .section.facillity {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 20px;
    padding-right: 20px;
  }

  .section.recruit {
    padding-top: 50px;
    padding-bottom: 100px;
  }

  .heading-lv2--sub {
    font-size: 16px;
  }

  .heading-lv2--main {
    font-size: 26px;
  }

  .heading-lv2-dot {
    font-size: 18px;
  }

  .btn-more {
    gap: 12px;
    width: 100%;
    max-width: 280px;
    padding: 14px 18px;
  }

  .pagetop {
    right: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
  }

  /*----------------------------------------
  	FV
  ----------------------------------------*/
  .fv img {
    object-fit: cover;
    aspect-ratio: 375/220;
  }

  /*----------------------------------------
  	採用情報
  ----------------------------------------*/
  .recruit::before {
    height: calc(100% - 180px);
  }

  .recruit::after {
    top: calc(100% - 280px);
    height: 240px;
  }

  .recruit__lead {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.6;
  }

  .recruit__txt {
    margin-top: 15px;
    font-size: 14px;
    text-align: left;
  }

  .recruit__txt br {
    display: none;
  }

  .recruit__cards {
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .recruit__card {
    min-height: auto;
    padding: 20px 20px 70px 45px;
  }

  .recruit__card-label {
    top: 16px;
    width: 24px;
    height: auto;
  }

  .recruit__card-ttl {
    font-size: 18px;
  }

  .recruit__card-txt {
    font-size: 13px;
  }

  .recruit__card-link {
    right: 20px;
    bottom: 20px;
  }

  .recruit__message {
    margin-top: 40px;
  }

  .recruit__message-ttl {
    font-size: 20px;
    line-height: 1.5;
  }

  .recruit__message-txt {
    font-size: 14px;
    text-align: left;
  }

  .recruit__message-txt br {
    display: none;
  }

  .recruit__slider {
    margin-top: 30px;
  }

  .recruit__slide {
    width: 200px;
    height: 130px;
  }

  .recruit__slide:nth-of-type(2n) {
    margin-top: 15px;
  }

  .recruit__btn {
    margin-top: 30px;
  }

  /*----------------------------------------
  	お知らせ
  ----------------------------------------*/
  .section.news {
    padding-top: 50px;
  }

  .news__head {
    flex-direction: column;
    gap: 0;
  }

  .news__filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .news__filter-list {
    justify-content: flex-start;
    gap: 8px;
  }

  .news__filter-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .news-archive .news__list {
    margin-top: 25px;
  }

  .news__list {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 25px;
  }

  .news__thumb {
    aspect-ratio: auto;
  }

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

  .news__ttl {
    font-size: 14px;
  }

  .news__date {
    font-size: 13px;
}

  .news__btn {
    margin-top: 30px;
    text-align: center;
  }

  .news__btn .btn-more {
    margin: 0 auto;
  }

  /*----------------------------------------
  	理事長あいさつ
  ----------------------------------------*/
  .section.greet {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .greet__inner {
    flex-direction: column;
    gap: 30px;
  }

  .greet__body {
    width: 100%;
  }

  .greet__lead {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.6;
  }

  .greet__lead-sub {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.6;
  }

  .greet__inner + .greet__inner {
    margin-top: 50px;
    padding-top: 50px;
  }

  .greet__texts {
    margin-top: 25px;
  }

  .greet__txt {
    font-size: 14px;
    line-height: 1.8;
  }

  .greet__txt + .greet__txt {
    margin-top: 20px;
  }

  .greet__profile {
    width: 100%;
  }

  .greet__img {
    height: auto;
    aspect-ratio: 3/4;
  }

  .greet__profile-txt {
    margin-top: 15px;
    font-size: 14px;
  }

  /*----------------------------------------
  	法人概要
  ----------------------------------------*/
  .about__inner {
    flex-direction: column;
    gap: 25px;
  }

  .about__inner + .about__inner {
    margin-top: 50px;
    padding-top: 50px;
  }

  .about__table {
    max-width: 100%;
  }

  .about__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .about__term {
    font-weight: 700;
    line-height: 1.6;
  }

  .about__desc {
    font-size: 14px;
    line-height: 1.8;
  }

  .about__desc iframe {
    width: 100%;
    max-height: 220px;
  }

  .about__lead {
    margin-top: 40px;
    font-size: 14px;
    line-height: 1.8;
  }

  .about__facility-list {
    grid-template-columns: 1fr;
    gap: 50px;
    margin-top: 40px;
  }

  .about__facility-img-wrap {
    height: 180px;
  }

  .about__facility-body {
    min-height: auto;
    padding: 60px 15px 40px;
  }

  .about__facility-logo-wrap {
    top: -55px;
    width: 110px;
    height: 110px;
  }

  .about__facility-logo,
  .about__facility-logo--wide {
    width: 75px;
  }

  .about__facility-kana {
    font-size: 13px;
  }

  .about__facility-name {
    font-size: 24px;
  }

  .about__tag {
    font-size: 12px;
  }

  .about__bottom {
    margin-top: 40px;
  }

  .about__bottom-ttl {
    font-size: 24px;
    line-height: 1.5;
  }

  .about__bottom-ttl span {
    display: block;
    margin-top: 5px;
    margin-left: 0;
    font-size: 16px;
  }

  .about__bottom-links {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
  }

  #about,
  #news,
  #office,
  #service {
    scroll-margin-top: 60px;
  }

  /*----------------------------------------
  	事業所紹介
  ----------------------------------------*/
  .office__txt {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
  }

  .office__slider {
    margin-top: 25px;
  }

  .office__slide {
    width: min(300px, 85vw);
  }

  .office__img {
    height: 200px;
  }

  .office__caption {
    font-size: 13px;
  }

  .office__arrow {
    top: 80px;
    width: 32px;
    height: 32px;
  }

  .office__arrow--prev {
    left: 10px;
  }

  .office__arrow--next {
    right: 10px;
  }

  /*----------------------------------------
  	サービス紹介
  ----------------------------------------*/
  .service__list {
    gap: 30px;
    margin-top: 25px;
  }

  .service__item {
    padding: 25px 20px 20px;
  }

  .service__ttl {
    font-size: 20px;
    line-height: 1.5;
  }

  .service__number {
    font-size: 13px;
  }

  .service__texts {
    gap: 20px;
    margin-top: 20px;
  }

  .service__txt {
    font-size: 14px;
    line-height: 1.8;
  }

  .service__row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }

  .service__term {
    font-weight: 700;
  }

  .service__download {
    font-size: 14px;
  }

  /*----------------------------------------
  	CTA
  ----------------------------------------*/
  .cta__inner {
    padding: 35px 20px;
  }

  .cta__lead {
    margin-top: 20px;
    font-size: 18px;
    line-height: 1.5;
  }

  .cta__btn {
    margin-top: 20px;
  }

  /*----------------------------------------
  	お問い合わせ
  ----------------------------------------*/
  .contact__heading {
    text-align: center;
  }

  .contact__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 20px;
  }

  .contact__txt {
    font-size: 14px;
    line-height: 1.8;
  }

  .contact__more {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    align-self: center;
  }

  .contact__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
  }

  .contact__card {
    min-height: auto;
    padding: 25px 20px;
  }

  .contact__card-ttl {
    font-size: 18px;
    line-height: 1.5;
  }

  .contact__tel {
    font-size: 28px;
  }

  .contact__note {
    font-size: 13px;
    line-height: 1.6;
  }

  /*----------------------------------------
  	施設紹介
  ----------------------------------------*/
  .facillity {
    flex-direction: column;
    gap: 25px;
  }

  .facillity__list {
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
  }

  .facillity__name span {
    font-size: 16px;
  }

  /*----------------------------------------
  	footer
  ----------------------------------------*/
  .footer {
    padding-top: 80px;
  }

  .footer__wave-img {
    height: 120px;
  }

  .footer__inner {
    padding: 0 15px 40px;
  }

  .footer__inner .footer__box {
    padding: 0;
  }

  .footer__bnrs {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .footer__bnr-img {
    height: 45px;
  }

  .footer__body {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }

  .footer__logo {
    width: 140px;
    margin: 0 auto;
  }

  .footer__address {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
  }

  .footer-nav__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
    justify-items: start;
  }

  .footer-nav__link {
    font-size: 13px;
    padding-left: 16px;
  }

  .footer-nav__link::before {
    width: 8px;
    height: 8px;
  }

  .copyright {
    margin-top: 25px;
    text-align: center;
  }
}
