/* フォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* 共通スタイル */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    min-height: 100vh;
    color: #333;
    font-size: 16px;
    line-height: 1.7;
    background: #f8f9fa;
    padding-top: 64px;
}

/* ヘッダー */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    height: 70px;
}

.page-header {
    background-color: #f8f9fa;
    padding: 0px;
    text-align: left;
    margin-top: 0 !important;
    margin-left: 340px;
    position: relative;
    z-index: 200;
    box-shadow: none;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 2.4rem;
    color: #333;
    margin: 0;
    text-align: left;
}

.page-header p {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 10px 0 0 0;
    text-align: left;
}

.content-wrapper {
    display: flex;
    margin-top: 0 !important;
    min-height: calc(100vh - 150px);
    position: relative;
}

/* メニュー */
.side-menu {
    width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    height: calc(100vh - 70px);
    position: fixed;
    overflow-y: auto;
    top: 64px;
    left: 0;
    border-right: 1px solid #e9ecef;
    z-index: 10;
}

.side-menu h3 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

.side-menu .sub-menu {
    margin-left: 20px;
    border-left: 2px solid #e0e0e0;
    padding-left: 10px;
}

.side-menu .sub-menu h4 {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    padding: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    cursor: pointer;
}

.side-menu .sub-menu .description {
    display: none;
    margin-left: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
    padding: 10px;
    border-left: 2px solid #e0e0e0;
}

.side-menu .description {
    display: none;
    padding: 15px;
    margin: 0 0 15px 10px;
    border-left: 3px solid #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.side-menu .description.active {
    display: block;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu li {
    margin-bottom: 10px;
}

.side-menu a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.side-menu a:hover {
    background-color: #e9ecef;
    color: #40b87c;
}

.side-menu .sub-menu h4 a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    height: 100%;
}

.side-menu .sub-menu h4:hover a {
    color: inherit;
}

.main-content {
    margin-left: 320px;
    padding: 40px;
    flex: 1;
    position: relative;
    z-index: 50;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    margin-bottom: 100px;
}

/* セクションのスタイル */
.section {
    display: none;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.section.active {
    display: block;
}

.section h2,
.section h3 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #333;
    margin: 0 0 30px 0;
}

.section h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: #444;
    margin: 30px 0 15px 0;
}

.section p {
    margin: 0 0 20px 0;
    line-height: 1.8;
}

.section ul {
    list-style-type: none;
}

.section ul.bullet-list {
    list-style-type: disc !important;
    padding-left: 2em !important;
    margin: 0 0 20px 0;
}

.section ul.bullet-list li {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    padding-left: 0.5em;
}

.section ul.bullet-list li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section ul.bullet-list li a:hover {
    color: #40b87c;
}

.section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* メニューのアクティブ状態 */
.side-menu a.active {
    background-color: #e9ecef;
    font-weight: bold;
    color: #2c3e50;
}

/* ヘッダーナビゲーション */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.logo a {
    display: inline-block;
    font-weight: bold;
    font-size: 24px;
    color: #2c3e50;
    text-decoration: none;
}
.logo img {
    height: 40px;
}
.nav-menu {
    display: flex;
    list-style: none;
}
.nav-menu li {
    margin-left: 20px;
    position: relative;
}
.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #3498db;
}
.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    padding: 10px 0;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    display: block;
    padding: 8px 15px;
}
.cta-button {
    background-color: #3498db;
    color: white !important;
    padding: 10px 15px;
    border-radius: 5px;
}

/* フッター */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-footer.visible {
    opacity: 1;
    visibility: visible;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #40b87c;
}

.footer-copyright {
    font-size: 0.8rem;
    color: #bdc3c7;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .side-menu {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 56px);
        background-color: #fff;
        transition: left 0.3s ease;
        z-index: 1002;
        padding: 20px;
        padding-bottom: 120px;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        -webkit-overflow-scrolling: touch;
    }

    .side-menu.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        margin-bottom: 100px;
    }

    .page-header {
        margin-left: 0;
        padding: 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .section h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 1200px) {
    .side-menu {
        left: 0;
    }
}

.c-header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
  }
  .c-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .c-header__logo-img {
    height: 32px;
  }
  .c-global-nav__list {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .c-global-nav__link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
  }
  .c-global-nav__link:hover {
    text-decoration: underline;
  }
  .c-global-nav__button {
    background: #00B27C;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
  }
  .c-global-nav__button:hover {
    opacity: 0.9;
  }

/* ハンバーガーメニュー */
.header__menu-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

.header__menu-burger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

.header__menu-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

.header-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.header-menu-overlay.active {
    display: block;
}

