/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
    background-color: #f8f8f8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul,
ol {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-weight: bold;
    color: #003366;
}

.section-title::after {
    content: '';
    display: block;
    width: 5rem;
    height: 0.3rem;
    background-color: #e17000;
    margin: 1.5rem auto 0;
}

section {
    padding: 8rem 0;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 7rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 5rem;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 2.4rem;
    font-weight: bold;
    color: #003366;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover {
    color: #e17000;
}

.nav-menu a.active {
    color: #e17000;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -0.3rem;
    left: 1.2rem;
    right: 1.2rem;
    height: 0.2rem;
    background-color: #e17000;
}

.contact-btn {
    background-color: #e17000;
    color: #fff !important;
    padding: 1rem 2rem !important;
    border-radius: 5rem;
    font-weight: bold;
}

.contact-btn:hover {
    background-color: #cf6500;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 3rem;
    height: 2rem;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 0.2rem;
    background-color: #003366;
    position: absolute;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 0.9rem;
}

.hamburger span:nth-child(3) {
    top: 1.8rem;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 600px;
    /* 背景画像の設定 */
    background-size: cover;
    background-position: center;
    background-image: url('../img/main-visual.jpg');

    /* ボタンを配置するための設定 */
    display: flex;
    align-items: flex-end;   /* 下寄せにする */
    justify-content: center; /* 水平方向は中央 */

    padding-bottom: 100px;   /* 下からどれくらい離すか */
    box-sizing: border-box;
}

/* ボタンのデザイン */
.hero-btn {
    display: inline-block;
    padding: 18px 45px;
    background-color: #e17000;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: #cf6500;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Features Section */
.features {
    background-color: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.feature-card {
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 2rem;
}

.feature-icon i {
    font-size: 4rem;
    color: #e17000;
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #003366;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 4rem;
}

.service-card {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 25rem;
    object-fit: cover;
}

.service-content {
    padding: 2.5rem;
}

.service-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #003366;
}

.more-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #e17000;
    font-weight: bold;
    position: relative;
}

.more-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: #cf6500;
}

.more-link:hover::after {
    margin-left: 1rem;
}

/* Safety Commitment Section */
.safety-commitment {
    background-color: #003366;
    color: #fff;
}

.safety-commitment .section-title {
    color: #fff;
}

.safety-commitment .section-title::after {
    background-color: #e17000;
}

.safety-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.safety-text p {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.safety-text .more-link {
    color: #e17000;
}

.safety-text .more-link:hover {
    color: #cf6500;
}

.safety-image img {
    border-radius: 1rem;
}

/* News Section */
.news {
    background-color: #f8f8f8;
}

.news-list {
    max-width: 90rem;
    margin: 0 auto;
}

.news-item {
    display: flex;
    flex-wrap: wrap;
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: #f0f0f0;
}

.news-date {
    min-width: 12rem;
    color: #666;
    font-weight: 500;
}

.news-title {
    flex: 1;
}

/* Contact Section */
.contact-section {
    background-color: #fff;
}

.contact-lead {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    text-align: center;
}

.contact-phone,
.contact-form-link {
    padding: 3rem;
    background-color: #f8f8f8;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-phone:hover,
.contact-form-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-info i {
    font-size: 4rem;
    color: #e17000;
    margin-bottom: 2rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.contact-phone a {
    font-size: 3rem;
    font-weight: bold;
    color: #003366;
    display: block;
    margin-bottom: 1rem;
}

.contact-hours {
    font-size: 1.4rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #003366;
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.footer-info p {
    margin-bottom: 1rem;
    color: #ccc;
}

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
}

.footer-nav li,
.footer-legal li {
    margin-bottom: 1rem;
}

.footer-nav a,
.footer-legal a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
}

/* Company Page Specific Styles */
.page-header {
    height: 30rem;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('../img/page-visual.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 7rem;
}

.page-title {
    color: #fff;
    font-size: 4rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.company-info {
    background-color: #fff;
    padding: 6rem 0;
}

.company-table {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.company-table th {
    width: 30%;
    text-align: left;
    color: #003366;
    font-weight: bold;
}

.president-message {
    background-color: #fff;
}

.message-content {
    max-width: 80rem;
    margin: 0 auto;
}

.message-content img {
    border-radius: 50%;
    width: 15rem;
    height: 15rem;
    object-fit: cover;
    margin-bottom: 2rem;
}

.message-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: #003366;
}

.message-content .position {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #666;
}

.access {
    background-color: #f8f8f8;
    padding: 6rem 0;
}

.access .section-title {
    margin-bottom: 4rem;
}

.access-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.access-map {
    width: 100%;
}

.access-map iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 1rem;
}

.access-info {
    text-align: center;
}

.access-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #003366;
}

.access-info p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #333;
}

/* Business Page Specific Styles */
.business-section {
    padding: 6rem 0;
}

.business-section:nth-child(even) {
    background-color: #f8f8f8;
}

.business-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.business-text h3 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    color: #003366;
}

