/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Kaku Gothic', sans-serif;
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    padding-top: 100px;
    background-color: #F7F5F6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav > ul > li {
    position: relative;
}

.nav a {
    text-decoration: none;
    color: #444444;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s;
}

.nav a:hover {
    color: #0363ad;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    display: block;
    width: 100%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 20px;
    color: #444444;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.3s;
    white-space: nowrap;
    width: 100%;
}

.dropdown-icon {
    flex-shrink: 0;
    color: #444444;
    transition: color 0.3s;
}

.dropdown-menu a:hover .dropdown-icon {
    color: #0363ad;
}


.dropdown-menu a:hover {
    color: #0363ad;
}

/* ヘッダー電話番号 */
.header-phone {
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header.scrolled .header-phone {
    opacity: 1;
    visibility: visible;
}

.header-phone span {
    color: #444444;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-phone svg {
    flex-shrink: 0;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #444444;
    transition: all 0.3s;
}

.hamburger.active span {
    background-color: #ffffff;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* メインビジュアル */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: #F7F5F6;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #F7F5F6;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 200px;
    width: calc(100% - 200px);
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-text {
    background-color: rgba(0, 80, 129, 0.85);
    color: #ffffff;
    padding: 45px 60px;
    width: 40vw;
    max-width: 700px;
}

.hero-text h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #F3F8FC;
}

.hero-description {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.8;
    color: #ffffff;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px 40px;
    background-color: #F3F8FC;
    border: 2px solid #f3f8fc;
    border-radius: 50px;
    color: #0363ad;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-contact:hover {
    background-color: transparent;
    border: 2px solid #f3f8fc;
    color: #f3f8fc;
}

.arrow {
    font-size: 18px;
}

/* 対応業務一覧セクション */
.services-list-section {
    padding: 60px 0;
    background-color: #F7F5F6;
}

.services-list-box {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #0363ad;
    text-align: center;
    margin-bottom: 35px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background-color: #ffffff;
    border: 2px solid #444444;
    border-radius: 8px;
    text-decoration: none;
    color: #444444;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.service-item:hover {
    background-color: #F7F5F6;
    border-color: #0363ad;
    color: #0363ad;
}

.service-name {
    flex: 1;
}

.service-arrow {
    flex-shrink: 0;
    margin-left: 12px;
    color: #444444;
    transition: color 0.3s ease;
}

.service-item:hover .service-arrow {
    color: #0363ad;
}

/* 医療法務顧問セクション */
.service-detail-section {
    padding: 80px 0;
    background-color: #F7F5F6;
}

.service-detail-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    background-image: url('logo-small.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 150px;
    padding: 80px 0;
    overflow: visible;
}

.service-detail-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0363ad;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #0363ad;
    margin-top: 10px;
}

