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

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

.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: #005081;
}

/* ドロップダウンメニュー */
.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: block;
    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-menu a:hover {
    color: #005081;
}

/* ヘッダー電話番号 */
.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:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

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

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

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

.hero-text {
    background-color: rgba(243, 248, 252, 0.85);
    color: #444444;
    padding: 45px 50px;
    width: 50vw;
}

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

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

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

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

.arrow {
    font-size: 18px;
}

/* 代表挨拶セクション */
.message-section {
    background-color: #ffffff;
    padding: 80px 0;
    position: relative;
}

.message-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 50px;
    height: 84%;
    background: radial-gradient(ellipse at center, rgba(243, 248, 252, 0.5) 0%, #F3F8FC 50%, #E8F4FC 100%);
    z-index: 0;
}

.message-section .container {
    position: relative;
    z-index: 1;
}

.message-content-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.message-left {
    flex: 1;
    padding-top: 60px;
}

.message-header {
    margin-bottom: 40px;
}

.message-title-en {
    font-size: 48px;
    font-weight: 700;
    color: #005081;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.message-title-ja {
    font-size: 18px;
    color: #444444;
    font-weight: 400;
}

.message-text {
    margin-bottom: 40px;
}

.message-text p {
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.profile-section {
    background-color: transparent;
    padding: 30px 0;
}

.profile-title {
    font-size: 18px;
    color: #005081;
    font-weight: 700;
    margin-bottom: 20px;
}

.profile-text {
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 25px;
}

.profile-timeline {
    list-style: none;
    padding: 0;
}

.profile-timeline li {
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 10px;
}

.profile-timeline li:last-child {
    margin-bottom: 0;
}

.profile-timeline .year {
    font-weight: 600;
    color: #005081;
}

.message-right {
    flex-shrink: 0;
    width: 480px;
}

.message-image {
    margin-bottom: 0;
    background-color: #ffffff;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
}

.message-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 4px;
}

.representative-name {
    font-size: 16px;
    color: #444444;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

/* 概要セクション */
.service-detail-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.service-detail-header {
    text-align: center;
    margin-bottom: 50px;
    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: #005081;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.overview-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
}

.overview-table tbody tr {
    border-bottom: 2px solid #F7F5F6;
}

.overview-table tbody tr:last-child {
    border-bottom: none;
}

.overview-table th.overview-label {
    width: 30%;
    padding: 25px 30px;
    background-color: #F3F8FC;
    font-size: 16px;
    font-weight: 700;
    color: #005081;
    text-align: left;
    vertical-align: middle;
}

.overview-table td.overview-value {
    width: 70%;
    padding: 25px 30px;
    background-color: #ffffff;
    font-size: 16px;
    color: #444444;
    line-height: 1.8;
    vertical-align: middle;
}

/* アクセスセクション */
.access-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

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

.map-container {
    width: 100%;
    height: 450px;
    background-color: #cccccc;
    margin-bottom: 0;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    display: block;
}

.access-info {
    padding: 40px;
    background-color: #F7F5F6;
    text-align: center;
}

.access-info-title {
    font-size: 20px;
    font-weight: 700;
    color: #005081;
    margin-bottom: 20px;
}

.access-address {
    font-size: 16px;
    font-weight: 600;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.access-transport {
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
}

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

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .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: 100px 30px 30px;
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav.active {
        right: 0;
    }

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

    .nav a {
        color: #ffffff;
        font-size: 18px;
        display: block;
        padding: 10px 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 {
        color: #ffffff;
        font-size: 16px;
        padding: 8px 0;
    }

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

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

    .hero {
        height: auto;
    }

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

    .hero-text {
        width: 100%;
        padding: 40px 30px;
    }

    .hero-text h1 {
        font-size: 22px;
    }
    
    .message-section {
        padding: 50px 0;
    }

    .message-content-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .message-left {
        padding-top: 0;
    }

    .message-title-en {
        font-size: 36px;
    }

    .message-text p {
        font-size: 15px;
    }

    .message-right {
        width: 100%;
    }

    .profile-section {
        padding: 20px 0;
    }

    .profile-timeline li {
        font-size: 14px;
    }

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

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

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

    .overview-table-wrapper {
        padding: 25px 20px;
        border-radius: 10px;
    }

    .overview-table th.overview-label,
    .overview-table td.overview-value {
        display: block;
        width: 100%;
        padding: 15px 20px;
        text-align: left;
    }

    .overview-table th.overview-label {
        padding-bottom: 10px;
        font-size: 15px;
    }

    .overview-table td.overview-value {
        padding-top: 10px;
        padding-bottom: 20px;
        font-size: 15px;
    }

    .overview-table tbody tr {
        border-bottom: 3px solid #F7F5F6;
    }

    .access-section {
        padding: 50px 0;
    }

    .access-wrapper {
        border-radius: 10px;
        padding: 30px 20px;
    }

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

    .map-container {
        height: 300px;
    }

    .access-info {
        padding: 30px 20px;
    }

    .access-info-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .access-address {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .access-transport {
        font-size: 14px;
    }

    /* カスタムフッター（レスポンシブ） */
    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: #00537B !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: #2E8B57;
}

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