.business-image img {
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.work-flow {
    margin-top: 4rem;
}

.work-flow h4 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #003366;
}

.flow-list {
    position: relative;
}

.flow-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    height: 100%;
    width: 0.2rem;
    background-color: #e0e0e0;
}

.flow-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3rem;
}

.flow-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 3rem;
    background-color: #e17000;
    border-radius: 50%;
    z-index: 1;
}

.flow-item h5 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #003366;
}

/* Safety Page Specific Styles */
.safety-policy {
    background-color: #fff;
}

.policy-list {
    max-width: 80rem;
    margin: 0 auto;
}

.policy-item {
    padding: 2rem;
    background-color: #f8f8f8;
    border-left: 0.5rem solid #e17000;
    margin-bottom: 2rem;
    border-radius: 0 1rem 1rem 0;
}

.policy-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #003366;
}

.safety-measures {
    background-color: #f8f8f8;
}

.measures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 3rem;
}

.measure-card {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.measure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.measure-card img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.measure-content {
    padding: 2rem;
}

.measure-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #003366;
}

.safety-training {
    background-color: #fff;
}

.training-content {
    max-width: 80rem;
    margin: 0 auto;
}

/* Recruit Page Specific Styles */
.recruit-message {
    background-color: #fff;
}

.recruit-content {
    max-width: 80rem;
    margin: 0 auto;
}

.job-listings {
    background-color: #f8f8f8;
}

.job-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.job-card h3 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #003366;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.job-details {
    margin-bottom: 2rem;
}

.job-detail-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.job-detail-title {
    width: 12rem;
    font-weight: bold;
    color: #003366;
}

.job-detail-content {
    flex: 1;
}

.application-process {
    background-color: #fff;
}

.process-content {
    max-width: 80rem;
    margin: 0 auto;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background-color: #e0e0e0;
    z-index: 0;
}

.process-step {
    position: relative;
    text-align: center;
    z-index: 1;
    flex: 1;
}

.process-step-number {
    width: 5rem;
    height: 5rem;
    background-color: #e17000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 2rem;
}

.process-step h4 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 1rem;
}

/* Contact Page Specific Styles */
.contact-page {
    background-color: #fff;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-method {
    padding: 3rem;
    background-color: #f8f8f8;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-method i {
    font-size: 4rem;
    color: #e17000;
    margin-bottom: 2rem;
}

.contact-method h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #003366;
}

.contact-method p {
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem;
    background-color: #f8f8f8;
    border-radius: 1rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: #003366;
}

.required::after {
    content: '*';
    color: #e17000;
    margin-left: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.2);
}

textarea.form-control {
    height: 15rem;
    resize: vertical;
}

.submit-btn {
    background-color: #e17000;
    color: #fff;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 5rem;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
}

