@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* 全体のスタイル設定 */
body {
    font-family: 'Noto Sans JP', sans-serif; /* フォントファミリーを源ノ角ゴシックに設定 */
    margin: 0;
    padding: 0;
    background: #1e1e2f; /* 背景色 */
    color: #e0e0e0; /* 文字色 */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ビューポートの高さに合わせる */
}

/* ヘッダーのスタイル設定 */
header {
    background: rgba(45, 45, 58, 0.9); /* 半透明な背景色 */
    color: #e0e0e0;
    padding: 15px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* ヘッダーのシャドウ */
    backdrop-filter: blur(8px); /* 背景のぼかし効果 */
}

/* ヘッダー内のリンクスタイル */
header h1 a {
    color: #e0e0e0;
    text-decoration: none;
}

/* ナビゲーションリンクの基本スタイル */
nav {
    margin: 10px 0;
}

nav a {
    color: #e0e0e0;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 5px 0;
    transition: color 0.3s ease, background-color 0.3s ease; /* 色と背景色の遷移をスムーズに */
    border-radius: 5px; /* 角を丸くする */
    
}

/* マウスオーバー時のメニューリンクのスタイル */
nav a:hover {
    background-color: rgba(51, 150, 255, 0.103); /* ホバー時の背景色（青に近い色） */
}

/* アクティブなメニューリンクに下線を追加 */
nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0; /* 初期状態では下線を表示しない */
    height: 2px;
    background-color: #007BFF;
    border-radius: 10px;
    transition: width 0.3s ease, left 0.3s ease; /* 横にスワイプするアニメーション */
}

/* アクティブなメニューリンクに下線を追加 */
nav a.active::after {
    width: 100%; /* 下線の幅をリンク全体に */
    left: 0; /* 左端からスタート */
}

/* 非アクティブなメニューリンクをクリックした際のスタイル */
nav a:not(.active)::after {
    width: 0; /* 非アクティブなリンクの下線は非表示 */
}

/* メインコンテンツのスタイル設定 */
main {
    padding: 30px; /* 上下のパディングを30pxに設定 */
    margin: 200px 20px 60px; /* 上のマージンを200px、下のマージンを60pxに設定 */
    @media screen and (min-width: 1024px) {
        width: 800px;
      }
    
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    flex: 1; /* メインコンテンツが可変高さになるように設定 */
    background: rgba(45, 45, 58, 0.8); /* 半透明な背景色 */
    border-radius: 8px; /* 角を丸くする */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* 青みがかったシャドウ */
}

/* セクションのスタイル設定 */
section {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* 青みがかったシャドウ */
}

/* セクションの背景色設定 */
main section:nth-of-type(odd) {
    background: rgba(50, 50, 70, 0.9); /* 奇数番目のセクションの色 */
}
main section:nth-of-type(even) {
    background: rgba(60, 60, 80, 0.9); /* 偶数番目のセクションの色 */
}

/* 記事のスタイル設定 */
article {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* 強調されたシャドウ */
}

/* 記事の背景色設定 */
main article:nth-of-type(odd) {
    background: rgba(55, 55, 75, 0.9); /* 奇数番目の記事の色、mainより少し明るい */
}
main article:nth-of-type(even) {
    background: rgba(65, 65, 85, 0.9); /* 偶数番目の記事の色、mainより少し明るい */
}

/* ソフトウェア情報のスタイル設定 */
.software-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.software-image {
    max-width: 200px; /* 最大幅を設定 */
    height: auto; /* 高さは自動調整 */
    border-radius: 10px; /* 角を丸くする */
    object-fit: cover; /* コンテンツを保持しながらサイズ変更 */
}

/* ボタンのスタイル設定 */
a.btn {
    all: unset;
    display: inline-block;
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 10px;
    background: #4e89e2; /* 青寄りのグレー */
    color: #e0e0e0; /* ボタンの文字色 */
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* ボタンのシャドウ */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 背景色とシャドウの遷移をスムーズに */
}
a:visited.btn {
    all: unset;
    display: inline-block;
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 10px;
    background: #4e89e2; /* 青寄りのグレー */
    color: #e0e0e0; /* ボタンの文字色 */
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* ボタンのシャドウ */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* 背景色とシャドウの遷移をスムーズに */
}
a.btn:hover {
    text-decoration: none;
    background: #83a8dbe7; /* ホバー時の背景色（青寄りのグレー） */
}

/* フッターのスタイル設定 */
footer {
    background: rgba(45, 45, 58, 0.9); /* 半透明な背景色 */
    color: #e0e0e0;
    text-align: left; /* コピーライトを左寄りに配置 */
    padding: 15px 20px;
    position: relative; /* 相対位置 */
    margin-top: auto; /* メインコンテンツの下にフッターを配置 */
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-content p {
    font-size: 12px; /* フッターの文字サイズを小さくする */
}

/* レスポンシブデザインのためのメディアクエリ */
@media (max-width: 600px) {
    nav {
        font-size: 14px;
    }
    .software-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* details 要素のカスタムスタイル */

/* details 全体 */
details {
    margin: 15px 0;
    border-radius: 8px;
    background: rgba(45, 45, 60, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* summary（見出し） */
details > summary {
    cursor: pointer;
    padding: 12px 16px;
    font-weight: bold;
    color: #d8dbe6;
    background: rgba(55, 55, 70, 0.9);
    list-style: none;
    position: relative;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* デフォルト三角マークを消す */
details > summary::-webkit-details-marker {
    display: none;
}

/* 開閉アイコン */
details > summary::after {
    content: "▶";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #aab0c5;
    transition: transform 0.25s ease;
}

/* 開いた状態 */
details[open] > summary {
    background: rgba(65, 65, 80, 0.95);
    color: #f0f2f8;
}

/* 開いたときのアイコン */
details[open] > summary::after {
    content: "▼";
}

/* 中身 */
details > *:not(summary) {
    padding: 14px 16px;
    background: rgba(50, 50, 65, 0.95);
    
    line-height: 1.65;
}

/* 中の code（控えめ） */
details code {
    background: rgba(30, 30, 40, 0.9);
    color: #b8c6e0;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 通常のリンク */
main a {
    color: #70cdff;              /* 青みを抑えたリンク色 */
    text-decoration: none;
}

/* ホバー・フォーカス時 */
main a:hover,
main a:focus {
    color: #c7d2f0;               /* 少しだけ明るく */
    text-decoration: underline;
    text-decoration-color: rgba(199, 210, 240, 0.7);
}

/* 訪問済みリンク */
main a:visited {
    color: #5398bd;            /* 紫寄りにならないよう抑制 */
}

/* フッター内のリンクは控えめ */
footer a {
    color: #9aa0b5;
}
footer a:hover {
    color: #cfd3e6;
}
/* details 内の段落の余白を制御 */
section.update-log h2,
section.update-log h4,
section.update-log h3,
section.update-log ul,
section.update-log ol,
section.update-log p {
    color: #e0e0e0;
    margin: 0px;
}

section.update-log p {
padding-top: 0px;
padding-bottom: 0px;
}

details h3 {
    font-size: 1.5em;
    padding-top: 14px;
    padding-bottom: 6px;
}
details h4 {
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 1.15em;
}
section.update-log ul{
    padding-top: 3px;
    padding-left: 32px;
}

section p {
    margin-top: 6px;
    margin-bottom: 24px;
}
section h3 {
    margin: 3px;
    font-size: 1.4em;
}
section ul {
    padding-left: 16px;
}