/*戻るボタン*/
.back-button-wrap {
    text-align: right;
    margin: 3em 1em 0 1em;
    /* 上右下左の余白 */
}

.back-button {
    background-color: #007BFF;
    /* ブルー */
    color: #ffffff !important;
    /* ← 白文字を強制 */
    border: none;
    padding: 0.6em 1.5em;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #0056b3;
    /* 濃いめブルー */
}

/*会社概要*/

.company-info {
    width: 100%;
    max-width: 1200px;
    margin: 2em auto;
    border-collapse: collapse;
}

.company-info th,
.company-info td {
    border: 1px solid #ccc;
    padding: 0.8em 1em;
    text-align: left;
    vertical-align: top;
}

.company-info th {
    background-color: #f0f0f0;
    color: #333;
    width: 20%;
    font-weight: normal;
}

.company-info td {
    background-color: #fff;
}

.company-info td {
    word-break: break-word;
}

/*ご挨拶*/

.greeting-heading {
    text-align: center;
    margin-bottom: 3em;
    padding: 2em 0;
    background: linear-gradient(to right, #f3f3f3, #e9e9e9);
    border-top: 8px solid #ff9008;
    border-bottom: 8px solid #ff9008;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.greeting-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 45px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.08em;
    margin: 0;
    line-height: 1.4;
}

.greeting-section {
    max-width: 1000px;
    margin: 3em auto;
    padding: 2em;
    background: #f3f3f3;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.9;
    font-size: 17px;
    color: #333;
}

.greeting-text p {
    margin-bottom: 1.5em;
}

.ceo-name {
    display: block;
    margin-top: 1em;
    margin-left: auto;
    margin-right: 2em;
    text-align: right;
    max-width: 250px;
}

.sp-break {
    display: none;
}

/* 沿革リスト */

.history-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 4em;
    border-collapse: collapse;
    font-size: 18px;
    line-height: 1.8;
}

.history-table th,
.history-table td {
    padding: 1.2em 1.5em;
    border: 1px solid #ddd;
    text-align: left;
    background-color: #fff;
}

.history-table th {
    background-color: #f0f0f0;
    color: #333;
    white-space: nowrap;
    font-weight: normal;
}



