section {
    background-color: #E5E5E5;
    padding-bottom: 100px;
}

section p {
    margin: 0 auto;
    max-width: 960px;

}

body {
    font-family: "MS ゴシック", sans-serif;

}

.english {
    font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
}

.title {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    transition: all 0.5s ease-out allow-discrete;
}

.title__scroll {
    transform: rotate(15deg);
    width: 7%;
    left: 10%;
    transition: all 0.5s ease-out allow-discrete;
}

.header {
    padding: 20px 130px;
    position: absolute;
    width: 100%;
    background-color: #fff;
    z-index: 100000;
    top: 0;
}



#slideshow {
    position: relative;
    margin-top: 95px;
    /* 画像の横幅に合わせて記述 */

    /* 画像の高さに合わせて記述 */

}

#slideshow::before {
    content: "";
    display: block;
    padding-top: 30%;
}

#slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
    opacity: 0.0;
}

#slideshow img.active {
    z-index: 10;
    opacity: 1.0;
}

#slideshow img.last-active {
    z-index: 9;
}

.gnav {
    display: flex;
    width: 60%;
    position: relative;
    left: 40%;
}

.gnav__item {
    list-style-type: none;
    background-color: #fff;
    color: #000;
    flex-grow: 1;
    text-align: center;
    border-left: 1px solid #000;
    padding: 0 15px 0 15px;
    width: 100px;
}

.gnav__item:last-of-type {
    border-right: 1px solid #000;
}

.gnav__item a {
    text-decoration: none;
    color: #000;
}

/* header（デモの参考値） */
.demobox-header {
    background: #ddd;
    height: 64px;
    padding: 1em;
}

/* headerのサイト名（デモの参考値） */
.demobox-sitename {
    font-weight: 700;
    font-size: 18px;
}

/* 全体調整CSS */
.hamburger-demo-menubox * {
    font-size: 16px;
}

.hamburger-demo-menubox li {
    font-size: 14px;
    padding: 10px;

    border-bottom: 1px solid #000;
}

.hamburger-demo-menubox li:nth-of-type(1) {
    border-top: 1px solid #000;
}

.hamburger-demo-menulist a {
    font-weight: bold;
}

/* hamburgerここから */
/* inputを非表示 */
.input-hidden {
    display: none;
}

/* label */
.hamburger-demo-switch {
    cursor: pointer;
    position: absolute;
    right: 3%;
    top: 0;
    /* ハンバーガーアイコンの位置（上から） */
    z-index: 9999;
    width: 4em;
    /* アイコン（クリック可能領域）の幅 */
    height: 4em;
    /* アイコン（クリック可能領域の）高さ */
}

/* メニュー展開時にハンバーガーアイコンを固定 */
#hamburger-demo1:checked~.hamburger-demo-switch {
    position: fixed;
}

/* ハンバーガーアイコン */
.hamburger-switch-line1,
.hamburger-switch-line1:before,
.hamburger-switch-line1:after {
    width: 25px;
    height: 3px;
    background: #333;
    /* ハンバーガーアイコンの色 */
    position: absolute;
    top: 50%;
    left: 50%;
    transition: .3s;
    content: "";
}

.hamburger-switch-line1 {
    transform: translate(-50%, -50%);
}

.hamburger-switch-line1:before {
    transform: translate(-50%, -300%);
}

.hamburger-switch-line1:after {
    transform: translate(-50%, 200%);
}

/* ハンバーガーアイコン･アニメーション */
#hamburger-demo1:checked~.hamburger-demo-switch .hamburger-switch-line1 {
    width: 0;
}

#hamburger-demo1:checked~.hamburger-demo-switch .hamburger-switch-line1:before {
    transform: rotate(45deg) translate(-40%, 325%);
}

#hamburger-demo1:checked~.hamburger-demo-switch .hamburger-switch-line1:after {
    transform: rotate(-45deg) translate(-40%, -325%);
}

/* メニューエリア */
.hamburger-demo-menuwrap {
    position: fixed;
    height: 100%;
    background: #fafafa;
    /* メニューエリアの背景色 */
    padding: 5em 3% 2em;
    z-index: 9998;
    transition: .3s;
    overflow-y: scroll;
    /* メニュー内容が多い場合に縦スクロールする */
    top: 0;
    left: 100%;
    width: 50%;
}

