
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}


h1, h2, h3 {
    font-family: 'Sawarabi Mincho', sans-serif;
}
.header-background {
    background-image:  url('img/header_back.jpg');
    background-size: cover;
    height: 110px;
    width: 100%;
    text-align: center;
}

.logo {
    font-size: 4em;
    font-weight: bold;
    line-height: 110px;
    margin:0;
}

nav {
    display: flex;
    justify-content: center;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
    width: 100%;
}
h1 a{
	color:#000;
}

nav a {
    color: #555;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 18px;
}


nav a:hover {
    color: #000;
}



.hero-image img {
    
    object-fit: cover;
    background-position: top right;
    height: 600px;
    width: 100%;
}

.hero-second-image img {
    
    object-fit: cover;
    background-position: top right;
    height: 200px;
    width: 100%;
}

.shoshin-title{
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}


.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px;
}

.admin-link {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.2;
    font-size: 12px;
    color: #000;
    text-decoration: none;
}


section h2 {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

section h3{
    color: #000;
    padding: 10px 0;
    margin: 0;
    text-align: center;
    width: 100%;
    font-size: 20px;

}

.news-content{
text-align: center;
}

.news-content img{
  width: 50%;
  height: 50%;

}


.aisatsu-name {
    text-align: right; /* テキストを右寄せにする */
}

  .certificate-container-child {
            max-width: 1080px; /* コンテンツ全体の最大幅を1080pxに設定 */
            margin: 0 auto;
        }

        .certificate-container {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
        }

        .certificate-item {
            width: 45%;
            box-sizing: border-box;
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
        }

        .certificate-item img {
            width: 100%;
            height: auto;
            max-width: 400px; /* 調整可能な最大幅 */
            margin: 0 auto 10px;
        }

        .news-item {
            width: 50%;
            box-sizing: border-box;
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
        }


        .news-item img {
            width: 80%; /* お好みの幅を指定 */
            height: auto; /* 高さは自動にして、元の比率を保持 */
            object-fit: contain; /* 画像の縦横比を保ちながら枠内に収める */
        }


        .zyukou-item {
            width: 45%;
            box-sizing: border-box;
            padding: 20px;
            margin-bottom: 20px;
            text-align: center;
        }


        .zyukou-item img {
            width: 300px; /* お好みの幅を指定 */
            height: 300px; /* 幅と同じ高さに指定して正方形にする */
            object-fit: cover; /* 画像の縦横比を保ちつつ、枠内に収める */
        }

.certificate-container-child{
    max-width: 1000px;
    margin:0 auto;
}




section .container .content {
    display: flex;
    align-items: flex-start;
}

section .container .content .content-left {
    flex: 1;
    padding: 20px;
    max-width: 700px; /* 読みやすい幅に固定 */
    line-height: 1.8; /* 行間を調整 */
    font-size: 18px;
    font-weight: 400;
}

section .container .content .content-right {
    flex: 1;
    padding: 20px;
    margin: 20px 0 0 20px;
}

section .container .content img {
    width: 100%;
}

section .container .content .content-right img {
    max-width: 550px; /* 調整可能な最大幅 */
    max-height: 350px; /* 調整可能な最大高さ */
    width: auto; /* 幅の自動調整 */
    height: auto; /* 高さの自動調整 */
    display: block;
    margin: 0 auto;
}

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

.container-search {
    text-align: center;
}


.result-item {
    margin: 10px 0;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

input[type="text"] {
    width: 80%;
    padding: 10px;
    margin-bottom: 10px;
}

input[type="submit"] {
    padding: 10px 20px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px;
    width: 300px;
    text-align: center;
}

.card img {
    width: 100%;
    height: auto;
}

.card-content {
    padding: 20px;
}

.card-button {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.card-button button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #007BFF;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card-button button:hover {
    background-color: #0056b3;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input {
    width: 100%;
    max-width: 300px;
    height: 40px;
    box-sizing: border-box;
}

form label {
    margin-top: 10px;
}

button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.moushikomi-form {
    text-align: left;
    border: 1px solid #000;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moushikomi-form form {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.moushikomi-form label {
    margin: 10px 0 5px;
    width: 80%;
}

.moushikomi-form input, .moushikomi-form textarea {
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    width: 80%;
    box-sizing: border-box;
}

.moushikomi-form input[type="radio"] {
    width: auto;
}

.moushikomi-form button {
    padding: 10px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.moushikomi-form button:hover {
    background-color: #555;
}

.required {
    color: red;
}

button:hover {
    background-color: #555;
}


.digital-shoshin-item {
    position: relative;
 
    justify-content: center; /* 中央寄せ */
    align-items: center; /* 縦中央寄せ */
    margin: 20px 0;
    text-align: center;
}

/* 画像の幅を100%に設定 */
.digital-shoshin-item img {
    width: 50%; /* デフォルトの幅 */
    height: auto;
    display: inline-block; /* インライン要素として扱い、text-alignの影響を受ける */
    margin: auto; /* 水平方向の中央寄せ */
}



.digital-shoshin-item .delete-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.digital-shoshin-item.drag-over {
    border-color: #3498db;
}

.digital-shoshin-left {
    flex: 1;
}

.digital-shoshin-toc {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.digital-shoshin-toc h3 {
    text-align: center;
    margin-bottom: 20px;
}

.digital-shoshin-toc ul {
    list-style-type: none;
    padding: 0;
}

.digital-shoshin-toc ul li {
    margin: 10px 0;
}

.digital-shoshin-toc ul li a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

.digital-shoshin-toc ul li a:hover {
    color: #0056b3;
}

.cover-image {
    text-align: center;
    margin-top: 20px;
}

.cover-image img {
    width: 100%; /* サイドバーの幅に合わせる */
    height: auto;
    max-width: 200px; /* 必要に応じて最大幅を調整 */
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
/* style.css */

.seiseki-list
{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.seiseki-list table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    text-align: center;
}

.seiseki-list th, table.seiseki-list td {
    border: 1px solid #ddd;
    padding: 8px;
}

.seiseki-list th {
    background-color: #f2f2f2;
}

.seiseki-list tr:nth-child(even) {
    background-color: #f9f9f9;
}

.seiseki-list tr:hover {
    background-color: #f1f1f1;
}


/* 検索ボックスおよびボタンのスタイル */
.container-search {
    text-align: center;
    margin-bottom: 20px;
}

.container-search select {
    padding: 10px;
    margin: 5px;
    font-size: 16px;
}

.container-search input[type="text"] {
    width: 50%; /* テキストボックスの幅を50%に設定 */
    padding: 10px;
    margin: 5px;
    font-size: 16px;
    display: inline-block; /* インラインブロックに設定 */
}

.container-search button {
    padding: 10px;
    margin: 5px 0 5px 20px; /* 左側に20pxのマージンを追加 */
    font-size: 16px;
    display: inline-block; /* インラインブロックに設定 */
}

.container-search p {
    margin-top: 10px; /* 上側に少しスペースを追加 */
    font-size: 14px; /* フォントサイズを少し小さくする */
}

/* アップロードフォームのスタイル */
#uploadForm {
    text-align: center; /* フォームを中央揃え */
    margin-top: 20px; /* 上側に少しスペースを追加 */
}

#uploadForm input[type="file"] {
    display: inline-block;
    margin: 10px 0;
}

#uploadForm button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

#uploadForm button:hover {
    background-color: #0056b3;
}


.seiseki-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}


.seiseki {
    list-style: none; 
    padding: 0;
    text-align: center; 
}

/* アコーディオンスタイル */
.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    margin-top: 10px;
}