/*技術請負*/
.flow-step {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(to right, #004a8f, #2a9d8f);
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    padding: 0.4em 1.2em;
    margin-bottom: 1em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.flow-step::before {
    content: "▶";
    display: inline-block;
    margin-right: 0.5em;
    font-size: 1.1em;
    line-height: 1;
}

.flow-box {
    border: 1px solid #ccc;
    border-left: 4px solid #2a9d8f;
    padding: 1.5em;
    margin-bottom: 1.5em;
    border-radius: 8px;
    background-color: #fdfdfc;
    box-shadow: 0 7px 18px rgb(0, 0, 0, 0.5);
}

/*組み立て解体*/
.swiper {
    width: 100%;
    max-width: 1000px;
    margin: 2em auto;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/*保有機械*/

.machine-table {
    min-width: 1000px;
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.machine-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2em;
}


.machine-table th,
.machine-table td {
    border: 1px solid #ccc;
    padding: 0.8em;
    text-align: center;
}

.machine-img {
    max-width: 100px;
    height: auto;
}

.machine-table thead {
    background-color: #004a8f;
    color: white;
}

.machine-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.machine-table .machine-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.recruit-link-img img {
    height: 80px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 5px;
}

.recruit-link-img:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.img-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.img-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/*保管管理*/

.service-menu-box {
    border: 2px solid #39517d;
    border-radius: 20px;
    padding: 1.5em 2em;
    max-width: 600px;
    margin: 2em auto;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.service-menu-box h4 {
    margin-top: 0;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 1em;
    color: #333;
}

.service-menu-box ul {
    list-style: disc;
    padding-left: 1.5em;
    margin: 0;
}

.service-menu-box li {
    margin-bottom: 0.5em;
    list-style: none;
    font-size: 16px;
    color: #333;
}

/*資材管理画像*/

.material-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1em;
    margin-top: 2em;
}

.material-gallery img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.material-gallery img:hover {
    transform: scale(1.05);
}

.material-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    /* 必要に応じて調整 */
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
}

.material-swiper .swiper-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/*海外派遣*/
.subheading {
    font-size: 20px;
    font-weight: bold;
    padding: 0.4em 1em;
    background-color: #e0f7fa;
    border-left: 5px solid #00796b;
    margin: 1.5em 0 1em;
    color: #004d40;
    border-radius: 4px;
}

.staff-section {
    display: flex;
    flex-direction: column;
    gap: 3em;
}

.staff-box {
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
}

.staff-box.reverse {
    flex-direction: row-reverse;
}

.staff-text {
    flex: 1;
    min-width: 300px;
}

.staff-text p {
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    font-weight: 500;
}

.staff-image {
    flex: 1;
    min-width: 300px;
}

.staff-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/*海外インターン*/

.step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.step-list li {
    position: relative;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 1em;
    margin: 0 auto 3em;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 800px;
}

.step-list li::after {
    content: "↓";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2em;
    font-size: 24px;
    color: #aaa;
}

.step-list li:last-of-type::after {
    display: none;
}

.contact-center {
    text-align: center;
    max-width: 600px;
    margin: 3em auto;
}

.section-heading-intern {
    background: linear-gradient(to right, #004a8f, #2a9d8f);
    padding: 0.6em 1.5em;
    color: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border-radius: 40px;
    display: inline-block;
    margin: 0.5em;
}

/*採用情報*/

.recruit-section {
    max-width: 900px;
    margin: 3em auto;
    padding: 2em;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.recruit-item {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #ccc;
}

.recruit-item h4 {
    background-color: #666;
    color: white;
    padding: 0.6em 1em;
    margin: 0;
    font-size: 18px;
    border-radius: 6px 6px 0 0;
}

.recruit-item p {
    margin: 0;
    padding: 1em;
    background-color: #fff;
    font-size: 16px;
    line-height: 1.6;
    border-radius: 0 0 6px 6px;
}

.recruit-contact {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 3em;
    padding: 1em;
    border-top: 2px dashed #999;
}

/*マップ*/
.map-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2em;
}

.map-wrapper {
    margin: 2em 0;
    padding: 0 1em;
    -webkit-overflow-scrolling: touch;
}

.map-block {
    flex: 1 1 45%;
    height: 800px;
    min-width: 300px;
    max-width: 100%;
    background: #fff;
    padding: 1em;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-block iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-image-section {
    max-width: 1200px;
    margin: 2em auto;
    padding: 0 1em;
    text-align: center;
}

.map-images {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

.map-images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/*お問い合わせ*/

.contact-link {
    background-color: #ffffff;
    color: #0070c0;
    padding: 0.3em 1em;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #fff;
}

.contact-link:hover {
    background-color: #005a9c;
    color: #fff;
    border-color: #005a9c;
    box-shadow: none;
}

.contact-link .arrow {
    color: #0008ff;
    margin-right: 0.3em;
}

.contact-link:hover .arrow {
    color: #ffffff;
}

/*トップ画像*/

.hero {
    position: relative;
    width: 100%;
    height: 55vw;
    /* 画面の横幅の55%が高さに */
    max-height: 80vh;
    /* 画面の高さを超えない */
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.7));
}

.hero-catchcopy {
    z-index: 1;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    font-size: 4rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
    color: white;
}

.hero-catchcopy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* 黒い透過レイヤーを追加 */
    z-index: 0;
}

.hero-catchcopy img {
    height: 20em;
    width: auto;
    vertical-align: middle;
}

.catchcopy-icon {
    height: 2em;
    width: auto;
    vertical-align: middle;
}

/*事業内容詳細*/

.services {
    padding: 4em 1em;
    text-align: center;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    max-width: 1500px;
    margin: 0 auto;
    justify-content: center;
}

.service-card {
    flex: 1 1 min(45%, 600px);
    max-width: 100%;
    height: 400px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(253, 248, 180, 0.7);
    z-index: 0;
}

.service-card span {
    position: relative;
    z-index: 2;
    font-weight: bold;
    font-size: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    background-color: rgba(255, 255, 255, 0.1);
}

.service-card.yellow {
    background-color: #ffee00;
}

.service-card.pink {
    background-color: #ffd5d5;
}

.service-card.purple {
    background-color: #dcd9ff;
}

.service-card.green {
    background-color: #d4fdd4;
}

.overlay-card {
    position: relative;
    background-image: url("../images/S__5013512.jpg");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
}

.overlay-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 150, 0.7);
    z-index: 0;
}