.submit-btn:hover {
    background-color: #cf6500;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(225, 112, 0, 0.4);
}

/* Legal Pages Specific Styles */
.legal-content {
    background-color: #fff;
    padding: 6rem 0;
}

.legal-container {
    max-width: 80rem;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #003366;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.legal-section h3 {
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
    color: #003366;
}

.legal-section p,
.legal-section ul {
    margin-bottom: 1.5rem;
}

.legal-section ul {
    list-style: disc;
    padding-left: 2rem;
}

.legal-section ul li {
    margin-bottom: 0.8rem;
}

/* Sitemap Specific Styles */
.sitemap-content {
    background-color: #fff;
    padding: 6rem 0;
}

.sitemap-container {
    max-width: 80rem;
    margin: 0 auto;
}

.sitemap-section {
    margin-bottom: 4rem;
}

.sitemap-section h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #003366;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.sitemap-list {
    list-style: none;
}

.sitemap-list li {
    margin-bottom: 1rem;
}

.sitemap-list a {
    display: inline-block;
    padding: 0.5rem 0;
    color: #003366;
    transition: all 0.3s ease;
}

.sitemap-list a:hover {
    color: #e17000;
    padding-left: 0.5rem;
}

.sitemap-list ul {
    padding-left: 2rem;
    margin-top: 1rem;
}

/* Animation Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 
   --------------------------------------------------------
   Responsive Styles (Media Queries)
   必ずファイルの最後にまとめて記述します。
   大きいサイズから小さいサイズの順に並べることで、
   スマホ用の設定が確実に優先されるようになります。
   --------------------------------------------------------
*/

@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }

    .business-content {
        grid-template-columns: 1fr;
    }

    .business-image {
        order: -1;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-steps::before {
        display: none;
    }

    .process-step {
        margin-bottom: 3rem;
    }
    
    .safety-content {
        grid-template-columns: 1fr;
    }

    .safety-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 7rem;
        left: -100%;
        width: 100%;
        height: calc(100vh - 7rem);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 2rem 0;
    }

    .hero h2 {
        font-size: 3.6rem;
    }

    .section-title {
        font-size: 2.6rem;
    }

    section {
        padding: 6rem 0;
    }

    .news-item {
        flex-direction: column;
    }

    .news-date {
        margin-bottom: 0.5rem;
    }

    .page-header {
        height: 20rem;
    }

    .page-title {
        font-size: 3rem;
    }

    .company-table th,
    .company-table td {
        padding: 1.5rem;
    }

    .company-table th {
        width: 40%;
    }

    .contact-form {
        padding: 2rem;
    }

    .job-detail-item {
        flex-direction: column;
    }

    .job-detail-title {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .access-content {
        flex-direction: row;
        align-items: center;
    }

    .access-map {
        width: 60%;
    }

    .access-info {
        width: 40%;
        text-align: left;
    }

    .legal-container,
    .sitemap-container {
        max-width: 100%;
        padding: 0 2rem;
    }

    .legal-section h2,
    .sitemap-section h2 {
        font-size: 2rem;
    }

    .legal-section h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }

    /* ここでの hero height 設定は削除し、下の 414px で制御させます 
       あるいは汎用スマホ用として残す場合も、下の記述が優先されます */
    .hero {
        min-height: 50rem;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.8rem;
    }

    .contact-phone a {
        font-size: 2.4rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 0.5rem;
    }

    .company-table td {
        padding-top: 0.5rem;
    }
}

/* iPhone XR (414px) 以下のサイズに対する設定 
   一番最後に書くことで、確実に適用させます */
@media (max-width: 414px) {
    .hero {
        height: 400px; /* 高さを400pxに固定 */
        min-height: 0; /* 上の480px設定のmin-heightをリセット */
        padding-bottom: 50px;
    }
    .hero-btn {
        padding: 15px 30px;
        font-size: 1.5rem;
    }
}