.active, .accordion:hover {
    background-color: #ccc;
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border: 1px solid #ddd;
    position: relative;
}

.delete-section-btn {
    background-color: #ff4d4d; /* 赤色 */
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
    position: absolute;
    right: 10px;
    top: 10px;
}

.delete-section-btn:hover {
    background-color: #cc0000; /* 濃い赤色 */
}


/* モーダルウィンドウのスタイル */
.modal {
    display: none; /* デフォルトでは非表示 */
    position: fixed; /* 固定位置に配置 */
    z-index: 1; /* 他のコンテンツの上に表示 */
    left: 0;
    top: 0;
    width: 100%; /* 全画面幅 */
    height: 100%; /* 全画面高さ */
    overflow: auto; /* スクロールが必要な場合に備える */
    background-color: rgb(0, 0, 0); /* 背景色 */
    background-color: rgba(0, 0, 0, 0.4); /* 背景色の透明度 */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 上下のマージンを調整 */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* 幅を調整 */
    max-width: 600px; /* 最大幅を設定 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* シャドウを追加 */
    border-radius: 10px; /* 角を丸める */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-form label {
    display: inline-block;
    width: 80px; /* 任意の幅を指定 */
    vertical-align: top;
    margin-bottom: 10px;
}

.modal-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.modal-form .form-group input,
.modal-form .form-group textarea {
    width: calc(100% - 160px); /* インプットの幅を調整 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}


#accessModal .modal {
    display: none; /* デフォルトでは非表示 */
    position: fixed; /* 固定位置に配置 */
    z-index: 1; /* 他のコンテンツの上に表示 */
    left: 0;
    top: 0;
    width: 50%; /* 全画面幅 */
    height: 100%; /* 全画面高さ */
    overflow: auto; /* スクロールが必要な場合に備える */
    background-color: rgb(0, 0, 0); /* 背景色 */
    background-color: rgba(0, 0, 0, 0.4); /* 背景色の透明度 */
}

#accessModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 上下のマージンを調整 */
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* 幅を調整 */
    max-width: 400px; /* 最大幅を設定 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* シャドウを追加 */
    border-radius: 10px; /* 角を丸める */
}

#accessModal .modal-form label {
    display: inline-block;
    width: 25%; /* 任意の幅を指定 */
    vertical-align: middle;
    margin-bottom: 10px;
}

#accessModal .modal-form .form-group input {
    width: 80%; /* インプットの幅を調整 */
    box-sizing: border-box; /* パディングを含めて幅を計算 */
    height: 30px; /* 任意の高さを指定 */
}