.overlay-card span {
    position: relative;
    z-index: 2;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.card-crawler {
    background-image: url("../images/greet.jpg");
}

.card-crawler::before {
    background-color: rgba(0, 51, 102, 0.85);
}

.card-assembly {
    background-image: url("../images/owned_machinery_2.jpg");
}

.card-assembly::before {
    background-color: rgba(0, 102, 68, 0.85);
}

.card-camera {
    background-image: url("../images/storage_management_2.jpg");
}

.card-camera::before {
    background-color: rgba(179, 162, 0, 0.85);
}

.card-materials {
    background-image: url("../images/storage_management_1.jpg");
}

.card-materials::before {
    background-color: rgba(122, 31, 31, 0.85);
}

/*TOPICS*/

.topics {
    background: linear-gradient(to right, #1e2a38, #38bdf8);
    padding: 3em 1em;
    border-radius: 12px;
    max-width: 1600px;
    margin: 4em auto;
    color: #fff;
}

.topics-title {
    background-color: #fef9c3;
    color: #1e2a38;
    font-size: 28px;
    font-weight: bold;
    padding: 0.6em 1.4em;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    margin-bottom: 2em;
    margin-left: 220px;
}

.topics-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 90%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fef9c3;
}

.topic-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.topic-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 700px;
    gap: 0.6em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6em 0;
    font-size: 20px;
}

.topic-date-index {
    color: #c8fec3;
    font-size: 14px;
    margin-right: 1em;
}

.topic-text a {
    color: #f1f5f9;
    text-decoration: none;
}

.topic-text a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.badge-new {
    background-color: red;
    color: white;
    font-size: 0.75em;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    margin-left: 0.5em;
}

.badge-new-detail {
    background-color: red;
    color: white;
    font-size: 0.8em;
    padding: 0.2em 0.6em;
    margin-right: 0.8em;
    border-radius: 5px;
    vertical-align: middle;
    display: inline-block;
    height: fit-content;
}

.topic-text {
    text-align: left;
    word-break: break-word;
    text-align: center;
}

.more-link {
    text-align: right;
    margin-top: 1em;
    padding-right: 5%;
    font-size: 16px;
}

.more-link a {
    color: #f1f5f9;
    font-weight: bold;
    text-decoration: underline;
}

.more-link a:hover {
    color: #003c56;
}

.contact-wrapper {
    max-width: 600px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
}

.topic-detail-image {
    text-align: center;
    margin-top: 1.5em;
}

.topic-detail-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    /* おまけで影も追加可能 */
}

/*TOPICS一覧*/

.topics-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
    padding: 0 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.topic-card {
    display: flex;
    align-items: center;
    background-color: #eee;
    border-radius: 8px;
    padding: 1em;
    text-decoration: none;
    color: #000;
    transition: background 0.2s;
}

.topic-card:hover {
    background-color: #e0e0e0;
}

.topic-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 1em;
    border-radius: 4px;
}

.topic-info {
    flex: 1;
}

.topic-date-list {
    min-width: 100px;
    font-size: 14px;
    color: #666;
    margin-right: 0.5em;
    flex-shrink: 0;
}

.topic-title {
    font-size: 18px;
    font-weight: bold;
}

.badge-new-list {
    background-color: red;
    color: white;
    font-size: 0.75em;
    padding: 0.2em 0.6em;
    border-radius: 5px;
    margin-right: 0.6em;
    flex-shrink: 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0070c0;
    color: white;
    font-size: 18px;
    padding: 0.6em 1em;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: #005a9c;
}

.pagination {
    text-align: center;
    margin-top: 2em;
}

.pagination a,
.pagination .current-page {
    display: inline-block;
    padding: 0.5em 1em;
    margin: 0 0.3em;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.pagination .current-page {
    background: #22d3ee;
    color: #fff;
    font-weight: bold;
}


/*問い合わせフォーム*/

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2em;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: #333333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75em;
    margin-bottom: 1.5em;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form button {
    background-color: #0070c0;
    color: #ffffff;
    padding: 0.75em 1.5em;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #005a9c;
}



.contact-wrapper {
    max-width: 600px;
    margin: 3em auto;
    padding: 2em;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-family: 'Helvetica Neue', sans-serif;
}

.contact-wrapper h1 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 1.5em;
    color: #333;
}

.contact-wrapper p {
    margin-bottom: 1.5em;
    font-size: 16px;
    color: #333;
}

.contact-wrapper label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.contact-wrapper input[type="text"],
.contact-wrapper input[type="email"],
.contact-wrapper textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.contact-wrapper textarea {
    resize: vertical;
}

.contact-wrapper button[type="submit"] {
    background-color: #0070c0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 0.8em 2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-wrapper button[type="submit"]:hover {
    background-color: #005999;
}

.contact-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.contact-wrapper ul li {
    margin-bottom: 1em;
    line-height: 1.6;
    font-size: 16px;
}

/*お問い合わせ*/

