/* 全体のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body.light {
    background-color: #f7f7f7;
    color: #333;
}

body.dark {
    background-color: #333;
    color: #f7f7f7;
}

/* コンテナ部分 */
.container {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    text-align: left;
    margin: 10px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.light .container {
    background-color: #ffffff;
}

body.dark .container {
    background-color: #444;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* タイトル */
h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

body.dark h1 {
    color: #fff; /* ダークモード時にタイトル文字を白に */
}

/* 紹介文 */
header p {
    text-align: center;
    font-size: 1em;
    color: #666;
    margin-top: 5px;
    padding-bottom: 20px;
    font-style: italic;
    line-height: 1.5;
    transition: color 0.3s;
}

body.dark header p {
    color: #ddd; /* ダークモード時に紹介文の文字を白に */
}

/* テーマ切り替えボタン */
button {
    display: display: flex;
    justify-content: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #333; /* ダーク背景のボタン */
    color: #fff; /* 白文字 */
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

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

/* セクションのデザイン */
.section {
    background-color: #fafafa;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
    text-align: center;
}

body.light .section {
    background-color: #fafafa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.dark .section {
    background-color: #444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #444;
    transition: color 0.3s;
}

body.light h2 {
    color: #444;
}

body.dark h2 {
    color: #f7f7f7;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.info-item {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

body.light .info-item {
    background-color: #f0f0f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.dark .info-item {
    background-color: #555;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.info-item strong {
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

body.light .info-item strong {
    color: #333;
}

body.dark .info-item strong {
    color: #f7f7f7;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    font-size: 1.1em;
    color: #555;
    margin: 5px 0;
}

header {
    text-align: center;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #888;
}

body.light footer {
    color: #888;
}

body.dark footer {
    color: #ccc;
}

/* 横長のユーザーエージェント */
.info-item.wide {
    grid-column: span 3;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-item {
        font-size: 0.9em;
    }

    h2 {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        font-size: 0.8em;
    }

    h2 {
        font-size: 1.2em;
    }
}
