/* ==========================================================================
   玉井宏幸税理士事務所 - 共通洗練CSSスタイル（画像オーバーレイ＆メールリンク調整版）
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    background-color: #fcfcfd;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

a {
    color: #0c4a60;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ef6c00;
}

/* ヘッダー */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-area {
    padding: 15px 0 10px;
}

.logo-area h1 {
    margin: 0;
    font-size: 24px;
    color: #0c4a60;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo-area .subtitle {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666666;
    letter-spacing: 0.02em;
}

.main-nav {
    border-top: 1px solid #eeeeee;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: table;
    width: 100%;
}

.main-nav ul li {
    display: table-cell;
    text-align: center;
}

.main-nav ul li a {
    display: block;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444444;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #0c4a60;
    background-color: #f4f7f6;
    border-bottom: 2px solid #0c4a60;
}

/* 大きな看板画像のラッパー設定 */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    background-color: #0c4a60;
    overflow: hidden;
}

.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.25;
    min-height: 250px;
    object-fit: cover;
}

.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.hero-overlay-content h2 {
    font-size: 22px;
    margin: 0 0 15px;
    line-height: 1.4;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.hero-overlay-content h2 .highlight {
    color: #ffb74d;
}

.hero-overlay-content p {
    font-size: 14px;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* 下層ページ用バナー */
.page-title-banner {
    background-color: #f4f7f6;
    border-bottom: 1px solid #e0e7e5;
    padding: 30px 0;
}

.page-title-banner h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #0c4a60;
}

/* レイアウト構造 */
.page-layout {
    margin-top: 25px;
}

.main-content {
    margin-bottom: 30px;
}

.main-content h2 {
    font-size: 19px;
    color: #0c4a60;
    border-left: 5px solid #ef6c00;
    padding-left: 12px;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* カード、コンポーネント */
.card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 0;
    color: #0c4a60;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    font-size: 16px;
}

.badge {
    display: inline-block;
    background-color: #ef6c00;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.cta-box {
    background-color: #f4f7f6;
    border: 1px solid #0c4a60;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin: 25px 0;
}

.btn {
    display: inline-block;
    background-color: #ef6c00;
    color: #ffffff;
    padding: 10px 24px;
    font-weight: bold;
    border-radius: 4px;
}

.email-btn {
    background-color: #0c4a60;
    border: 1px solid #ffffff;
    transition: background-color 0.3s;
}

.email-btn:hover {
    background-color: #ef6c00;
    color: #ffffff;
}

.highlight-box {
    background-color: #fff3e0;
    border-left: 4px solid #ef6c00;
    padding: 15px;
    margin: 20px 0;
}

/* サイドバー */
.widget {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #ffffff;
}

.widget h3 {
    margin-top: 0;
    font-size: 15px;
    color: #0c4a60;
    border-bottom: 2px solid #0c4a60;
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.sidemenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidemenu li a {
    display: block;
    padding: 8px 5px;
    font-size: 14px;
    color: #444444;
}

.sidemenu li a::before {
    content: "▶";
    font-size: 10px;
    color: #ef6c00;
    margin-right: 8px;
}

/* テーブル */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.styled-table, .profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.styled-table th, .styled-table td,
.profile-table th, .profile-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
}

.styled-table th {
    background-color: #0c4a60;
    color: #ffffff;
}

.profile-table th {
    background-color: #f4f7f6;
    color: #0c4a60;
    width: 25%;
}

.price-notice-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 4px;
}

.checkmark-list {
    list-style: none;
    padding: 0;
}

.checkmark-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.checkmark-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ef6c00;
    font-weight: bold;
}

/* フッター */
footer {
    background-color: #0c4a60;
    color: #ffffff;
    padding: 20px 0;
    font-size: 14px;
    margin-top: 30px;
}

/* パソコン用レスポンシブ対応 */
@media (min-width: 768px) {
    .logo-area {
        float: left;
        padding: 15px 0;
    }
    .main-nav {
        float: right;
        border-top: none;
        margin-top: 15px;
    }
    .main-nav ul {
        display: block;
    }
    .main-nav ul li {
        display: inline-block;
    }
    .main-nav ul li a {
        padding: 15px 20px;
        font-size: 15px;
    }
    header::after {
        content: "";
        display: block;
        clear: both;
    }
    .hero-overlay-content h2 {
        font-size: 34px;
    }
    .hero-overlay-content p {
        font-size: 16px;
    }
    .page-layout {
        position: relative;
    }
    .main-content {
        margin-right: 320px;
    }
    .sidebar {
        position: absolute;
        right: 20px;
        top: 0;
        width: 280px;
    }
    .card-grid::after {
        content: "";
        display: block;
        clear: both;
    }
    .card {
        float: left;
        width: 49%;
    }
    .card:last-child {
        float: right;
    }
}