.modal-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap; /* フッター内の要素をラップする */
}

.modal-footer button {
    margin-top: 20px;
    margin-left: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-footer .save-btn {
    background-color: #28a745;
    color: white;
}

.modal-footer .save-btn:hover {
    background-color: #218838;
}

.modal-footer .cancel-btn {
    background-color: #6c757d;
    color: white;
}

.modal-footer .cancel-btn:hover {
    background-color: #5a6268;
}

.modal-footer.delete-footer {
    justify-content: left; /* 削除ボタンを中央に配置 */
    margin-top: 50px; /* 削除ボタンを他のボタンから離す */
}

.modal-footer .delete-btn {
    background-color: red;
    color: white;
}

.modal-footer .delete-btn:hover {
    background-color: darkred;
}



.seiseki-list {
    margin: auto;
    width: 80%;
    border-collapse: collapse;
}

.seiseki-list th, .seiseki-list td {
    border: 1px solid #ddd;
    padding: 8px;
}

.seiseki-list th {
    text-align: left;
    background-color: #f2f2f2;
}

.edit-button {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}


.access-container {
    text-align: center;
    margin: 20px auto;
    width: 80%;
}

.access-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

.access-container p {
    margin-top: 20px;
    font-size: 16px;
}


footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
}

.container-main {
    display: flex;
    flex: 1;
}

.side-nav {
    width: 200px;
    background-color: #000;
    color: #fff;
    padding: 10px;
    box-sizing: border-box;
    height: 100vh;
}

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

.side-nav ul li {
    margin: 10px 0;
}

.side-nav ul li a {
    color: #fff;
    text-decoration: none;
}

.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.edit-container {
    display: flex;
    flex: 1;
}

.edit-side {
    width: 20%;
    background-color: #000;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    height: fit-content;
    align-self: flex-start;
    min-height: 100vh; /* 最小高さを指定 */
}

.edit-side h3 {
text-align: center;

}

.edit-side a {
color: #fff; /* リンクの色 */
text-decoration: none;
padding: 10px;
display: block;
}

.edit-side a:hover {
color: #007BFF; /* ホバー時のアクセントカラー（青） */
}

.edit-body {
    width: 80%;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
    overflow: auto; /* コンテンツが多い場合のスクロールを可能に */
}

        .mfp-bg {
            cursor: pointer;
        }
        .mfp-wrap.mfp-zoom-out-cur .mfp-content {
            transform: scale(2); /* 拡大率を調整 */
            transform-origin: top center;
        }
        .mfp-zoom-out-cur .mfp-figure {
            overflow: auto;
        }
        .mfp-zoom-out-cur .mfp-img {
            max-width: none; /* 画像の最大幅を制限しない */
            width: auto; /* 画像の幅を自動にする */
        }
        .mfp-wrap {
            overflow: auto !important; /* 拡大時のスクロールを有効にする */
        }

.container-kanri {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.digital-shoshin-upload {
    margin-bottom: 20px;
}

.digital-shoshin-list .issue-item {
    border: 1px solid #000;
    padding: 10px;
    margin-bottom: 10px;
}

.input-group {
    margin-top: 20px;
}

.input-group select,
.input-group button {
    font-size: 16px;
    padding: 10px;
    margin-right: 10px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.issue-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    min-width: calc(33.333% - 20px);
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.issue-item .input-group label{
    width: 30%; /* ラベルと入力フィールドをカード内に収める */
}
.issue-item .input-group input {
    width: 100%; /* ラベルと入力フィールドをカード内に収める */
}



.issue-item p {
    font-size: 1em;
    margin: 0 0 10px 0;
}

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

.thumbnail img {
    width: 100%;
    max-width: 150px;
    height: auto;
}

.control-group {
    margin: 10px 0;
}

.input-group {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group label input {
    width: 100%;
    margin-right: 10px;
    min-width: 80px;
    text-align: left;
}

.access-input {
    padding: 5px;
    font-size: 14px;
    width: 100%;
    max-width: 200px;
    box-sizing: border-box;
}

.upload_modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.upload_modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.upload_modal-content p {
    margin: 0;
    font-size: 1.2em;
}

.issue-item button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px 10px;
}

.issue-item button:hover {
    background-color: #0056b3;
}

.button-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 20px 0;
}

.button-container button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.button-container button:hover {
    background-color: #0056b3;
}

.button-container a {
    color: white;
    text-decoration: none;
}

.issue-item .delete-btn {
    background-color: #ff4d4d;
    color: #fff;
}

.issue-item .delete-btn:hover {
    background-color: #cc0000;
}

.input-group .pdf-button {
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.pdf-button:hover {
    background-color: #333;
}

.scroll-top-button {
    display: none; /* デフォルトは非表示 */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    background-color: #555;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
}

.scroll-top-button:hover {
    background-color: #333;
}

.hidden-list {
    display: none; /* 非表示にするスタイル */
}

.unesco-logo {
  width: 300px; /* 必要に応じてサイズ調整 */
}






@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    nav a {
        font-size: 14px;
        padding: 10px;
    }

    .container {
        padding: 10px;
    }
}
