/* Google Fontsのインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

#wrapper {
    max-width: 960px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#top-header-original {
    background-color: #003366; /* 濃い青 */
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 20px;
}

#top .infomation {
    text-indent: 0 !important;
    background-color: #fff0f5; /* 薄いピンク */
    border: 1px solid #ffc0cb; /* ピンク */
    padding: 15px;
    text-align: center;
    font-weight: bold;
}

.section {
    margin-bottom: 40px;
}

.section h1 {
    font-size: 1.8em;
    color: #003366;
    border-bottom: 3px solid #003366;
    padding-bottom: 10px;
    padding-left: 5px;
    margin-bottom: 20px;
}

.section h2 {
    font-size: 1.5em;
    color: #0056b3; /* 明るい青 */
    margin-top: 40px;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left:#0056b3 5px solid;
}

.section h3 {
    font-size: 1.2em;
    color: #007bff; /* 青 */
    margin-top: 30px;
    margin-bottom: 10px;
}

.section .contents {
    padding: 0 20px;
}

.section .contents p {
    margin-bottom: 1em;
    text-indent: 1em;
}

.section .contents ul, .section .contents ol {
    padding-left: 2em;
}

.section .contents li {
    margin-bottom: 0.5em;
}

code {
    /* font-size: 1.1em; */
    padding: 3px;
    border-radius: 5px;
    background-color: #f4f4f4;
}

/* リンク */
a {
    color: #0056b3; /* 少し明るい青 */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.table-wrapper {
    overflow-x: auto;
}


/* 特殊クラス */
.alert {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    text-indent: 0 !important;
}

.caution {
    font-weight: bold;
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
}

.caution strong {
    font-size: 1.2em;
    text-decoration: underline;
    color: #856404;
    margin-bottom: 8px;
}

.notice {
    text-align: center;
    text-indent: 0 !important;
    background-color: #e8f5e8;
    border: 2px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    line-height: 1.6;
}

.notice strong {
    font-size: 1.2em;
    text-decoration: underline;
    color: #2e7d32;
    margin-bottom: 8px;
}

.form-link {
    text-align: center;
    margin: 30px 0;
    text-indent: 0 !important;
}

.form-link a {
    display: block;
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.form-link a:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.form-link a[disabled] {
    background-color: #aaa;
    cursor: not-allowed;
}

.form-link a strong {
    font-size: 1.2em;
    text-decoration: underline;
}

.domain::before {
    content: "@";
}
.domain {
    font-family: sans-serif;
}


/* フッター */
footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background-color: #f2f2f2;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #666;
}

/* スティッキーヘッダー */
header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0;
}

header.sticky .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header.sticky .site-title {
    margin: 0;
    font-size: 1.5rem;
}

header.sticky .site-title a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

header.sticky nav ul {
    font-size: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header.sticky nav li {
    margin-left: 20px;
}

header.sticky nav a {
    text-decoration: none;
    color: #005a9c;
    font-weight: 500;
    padding: 25px 0;
    display: block;
    position: relative;
}

header.sticky nav a::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #005a9c;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

header.sticky nav a:hover::after,
header.sticky nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

body {
    padding-top: 6rem;
    padding-bottom: 1rem;
}

@media (max-width: 1024px) {
    header.sticky nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    header.sticky nav.active {
        display: block;
    }

    header.sticky nav ul {
        flex-direction: column;
        width: 100%;
    }

    header.sticky nav li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    header.sticky nav a {
        padding: 15px 0;
    }
    
    header.sticky nav a::after {
        bottom: 10px;
    }

    .menu-toggle {
        display: block; /* Show on mobile */
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    body {
        padding-top: 4rem; /* Adjust for sticky header */
    }
}

@media screen and (max-width: 768px) {
    #wrapper {
        padding: 10px;
    }

    header {
        font-size: 1.2em;
    }

    .section h1 {
        font-size: 1.5em;
    }

    .section .contents {
        padding: 0 10px;
    }

    th, td {
        padding: 8px;
    }

    .form-link a {
        padding: 12px 20px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }

    #wrapper {
        width: 100%;
        box-sizing: border-box;
        padding: 5px;
    }
    
    header {
        font-size: 1.1em;
        padding: 15px;
    }

    .section h1 {
        font-size: 1.3em;
    }

}

.site-title > a::before {
    content: "";
    display: inline-block;
    vertical-align: -0.85rem;
    width: 2em;
    height: 2em;
    background: url('cn-logo.png') no-repeat center/contain;
    margin-right: 0.5em;
    margin-left: -0.2em;
}
