@charset "UTF-8";

/* --- 基本設定 --- */
:root {
    --main-red: #D30015;
    --dark-bg: #221E1F;
    --gold: #C5A059;
    --content-width: 1000px;
}

body, h1, h2, h3, p, ul, li { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; transition: 0.3s; }
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

/* --- ヘッダー --- */
.header-logo { text-align: center; padding: 25px 0; }
.header-logo img { height: 55px; object-fit: contain; }

.global-nav {
    background-color: var(--dark-bg);
    border-bottom: 4px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
}
.global-nav ul { display: flex; justify-content: center; flex-wrap: wrap; }
.global-nav li a { color: #fff; display: block; padding: 15px 20px; font-size: 14px; font-weight: bold; }
.global-nav li a:hover { color: var(--gold); }

/* --- スライドショー --- */
.slider-viewport {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    padding: 0; 
}

.slider-track {
    display: flex;
    height: 100%;
    align-items: center;
}

.slide-item {
    min-width: var(--content-width); 
    height: 100%;
    margin: 0; 
    position: relative;
    background-size: cover;
    background-position: center;
    filter: brightness(30%); 
    transition: filter 0.6s;
}

.slide-item.active {
    filter: brightness(100%);
    z-index: 10;
}

.slider-viewport.no-transition .slider-track,
.slider-viewport.no-transition .slide-item {
    transition: none !important;
}

/* 矢印ボタン */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; height: 80px;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 24px;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
}
.arrow:hover { background-color: rgba(211, 0, 21, 0.8); }
.arrow.left { left: calc(50% - 500px); border-radius: 0 5px 5px 0; } 
.arrow.right { right: calc(50% - 500px); border-radius: 5px 0 0 5px; }

