﻿.center-message {
    font-size: 8em;
    position: fixed; /* またはabsoluteでも良いが、fixedの方が画面に固定される */
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%; /* 必要に応じて調整 */
    padding: 50px;
    text-align: center;
    background-color: #f8f8f8; /* 背景色 */
    border: 1px solid #ccc; /* 枠線 */
    border-radius: 10px; /* 角の丸み */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 影をつける（オプション） */
}

body {
    align-items: center;
    margin: 0;
    padding: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.container1 {
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    flex-direction: column;
    align-items: flex-start; 
    padding: 20px; /* Add some padding around the content */
    width:46%;
}

.container2 {
    text-align: center;
    font-size: 3em; /* Increases the font size */
    background-color: #f2f2f2; /* Light gray background */
    border-radius: 15px; /* Rounded corners */
    padding: 10px 30px; /* Padding inside the box */
    margin: 8px 8px; /* Space above and below the header */
    width: fit-content; /* Adjust width based on content */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: adds subtle shadow */
    border: 1px solid #ccc; /* Light border */
}

.container3 {
    font-size: 5em; /* Increases the font size */
    display: fixed;
    justify-content: space-between; /* Aligns items to the left and right */
    border-bottom: 8px solid #0000cd; /* Adds a dotted line below the container */
    width: 100%;
}
/* justify:
   flex-start：アイテムをコンテナの開始端に揃えて配置します。
   flex-end：アイテムをコンテナの終了端に揃えて配置します。
   center：アイテムをコンテナの中央に配置します。
   space-between：最初のアイテムを開始端に、最後のアイテムを終了端に配置し、残りのアイテム間に均等   なスペースを配分します。
   space-around：各アイテムの周囲に均等なスペースを配分します。ただし、アイテムの間のスペースは、   アイテムの端に対するスペースの2倍になります。
   space-evenly：アイテム間およびアイテムとコンテナの端との間に均等なスペースを配分します。 */
.container4 {
    display: flex;
    flex-direction: row;
    justify-content: flex-start; /* Aligns items to the left and right */
    padding: 20px;
    gap: 30px;
    width: 100%;
    height: 30vh:
}

.container5 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    padding: 20px; 
    border: 8px solid #00bfff;
    border-radius: 12px;
    background-color: #fff5ee;
    width: 50%;
}

.container6 {
    display: flex;
    flex-direction: row;
    color: #ff0000; /* Green color */
    font-size: 5em; /* Larger font size */
    display: block; /* Ensure it appears on a new line */
}

.container7 {
    display: flex;
    flex-direction: row;
    color: #000000; /* Green color */
    font-size: 2em; /* Larger font size */
    display: block; /* Ensure it appears on a new line */
}

.container8 {
    display: flex;
    flex-direction:row;
/*    padding: 30px;
    gap: 30px; */
    color: #000000; 
    align-self: flex-end; /* Aligns number to the right */
/*    position: relative; */
    font-size: 10em; /* Larger font size */
}



.container14 {
    display: flex;
    flex-direction:column;
    justify-content: space-between;
    color: #000000; /* Green color */
/*    font-size: 2em; */ /* Larger font size */
    border-bottom: 8px solid #0000cd; /* Adds a dotted line below the container */
}

.container15 {
    display: flex;
    color: #000000; /* Green color */
    font-size: 5em; /* Larger font size */
    display: block; /* Ensure it appears on a new line */
}
.container16 {
    display: flex;
    color: #000000; /* Green color */
    font-size: 10em; /* Larger font size */
    text-align: right;
    display: block; /* Ensure it appears on a new line */
}

header {
    background-color: #ffffff;
    padding: 10px;
    text-align: center;
}

/* スマートフォン以外では改行要素を非表示にする */
.break-on-mobile {
    display: none;
}

/* 以下にメディアクエリを追加して、スマートフォン向けのスタイルを指定します */
@media (max-width: 760px) {
    body {
        flex-direction: column; /* スマートフォンでは縦方向のレイアウトが一般的です */
    }
    .container1 {
        width: 80%; /* コンテナの幅を画面幅いっぱいにする */
    }
    .container2, .container15 {
        font-size: 2em; /* スマートフォンで読みやすいフォントサイズに調整 */
        padding: 5px 10px; /* コンテンツ周りの余白を調整 */
/*        margin: 4px 4px; */ /* 上下左右のマージンを調整 */
        width: auto; /* コンテナの幅をデバイスの幅に合わせて調整 */
        display: block; /* Ensure it appears on a new line */
    }
    .container3 {
        font-size: 1.8em; /* スマートフォンで読みやすいフォントサイズに調整 */
        text-align: center;
        width: auto; /* コンテナの幅をデバイスの幅に合わせて調整 */
        display: block; /* Ensure it appears on a new line */
    }
    .container4 {
        flex-direction: column; /* スマートフォンでは縦方向に要素を並べる */
        padding: 10px; /* コンテンツ周りの余白を調整 */ 
        height: auto; /* コンテナの高さを内容に合わせて自動調整 */
    }
    .container5 {
        width: 80%; /* コンテナの幅を画面幅いっぱいにする */
        padding: 5px 10px; /* コンテンツ周りの余白を調整 */
    }
    .container6 {
        font-size: 2.6em; /* スマートフォンで読みやすいフォントサイズに調整 */
/*        padding: 5px 10px; */ /* コンテンツ周りの余白を調整 */
/*        margin: 4px 4px; */ /* 上下左右のマージンを調整 */
        width: auto; /* コンテナの幅をデバイスの幅に合わせて調整 */
    }
    .container7 {
        font-size: 1em; /* スマートフォンで読みやすいフォントサイズに調整 */
/*        padding: 5px 10px; */ /* コンテンツ周りの余白を調整 */
/*        margin: 4px 4px; */ /* 上下左右のマージンを調整 */
        width: auto; /* コンテナの幅をデバイスの幅に合わせて調整 */
    }

    .container8 {
        flex-direction: column; /* スマートフォンでは縦方向に要素を並べる */
        font-size: 4.5em; /* 読みやすさを考慮してフォントサイズを調整 */
/*        padding: 15px; */ /* コンテンツ周りの余白を調整 */
        height: auto; /* コンテナの高さを内容に合わせて自動調整 */
        display: block; /* Ensure it appears on a new line */
    }


    .container14 {
        flex-direction: column; /* スマートフォンでは縦方向に要素を並べる */
/*        padding: 15px; */ /* コンテンツ周りの余白を調整 */
        height: auto; /* コンテナの高さを内容に合わせて自動調整 */
    }
    .container15 {
        flex-direction: column; /* スマートフォンでは縦方向に要素を並べる */
        height: auto; /* コンテナの高さを内容に合わせて自動調整 */
        font-size: 2em; /* 読みやすさを考慮してフォントサイズを調整 */
    }
    .container16 {
/*        align-self: center; */ /* スマートフォンでは中央揃えが視認性を高めます */
        text-align: right;
        font-size: 5em; /* 読みやすさを考慮してフォントサイズを調整 */
        padding: 20px;
        display: block; /* Ensure it appears on a new line */
    }
    .break-on-mobile {
        display: block; /* この要素をブロック要素として表示し、改行を挿入 */
    }

    .center-message {
        font-size: 2.7em;
        position: fixed; /* またはabsoluteでも良いが、fixedの方が画面に固定される */
        top: 50%;
        left: 50%;
        width: 70%; /* 必要に応じて調整 */
        padding: 20px;
        text-align: left;
    }

}
