/** 共通 -------------------------------- */
body {
    width: 60%;
    margin: 0 auto; /* 中央寄せにする */
}

header {
    display: flex;
    width: 88%;
}

/* ヘッダーのスタイル */
body.dark-theme #header-logo {
    color: white;
    text-decoration: none;
}

body.light-theme #header-logo {
    color: black;
    text-decoration: none;
}

header nav {
    margin: auto 0 auto auto;
}

/** ヘッダー */
.menu-icon {
    display: none;
}

.header-menu {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    text-decoration:none;
    margin: 0 20px 0 0;
}

.header-menu li {
    display: inline;
}

.header-menu a {
    color: #133E87;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
}

body.dark-theme .header-menu a:hover {
    background-color: #0d2a5c;
}

body.light-theme .header-menu a:hover {
    color: white;
    background-color: #0d2a5c;
}

/** ヘッダー */

/* Light Theme */
body.light-theme {
    background-color: white;
    color: black;
}

body.dark-theme a {
    color: white;
    font-weight: bold;
}

/* Dark Theme */
body.dark-theme {
    background-color: black;
    color: white;
}

body.light-theme a {
    color: black;
    font-weight: bold;
}

body.dark-theme h1 {
    color: white;
    /* text-indent: 10px; */
}

body.light-theme h1 {
    color: black;
    /* text-indent: 10px; */
}

body.light-theme #color-toggle {
    width: 100px;
    height: 35px;
    border: 5px solid #000; /* 枠を太くする */
    background: white;
    font-weight: bold; /* フォントを太くする */
    cursor: pointer;
    margin: auto 0;
}

body.dark-theme #color-toggle {
    width: 100px;
    height: 35px;
    border: 5px solid white; /* 枠を太くする */
    background: black;
    color: white;
    font-weight: bold; /* フォントを太くする */
    cursor: pointer;
    margin: auto 0;
}

body.light-theme #color-toggle:hover {
    background-color: #8ccaf3;
}
body.dark-theme #color-toggle:hover {
    background-color: #2980b9;
}

body.light-theme input[type="button"] {
    height: 35px;
    margin: 10px 20px 10px 17px;
    border: 5px solid #000; /* 枠を太くする */
    background: white;
    font-weight: bold; /* フォントを太くする */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.dark-theme input[type="button"] {
    height: 35px;
    margin: 10px 20px 10px 17px;
    border: 5px solid white; /* 枠を太くする */
    background: black;
    color: white;
    font-weight: bold; /* フォントを太くする */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

body.light-theme input[type="button"]:hover {
    background-color: #8ccaf3;
}

body.dark-theme input[type="button"]:hover {
    background-color: #2980b9;
}

h2 {
    /* transform: translateX(20px); */
    max-width: 80%;
}

p {
    /* transform: translateX(35px); */
    max-width: 80%;
}

/* ナビゲーションメニューのスタイル */
.nav-menu {
    list-style: none;
    margin: auto 30px auto auto;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-menu li {
    display: inline;
}

.nav-menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    line-height: 1.5; /* 行の高さを1.5倍に設定 */
}

.nav-menu a:hover {
    text-decoration: underline;
}



/** 共通 -------------------------------- */

/** index.html -------------------------------- */
form {
    /* margin-left: 15px; */
}

textarea {
    margin: 10px 20px 10px 17px;
    width: 86%;
    height: 150px;
    border: 5px solid #000;
}
pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
}

#doFormatJson {
    width: 87%;
}

/* JSON出力コンテナのスタイル */
#jsonOutputContainer {
    margin-top: 10px;
    display: none;
    width: 98%;
}

#copyJsonButton {
    margin-top: 10px;
    margin-left: 15px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#copyJsonButton:hover {
    background-color: #0056b3;
}

/* JSON シンタックスハイライト用スタイル */
pre#jsonOutput {
    background-color: #f4f4f4;
    color: black;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow-x: auto;
    width: 87%;
    margin: 10px 20px 10px 17px;
}

pre#jsonOutput .string {
    color: #0b7500;
}

pre#jsonOutput .number {
    color: #1c00cf;
}

pre#jsonOutput .boolean {
    color: #aa0d91;
}

pre#jsonOutput .null {
    color: #808080;
}

pre#jsonOutput .key {
    color: #a31515;
}

/* コピー成功時の通知スタイル */
#copyNotification {
    position: absolute;
    bottom: 4%; /* ボタンの上側に配置 */
    left: 1%;
    transform: translateX(-50%) translateY(-5px); /* 中央揃えと少し上に移動 */
    background-color: #4caf50;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    display: none; /* 初期状態は非表示 */
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0; /* 初期状態は透明 */
    transition: opacity 0.3s ease, transform 0.3s ease; /* アニメーション */
    text-align: center; /* 文言を中央寄せ */
}

/* 突起部分（吹き出しの矢印） */
#copyNotification::before {
    content: '';
    position: absolute;
    top: 100%; /* 吹き出しの下側に突起を表示 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #4caf50 transparent transparent transparent; /* 矢印の色 */
}

/* エラー時の通知スタイル */
#copyNotification.error {
    background-color: #f44336; /* 赤色 */
}

#copyNotification.error::before {
    border-color: #f44336 transparent transparent transparent; /* 矢印の色 */
}

/* ボタンの親要素を相対位置に設定 */
#jsonOutputContainer {
    position: relative;
}

/* 表示時のアニメーション */
#copyNotification.show {
    display: block; /* 表示 */
    opacity: 1; /* 不透明にする */
    transform: translateY(-50%) translateX(0); /* 元の位置に戻す */
}

/* JSON保存ボタンのスタイル */
#saveJsonButton {
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #19c879;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/** index.html -------------------------------- */