.service-detail-description {
    text-align: left;
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-detail-note {
    text-align: left;
    font-size: 14px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.plans-list {
    max-width: 900px;
    margin: 0 auto;
}

.plan-item {
    margin-bottom: 30px;
}

.plan-item:last-child {
    margin-bottom: 0;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
    padding: 20px 30px;
}

.plan-blue {
    background-color: #F3F8FC;
}

.plan-white {
    background-color: #ffffff;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: #0363ad;
    margin: 0;
}

.plan-price {
    font-size: 20px;
    font-weight: 700;
    color: #0363ad;
    margin: 0;
    white-space: nowrap;
}

.tax-note {
    font-size: 14px;
    font-weight: 400;
    color: #0363ad;
}

.plan-content {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    padding: 0 10px 0 30px;
}

.plan-content p {
    margin-bottom: 10px;
}

.plan-content p:last-child {
    margin-bottom: 0;
}

.plan-note {
    font-size: 14px;
    color: #666666;
}

.special-note {
    text-align: left;
    font-size: 15px;
    color: #D2691E;
    line-height: 1.8;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* プラン比較表 */
.comparison-table-wrapper {
    max-width: 1100px;
    margin: 80px auto 0;
}

.comparison-title {
    font-size: 28px;
    font-weight: 700;
    color: #444444;
    text-align: center;
    margin-bottom: 10px;
    padding-top: 20px;
    padding-bottom: 15px;
    position: relative;
}

.comparison-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #0363ad;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    margin-top: 40px;
    table-layout: fixed;
}

.comparison-table thead th.row-header {
    width: 20%;
}

.comparison-table thead th.plan-col {
    width: 16%;
}

.comparison-table thead th {
    padding: 18px 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.comparison-table thead th:not(:first-child) {
    border-left: 2px solid #ffffff;
}

.comparison-table thead th.row-header {
    background-color: #F7F5F6;
}

.comparison-table thead th.plan-dark {
    background-color: #4A7C9C;
}

.comparison-table thead th.plan-light {
    background-color: #95B8CF;
}

.comparison-table tbody tr {
    border-bottom: 1px solid #ddd;
}

.comparison-table tbody td {
    padding: 18px 12px;
    text-align: center;
    font-size: 16px;
    color: #0363ad;
    font-weight: 600;
}

.comparison-table tbody td:not(.row-header) {
    background-color: #F7F5F6;
}

.comparison-table tbody td:nth-child(odd):not(.row-header) {
    background-color: #ffffff;
}

.comparison-table tbody td.row-header {
    background-color: #ffffff;
    text-align: center;
    padding-left: 12px;
    padding-right: 12px;
    font-weight: 600;
    color: #444444;
    white-space: nowrap;
}

.comparison-table tbody tr:first-child td.row-header {
    color: #0363ad;
}

.comparison-table tbody td strong {
    font-size: 20px;
}

.comparison-table .check-mark {
    font-size: 20px;
    color: #0363ad;
    font-weight: 700;
}

.comparison-table .note-ref {
    font-size: 12px;
    color: #666666;
    margin-left: 3px;
}

.table-notes {
    padding: 25px 30px;
    font-size: 13px;
    color: #444444;
    line-height: 1.8;
}

.table-notes-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.table-notes p {
    margin-bottom: 8px;
}

.table-notes p:last-child {
    margin-bottom: 0;
}

/* お問い合わせセクション */
.contact-section {
    position: relative;
    height: 400px;
    background-image: url('contact-bg.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    text-align: center;
    color: #ffffff;
}

.contact-icon {
    margin-bottom: 20px;
}

.contact-icon img {
    width: 70px;
    height: 70px;
}

.contact-content h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 50px;
    color: #ffffff;
}

.btn-contact-large {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 12px 70px;
    border: 2px solid #ffffff;
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-contact-large:hover {
    background-color: #ffffff;
    color: #0363ad;
}

.btn-contact-large .arrow {
    font-size: 20px;
}

/* ご相談ボタン */
.consultation-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.btn-consultation {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #0363ad;
    color: #ffffff;
    padding: 12px 80px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-consultation:hover {
    background-color: #003d63;
}

.btn-consultation .arrow {
    font-size: 20px;
}

/* フッター */
.footer {
    background-color: #0363ad;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 80, 129, 0.98);
        padding: 70px 30px 20px;
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 8px;
        justify-content: flex-start;
    }

    .nav a {
        color: #ffffff;
        font-size: 18px;
        display: block;
        padding: 6px 15px;
    }

    /* スマホ表示時のドロップダウンメニュー */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: transparent;
        box-shadow: none;
        padding: 10px 0 0 20px;
        min-width: auto;
    }

    .dropdown-menu a {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #ffffff;
        font-size: 16px;
        padding: 8px 0;
    }

    .dropdown-menu .dropdown-icon {
        color: #ffffff;
        flex-shrink: 0;
    }

    .dropdown-menu a:hover {
        background-color: transparent;
        color: #e0e0e0;
        padding-left: 0;
    }

    /* スマホ表示時の電話番号 */
    .header-phone {
        display: none !important;
    }

    .hero {
        height: auto;
    }

    .hero-background {
        width: 0;
    }

    .hero-image {
        left: 0;
        width: 100%;
    }

    .hero-text {
        width: 100%;
        max-width: 100%;
        padding: 40px 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-text p {
        align-self: stretch;
    }

    .services-list-section {
        padding: 40px 0;
    }

    .services-list-box {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-item {
        padding: 14px 20px;
        font-size: 15px;
    }

    .service-arrow {
        margin-left: 10px;
    }

    .service-detail-section {
        padding: 50px 0;
    }

    .service-detail-header {
        background-size: auto 100px;
        padding: 30px 0;
    }

    .service-detail-header h2 {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .service-detail-description {
        font-size: 15px;
    }

    .service-detail-note {
        font-size: 13px;
        margin-bottom: 30px;
    }

    .plan-item {
        margin-bottom: 20px;
    }

    .plan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 18px 20px;
    }

    .plan-name {
        font-size: 18px;
    }

    .plan-price {
        font-size: 18px;
        align-self: flex-end;
    }

    .plan-content {
        font-size: 15px;
        padding: 0 5px 0 20px;
    }

    .plan-note {
        font-size: 13px;
    }

    .special-note {
        font-size: 14px;
        margin-top: 30px;
    }

    .comparison-table-wrapper {
        margin: 50px auto 0;
    }

    .comparison-title {
        font-size: 22px;
        padding-top: 20px;
    }

    .comparison-table {
        font-size: 14px;
        min-width: 580px;
        width: 580px;
    }

    .comparison-table thead th {
        padding: 14px 10px;
        font-size: 13px;
    }

    .comparison-table tbody td {
        padding: 14px 10px;
        font-size: 13px;
    }

    .comparison-table tbody td.row-header {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 13px;
    }

    .comparison-table .check-mark {
        font-size: 22px;
    }

    .comparison-table tbody td strong {
        font-size: 17px;
    }

    .table-notes {
        padding: 20px 15px;
        font-size: 12px;
    }

    .contact-section {
        height: 300px;
    }

    .contact-content h2 {
        font-size: 36px;
        letter-spacing: 6px;
        margin-bottom: 30px;
    }

    .contact-icon img {
        width: 50px;
        height: 50px;
    }

    .btn-contact-large {
        font-size: 16px;
        padding: 15px 40px;
    }

    /* カスタムフッター（レスポンシブ） */
    footer.footer-custom .footer-nav {
        flex-direction: column !important;
        gap: 12px !important;
    }

    footer.footer-custom .footer-nav .divider {
        display: none !important;
    }

    footer.footer-custom .footer-nav a {
        font-size: 13px !important;
    }

    footer.footer-custom .footer-copyright p {
        font-size: 12px !important;
    }
}

/* カスタムフッター */
footer.footer-custom {
    background-color: #0363ad !important;
    color: #ffffff !important;
    padding: 30px 0 20px !important;
    width: 100% !important;
}

footer.footer-custom .footer-nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding: 0 20px !important;
    margin-bottom: 20px !important;
}

footer.footer-custom .footer-nav a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: opacity 0.3s ease !important;
}

footer.footer-custom .footer-nav a:hover {
    opacity: 0.7 !important;
    color: #ffffff !important;
}

footer.footer-custom .footer-nav .divider {
    color: #ffffff !important;
    font-size: 14px !important;
}

footer.footer-custom .footer-copyright {
    text-align: center !important;
    padding-top: 15px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

footer.footer-custom .footer-copyright p {
    font-size: 13px !important;
    color: #ffffff !important;
}

/* スマホ追従ボタン */
.mobile-fixed-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .mobile-fixed-buttons {
        display: flex;
    }
}

.mobile-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    transition: opacity 0.3s;
    gap: 4px;
}

.mobile-btn:active {
    opacity: 0.7;
}

.mobile-btn-phone {
    background-color: #E5D3AC;
}

.mobile-btn-contact {
    background-color: #0363ad;
}