.close-button {
    margin-top: 2em;
    background-color: #0070c0;
    color: #fff;
    border: none;
    padding: 0.6em 1.5em;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    display: inline-block;
}

.close-button:hover {
    background-color: #005a9c;
}

.footer-phone a:hover {
    color: #ff8f33;
}

.dropdown-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
}

.dropdown-menu li {
    padding: 8px 12px;
}

.dropdown-menu li:hover {
    background-color: #eee;
}

.pulldown {
    width: 100%;
    padding: 0.5em;
    font-size: 1em;
}

.g-recaptcha {
    display: block !important;
    margin: 16px 0;
    height: auto !important;
}

/*プライバシーポリシー*/

.terms-box {
    background-color: #fff;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    margin: 0 auto 3em;
}

.terms-box h3 {
    font-size: 22px;
    color: #004a8f;
    margin-top: 1.5em;
    border-left: 5px solid #2a9d8f;
    padding-left: 0.5em;
}

.terms-box h4 {
    font-size: 18px;
    color: #333;
    margin-top: 1.5em;
}

.terms-box p {
    font-size: 16px;
    color: #333;
    margin: 0.8em 0 1.5em;
    line-height: 1.8;
}

/*サイトマップ*/

.sitemap-link-box {
    display: block;
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, box-shadow 0.2s;
    font-weight: bold;
}

.sitemap-link-box:hover {
    background-color: #f0f8ff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sitemap-section {
    max-width: 1200px;
    margin: 3em auto;
    padding: 0 1em;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.sitemap-group h3 {
    font-size: 20px;
    margin-bottom: 0.5em;
    position: relative;
    padding-bottom: 0.5em;
    color: #333;
}

.sitemap-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(to right, #a7a9ff 0%, #22d3ee 100%);
    border-radius: 4px;
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

/*メディアクエリ*/

@media (max-width: 768px) {
    .service-card {
        width: 100%;
        max-width: 90vw;
        height: auto;
        aspect-ratio: 16/9;
        font-size: 18px;
    }

    .topic-thumb {
        width: 40px;
        height: 40px;
    }

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

    .topic-date {
        font-size: 12px;
    }

    .header-inner {
        position: relative;
    }

    .topics {
        padding: 2em 1em;
    }

    .topic-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3em;
    }

    .topic-date-list,
    .badge-new-list {
        margin: 0;
    }

    .topic-text {
        font-size: 15px;
    }

    .topics-title {
        margin-left: auto;
        margin-right: auto;
        font-size: 22px;
        padding: 0.5em 1em;
        display: inline-block;
    }

    .topics-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .topic-list {
        padding: 0 1em;
    }

    .company-info th {
        white-space: nowrap;
        width: 30%;
        vertical-align: top;
    }

    .company-info td {
        width: 70%;
    }

    .map-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .map-section {
        overflow-x: hidden;
    }

    .map-block {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .map-block iframe {
        width: 100%;
        max-width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

    .contact-wrapper {
        width: 90%;
        padding: 1.5em;
        font-size: 15px;
    }

    .close-button {
        width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 0.8em;
        margin-top: 1.5em;
    }

    .contact-form {
        padding: 1em;
    }

    .contact-form p {
        margin-bottom: 1.2em;
    }

    .form-input,
    .form-textarea {
        width: 100%;
        font-size: 16px;
        padding: 0.8em;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
    }

    .form-textarea {
        min-height: 120px;
    }

    .form-button {
        width: 100%;
        font-size: 16px;
        padding: 0.8em;
        border-radius: 6px;
        background-color: #0070c0;
        color: white;
        font-weight: bold;
        border: none;
        transition: background-color 0.3s ease;
    }

    .form-button:hover {
        background-color: #005a9c;
    }

    .recruit-links {
        flex-direction: column;
        align-items: center;
    }

    .recruit-link-img img {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

@media (max-width: 900px) {
    .service-card {
        flex: 1 1 100%;
    }
}

@media (min-width: 1024px) {
    .hero {
        height: 50vw;
    }
}

@media (min-width: 1400px) {
    .hero {
        height: 45vw;
    }
}

@media (max-width: 1024px) {
    .hero-catchcopy {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-catchcopy {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-catchcopy {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .greeting-title {
        font-size: 32px;
    }

    .greeting-heading {
        padding: 1.5em 0;
        margin-bottom: 2em;
    }
}

@media (max-width: 480px) {
    .greeting-title {
        font-size: 24px;
    }

    .greeting-heading {
        padding: 1em 0;
        margin-bottom: 1.5em;
    }
}

@media (max-width: 768px) {
    .sp-break {
        display: inline;
    }
}