
/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #eee;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}
.wrapper {
    max-width: 1080px;
    margin: 0 auto;
}
.inner {
    max-width: 1000px;
    margin: 0 auto;
}
a {
    text-decoration: none;
}
a:hover {
    opacity: 0.8;
}
.color-wh {
    color: #fff;
}
/* .back-wh {
    background: #fff;
}
.back-beige {
    background: #F8F7F5;
}
.back-beige1 {
    background: #eee;
}*/
h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}
p {
    margin: 10px 0;
    line-height: 35px;
}
strong {
    font-weight: 500;
}
.center {
    text-align: center;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    border-bottom: 1px solid #ccc;
    width: 200px;
    text-align: center;
    padding: 5px;
    margin: 5px 0;
}
.section-title.center {
    margin: 5px auto;
}
.section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #bbb;
    width: 200px;
    text-align: center!important;
    margin: -5px 0;
}
.section-subtitle.center {
    margin: -5px auto;
}

/* ヘッダー */
.header {
    background-color: #eee;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 110px;
    border-bottom: 1px solid #aaa;
}
.header-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 100%;
    position: relative;
}
.logo {
    height: 43px;
}
.logo-img {
    height: 100%;
    width: auto;
    z-index: 1001;
    position: relative;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* left: 20px; */
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}
.nav-left {
    margin-left: 0;
}
.nav-right {
    margin-right: -60px;
    align-items: center;
    gap: 90px;
}
.nav-link {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #333333;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    /* 下線の基準位置とするための設定 */
    position: relative;
    padding-bottom: 8px; /* 文字と線の隙間 */
}
/* 共通の下線設定 */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;           /* 起点を左端に固定 */
    bottom: 0;
    width: 0;          /* 最初は幅 0 */
    height: 3px;       /* 線の太さ */
    background-color: #004EA2; /* お問い合わせボタンと同じ青色 */
    transition: width 0.3s ease-in-out; /* 伸びるアニメーション */
}
/* マウスオーバー時、および現在地のページで線を100%にする */
.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}
.nav-link:hover {
    opacity: 1; /* ナビは文字が薄くなるのを止める */
}
/* お問い合わせボタン（.nav-outline）には下線を出さない（または調整する）設定 */
.nav-outline::after {
    display: none; 
}
/*
.nav-link:hover {
    color: #666;
}
*/
.nav-outline {
    display: inline-block;
    padding: 8px 45px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    background: #004EA2;
    border: 1px solid #004EA2;
}
.nav-outline:hover {
    background: #fff;
    color: #004EA2;
    border: 1px solid #004EA2;
    opacity: 1;
}


/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333333;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}


/* メインビジュアル */
.hero {
    position: relative;
    height: 680px;
    margin-top: 110px;
    overflow: hidden;
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-content {
    /* display: none; */
    /* position: absolute;
    top: 0;
    left: 0;
    right: 35%;
    bottom: 0;
    text-align: center;
    z-index: 2; */
}
.hero-title {
    font-weight: 600;
    font-size: 48px;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 40px;
    line-height: 1.6;
    position: absolute;
    top: 40%;
    left: 8%;
    /* transform: translate(-50%, -50%); */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    white-space: nowrap;
}
.hero-title span {
    font-size: 83%;
}
.hero-title.active {
    opacity: 1;
}
.hero-button {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(50% + 100px);
    transition: opacity 0.8s ease-in-out;
    visibility: hidden; /* 要素を完全に非表示にする */
    pointer-events: none; /* クリックを無効にする */
}
.hero-button.active {
    opacity: 1;
    visibility: visible; /* アクティブな要素は表示する */
    pointer-events: auto; /* クリックを有効にする */
}

.btn-primary {
    display: none;
    /* display: inline-block;
    padding: 10px 40px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: transparent;
    width: 260px; */
}
.btn-primary:hover {
    background: white;
    color: #333;
}


/* ページタイトル */
.page-title {
    padding: 180px 0 30px;
    position: relative;
}
.title {
    font-size: 36px;
    color: #333333;
    margin-bottom: 20px;
}
.subtitle {
    font-weight: 600;
    font-size: 18px;
    color: #bbb;
    margin: 10px 0;
}


/* メッセージセクション */
#message-section {
    padding: 100px 0;
}