.navigation {
    transition: transform 0.3s ease;
}

.navigation.active {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .header__menu-burger {
        display: block;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        padding: 80px 20px 20px;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: right 0.3s ease;
    }

    .navigation.active {
        right: 0;
    }

    .navigation .menu {
        flex-direction: column;
    }

    .navigation .menu__item {
        margin: 10px 0;
    }

    .navigation .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 20px;
    }
}

/* 情報セキュリティ基本方針のスタイル */
.policy-content {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.policy-content h3 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.policy-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #333;
}

.policy-content p:first-of-type {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 30px;
}

.side-menu h3, .side-menu .sub-menu h4 {
    cursor: pointer;
    transition: background-color 0.3s;
}

.side-menu h3:hover, .side-menu .sub-menu h4:hover {
    background-color: #e9ecef;
}

/* 責任範囲の図のスタイル */
.responsibility-diagram {
    margin: 2rem 0;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.responsibility-diagram h4 {
    margin: 0 0 2rem;
    color: #1a3654;
    font-size: 1.4rem;
    text-align: center;
    font-weight: bold;
    padding: 1rem;
    background-color: #1a3654;
    color: white;
    border-radius: 4px;
}

.diagram-grid {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    margin-bottom: 2rem;
    border: 2px solid #1a3654;
    padding: 1rem;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.diagram-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.diagram-header {
    padding: 0.75rem 0.5rem;
    background-color: #1a3654;
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-item {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    margin: 1px 0;
}

.diagram-item.customer {
    background-color: #1a3654;
    color: white;
    border: none;
}

.diagram-item.cloud {
    background-color: #3498db;
    color: white;
    border: none;
}

.diagram-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-item .diagram-item {
    width: 100px;
    margin: 0;
}

.legend-label {
    font-size: 0.9rem;
    color: #1a3654;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .diagram-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .diagram-column {
        width: 100%;
    }

    .diagram-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .legend-item {
        width: 100%;
        justify-content: center;
    }
}

/* アンカーリンクのスクロール調整 */
:target {
    scroll-margin-top: 120px;
}

/* アンカーリンクのハイライト効果 */
:target {
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% {
        background-color: #fff3cd;
    }
    100% {
        background-color: transparent;
    }
}

/* 見出しのリンクアイコン */
.anchor-link {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.8em;
    color: #3498db;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
}

.anchor-link:hover,
.section h2:hover .anchor-link,
.section h3:hover .anchor-link {
    opacity: 1;
    background-color: #f8f9fa;
}

.anchor-link::before {
    content: "🔗";
}

/* コピー成功時のトースト通知 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    transform: none;
    background-color: #40b87c;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0 2px 8px rgba(64, 184, 124, 0.2);
}

.toast.show {
    opacity: 1;
}

/* セキュリティ対策の概要セクション */
.security-measures-overview,
.data-and-communication-protection,
.multilayered-protection,
.availability {
    margin: 2rem 0;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    max-width: 100%;
}

.security-measures-overview img,
.data-and-communication-protection img,
.multilayered-protection img,
.availability img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
    max-height: calc(100vh - 400px); /* ヘッダー、マージン、パディングを考慮した高さ */
    display: block;
    margin: 0 auto;
}

/* 画像ホバー時の拡大表示 */
.security-measures-overview img:hover,
.data-and-communication-protection img:hover,
.multilayered-protection img:hover,
.availability img:hover {
    cursor: pointer;
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* 画像コンテナのスクロール対応 */
.policy-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .security-measures-overview,
    .data-and-communication-protection,
    .multilayered-protection,
    .availability {
        margin: 1rem 0;
        padding: 0.5rem;
    }

    .security-measures-overview img,
    .data-and-communication-protection img,
    .multilayered-protection img,
    .availability img {
        max-height: calc(100vh - 300px);
    }
}

/* 画面サイズが小さい場合の調整 */
@media (max-height: 800px) {
    .security-measures-overview img,
    .data-and-communication-protection img,
    .multilayered-protection img,
    .availability img {
        max-height: calc(100vh - 300px);
    }
}

/* トップレベル概要ページのスタイル */
.top-overview-header {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #1a3654;
}

.overview-title h3 {
    font-size: 1.8rem;
    color: #1a3654;
    margin: 0 0 1rem 0;
}

.overview-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.overview-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.overview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.overview-item h4 {
    font-size: 1.2em;
    margin: 0 0 15px 0;
    color: #333;
    min-height: 3em;
    display: flex;
    align-items: flex-start;
    line-height: 1.5;
}

.overview-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.overview-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    color: #40b87c;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid #40b87c;
    background: linear-gradient(to right, #40b87c 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    position: relative;
    overflow: hidden;
}

.overview-link:hover {
    color: #fff;
    background-position: left bottom;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(64, 184, 124, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .top-overview-header {
        padding: 1.5rem;
    }

    .overview-title h3 {
        font-size: 1.5rem;
    }

    .overview-description p {
        font-size: 1rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: stretch;
        grid-auto-rows: auto;
    }

    .overview-item {
        padding: 1.2rem;
    }
}

/* 改訂履歴のスタイル */
.revision-history {
    margin: 2rem 0;
}

.revision-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.revision-history th,
.revision-history td {
    padding: 1rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.revision-history th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.revision-history td {
    vertical-align: top;
}

.revision-history td ul {
    margin: 0;
    padding-left: 1.5rem;
}

.revision-history td li {
    margin-bottom: 0.5rem;
}

.revision-history td li:last-child {
    margin-bottom: 0;
}

.bullet-list {
    list-style-type: disc !important;
    padding-left: 2em !important;
}

.bullet-list li {
    margin-bottom: 0.5em;
}

/* バレットリストのスタイル */
.section .policy-content ul:not(.bullet-list) {
    list-style-type: none;
    padding-left: 20px;
}

.section .policy-content ul.bullet-list {
    list-style-type: disc !important;
    padding-left: 2em !important;
    margin-bottom: 20px !important;
}

.section .policy-content ul.bullet-list li {
    list-style-type: disc !important;
    display: list-item !important;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* モバイルメニューボタン */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    padding: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* モバイル表示時のスタイル */
@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
        top: 80px; /* ヘッダーの下に配置 */
        right: 20px;
    }

    .side-menu {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 56px);
        background-color: #fff;
        transition: left 0.3s ease;
        z-index: 1002;
        padding: 20px;
        padding-bottom: 120px;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        -webkit-overflow-scrolling: touch;
    }

    .side-menu.active {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .page-header {
        margin-left: 0;
    }

    /* ハンバーガーメニューのアニメーション */
    .mobile-menu-button.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-button.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* メニュー表示時の背景オーバーレイ */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .menu-overlay.active {
        display: block;
    }

    /* メニュー表示時に本文のスクロールを防ぐ */
    body.menu-open {
        overflow: hidden;
    }
}

/* クラウドサービス一覧表のスタイル */
.cloud-service-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    table-layout: fixed; /* 列幅を均等に */
}

.cloud-service-table th,
.cloud-service-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    font-size: 0.9em; /* 文字サイズを小さく */
    word-wrap: break-word; /* 長いテキストを折り返し */
}