/* メニューリスト */
.hamburger-demo-menulist {
    margin-right: 3%;
    padding-left: 5% !important;
    /* !important不要な場合もあり */
    list-style: none;
}

.hamburger-demo-menulist li a {
    text-decoration: none;
    color: #333;
    /* メニューリストの文字色 */
    display: block;
    padding: .5em 0;
}

/* メニューエリア･アニメーション */
/* 右から */
#hamburger-demo1:checked~.hamburger-demo-menuwrap {
    left: 50%;
}

/* コンテンツカバー */
#hamburger-demo1:checked~.hamburger-demo-cover {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9997;
    background: rgba(3, 3, 3, .5);
    display: block;
}

/* PCではハンバーガーメニューを表示しない */
@media (min-width: 992px) {
    .hamburger-demo-menubox {
        display: none;
    }


}

@media (max-width: 992px) {

    .gnav {
        display: none;
    }

    .header {
        padding: 30px 3rem;
    }

}

.switch_text {
    display: inline-block;
    position: relative;
    color: #000;
    transition: 0.5s;
    font-weight: bold;
}

.switch_text::before {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    color: transparent;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.1s;
    content: attr(data-hover-text);
}

.switch_text:hover {
    color: transparent;
}

.switch_text:hover::before {
    color: #000;
}


.overview {
    padding: 0;
    text-align: center;
    background-color: #fff;
}


.overview__text {
    padding-top: 20px;
}

.company-table {
    margin: 0 auto;
    padding: 80px 0;
}

.table__wrapper {
    padding: 30px;
}

.table__title {
    font-weight: bold;
    text-align: left;
}

td:first-child,
td:last-child {
    text-align: left;
    white-space: nowrap;
}

table {

    box-sizing: border-box;
    border-collapse: collapse;
    margin: 0 auto;
    text-align: center;
    width: 600px;
    table-layout: fixed;

}

table th {
    width: 100%;
    text-align: left;
    font-weight: normal;
}

table td {
    width: 440px;
    text-align: left;
}