#message-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2.5px;
    line-height: 42px;
}
#message-section p {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    line-height: 40px;
    margin: 0 auto 60px;
}

.section-button {
    text-align: center;
}
.btn-outline {
    display: inline-block;
    width: 250px;
    padding: 12px 0;
    border: 1px solid #bbb;
    color: #333333;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-outline:hover {
    background: #004EA2;
    background: #333333; /* #004EA2 から変更 */
    color: white;
    border-color: #333333; /* 枠線も黒に合わせる */
}


/* 事業内容セクション */
#business-section {
    padding: 80px 0;
    background: #f5f5f5;
}
/* #business-section h2 {
    font-size: 30px;
    text-align: center;
}
#business-section h3 {
    font-size: 20px;
    text-align: center;
    color: #bbb;
} */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin: 50px 0;
}
.business-item p {
    font-size: 15px;
    text-align: center;
    margin: 5px 0;
}
.business-section-image {
    width: 100%;
    height: 225px;
    overflow: hidden;
    margin-bottom: 15px;
}
.business-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}
.business-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}
.business-title span {
    font-size: 12px;
    margin: 10px;
    vertical-align: top;
}

/* business-section-image:hover img {
    transform: scale(1.03);
}
.business-date {
    font-weight: 400;
    font-size: 15px;
    color: #94938f;
    display: block;
    margin-bottom: 5px;
} */



/* 会社紹介セクション */
#about-section {
    position: relative;
    padding: 160px 0;
}
#about-title small {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}
.about-section {
    display: flex;
    align-items: center;
}
.about-image {
    /* position: absolute; */
    left: 0;
    width: 48%;
    z-index: 100;
}
.about-img {
    width: 100%;
    max-width: 850px;
    height: auto;
    object-fit: cover;
}
.about-content {
    position: absolute;
    right: 0;
    width: 70%;
    background-color: #fff;
    padding: 6% 5% 6% 24%;
    /* height: 670px; */
}
.about-content h3 {
    font-size: 36px;
}
.about-content h3 small {
    font-size: 24px;
    display: block;
    margin: 15px 0 40px;
}
.about-content p {
    font-size: 18px;
    font-weight: 500;
    line-height: 35px;
    margin-bottom: 50px;
}


/* .about-list {
    list-style: none;
    margin-bottom: 30px;
}
.about-list li {
    font-size: 16px;
    line-height: 27px;
    margin-bottom: 0px;
    padding-left: 15px;
    position: relative;
}
.about-list li::before {
    content: '•';
    position: absolute;
    left: 0;
} */
.about-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.about-icon {
    width: 100px;
    height: auto;
}





/* 新着情報セクション */
#news-section {
    background: #f5f5f5;
    padding: 80px 0 0;
    margin-bottom: 80px;
}
/* .news-section__line {
    width: 40px;
    height: 5px;
    background: var(--color-blue);
} */
.news-box {
    width: 85%;
    margin: 0 auto;
    padding: 30px 0 50px;
}
.news-item {
    border-bottom: 1px solid #d9d9d9;
    list-style-type: none;
}
.news-link {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    gap: 50px;
    color: #333;
}
.news-date {
    font-size: 16px;
    font-weight: 700;
}
.news-text {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}
.arrow {
    margin-top: 10px;
}
.viewmore{
    text-align: right;
}
.viewmore span {
    padding: 0px 5px 0px 10px;
}
.viewmore span img {
    margin-bottom: -4px;
}
.viewmore a {
    border-bottom: 4px solid #004EA2;
    font-weight: 600;
    font-size: 18px;
    line-height: 40px;
    padding-bottom: 8px;
    color: #707070;
}
.no-posts {
    text-align: center;
    margin: 20px;
}


