/* ========================================
   リセットCSS & 基本設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7cb342;
    --secondary-color: #8bc34a;
    --accent-color: #d97757;
    --text-color: #444;
    --light-bg: #fafaf8;
    --white: #ffffff;
    --gray: #777;
    --border-color: #e5e5e0;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', 'Yu Gothic', 'メイリオ', Meiryo, sans-serif;
    line-height: 1.9;
    color: var(--text-color);
    font-size: 16px;
    background-color: var(--light-bg);
    font-weight: 400;
    letter-spacing: 0.03em;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
    background-color: var(--white);
    color: var(--text-color);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    flex: 1;
    min-width: 250px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.site-title a {
    color: var(--primary-color);
    font-weight: 600;
}

.site-description {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.header-info {
    font-size: 13px;
    line-height: 1.6;
}

.header-info p {
    margin: 3px 0;
}

.tel {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ========================================
   ナビゲーション
   ======================================== */
.main-navigation {
    background-color: transparent;
    margin-top: 20px;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
}

.nav-menu li {
    margin: 5px;
}

.nav-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-color);
    font-weight: 400;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* ========================================
   メインコンテンツ
   ======================================== */

/* ヒーローセクション（メイン画像エリア） */
.hero-section {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

.hero-content {
    text-align: center;
    padding: 20px;
}

.hero-content h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 18px;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
}

.page-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--gray);
}

/* 代表者セクション */
.representative-section {
    text-align: center;
}

.representative-box {
    display: inline-block;
    background-color: var(--white);
    padding: 30px 60px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
}

.representative-title {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.representative-name {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
}

/* ページ画像コンテナ */
.page-image-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 16px;
}

/* ========================================
   セクション
   ======================================== */
.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 26px;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.section-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========================================
   カード レイアウト
   ======================================== */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.card-body {
    padding: 25px;
}

.card-body ul {
    list-style: none;
    padding-left: 0;
}

.card-body li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.card-body li:last-child {
    border-bottom: none;
}

.card-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ========================================
   特定社会保険労務士セクション
   ======================================== */
.tokutei-section {
    background-color: var(--light-bg);
    padding: 40px 0;
    margin: 60px 0;
}

.tokutei-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tokutei-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.tokutei-type {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    font-weight: 500;
}

.tokutei-box ul {
    list-style: none;
    padding-left: 0;
}

.tokutei-box li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.tokutei-box li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 10px;
}

/* ========================================
   連絡先ボックス
   ======================================== */
.contact-info-box {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.contact-tel {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-hours {
    font-size: 16px;
    color: var(--gray);
}

/* ========================================
   テーブル
   ======================================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.info-table th {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    width: 200px;
}

.info-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    color: var(--white);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #e55a2b;
}

.btn-large {
    padding: 20px 50px;
    font-size: 18px;
}

/* ========================================
   フォーム
   ======================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group .required {
    color: var(--accent-color);
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   レスポンシブデザイン（タブレット）
   ======================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .site-branding {
        margin-bottom: 20px;
    }

    .site-title {
        font-size: 20px;
    }

    .tel {
        font-size: 18px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-menu li {
        margin: 5px 0;
    }

    .page-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .representative-box {
        padding: 20px 40px;
    }

    .representative-name {
        font-size: 24px;
    }
}

/* ========================================
   レスポンシブデザイン（スマートフォン）
   ======================================== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 20px 15px;
    }

    .site-header {
        padding: 15px 0;
    }

    .site-title {
        font-size: 18px;
    }

    .site-description {
        font-size: 12px;
    }

    .tel {
        font-size: 16px;
    }

    .nav-menu a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .page-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .section-content {
        padding: 20px 15px;
    }

    .info-table th {
        width: auto;
        display: block;
        border-bottom: none;
    }

    .info-table td {
        display: block;
        padding: 10px 15px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    .hero-placeholder {
        height: 300px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .contact-tel {
        font-size: 22px;
    }

    .representative-box {
        padding: 20px;
    }

    .representative-name {
        font-size: 22px;
    }
}

/* ========================================
   ユーティリティクラス
   ======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.highlight {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* ========================================
   サービス詳細ページ
   ======================================== */
.service-detail {
    margin-bottom: 50px;
}

.service-detail h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 10px;
    top: 15px;
}

.price-note {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--gray);
}
