/* ==========================================================================
   全ページ共通・基本設定
   ========================================================================== */
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #2c3e50;
    background-color: #ffffff;
    line-height: 1.6;
}

/* ヘッダー */
.header {
    background-color: #ffffff;
    border-bottom: 3px solid #008497;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}
.logo {
    display: flex;
    flex-direction: column;
}
.office-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2rem;
}
.location {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

.nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 12px;
}
.nav li {
    margin: 0;
    padding: 0;
}
.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: bold;
    white-space: nowrap;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.nav a:hover {
    color: #ffffff;
    background-color: #008497;
}
.lang-switch {
    color: #008497 !important;
    border: 1px solid #008497;
}
.lang-switch:hover {
    background-color: #008497 !important;
    color: #ffffff !important;
}

/* トップページ専用：メインビジュアル */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent; 
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    color: #ffffff;
    padding-left: 20px;
}
.sub-copy {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffeb3b;
    margin-bottom: 15px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9), -1px -1px 0 rgba(0,0,0,0.5);
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 25px 0;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), -1px -1px 0 rgba(0,0,0,0.5);
}
.main-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9), -1px -1px 0 rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
}
.hero-btns a {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.05rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.hero-btns a.btn-primary:first-child {
    background-color: #008497 !important;
    color: #ffffff !important;
    border: none !important;
}
.hero-btns a.btn-primary:first-child:hover {
    background-color: #006b7b !important;
    transform: translateY(-2px);
}
.hero-btns a.btn-primary:last-child {
    background-color: #ffffff !important;
    color: #008497 !important;
    border: 2px solid #008497 !important;
}
.hero-btns a.btn-primary:last-child:hover {
    background-color: #f0f7f8 !important;
    transform: translateY(-2px);
}

/* 取扱業務・概要ページ共通：メインレイアウト */
.main-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 20px;
}
.page-title {
    color: #008497;
    font-size: 2rem;
    font-weight: bold;
    border-left: 6px solid #008497;
    padding-left: 15px;
    margin-bottom: 40px;
}
.toc-section {
    background-color: #f0f7f8;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 50px;
}
.toc-title {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}
.toc-section ul {
    padding-left: 20px;
    margin: 0;
}
.toc-section li {
    margin-bottom: 10px;
}
.toc-section a {
    color: #008497;
    text-decoration: none;
    font-weight: bold;
}
.toc-section a:hover {
    text-decoration: underline;
}

.service-block {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
    scroll-margin-top: 100px; 
}
.service-block:last-of-type {
    border-bottom: none;
}
.service-block h2 {
    color: #008497;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.service-lead {
    font-size: 1.05rem;
    background-color: #f0f7f8;
    padding: 15px;
    border-left: 4px solid #008497;
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.service-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    color: #008497;
    font-size: 0.9rem;
}
.service-list strong {
    color: #2c3e50;
    display: inline-block;
    margin-bottom: 4px;
}
.service-list .strong-desc {
    color: #666;
    font-size: 0.95rem;
    display: block;
}
.english-block {
    background-color: #fafafa;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.english-lead {
    font-style: italic;
    color: #495057;
    margin-bottom: 25px;
}

/* ==========================================================================
   概要ページ（about.html）専用：PC用レイアウト
   ========================================================================== */
.history-list {
    list-style: none; padding: 0; margin: 0;
}
.history-list li {
    margin-bottom: 12px; font-size: 1.05rem; padding-left: 15px; position: relative;
}
.history-list li::before {
    content: "・"; position: absolute; left: 0; color: #008497;
}
.history-year {
    display: inline-block; width: 75px; font-weight: bold; color: #008497;
}
.history-desc {
    display: inline;
}
.history-sub-desc {
    display: block; padding-left: 75px; font-size: 0.95rem; color: #666; margin-top: 4px;
}

.skill-table {
    width: 100%; border-collapse: collapse; margin-top: 10px;
}
.skill-table tr {
    border-bottom: 1px dashed #e0e0e0;
}
.skill-table tr:last-child {
    border-bottom: none;
}
.skill-table th {
    width: 150px; text-align: left; vertical-align: top; padding: 12px 10px 12px 15px; font-weight: bold; color: #008497; position: relative;
}
.skill-table th::before {
    content: "■"; position: absolute; left: 0; color: #008497; font-size: 0.8rem; top: 15px;
}
.skill-table td {
    padding: 12px 10px; vertical-align: top; font-size: 1.05rem; color: #2c3e50;
}

/* ==========================================================================
   全ページ共通・下部リンクエリア & フッター
   ========================================================================== */
.social-links {
    background: #f0f7f8 !important;
    padding: 60px 20px;
    text-align: center;
}
.social-links h2 {
    color: #008497 !important;
    font-weight: bold;
    margin-bottom: 30px;
}
.link-item {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    flex: 1;
    min-width: 260px;
    max-width: 340px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.link-item img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 10px auto !important;
}

.footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   📱 完璧なレスポンシブ強制調整（スマホバグをここで全消去）
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 10px;
    }
    .nav ul {
        gap: 8px;
        justify-content: center;
    }
    .nav a {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    .hero {
        min-height: 65vh;
        background-position: 25% center; 
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btns a {
        width: 100% !important;
    }
    .main-content {
        padding: 30px 15px;
    }
    .page-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    /* 💡 【解決1】下部SNSを強制的に綺麗な1列の「縦並び」にする絶対命令 */
    .social-links div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    .link-item {
        width: 100% !important;
        max-width: 340px !important;
    }

    /* 💡 【解決2】スマホでの経歴の文字を通常の大きさ（読みやすいサイズ）へリセット */
    .history-year {
        display: block; /* スマホでは年号を上に独立させて縦並びに */
        margin-bottom: 2px;
    }
    .history-sub-desc {
        padding-left: 0; /* 左の余白を詰めて幅いっぱいに読ませる */
    }

    /* 💡 【解決3】スマホでの資格表の崩れを防止し、1列に並び替えて文字サイズを復活 */
    .skill-table, .skill-table tbody, .skill-table tr, .skill-table th, .skill-table td {
        display: block !important;
        width: 100% !important;
    }
    .skill-table tr {
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px dashed #e0e0e0 !important;
    }
    .skill-table tr:last-child {
        border-bottom: none !important;
    }
    .skill-table th {
        padding: 0 0 4px 15px !important;
    }
    .skill-table th::before {
        top: 4px;
    }
    .skill-table td {
        padding: 0 0 0 15px !important;
        font-size: 1rem !important;
    }
}