/* 採用情報セクション */
#recruit-section {
    position: relative;
    overflow: hidden;
}
.section-subtitle1 {
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 70px;
    margin-top: -20px;
}
.recruit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.recruit-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.recruit-content {
    position: relative;
    z-index: 2;
    padding: 50px 0;
    text-align: left;
    max-width: 50%;
    padding-left: 120px;
    background: rgba(0, 0, 0, 0.4);
}
.recruit-title {
    font-weight: 700;
    font-size: 36px;
    color: #fff;
    margin: 60px 0 30px;
    line-height: 38px;
}
.recruit-text {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    line-height: 40px;
    margin-bottom: 40px;
}
.recruit-button {
    margin: 50px 0 10px;
}

.btn-white {
    display: inline-block;
    width: 250px;
    padding: 12px 0;
    border: 1px solid white;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-white:hover {
    background: white;
    color: #333;
}

/* お問い合わせセクション */
/* .contact-title {
    font-weight: 600;
    font-size: 50px;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 3px;
}
.contact-subtitle {
    font-weight: 700;
    font-size: 18px;
    color: white;
} */

/* 404・サンクスページ共通パーツ */
.lead {
    margin: 50px auto 70px;
    color: #333;
    text-align: center;
}

/* 404専用の余白（ヘッダー被り防止） */
#error404 {
    padding: 13em 0 7em;
}