.pagination {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}
.dot {
    width: 10px; height: 10px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.2);
}
.dot.active { background-color: #fff; width: 30px; border-radius: 10px; }

/* --- インフォメーション --- */
.info-section { max-width: var(--content-width); margin: 60px auto; padding: 0 20px; }
.info-header {
    background-color: var(--dark-bg);
    color: #fff;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px;
    border-left: 10px solid var(--main-red);
}
.btn-more { background: #444; color: #fff; padding: 6px 20px; font-size: 12px; font-weight: bold; }
.news-row { padding: 25px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 25px; }
.label-new { background: var(--main-red); color: #fff; font-size: 10px; padding: 2px 8px; font-weight: bold; }

/* --- フッター --- */
.footer-logo-area { padding-top: 100px; padding-bottom: 20px; border-top: 1px solid #eee; text-align: center; }
.footer-logo-area img { height: 60px; width: auto; display: block; margin: 0 auto; }
.footer-nav { background: var(--dark-bg); padding: 20px 0; text-align: center; }
.footer-nav a { color: #fff; margin: 0 15px; font-size: 13px; }
.copyright-bar { background: var(--main-red); color: #fff; padding: 15px; font-size: 11px; text-align: center; }

@media (max-width: 1000px) {
    .slide-item { min-width: 100vw; }
    .arrow { display: none; }
}

/* --- スマホ対応・ハンバーガーメニュー --- */
.header-inner { /* PC表示時はそのまま */ }
.hamburger-btn { display: none; }
.header-nav-toggle { display: none; }

@media (max-width: 1000px) {
    .header-logo { text-align: left; padding: 15px 20px; }
    .header-logo img { height: 50px; }

    /* ハンバーガーボタン */
    .hamburger-btn {
        display: block;
        position: fixed;
        top: 15px; right: 15px;
        width: 50px; height: 50px;
        background-color: var(--main-red);
        border: none; border-radius: 4px;
        z-index: 200; cursor: pointer;
    }
    .hamburger-btn span {
        display: block; width: 30px; height: 2px; background-color: #fff;
        position: absolute; left: 10px; transition: 0.3s;
    }
    .hamburger-btn span:nth-child(1) { top: 14px; }
    .hamburger-btn span:nth-child(2) { top: 24px; }
    .hamburger-btn span:nth-child(3) { top: 34px; }

    .hamburger-btn.active span:nth-child(1) { top: 24px; transform: rotate(45deg); }
    .hamburger-btn.active span:nth-child(2) { opacity: 0; }
    .hamburger-btn.active span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

    /* スマホ用メニュー */
    .global-nav {
        position: fixed; top: 0; right: -100%;
        width: 80%; height: 100vh;
        background-color: var(--dark-bg);
        transition: 0.4s; z-index: 150; padding-top: 80px;
    }
    .global-nav.active { right: 0; }
    .global-nav ul { display: block; }
    .global-nav li a { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
}

/* --- 下層ページヘッダー（共通） --- */
.page-header {
    width: 100%;
    background-color: var(--main-red);
    background-image: url('images/header-pattern.png');
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
    color: #fff; padding: 60px 0; text-align: left; margin-bottom: 50px;
}
@media (max-width: 768px) {
    .page-header { padding: 40px 0; margin-bottom: 30px; }
}
.page-header-inner { max-width: var(--content-width); margin: 0 auto; padding: 0 20px; }
.page-header h1 { font-size: 24px; font-weight: bold; letter-spacing: 1px; }

/* --- コンテンツ共通 --- */
.page-container { max-width: var(--content-width); margin: 0 auto; padding: 60px 20px; }
.content-section { margin-bottom: 100px; margin-top: 50px; }
.section-title {
    background-color: #221E1F; color: #fff;
    font-size: 18px; padding: 10px 15px;
    border-left: 10px solid var(--main-red);
    margin-bottom: 40px; font-weight: normal; text-align: left;
}

/* --- 会社概要ページ --- */
.greeting-box h3 { font-size: 24px; margin-bottom: 25px; font-weight: bold; }
.greeting-box p { font-size: 15px; line-height: 2.2; margin-bottom: 20px; text-align: justify; }
.ceo-name { text-align: right; font-weight: bold; margin-top: 20px; }

.company-profile-list { margin-top: 50px; }
.company-profile-list dl .row { display: flex; align-items: flex-start; }
.company-profile-list dt { font-weight: bold; width: 100px; flex-shrink: 0; }
.profile-item { display: flex; margin-bottom: 8px; }
.profile-item .label { width: 80px; font-weight: bold; font-size: 14px; }
.profile-item .value { font-size: 14px; }

.philosophy-box { text-align: center; }
.philosophy-box h3 {
    font-size: 28px; margin-bottom: 40px; font-weight: bold; letter-spacing: 2px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}
.sdgs-image img { max-width: 100%; height: auto; width: 600px; }

.address-text { margin-bottom: 20px; font-weight: bold; font-size: 15px; text-align: left; }
.access-area { display: flex; justify-content: space-between; gap: 40px; }
.access-info { flex: 1; }
.access-photo { width: 300px; flex-shrink: 0; }
.access-map img, .access-photo img { width: 100%; height: auto; display: block; }

@media (max-width: 768px) {
    .company-profile-list dl .row { display: block; }
    .company-profile-list dt { margin-bottom: 10px; }
    .access-area { flex-direction: column; }
    .access-photo { width: 100%; margin-top: 20px; }
    .philosophy-box h3, .greeting-box h3 { font-size: 20px; }
}

/* --- サービスページ --- */
.service-catchphrase {
    text-align: center; font-size: 28px; font-weight: bold;
    margin-bottom: 60px; color: #333;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}
.service-item { margin-bottom: 80px; }
.service-title {
    background-color: #222; color: #fff;
    padding: 2px 20px; font-size: 20px; width: 100%; margin-bottom: 25px;
    display: flex; align-items: center; gap: 5px; border-radius: 10px;
}
.service-title img { height: 50px; width: auto; margin-right: 10px; }

.service-body { display: flex; align-items: flex-start; gap: 40px; }
.service-content { flex: 1; text-align: left; }
.service-text {
    line-height: 2.0; margin-bottom: 20px;
    text-align: justify; text-align-last: left;
}

.service-list { display: block; margin: 20px 0; padding-left: 1.2em; list-style: none; }
.service-list li { margin-bottom: 8px; padding-left: 0; position: relative; line-height: 1.6; font-weight: normal; }
.service-list li::before {
    content: "♦"; position: absolute; left: -0.8em; top: -2px;
    font-size: 26px; color: #333; line-height: 1;
}

.service-image { width: 45%; }
.service-image img { width: 100%; height: auto; object-fit: cover; border-radius: 15px; }

@media (max-width: 768px) {
    .service-body { display: block; }
    .service-image { width: 100%; margin-top: 20px; }
    .service-catchphrase { font-size: 20px; margin-bottom: 30px; }
}

/* --- 地域社会への貢献ページ --- */
.contribution-lead { text-align: center; padding-bottom: 150px; display: block; line-height: 2.0; }
.contribution-main-copy { text-align: center; margin-bottom: 80px; }
.contribution-main-copy h2 {
    font-size: 26px; font-weight: bold; margin-bottom: 20px; letter-spacing: 1px;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}
.contribution-main-copy .arrow-down {
    font-size: 20px; font-weight: bold;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.sub-title { font-size: 20px; font-weight: bold; margin-bottom: 20px; margin-top: 40px; }
.sub-title.red-text { color: var(--main-red); }
.sub-title-small { font-size: 18px; font-weight: bold; margin-bottom: 15px; }
.mini-title { font-weight: bold; margin-top: 15px; margin-bottom: 10px; }
.text-body { line-height: 1.8; text-align: justify; }
.text-body-small { font-size: 14px; line-height: 1.8; margin-top: 15px; }

.two-column-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 4%; }

.facility-photos { margin-top: 30px; margin-bottom: 40px; }
.photo-item { width: 48%; }
.photo-item img { width: 100%; height: auto; display: block; margin-bottom: 10px; }
.photo-item .caption { font-size: 14px; }

.simple-list { list-style: none; padding-left: 1.2em; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.simple-list li { margin-bottom: 8px; position: relative; }
.simple-list li::before {
    content: "●"; color: #333; font-size: 20px;
    position: absolute; left: -0.8em; top: -2px; line-height: 1;
}

.activity-grid { margin-top: 40px; }
.activity-item { width: 48%; margin-bottom: 20px; }
.activity-image img { width: 100%; height: auto; display: block; }
.activity-image.framed img { border: 1px solid #ddd; }
.activity-image.logo-type { text-align: center; }
.activity-image.logo-type img { width: auto; max-width: 80%; max-height: 150px; display: block; margin: 0 auto; }

.partner-images { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; }

.sub-title-small.spacer, .mini-title.spacer { visibility: hidden; }

@media (max-width: 768px) {
    .contribution-lead { margin-bottom: 40px; text-align: left; }
    .contribution-main-copy h2 { font-size: 20px; }
    .contribution-main-copy .arrow-down { font-size: 16px; }
    .photo-item, .activity-item { width: 100%; }
    .two-column-grid { gap: 30px; }
    .simple-list { display: block; }
    .simple-list li { margin-bottom: 10px; }
    .partner-images { display: block; text-align: center; }
    .partner-images img { width: 80% !important; margin-bottom: 20px; }
    .sub-title-small.spacer, .mini-title.spacer { display: none; }
}

/* --- お問い合わせページ --- */
.contact-section { margin-bottom: 80px; text-align: left !important; }
.contact-title {
    font-size: 24px; font-weight: bold;
    border-bottom: 10px solid #e5c946 !important;
    line-height: 1.0 !important; padding-bottom: 0 !important;
    display: inline-block; text-align: left; margin-right: auto; margin-bottom: 20px;
}
.contact-lead { margin-bottom: 30px; line-height: 1.8; text-align: left !important; }

.phone-number {
    font-size: 36px; font-weight: bold; letter-spacing: 1px;
    display: flex; align-items: center; flex-wrap: wrap; text-align: left !important;
}
.phone-number .hours { font-size: 16px; font-weight: normal; margin-left: 15px; }

.form-wrapper { margin-top: 40px; }
.form-row { display: flex; margin-bottom: 20px; align-items: center; }
.form-row label { width: 200px; font-weight: bold; flex-shrink: 0; }
.required { color: var(--main-red); font-size: 14px; margin-left: 5px; }
.input-area { flex: 1; }
.input-area input[type="text"], .input-area input[type="email"], .input-area input[type="tel"], .input-area textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; box-sizing: border-box; font-size: 16px;
}
.input-area textarea { resize: vertical; height: 200px; }

.privacy-area { margin-top: 50px; margin-bottom: 40px; }
.privacy-box {
    border: 1px solid #ccc; background-color: #eef6fc;
    padding: 20px; height: 150px; overflow-y: scroll; margin-bottom: 30px; font-size: 14px;
}
.privacy-check { text-align: center; }
.privacy-check label { margin-left: 5px; cursor: pointer; }
.privacy-check .note { font-size: 12px; margin-top: 5px; }

.button-area { text-align: center; display: flex; justify-content: center; gap: 20px; }
.btn-clear, .btn-confirm { padding: 10px 30px; font-size: 14px; border: none; cursor: pointer; transition: 0.3s; }
.btn-clear { background-color: #e0e0e0; color: #333; }
.btn-clear:hover { background-color: #ccc; }
.btn-confirm { background-color: #e0e0e0; color: #333; font-weight: bold; }
.btn-confirm:hover { background-color: var(--main-red); color: #fff; }

@media (max-width: 768px) {
    .phone-number { font-size: 28px; }
    .phone-number .hours { margin-left: 0; margin-top: 5px; width: 100%; }
    .form-row { display: block; }
    .form-row label { width: 100%; margin-bottom: 8px; display: block; }
    .button-area { flex-direction: column; gap: 15px; }
    .btn-clear, .btn-confirm { width: 100%; padding: 15px 0; }
}

/* --- その他ユーティリティ・修正クラス --- */
.mincho-title { font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif; }
.text-left { text-align: left !important; display: block; }

.size-fix {
    height: 350px !important; width: auto !important;
    display: inline-block; margin-right: 5px; vertical-align: bottom;
}
.size-fix.wide {
    height: 400px !important; width: 400px !important;
    object-fit: fill; margin-right: 0;
}

/* スマホ用トップへ戻るボタン */
.page-top-btn {
    position: fixed; bottom: 20px; right: 20px;
    background: var(--main-red); color: #fff;
    width: 50px; height: 50px; text-decoration: none;
    text-align: center; line-height: 50px; border-radius: 50%;
    font-weight: bold; z-index: 999;
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.page-top-btn.show { opacity: 1; pointer-events: auto; }

@media screen and (max-width: 768px) {
    .text-left { text-align: center !important; }
    .slider-viewport { height: auto; aspect-ratio: 16 / 9; }
    .slide-item { height: 100%; }
    .slide-item img { width: 100%; height: 100%; object-fit: cover; }
    
    /* スマホメニューの再定義（優先適用） */
    .header-nav-toggle {
        display: block; position: fixed; top: 15px; right: 15px;
        width: 44px; height: 44px; background-color: var(--main-red);
        cursor: pointer; z-index: 10000; border-radius: 4px;
    }
    .header-nav-toggle span {
        display: block; width: 24px; height: 2px; background-color: #fff;
        position: absolute; left: 10px; transition: 0.3s; border-radius: 2px;
    }
    .header-nav-toggle span:nth-child(1) { top: 12px; }
    .header-nav-toggle span:nth-child(2) { top: 21px; }
    .header-nav-toggle span:nth-child(3) { bottom: 12px; }
    .header-nav-toggle.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
    .header-nav-toggle.active span:nth-child(2) { opacity: 0; }
    .header-nav-toggle.active span:nth-child(3) { bottom: 21px; transform: rotate(-45deg); }
    
    .global-nav {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.95); text-align: center;
        padding-top: 80px; z-index: 9999; opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .global-nav.active { opacity: 1; visibility: visible; }
    .global-nav ul { display: block; }
    .global-nav ul li { margin: 20px 0; }
    .global-nav ul li a { font-size: 18px; font-weight: bold; color: #333; }
}