/* 共通スタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode {
    background-color: #000 !important;
    color: #f0f8ff !important;
}

.special-item {
    padding: 5px;
    margin: 5px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    background-color: #f0e8f9;
    border-radius: 5px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

header {
    display: flex;
    justify-content: flex-start; /* ロゴを左寄せ */
    align-items: center;
    background-color: #a672ff5c;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    box-sizing: border-box;
    padding: 0 1rem;
}

header .logo {
    display: flex;
    align-items: center;
}

header .logo img {
    max-width: 200px;
    height: auto;
    display: block;
    max-height: 48px;
}

@media (max-width: 768px) {
    header {
        height: 50px;
        padding: 0 0.5rem;
    }

    header .logo img {
        max-width: 150px;
        max-height: 36px;
    }
}

/* メインコンテンツの調整 */
main {
    padding: 2rem;
    margin-top: 70px; /* ヘッダーの高さに合わせて調整（ヘッダーの高さ ≈ 1rem * 2 + フォントサイズなど） */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

hr {
    border: 1px solid #ccc;
    margin: 20px 0;
}

a {
    text-decoration: none;
    color: #2eeb21;
}

.BLACK {
    color: black;
}

.White {
    color: white;
    text-decoration: none;
}

/* フッターのスタイル */
footer {
    background-color: #4D4D4D;
    color: white;
    padding: 1rem;
    font-size: 0.9em;
    position: relative;
    bottom: 0;
    width: auto;
}

footer .footer-content {
    line-height: 2.1 !important; /* CSS1に合わせて行間を統一 */
    color: white;
    margin: 0 auto;
}

footer .footer-content a {
    display: block;
    margin-bottom: 10px; /* CSS1に合わせてリンクの間隔を調整 */
    color: white;
    text-decoration: none;
}

footer .footer-content p {
    margin: 10px 0;
    line-height: 2.1; /* 段落の行間も統一 */
}

/* ボタンコンテナ */
#buttonContainer {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#copyButton, #tweetButton {
    font-size: 20px;
    padding: 5px 0;
    width: 50%;
    cursor: pointer;
}

/* ベースのスタイル */
.ojisan-tool {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ojisan-tool h2, .ojisan-tool h4 {
    color: #333;
    border-left: 4px solid #3f51b5;
    padding-left: 8px;
    margin-bottom: 10px;
}

.ojisan-tool p {
    background-color: #ffffff;
    border-left: 3px solid #ffca28;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ojisan-tool ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.ojisan-tool ol li {
    margin: 10px 0;
}

.ojisan-tool button {
    background-color: #3f51b5;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.ojisan-tool button:hover {
    background-color: #303f9f;
}

.ojisan-tool button:active {
    background-color: #1c2857;
}

#copyButton, #tweetButton {
    background-color: grey;
    color: white;
    cursor: not-allowed;
}

#copyButton.enabled, #tweetButton.enabled {
    background-color: #4b51ff;
    color: white;
    cursor: pointer;
}

/* アコーディオンボタンのスタイル */
.accordion {
    background-color: #ffee6c;
    color: #444;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background-color 0.2s ease;
}

.accordion-content {
    padding: 0 15px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;
}

.accordion:hover {
    background-color: #ffee6cc8;
}

#button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none;
}

#scroll-to-top-button {
    background-color: #8170ff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#scroll-to-top-button.show {
    display: flex;
}

#scroll-to-top-button:not(.show) {
    display: none;
}

.container {
    background-color: #f7f7f7;
    padding: 20px;
    margin: 0 auto;
}

.fontBold {
    font-weight: bold;
}

.font15 {
    font-size: 1.5em;
}

.mb30 {
    margin-bottom: 30px;
    font-size: 0.9em;
}

ul.mb30 {
    color: #555;
    line-height: 1.5;
    margin-bottom: 30px;
    font-size: 0.9em;
}

/* 特定性を高めるために必要に応じて */
.special-item .mb30 {
    font-size: 0.9em;
}

.special-item h2 {
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

p {
    color: #555;
    line-height: 1.5;
}

.listDot {
    margin-left: 20px;
}

/* テーブル関連のスタイル（修正済み） */
.basicTable {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%; /* 画面幅を超えないように */
    overflow-x: auto; /* 横スクロールを有効化 */
    display: block; /* スクロール可能にするためにブロック要素化 */
}

.basicTable table {
    width: 100%;
    table-layout: auto; /* セルの幅を内容に応じて調整 */
}

.basicTable th,
.basicTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word; /* 長いテキストを折り返す */
}

.basicTable th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.basicTable td ul.indent01 {
    margin: 0;
    padding-left: 20px; /* リストのインデントを抑える */
}

.basicTable tr:hover {
    background-color: #e9e9e9;
}

/* スマートフォン用の調整 */
@media screen and (max-width: 600px) {
    .basicTable {
        font-size: 0.9em; /* フォントサイズを小さく */
    }
    .basicTable th,
    .basicTable td {
        padding: 6px; /* パディングを小さく */
    }
}