@media (max-width: 650px) {
    table {
        width: 100%;
    }

    .header {
        height: 4rem;
    }

    .gnav {
        display: none;
    }
    table th {
        font-weight: bold;
    }
    table th,
    table td {
        display: block;
        width: 100%;
       
    }

    table th,
    table td {
        border: none;
    }

    table td {
        padding-bottom: 15px;
    }

    table tr:first-child th {
        line-height: 20px;
        padding-top: 20px;
    }

    .table__title {
        width: 21%;
        background: linear-gradient(transparent 50%, #fff 50%);
    }

    .table__wrapper {
        padding: 0 30px 30px 30px;
    }

    .history {

        background: linear-gradient(transparent 50%, #fff 50%);
    }

    .access-map {
        width: 90%;
    }
}

.service__title {
    margin: 0 auto;
}

.service__title dt {
    padding: 5px 0 20px 0;
    display: flex;
    justify-content: center;
}

.service__title dt:first-of-type {
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.service__wrapper dl dt:first-of-type {
    padding-top: 50px;
    padding: 80px 0;
}

.service-description__wrapper {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.service-description {
    border-top: 1px solid #000;
    padding-top: 20px;
}

.service-title__image {
    position: relative;
    top: -10px;
}

.service__image {
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    align-items: baseline;

}


.service__second {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: baseline;
    padding-top: 10vh;
}

.bg-gradation {
    height: 2.8rem;
    background: black;
    position: absolute;
    width: 30%;
    border-radius: 0 0.7rem 0.7rem 0;
}

.privacy-policy__title {
    max-width: 960px;
    width: 97%;
    padding: 0.6rem 0;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    color: #fff;
}

.contact_us__image {
    max-width: 1000px;
    margin: 0 0 70px 0;
    width: 50%;
}

.image {
    max-width: 1000px;
    width: 40%;
    margin: 0 0 70px 0;
}


.planning {
    padding: 30px;
}

.slideshow-sp {
    display: none;
}

.slideshow-pc {
    display: block;
}

/* Hide default radio button */
.radio-test {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

/* Label positioning context */
.radio-label {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    /* Space for the custom radio button */
    margin-bottom: 5px;
    cursor: pointer;
}

/* Custom Radio Button Design */
.radio-label-span::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    /* Border color */
    border-radius: 50%;
    /* Rounded corners for radio button */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Custom Radio Button Checked State */
.radio-test:checked+.radio-label-span::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: #000;
    /* Fill color when checked */
    border-radius: 50%;
    /* Rounded corners for checked state */
    position: absolute;
    top: 50%;
    left: 5px;
    /* Centering the filled circle */
    transform: translateY(-50%);
}

/* Focus State */
.radio-test:focus+.radio-label-span::before {
    outline: 2px solid #3498db;
    /* Outline color when focused */
}

.contact_overview {
    padding: 20px 0
}

.slideshow__image {
    width: 100% !important;
}

.text {
  margin: 30px 0;
  padding: 10px 0 65px 0; /* 上だけ35pxにして調整（下はそのまま） */
}



.station__wrapper {
    display: flex;
    padding-top: 15px;
}

.station {
    padding-right: 20px;

}

@media only screen and (max-width: 767px) {
    .station__wrapper {
        display: block;
        padding-top: 10px;
    }

    .gnav {
        display: none;
    }

    .station__wrapper:nth-of-type(1) {
        padding-top: 0;
    }

    .station {
        font-weight: bold;
    }

    .gnav {
        display: none;
    }

    .header {
        height: 4rem;
    }

    .image {
        max-width: 480px;
        margin: 0 0 20px 0;
    }

    .contact_us__image {
        width: 80% !important;
        margin: 0;
    }

    #slideshow {
        height: auto;
        margin-top: 50px !important;
    }

    #slideshow::before {
        content: "";
        display: block;
        padding-top: 70% !important;
    }

    section {
        padding-bottom: 1px;
    }

    .services,
    .access {
        padding-bottom: 70px;
    }

    .text {
        margin: 0;
        padding: 50px 20px;
        min-height: 20vh;
        text-align: center;
        background-color: #fff;
    }

    .slideshow-pc {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .slideshow-sp {
        display: block;
        width: 100% !important;
        height: auto;

    }

    .slideshow-sp::before {
        content: "";
        display: block;
        padding-top: 68%;
    }

    .slideshow__image {
        width: 100% !important;
    }

    .image {
        width: 63% !important;
    }

    .title {
        width: 200px;
        top: 5px;
    }

    .title__scroll {
        width: 60px;
        transform: rotate(15deg) !important;
    }

    .services__wrapper {
        display: none;

    }

    .service__second {
        display: none;
    }

    .services__wrapper dl {
        display: none;
        width: 100% !important;
    }

    .services__wrapper-sp {
        display: block !important;
        width: 90%;
        margin: 0 auto;
    }

    .bg-gradation {
        width: 60%;


    }

    .access-map__iframe {
        width: 100%;
        padding: 20px 0;
    }

    .privacy-policy__title {
        max-width: 960px;
        width: 97%;
        padding: 10px 0 10px 1.5rem;
        margin: 0 auto;
        position: relative;
        border-radius: 16px;
        color: #fff;
    }

    .privacy-policy__image {
        margin-bottom: 50px !important;
        width: 100% !important;
    }

    .address__sp {
        display: inline-block !important;

    }

    .address {
        display: none !important;
    }

    .privacy-policy-page {
        padding-bottom: 50px;
        padding-top: 65px !important;
    }

    .privacy-policy__text {
        padding: 20px 30px 0 30px !important;
    }

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

    .form-text {
        justify-content: space-between !important;
        padding-right: 0 !important;
    }

    .form-email__text {
        text-align: right;
        padding: 5px 0;
        line-height: 1.5;
        display: block !important;
        width: 100% !important;
    }

    .form-mail {
        display: block !important;
    }

    .privacy-policy__end {
        padding-top: 20px;
        padding-bottom: 40px;
    }
}

@media only screen and (max-width: 480px) {
    .title__scroll {
        width: 15% !important;
    }

    .gnav {
        display: none;
    }
}

.station-flex {
    display: inline-block;

}

.form-mail {
    display: flex;
}

.form-email__text {
    text-align: right;
    display: flex;
    justify-content: space-between;
    width: 60%;
}

.address__sp {
    display: none;
}

.address {
    display: inline-block;
}

.services__wrapper {

    max-width: 960px;
    margin: 0 auto;
    font-size: 14px;
}

.services__wrapper dl {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.services__wrapper-sp {
    display: none;

}

.access-map {
    margin: 0 auto;
    max-width: 960px;
}

.access-map__iframe {
    width: 100%;
}

.privacy-policy {
    text-align: center;
    color: black !important;
    margin: 0 auto;
    padding: 20px 0;
}

.privacy-policy span {
    color: #000 !important;
    font-size: 16px !important;
    background-color: transparent !important;
}

/* Style inputs with type="text",
select elements and textareas */
input[type=text],
select,
textarea {
    width: 100%;
    /* Full width */
    padding: 12px;
    /* Some padding */
    border: 1px solid #ccc;
    /* Gray border */
    border-radius: 4px;
    /* Rounded borders */
    box-sizing: border-box;
    /* Make sure that padding and width stays in place */
    margin-top: 6px;
    /* Add a top margin */
    margin-bottom: 16px;
    /* Bottom margin */
    resize: vertical
        /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: #000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 300px;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
    opacity: 0.65;

}

/* Add a background color and some padding around the form */
.container {
    border-radius: 5px;
    max-width: 785px;
    margin: 0 auto;
}

.contact_overview .radio-label span {
    color: black;
    background-color: transparent;
}

.contact_overview .radio {

    margin: 20px 0
}

.container .require {
    color: white;
    background-color: black;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 5px;
    margin-right: 5px;
}

.container .submit {
    text-align: center;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    height: 300px;
    text-align: center;
    /* min-width: 400px; */
}

.footer p {
    color: #fff;
    margin: 0 auto;
    margin-bottom: 5px;

}

.footer .footer-bar {
    border: 1px solid #fff;
    margin: 0 auto;
    width: 50px;
}

.contact-us__message {
    margin: 0 auto;
    padding: 20px 0;

}

.d-flex {
    display: flex;
    justify-content: flex-start;
    padding-right: 25px;
}

.form-text {
    display: flex;
    justify-content: flex-start;
    padding-right: 25px;
}

.privacy-policy {
    color: #fff;
}

.privacy-policy a {
    color: #C8A14D !important;
    text-decoration: none;
}

.privacy-policy__image {
    max-width: 960px;
    width: 55%;
    margin-top: -5px;
    margin-bottom: 50px;
}

.privacy-policy__wrapper {
    padding: 20px 0 0 0;
}

.privacy-policy__wrapper p .text {
    background-color: #000;
    color: #fff;
    width: 30%;
    padding: 20px 80px 20px 0;
    margin-bottom: 20px;
    border-radius: 0 20px 20px 0;
    text-align: right;
}

.privacy-policy__back {
    width: 30%;
    background-color: #000;
    position: absolute;
}

.privacy-policy__back::before {
    content: "";
    display: block;
    padding-top: 10%;
    /* 1:1 */
}

.footer__logo {
    display: flex;
    justify-content: center;
}

.footer p {
    padding: 20px 0;
}

.privacy-policy__text {
    padding: 20px 0 20px 0;
}

.privacy-policy-page {
    padding-top: 100px;
}

.privacy-policy__end {
    padding-top: 20px;
}

.recruit-banner-wrapper {
  text-align: center;
}

.recruit-banner {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #C8A14D;
  color: white;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 18px 90px;
  margin: 60px 0 20px 0;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.recruit-banner:hover {
  background-color: #B18F3C;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.recruit-banner .recruit-main {
  font-size: 1.6rem;
  font-weight: 600;
}

.recruit-banner .recruit-sub {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  margin-left: 0.5em;
}

@media screen and (max-width: 768px) {
  .recruit-banner {
    flex-wrap: wrap;
    padding: 14px 40px;
    border-radius: 16px;
  }

  .recruit-banner .recruit-main {
    font-size: 1.4rem;
  }

  .recruit-banner .recruit-sub {
    font-size: 0.9rem;
  }
}