/* フッター */
.footer {
    background: #eeece9;
    padding: 0 0 20px;
}
.footer-container {
    max-width: 86%;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.footer-logo {
    height: 47px;
}
.footer-logo-img {
    height: 100%;
    width: auto;
}
.footer-links {
    display: flex;
    gap: 60px;
    align-items: baseline;
}
.footer-column img {
    width: 14%;
    margin: 0px 0px -2px 3px;
    display: inline-block;
}
.footer-column ul {
    list-style: none;
}
.footer-column li {
    margin-bottom: 3px;
}
.footer-column a {
    color: #333333;
    text-decoration: none;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
}
.footer-column a:hover {
    color: #666;
}
.footer-bottom {
    padding-top: 5px;
    display: flex;
    gap: 5px;
    justify-content: center;
    font-size: 13px;
}
.footer-bottom a {
    margin: 3px;
    color: #333;
}
.footer-bottom span::before {
    content:"│";
    color: #bbb;
}
.footer p {
    margin: 5px 0;
    line-height: 24px;
}
.footer-bottom p {
    font-weight: 400;
    font-size: 13px;
    color: #333333;
}


.forwide {
    display: block;
}
.forsp {
    display: none;
}


/* レスポンシブ */
@media (min-width: 1600px) {
    .recruit-content {
        padding-left: 180px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    .business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .header-container {
        width: 90%;
    }
    .nav-right {
        margin-right: -28px;
        gap: 45px;
    }
    .inner {
        width: 90%;
    }
    .about-content {
        padding: 3% 3% 3% 23%;
    }
    .footer-container {
        max-width: 90%;
    }
}

@media (max-width: 820px) {
    header {
        height: 85px!important;
    }
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        height: auto;
    }
    .hamburger {
        display: flex;
    }
    .nav {
        position: fixed;
        /* top: 0; */
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    .nav-open {
        right: 0;
    }
    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .nav-left,
    .nav-right {
        margin: 10px 0;
    }
    .nav-link {
        font-size: 18px;
        font-weight: 700;
        text-decoration: none;
        display: inline-block;
        padding: 10px 0;
        margin: 10px;
        transition: color 0.3s ease;
    }
    /* スマホ表示のときだけアニメーション（transition）を無効化する */
    .nav-link::after {
        transition: none !important; 
    }
    .nav-link:hover::after {
        width: 0; /* タップした瞬間に線が伸びるのを防ぐ */
    }
    .nav-link:hover {
        color: #666;
    }
    .nav-link.is-active::after {
        width: 100% !important;
    }
    .nav-link.nav-outline {
        background: #004EA2;       /* 背景を青に */
        color: #fff;               /* 文字を白に */
        border: 1px solid #004EA2; /* 枠線を青に */
        display: inline-block;     /* ボタン形式を維持 */
        padding: 10px 40px;        /* 他のメニューより少し横幅を持たせる */
        margin: 15px auto;         /* 上下に余白を作り、中央配置にする */
        width: auto;               /* 横幅を文字に合わせる */
        text-align: center;
    }
    /* ホバー（またはタップ）時の挙動を同期 */
    .nav-link.nav-outline:hover {
        background: #fff;
        color: #004EA2;
        border: 1px solid #004EA2;
    }
    .hero {
        height: 500px;
        margin-top: 0px;
    }
    .hero-title {
        font-size: 40px;
    }
    .section-title {
        font-size: 36px;
    }

    #message-section h2 {
        font-size: 28px;
        letter-spacing: 1.5px;
    }
    #message-section p {
        font-size: 16px;
        text-align: justify;
    }
    .business-grid {
        gap: 40px;
        width: 100%;
    }
    #about-section {
        padding: 0;
    }
    .about-section {
        flex-flow: column;
    }
    .about-image {
        width: 100%;
        background: #fff;
    }
    .about-content {
        position: relative;
        width: 100%;
        padding: 7% 5% 15% 11%;
    }
    .wrapper_about {
        width: 90%;
    }
    .recruit-content {
        padding-left: 40px;
        padding-right: 20px;
        max-width: 100%;
        background: none;
    }
    .recruit-title {
        font-size: 32px;
    }
    .lead {
        text-align: left;
    }
    #error404 {
        padding: 9em 0 7em;
    }
    .footer-container {
        flex-direction: column-reverse;
        gap: 20px;
        text-align: center;
        align-items: center;
        padding-bottom: 8em;
    }
    .footer-links {
        gap: 70px;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    .wrapper {
        padding: 0;
    }
    .inner {
        width: 100%;
    }
    .hero {
        height: 350px;
        margin-top: 80px;
    }
    .hero-title {
        font-size: 30px;
        letter-spacing: 0;
    }
    /* .hero-content {
        right: 0;
    } */
    .hero-button {
        top: calc(42% + 100px);
        left: 0;
        right: 0;
        transform: none;
    }
    .btn-primary {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
        letter-spacing: 0;
    }
    .section-title-1 {
        font-size: 35px;
    }
    .message-section {
        padding: 80px 0;
    }
    .message-text,
    .about-text {
        font-size: 16px;
        line-height: 1.8;
    }
    .about-content {
        padding: 12% 5% 15% 5%;
    }
    .about-content h3 {
        font-size: 28px;
    }
    .about-content h3 small {
        font-size: 22px;
        letter-spacing: -0.5px;
    }
    .about-content p {
        font-size: 16px;
        text-align: justify;
    }
    .about-content .link-btn {
        text-align: center;
    }
    .business-grid {
        grid-template-columns: 1fr;
    }
    .business-description {
        line-height: 35px!important;
    }

    .news-box {
        width: 100%;
    }
    .news-link {
        display: inline-block;
    }
    .arrow {
        display: none;
    }
    .news-text {
        margin: 0;
    }

    .recruit-section {
        height: 700px;
    }
    .recruit-title {
        font-size: 26px;
    }
    .recruit-text {
        font-size: 16px;
        line-height: 1.8;
    }
    .recruit-button {
        text-align: center;
    }
    .recruit-content {
        padding-left: 30px;
        padding-right: 20px;
    }
    .contact-title {
        font-size: 30px;
    }
    
    .logo-img {
        height: 78%;
        margin-top: 5px;
    }
    .footer-container {
        max-width: 95%;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
        margin: 10px;
    }
    .footer-logo-img {
        height: 85%;
    }
    .footer-column li {
        margin: 10px;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }
    .footer-bottom span:first-child::before {
        display:none;
    }
    .forwide {
        display: none;
    }
    .forsp {
        display: block;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
/* マウス操作では消し、キーボード操作時のみ出す */
a:focus,
button:focus {
    outline: none; /* 一旦すべて消す */
}

/* キーボード操作（Tabキーなど）の時だけ枠を表示する */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #004EA2;
    outline-offset: 2px;
}


