/* =========================================
   Variables
   ========================================= */
:root {
    --clr-primary: #1e3a8a; /* 濃いブルー：信頼・堅実 */
    --clr-secondary: #2563eb; /* アクセントブルー */
    --clr-accent: #f59e0b; /* アクセントオレンジ：活気・注意 */
    --clr-text: #334155;
    --clr-text-light: #64748b;
    --clr-bg-light: #f8fafc;
    --clr-white: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
}

/* =========================================
   Reset & Base
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-main);
    color: var(--clr-text);
    line-height: 1.7;
    background-color: var(--clr-white);
    letter-spacing: 0.05em;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--clr-bg-light); }

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--clr-primary);
    font-weight: 900;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}
.section-title span {
    display: block;
    font-size: 1rem;
    color: var(--clr-text-light);
    font-weight: 500;
    margin-top: 5px;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--clr-accent);
    margin: 15px auto 0;
}

/* =========================================
   Header (Subpage adjusted paths)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo a { display: block; line-height: 1; }
.logo img { height: 40px; width: auto; display: block; }

.global-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}
.global-nav a {
    font-weight: 700;
    font-size: 0.95rem;
}
.global-nav a:hover,
.global-nav a.active {
    color: var(--clr-secondary);
}
.btn-nav {
    background-color: var(--clr-primary);
    color: var(--clr-white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}
.btn-nav:hover { background-color: var(--clr-secondary); }

/* =========================================
   Page Header (Hero for Subpage)
   ========================================= */
.page-header {
    margin-top: 70px;
    height: 30vh;
    min-height: 250px;
    background: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), url('../images/company.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
}
/* ★透かし文字（.page-header::after）のブロックはここにありましたが、完全に削除しました */

.page-header-content {
    position: relative;
    z-index: 2;
}
.page-header-content h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 5px;
}
.page-header-content p {
    font-size: 1.1rem;
    color: var(--clr-accent);
    font-weight: 700;
    letter-spacing: 0.2em;
}

/* =========================================
   History Section (会社沿革)
   ========================================= */
.history-wrap {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.history-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 140px; 
    width: 2px;
    background-color: #cbd5e1;
    z-index: 1;
}
.history-card {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}
.history-card:last-child {
    margin-bottom: 0;
}
.history-date {
    width: 140px;
    padding-right: 30px;
    text-align: right;
    position: relative;
}
.history-date::after {
    content: '';
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--clr-primary);
    border: 3px solid var(--clr-bg-light);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
}
.history-card:hover .history-date::after {
    background-color: var(--clr-accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}
.history-date .year {
    display: block;
    font-size: 0.95rem;
    color: var(--clr-text-light);
    font-weight: 700;
    margin-bottom: 2px;
}
.history-date .month {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--clr-primary);
    line-height: 1;
}
.history-desc {
    flex: 1;
    padding-left: 50px;
}
.history-desc p {
    background: var(--clr-white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}
.history-card:hover .history-desc p {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.08);
    border-left-color: var(--clr-accent);
}

/* =========================================
   Profile Section (会社概要)
   ========================================= */
.profile-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--clr-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    overflow: hidden;
}
.profile-table {
    width: 100%;
    border-collapse: collapse;
}
.profile-table tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}
.profile-table tr:last-child {
    border-bottom: none;
}
.profile-table tr:hover {
    background-color: #f8fafc;
}
.profile-table th, 
.profile-table td {
    padding: 25px 35px;
    vertical-align: middle;
}
.profile-table th {
    width: 25%;
    background-color: #f8fafc;
    color: var(--clr-primary);
    font-weight: 900;
    font-size: 1.05rem;
    text-align: left;
    letter-spacing: 0.1em;
    border-right: 1px solid #f1f5f9;
    position: relative;
}
.profile-table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background-color: var(--clr-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.profile-table tr:hover th::before {
    opacity: 1;
}
.profile-table td {
    color: var(--clr-text);
    font-size: 1.05rem;
    line-height: 1.8;
}
.note-text {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-text-light);
    margin-top: 5px;
}

/* =========================================
   Equipment Section (保有機材)
   ========================================= */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 950px;
    margin: 0 auto;
}
.equipment-card {
    background: var(--clr-white);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    border-top: 5px solid var(--clr-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.1);
    border-top-color: var(--clr-accent);
}
.equipment-card h4 {
    font-size: 1.25rem;
    color: var(--clr-primary);
    margin-bottom: 20px;
    font-weight: 900;
    text-align: center;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 10px;
}
.equipment-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.equipment-card li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--clr-text);
    line-height: 1.4;
}
.equipment-card li span {
    font-weight: 700;
    color: var(--clr-text-light);
    background: var(--clr-bg-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    margin-left: 10px;
}

/* =========================================
   License Section (保有資格)
   ========================================= */
.license-box {
    max-width: 950px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.license-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px 40px;
}
.license-list li {
    position: relative;
    padding-left: 35px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--clr-text);
    line-height: 1.5;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #f1f5f9;
    padding-bottom: 8px;
}
.license-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 8px;
    border-left: 3px solid var(--clr-accent);
    border-bottom: 3px solid var(--clr-accent);
    transform: rotate(-45deg);
}
.license-list li .count {
    color: var(--clr-primary);
    background: var(--clr-bg-light);
    padding: 20px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
    margin-left: 15px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 50px 0 30px;
}
.footer-logo {
    color: var(--clr-white);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

/* プライバシーポリシーのリンク装飾 */
.footer-links {
    margin-top: 25px;
}
.footer-links a {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--clr-accent);
    text-decoration: underline;
}

.copyright { margin-top: 30px; font-size: 0.85rem; }

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .global-nav { display: none; } 
    
    .history-wrap::before { left: 20px; }
    .history-card {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 30px;
    }
    .history-date {
        width: auto;
        padding-right: 0;
        padding-left: 45px;
        text-align: left;
        margin-bottom: 10px;
    }
    .history-date::after { left: 12px; right: auto; }
    .history-date .year {
        display: inline-block;
        margin-right: 10px;
    }
    .history-date .month {
        display: inline-block;
        font-size: 1.4rem;
    }
    .history-desc {
        padding-left: 45px;
        width: 100%;
    }
    .history-desc p {
        padding: 20px;
        font-size: 1rem;
    }

    .profile-table th, 
    .profile-table td {
        display: block;
        width: 100%;
        padding: 20px;
    }
    .profile-table th {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 15px;
        width: 100%;
    }
    .profile-table th::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
    }
    .profile-table td {
        padding-top: 15px;
    }

    .license-box {
        padding: 30px 20px;
    }
    .license-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   スマホ用メニュー追加デザイン
   ========================================= */
.hamburger {
    display: none; width: 30px; height: 22px;
    cursor: pointer; position: relative; z-index: 1000;
}
.hamburger span {
    position: absolute; width: 100%; height: 3px; background-color: #1e3a8a;
    border-radius: 3px; transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger { display: block; }
    .global-nav {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 300px; height: 100vh;
        background-color: rgba(255, 255, 255, 0.98); box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        z-index: 999; display: flex; align-items: center; justify-content: center;
    }
    .global-nav ul { flex-direction: column; gap: 30px; text-align: center; }
    .global-nav a { font-size: 1.2rem; }
    .global-nav.is-active { right: 0; }
}

/* =========================================
   ページトップへ戻るボタン
   ========================================= */
.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}
.page-top.is-show {
    opacity: 1;
    visibility: visible;
}
.page-top:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .page-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }
}