.cloud-service-table th {
    background-color: #f8f9fa;
    font-weight: 500;
}

.cloud-service-table td ul.bullet-list {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9em; /* リスト内の文字サイズも調整 */
}

.cloud-service-table td ul.bullet-list li {
    margin-bottom: 5px;
}

.cloud-service-table td ul.bullet-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cloud-service-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cloud-service-table th,
    .cloud-service-table td {
        font-size: 0.85em; /* モバイル表示時の文字サイズをさらに小さく */
        padding: 8px; /* パディングも調整 */
    }
}

/* 画像拡大表示用モーダル */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* モバイル表示時の調整 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 95%;
    }
}

/* ヘッダー直下の空白を消すための調整 */
@media (min-width: 769px) {
  #header-placeholder + * {
    margin-top: 0 !important;
  }
}

@media (max-width: 1024px) {
    body {
        padding-top: 56px;
    }
}

/* 基本方針の署名部分 */
.policy-signature {
    text-align: right;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.policy-signature p {
    margin: 5px 0 !important;
    font-size: 0.9rem !important;
    color: #333 !important;
    font-weight: normal !important;
    line-height: 1.4 !important;
}

/* 認証ヘッダーのスタイル */
.certification-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.certification-header h3 {
    margin: 0;
    flex: 1;
}

.certification-logo-inline {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.certification-logo-inline img {
    max-width: 100px;
    max-height: 75px;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* 画像の拡大表示を防ぐ設定 */
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* モバイル表示時の認証ヘッダー調整 */
@media (max-width: 768px) {
    .certification-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .certification-logo-inline img {
        max-width: 100px;
        max-height: 75px;
    }
}

/* 認証説明文のスタイル */
.certification-description {
    font-size: 0.9em !important;
    line-height: 1.6 !important;
}

/* 認証ロゴリンクのスタイル */
.certification-logo-inline a {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.certification-logo-inline a:hover {
    opacity: 0.8;
}
