/* css/style.css - Modified to meet the website specifications */

html,
body {
    min-height: 100%;
    /* 最小の高さをビューポートの高さに設定 */
    margin: 0;
    /* 余白をリセット */
    padding: 0;
    /* パディングをリセット */
    overflow-y: auto;
    /* 必要に応じて垂直スクロールバーを表示 */
}

html {
    min-height: 100%;
    /* HTMLの最小の高さをビューポートの高さに設定 */
    padding-top: 10px;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-size: 18px;
    padding-bottom: 60px;
    background-image: url('../img/wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: black;
    /* 黒は背景画像が読み込まれるまでのデフォルト色として残す */
    color: white;
    font-family: Arial, sans-serif;
    /* Arial, sans-serif を優先する */
    text-align: center;
    line-height: 1.6;
    /* 行間を追加 */
}

/* 特定のページ用の背景画像設定 */
.unique-background001 {
    background-image: url('../img/washi_001.jpg');
    /* 特定のページ用の背景画像 */
    color: black;
}

#container {
    width: 80%;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.7);
    /* Semi-transparent rectangle for text */
    padding: 20px;
    border-radius: 10px;
    padding-bottom: 50px;
    /* フッター用の追加パディング */
}

.spacer {
    margin-top: 1em;
    /* 上の空白 */
    margin-bottom: 1em;
    /* 下の空白 */
    height: 1px;
    /* 最小の高さを設定 */
}

#unique-container001 {
    width: 80%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.7);
    /* Semi-transparent rectangle for text */
    padding: 20px;
    border-radius: 10px;
    padding-bottom: 50px;
    /* フッター用の追加パディング */
}

#vertical-unique-container001 {
    width: 80%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 10px;
    padding-bottom: 50px;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    overflow-x: scroll; /* 横方向スクロールを常に有効に */
    white-space: normal; /* テキストが折り返さないようにする */
    padding: 20px;
    box-sizing: border-box;
    line-height: 1.6em;
    width: 100%; /* 必要に応じて調整 */
    height: calc(1.6em * 30); /* 一行当たりの文字数を制御するための高さ*/
}

.vertical-spacer {
    margin-left: 1em; /* 左の空白 */
    margin-right: 1em; /* 右の空白 */
    width: 1px; /* 最小の幅を設定 */
    height: auto; /* 高さを自動調整 */
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

header h1 {
    animation: blink 1s linear infinite;
    color: red;
}

header h2 {
    color: black;
}

header h3 {
    color: white;
}

nav ul {
    list-style-type: none;
}

nav a {
    color: green;
}

nav ul li {
    margin: 10px 0;
}

a {
    color: white;
    text-decoration: none;
    font-size: 20px;
}

/* リンクにマウスオーバーした際のスタイル */
a:hover {
    text-decoration: underline;
    /* アンダーラインを追加 */
}

@media screen and (max-width: 600px) {
    #container {
        width: 100%;
    }
}

#twitter-link {
    margin-top: 20px;
}

#twitter-link a {
    color: #1DA1F2;
    /* Twitter's brand color */
    font-size: 18px;
    font-weight: bold;
}

#twitter-link a:hover {
    color: #0d8af0;
}

nav ul li a {
    color: green;
    /* Green color for item links */
}

