/* Base styles */
body {
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    font-size: 14px;
    color: #444444;
    min-width: 320px;
}

/* Text styles */
.text7 { font-size: 7pt; }
.text8 { font-size: 8pt; }
.text9 { font-size: 9pt; }
.text11 { font-size: 11pt; }
.text12 { font-size: 12pt; }
.text15 { font-size: 15pt; }
.text18 { font-size: 18pt; }

/* Links */
a {
    text-decoration: none;
    color: #444444;
}
a:hover {
    text-decoration: underline;
    color: #d00098;
}

/* Layout */
.container {
    width: 750px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Header */
.header {
    border-top: 4px solid #52a839;
    width: 100%;
}

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

.header-logo {
    width: 200px;
}

.header-logo img {
    max-width: 100%;
    height: auto;
}

.header-right {
    flex: 1;
    margin-left: 20px;
}

.header-catch {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 10px 0;
}

.header-catch img {
    max-width: 100%;
    height: auto;
}

/* Image Navigation */
/* Top Menu */
.top-menu {
    margin: 0;
    padding: 8px 0;
    background-color: #f5f5f5;
    border-bottom: 2px solid #52a839;
    border-top: 1px solid #52a839;
}

.top-menu table {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.top-menu td {
    text-align: center;
    background-color: #f5f5f5;
    border: 1px solid #52a839;
    padding: 6px 4px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.top-menu td:hover {
    background-color: #e8f0e6;
}

.top-menu td:not(:first-child) {
    border-left: none;
}

.top-menu img {
    vertical-align: middle;
    max-height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.top-menu td:hover img {
    transform: scale(1.05);
}

.top-menu td[style*="c4d7b5"] {
    background-color: #c4d7b5 !important;
}

@media screen and (max-width: 768px) {
    .top-menu {
        padding: 10px 0;
        margin: 0;
        border-width: 1px 0;
    }

    .top-menu table {
        display: flex;
        flex-wrap: wrap;
        border: none;
        padding: 0;
    }

    .top-menu tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
    }

    .top-menu td {
        flex: 0 1 calc(33.33% - 16px);
        min-width: 90px;
        border: 1px solid #52a839;
        border-radius: 4px;
        margin: 0;
        padding: 10px 5px;
        background-color: #ffffff;
    }

    .top-menu td:hover {
        background-color: #f0f7ee;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .top-menu img {
        max-height: 28px;
    }

    .top-menu td[style*="c4d7b5"] {
        background-color: #e8f0e6 !important;
    }
}

@media screen and (max-width: 480px) {
    .top-menu {
        display: block !important;
        width: 100% !important;
        padding: 5px !important;
        box-sizing: border-box;
    }
    .top-menu table {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        width: 100%;
        max-width: 100%;
    }
    .top-menu td {
        margin: 0 !important;
        padding: 3px !important;
        box-sizing: border-box;
        text-align: center;
        background-color: #f5f5f5;
        border: 1px solid #52a839 !important;
        border-radius: 3px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .top-menu td[style*="background-color"] {
        border: 1px solid #52a839 !important;
    }
    .top-menu td a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }
    .top-menu td img {
        max-width: 100%;
        height: auto;
        max-height: 30px;
        width: auto;
        display: block;
        margin: 0 auto;
    }

    .service-menu {
        margin-top: 0;
    }
}

@media screen and (max-width: 768px) {
    .image-nav {
        padding: 10px 0;
        margin: 0;
        border-width: 1px 0;
    }

    .image-nav table {
        display: flex;
        flex-wrap: wrap;
        border: none;
        padding: 0 5px;
    }

    .image-nav tr {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .image-nav td {
        flex: 0 1 calc(25% - 10px);
        min-width: 80px;
        border: 1px solid #52a839;
        border-radius: 3px;
        margin: 0;
        padding: 8px 4px;
        background-color: #ffffff;
    }

    .image-nav td:hover {
        background-color: #f0f7ee;
    }

    .image-nav img {
        max-height: 28px;
    }
}

@media screen and (max-width: 480px) {
    .image-nav {
        display: none;
    }
}

/* Navigation */
.hamburger {
    display: none;
}

.nav-menu {
    display: flex;
    border-right: 1px solid #52a839;
    height: auto !important;
    overflow-y: visible !important;
}

.nav-item {
    padding: 8px 15px;
    border-left: 1px solid #52a839;
    white-space: nowrap;
}

@media screen and (max-width: 480px) {
    /* ヘッダー */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 46px;
        background: #ffffff;
        z-index: 999;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border-top: 4px solid #52a839;
    }

    .header-content {
        position: relative;
        height: 100%;
        padding: 0 46px 0 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .header-logo {
        width: auto;
        max-width: 100px;
        margin: 0 auto !important;
        padding: 4px 0;
        text-align: center !important;
    }

    .header-logo img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .header-catch {
        display: none;
    }

    .container {
        padding-top: 70px !important;
    }

    @media screen and (max-width: 480px) {
        html, body {
            overflow-x: hidden;
            width: 100%;
            position: relative;
            margin: 0;
            padding: 0;
        }

        .container {
            padding-top: 46px;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            position: relative;
            margin: 0;
            box-sizing: border-box;
        }

        .main-content {
            width: 100%;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .slideshow-container,
        .service-menu {
            width: 100%;
            max-width: 100%;
            margin: 0 !important;
            position: relative !important;
            left: 0 !important;
            right: 0 !important;
            box-sizing: border-box !important;
            overflow: hidden;
        }

        .slideshow-container {
            border: none;
            border-top: 1px solid #52a839;
            border-bottom: 1px solid #52a839;
            padding: 0;
        }

        .slideshow-container img {
            width: 100%;
            height: auto;
            display: block;
            margin: 0;
            padding: 0;
        }

        .service-menu {
            border: none;
            background: #52a839;
            padding: 0;
        }

        .content-primary,
        .content-sidebar {
            width: 100%;
            padding: 0 12px;
            margin: 0;
            box-sizing: border-box;
        }
    }

    /* ハンバーガーメニュー */
    .nav-menu {
        display: none;
        position: fixed;
        top: 46px;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(75, 150, 55, 0.9);
        backdrop-filter: blur(3px);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), visibility 0s 0.3s;
        z-index: 998;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        will-change: transform;
        padding: 0;
        visibility: hidden;
        box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0s;
        background: rgba(75, 150, 55, 0.9);  /* より落ち着いた緑色 */
        backdrop-filter: blur(3px);  /* 背景をぼかす */
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .container {
        padding-top: 60px;
    }

    /* ハンバーガーボタン */
    .hamburger {
        display: block;
        position: absolute;
        top: 50%;
        right: 12px;
        width: 22px;
        height: 18px;
        border: none;
        background: none;
        padding: 0;
        cursor: pointer;
        z-index: 1000;
        transform: translateY(-50%);
        transition: opacity 0.3s ease;
        outline: none;
    }

    .hamburger:hover {
        opacity: 0.8;
    }

    .hamburger span {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #52a839;
        transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    }

    .hamburger span:nth-child(1) {
        top: 2px;
    }

    .hamburger span:nth-child(2) {
        top: 8px;
    }

    .hamburger span:nth-child(3) {
        top: 14px;
    }

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

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

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

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

    /* ハンバーガーメニュー */
    /* 重複スタイルを削除 */

    /* メニュー項目 */
    .nav-item {
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        margin: 0;
        padding: 0;
    }

    .nav-item:first-child {
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: #ffffff !important;
        padding: 18px;
        line-height: 1.4;
        text-align: center;
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        position: relative;
        font-weight: bold;
        letter-spacing: 0.05em;
        background-color: transparent;
    }

    .nav-item a::after {
        content: '';
        position: absolute;
        right: 18px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-top: 2px solid rgba(255,255,255,0.7);
        border-right: 2px solid rgba(255,255,255,0.7);
        transform: translateY(-50%) rotate(45deg);
        transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    }

    .nav-item a:hover {
        text-decoration: none;
        background-color: rgba(255,255,255,0.08);
        transform: translateX(5px);
    }

    .nav-item a:hover::after {
        transform: translateY(-50%) rotate(45deg) scale(1.2);
        border-color: rgba(255,255,255,0.9);
    }

    /* レイアウトの調整 */
    .container {
        padding-top: 60px;
    }

    .slideshow-container,
    .service-menu {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        margin-top: 0;
    }
}

/* Main content */
.main-content {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.content-primary {
    width: 565px;
}

.content-sidebar {
    width: 180px;
}

.marquee-box {
    border: 4px solid #52a839;
    border-style: solid;
    border-width: 4px 1px;
    margin: 10px 0;
    padding: 5px;
}

.banner {
    margin-bottom: 10px;
    text-align: center;
}

.banner img {
    max-width: 100%;
    height: auto;
    border: 0;
}

.info-section {
    margin-top: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.news-title {
    color: #008000;
    font-family: IWA新聞ゴシック体;
    text-align: center;
    font-size: 200%;
    margin: 20px 0;
}

.news-archive {
    text-align: center;
    margin: 20px 0;
}

.info-block {
    margin: 20px 0;
}

.info-block h3 {
    color: #d00098;
    font-size: medium;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Slideshow */
.slideshow-container {
    width: 100%;
    border: double #52a839;
    margin: 10px 0;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

.slideshow-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
}

img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .slideshow-container {
        border-width: 2px;
    }
}

/* Service menu */
.service-menu-wrapper {
    background-color: #52a839;
    padding: 0;
    margin: 0;
    border-top: 1px solid #3d8027;
    border-bottom: 1px solid #3d8027;
}

.service-menu {
    display: table;
    width: 100%;
    background-color: #52a839;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    box-sizing: border-box;
}

.service-item {
    display: table-cell;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding: 0;
    vertical-align: middle;
    box-sizing: border-box;
    height: 32px;
    width: 16.666%; /* 6項目なので均等に分割 */
}

.service-item:last-child {
    border-right: none;
}

.service-item a {
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 7.5pt; /* フォントサイズをさらに小さく */
    display: block;
    padding: 8px 1px;
    line-height: 1;
    letter-spacing: -0.2px; /* 文字間隔を少し詰める */
}

.service-item a:hover {
    text-decoration: none;
    color: #ffffff;
    background-color: #3d8027;
}

@media screen and (min-width: 769px) {
    .service-menu {
        display: table !important;
    }
    
    .service-item {
        display: table-cell !important;
    }
}

/* Sidebar items */
.sidebar-box {
    border: 1px solid #52a839;
    margin-bottom: 10px;
    padding: 0;
}

.sidebar-box table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.sidebar-box td {
    padding: 0;
    vertical-align: middle;
}

.sidebar-box img,
.sidebar-box iframe {
    display: block;
    width: 100%;
    height: auto;
    max-width: calc(100% - 2px);  /* ボーダーの分を引く */
    margin: 0 auto;
}

/* TripAdvisorのiframe用 */
.sidebar-box iframe {
    height: 150px;
}

.sidebar-box .text7,
.sidebar-box .text8 {
    padding: 8px;
}

.sidebar-item td {
    padding: 0;
    vertical-align: middle;
}

.sidebar-item td[colspan="2"] {
    padding: 0;
}

.sidebar-item td:first-child {
    width: 13px;
    padding-right: 5px;
}

.sidebar-item td:last-child {
    width: 137px;
}

.sidebar-item img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-item .text7,
.sidebar-item .text8 {
    padding: 8px;
}

.sidebar-item a {
    display: block;
    text-decoration: none;
}

.sidebar-item a:hover {
    text-decoration: none;
}

/* Spacing between items */
.sidebar-item tr[height="10"] td {
    padding: 5px 0;
}

/* Text padding */
.sidebar-item .text7,
.sidebar-item .text8 {
    padding: 8px 0;
}

/* Footer */
.footer {
    border: 1px solid #52a839;
    border-bottom-width: 4px;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
}

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

.footer-logo {
    width: 100px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
}

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

/* Media Queries */
@media screen and (max-width: 768px) {
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    body {
        min-width: 320px;
        position: relative;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
        position: relative;
        left: 0;
        right: 0;
    }

    @media screen and (max-width: 480px) {
        html, body {
            margin: 0;
            padding: 0;
            width: 100%;
            overflow-x: hidden;
        }

        body {
            min-width: 320px;
            position: relative;
        }

        html {
            overflow-x: hidden;
        }

        body {
            margin: 0;
            padding: 0;
            width: 100%;
            min-width: 320px;
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            margin: 0;
            padding: 0;
            position: relative;
        }

        .main-content {
            width: 100%;
            margin: 0;
            padding: 0;
            position: relative;
        }

        .slideshow-container {
            margin: 0 !important;
            width: 100% !important;
            position: relative !important;
            left: 0 !important;
            right: 0 !important;
            box-sizing: border-box !important;
            overflow: hidden;
            border: none;
            border-top: 1px solid #52a839;
            border-bottom: 1px solid #52a839;
            background: #fff;
        }

        .service-menu {
            margin: 0 !important;
            width: 100% !important;
            position: relative !important;
            box-sizing: border-box !important;
            overflow: hidden;
            background: #52a839;
        }

        .slideshow-container img {
            width: 100%;
            height: auto;
            display: block;
            margin: 0;
            padding: 0;
        }

        .service-menu {
            width: 100%;
            position: relative;
            left: 0;
            right: 0;
            margin: 0;
            padding: 0;
            background: #52a839;
        }

        .content-primary,
        .content-sidebar {
            padding: 0 12px;
            box-sizing: border-box;
        }
    }

    .main-content {
        width: 100%;
        overflow: hidden;
    }

    .slideshow-wrapper,
    .service-menu-wrapper {
        box-sizing: border-box;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        max-width: 100vw;
    }

    .slideshow-container,
    .service-menu {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    @media screen and (min-width: 481px) {
        .slideshow-wrapper,
        .service-menu-wrapper {
            width: 100%;
            left: auto;
            transform: none;
        }
    }

    .slideshow-container {
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        box-sizing: border-box;
        border-top: 1px solid #52a839;
        border-bottom: 1px solid #52a839;
        background: #fff;
    }

    .slideshow-container img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
        vertical-align: bottom;
    }

    .service-menu {
        width: 100%;
        margin: 0;
        padding: 0;
        background: #52a839;
    }

    .main-content {
        width: 100%;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .content-primary,
    .content-sidebar {
        width: 100%;
        padding: 0 12px;
        margin: 0;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .slideshow-container {
        width: 100vw;
        margin: 0;
        padding: 0;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        box-sizing: border-box;
        border: none;
        border-top: 1px solid #52a839;
        border-bottom: 1px solid #52a839;
        overflow: hidden;
    }

    .slideshow-container img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
        padding: 0;
    }

    .service-menu {
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        box-sizing: border-box;
        background: #52a839;
        overflow: hidden;
    }

    .slideshow-container {
        margin: 5px 0;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .service-menu {
        display: flex;
        flex-wrap: wrap;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 0;
        box-sizing: border-box;
    }

    .content-primary,
    .content-sidebar {
        padding: 0 5px;
    }

    .header-content {
        flex-direction: column;
    }

    .header-logo {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .header-right {
        width: 100%;
        margin-left: 0;
    }

    .header-catch {
        flex-direction: column;
        align-items: center;
    }

    .header-catch img {
        margin: 5px 0;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        border: none;
    }
    
    .nav-item {
        border: 1px solid #52a839;
        margin: 2px;
        min-width: 150px;
        text-align: center;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .content-primary,
    .content-sidebar {
        width: 100%;
    }
    
    .service-menu {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* スマホ向けサービスメニュー */
    .service-menu-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border-top: none !important;
        border-bottom: none !important;
    }
    
    .service-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        table-layout: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .service-item {
        display: flex !important; /* テーブルセルから変更 */
        width: 50% !important; /* 2列に */
        height: auto !important;
        float: none !important; /* floatを使わない */
        border-bottom: 1px solid rgba(255,255,255,0.2) !important;
        border-right: 1px solid rgba(255,255,255,0.2) !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .service-item:nth-child(2n) {
        border-right: none !important;
    }

    .service-item:nth-last-child(-n+2):nth-child(2n+1),
    .service-item:last-child {
        border-bottom: none !important;
    }

    .service-item a {
        width: 100% !important;
        padding: 12px 5px !important;
        font-size: 10pt !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        white-space: normal !important; /* 長いテキストを折り返す */
        letter-spacing: normal !important;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        margin: 10px 0;
    }

    .footer-info {
        margin: 10px 0;
    }
}

@media screen and (max-width: 480px) {
    body {
        overflow-x: hidden;
        min-width: 320px;
    }

    .container {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .slideshow-container,
    .service-menu {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .header {
        margin-bottom: 5px;
    }

    .header-content {
        padding: 10px 5px;
    }

    .header-logo {
        width: 150px;
        margin: 0 auto 15px;
    }

    /* メニュー項目のスタイル */
    .nav-item {
        width: 100%;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        margin: 0;
        padding: 0;
    }

    .nav-item:first-child {
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        color: #ffffff !important;
        padding: 16px;
        line-height: 1.4;
        text-align: center;
        transition: all 0.3s ease;
        position: relative;
        font-weight: bold;
        letter-spacing: 0.05em;
    }

    .nav-item a::after {
        content: '';
        position: absolute;
        right: 15px;
        top: 50%;
        width: 6px;
        height: 6px;
        border-top: 2px solid rgba(255,255,255,0.8);
        border-right: 2px solid rgba(255,255,255,0.8);
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .nav-item a:hover {
        text-decoration: none;
        background-color: rgba(255,255,255,0.1);
        transform: translateX(5px);
    }

    .nav-item a:hover::after {
        transform: translateY(-50%) rotate(45deg) scale(1.2);
    }
    
    /* サービスメニュー */
    .service-menu-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        position: relative !important;
    }

    .top-menu table {
        width: 100%;
    }
    .top-menu td img {
        height: 35px;
        width: auto;
    }

    .marquee-box {
        border-width: 2px 0;
        margin: 10px 0;
    }

    .slideshow-container {
        border-width: 2px 0;
        margin: 10px 0;
    }

    .content-primary,
    .content-sidebar {
        padding: 0 12px;
        margin-bottom: 20px;
    }

    .sidebar-item {
        margin-bottom: 20px;
        border-width: 1px 0;
    }

    .sidebar-link {
        padding: 12px;
        background-color: #f8f8f8;
    }

    .text7 { font-size: 10pt; }
    .text8 { font-size: 11pt; }
    .text9 { font-size: 12pt; }

    .footer {
        margin: 20px 0 0;
        padding: 15px 12px;
        border-width: 1px 0 4px 0;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-logo {
        width: 80px;
    }

    .footer-info {
        font-size: 10pt;
        line-height: 1.5;
    }

    /* サイドバーのスタイル調整 */
    .content-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .sidebar-box {
        max-width: 280px !important;
        margin: 10px auto !important;
    }

    .sidebar-box table {
        width: 100% !important;
        max-width: 280px !important;
    }

    .sidebar-box img,
    .sidebar-box iframe {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .sidebar-box iframe {
        height: 150px !important;
    }

    .sidebar-box .text7,
    .sidebar-box .text8 {
        font-size: 12px !important;
        line-height: 1.4 !important;
        padding: 6px !important;
    }
}

/* Content styles from precautions.htm */
table.ex_tbl {
    border-collapse: collapse;
    border: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

table.ex_tbl td {
    padding: 8px;
    word-break: break-word;
}

table.ex_tbl td.ex_brdf {
    border-top: 5px solid #3cb371;
    border-bottom: 5px solid #3cb371;
}

.content-wrapper {
    max-width: 750px;
    margin: 20px auto;
    padding: 0 15px;
}

.content-box {
    background: #fff;
    border: 2px solid #52a839;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(82, 168, 57, 0.1);
    padding: 25px;
    position: relative;
}

.content-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #52a839;
    border-radius: 8px;
    pointer-events: none;
}

@media screen and (max-width: 480px) {
    table.ex_tbl {
        font-size: 14px;
    }
    
    table.ex_tbl td {
        padding: 6px;
    }

    .content-wrapper {
        margin: 10px auto;
        padding: 0 10px;
    }

    .content-box {
        padding: 15px;
    }
}