header h1 {
    color: red;
    /* Red color for the title */
    font-style: italic;
    /* Making it look a bit mysterious */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

header h1 {
    animation: pulse 2s infinite;
}

header h1 {
    animation: blink 1s linear infinite;
}

.back-to-top a {
    color: blue;
    /* リンクの色 */
    text-decoration: none;
    /* 下線を消す */
}

ul {
    padding-left: 20px;
    /* リストの左パディングを設定 */
}

ul li {
    margin-bottom: 0.5rem;
    /* リストアイテムの下のマージンを設定 */
}

/* レスポンシブデザイン対応 */
@media screen and (max-width: 600px) {
    body {
        font-size: 14px;
        /* スクリーンが小さい場合のフォントサイズを小さく設定 */
    }
}

/* テキストのスタイル調整 */
p {
    margin-bottom: 1rem;
    /* 段落の下のマージンを設定 */
    max-width: 800px;
    /* 最大幅を800pxに設定 */
    width: 80%;
    /* コンテナの幅を80%に設定 */
    margin: 0 auto;
    /* 上下のマージンを0に、左右のマージンを自動に設定 */
    padding: 0;
    /* 上下のパディングを0に設定 */
    line-height: 1.4;
    /* 行間を詰める */
    text-align: left;
    /* テキストを左揃えにする */
}

.japanese-text {
    font-family: '游明朝', 'Yu Mincho', serif;
    /* 日本語用フォント */
}

.english-text {
    font-family: 'Georgia', serif;
    /* 英語用フォント */
}

.fade-in-text {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in-image {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in-content {
    display: flex;
    flex-direction: column;
    /* 要素を縦に並べる */
    align-items: center;
    /* 中央揃え */
    justify-content: flex-start;
    /* 上端からスタート */
    max-width: 800px;
    /* 最大幅の制限 */
    margin: 0 auto;
    /* 中央に配置 */
    overflow: hidden;
    /* 画面外の要素を非表示 */
}

header {
    text-align: center;
    margin-bottom: 30px;
    /* ヘッダーの下に余白を追加 */
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 7px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    box-sizing: border-box;
    margin-top: auto;
    /* コンテンツが少ない場合でもフッターをページの最下部に押し下げる */
}

.footer-content a {
    color: blue;
    /* リンクの色を青に変更 */
    text-decoration: none;
    /* 下線を消す */
    margin: 0 10px;
    /* リンク間のマージン */
}

.footer-content a:hover {
    text-decoration: underline;
    /* ホバー時に下線を表示 */
}

#twitter-link {
    font-family: 'Arial', sans-serif;
    /* 特別なフォントファミリーを設定 */
    font-weight: bold;
    /* フォントを太字に */
    font-style: italic;
    /* フォントをイタリックに */
    color: blue;
    /* リンクの色を青に変更 */
    text-decoration: none;
    /* 下線を消す */
}

#twitter-link:hover {
    text-decoration: underline;
    /* ホバー時に下線を表示 */
}

.main-content {
    padding-bottom: 60px;
    /* フッターの高さ以上のパディングを追加 */
}

.indent-text {
    /* text-indent: 80px; インデントの量 */
    padding-left: 100px;
    /* 全ての行に適用されるインデントの量 */
    padding-right: 100px;
    /* 全ての行に適用されるインデントの量 */
}

.heading {
    font-weight: bold;
    font-size: larger;
}

.login-container {
    width: 400px;
    margin: 100px auto;
    /* 上下に余白を設ける */
    padding: 20px;
    background-color: #360101;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 20px;
    /* ヘッダーとの間隔を調整するために追加されたスペース */
    color: white;
    text-align: center;
    /* ログインコンテナ内のテキストを中央揃えに */
}

form {
    display: flex;
    flex-direction: column;
    text-align: left;
    /* フォーム内の要素（input, labelなど）は左揃え */
    width: 100%;
}

input[type="text"] {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input[type="password"] {
    width: 90%;
    /* 幅の調整 */
    padding: 10px;
    /* パディングの追加 */
    margin: 10px auto;
    /* 中央揃え */
    display: block;
    /* ブロックレベルで表示 */
}

/* ボタンのスタイリング */
button {
    padding: 8px 16px;
    /* パディングを小さくしてボタンを一回り小さく */
    border-radius: 20px;
    /* ボーダーの角を丸く */
    border: 1px solid #CCCCCC;
    /* 控えめなソリッドボーダーを追加 */
    background-color: #F5F5F5;
    /* 柔らかいグレーの背景色 */
    color: #333;
    /* テキストの色をダークグレーに */
    font-size: 14px;
    /* テキストのサイズを小さく */
    line-height: 1.5;
    /* テキストの行の高さを調整 */
    cursor: pointer;
    /* カーソルをポインターに */
    transition: all 0.3s;
    /* ホバー時の変化を滑らかに */
}

button:hover {
    background-color: #E0E0E0;
    /* ホバー時の背景色を少し暗くするが、控えめに */
    border-color: #BDBDBD;
    /* ホバー時のボーダーカラーを控えめに変更 */
    transform: scale(1.02);
    /* ホバー時の変化をより控えめに（少し大きくする程度） */
}

form label,
form input,
form button {
    display: block;
    /* フォームの要素をブロックレベルで表示し、幅いっぱいに広がるように */
    margin: 0 auto;
    /* 中央揃え */
}

.message,
.error-message {
    color: red;
    /* エラーメッセージは赤色 */
    text-align: center;
    /* メッセージを中央揃え */
    width: 100%;
}
