/* 全体のスタイル */


@font-face {
    font-family: 'RyutaiFont';
    src: url('/fonts/ryutai-font.woff2') format('woff2'),
         url('/fonts/ryutai-font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #2C3E50;
    color: #ECF0F1;
}

.container {
    padding: 20px;
    max-width: 600px;
    margin: 30px auto;
    background-color: #34495E;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
}


#dialyBox {
    padding: 10px;
	max-width : 400px;
    margin: 10px auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    border : double yellow 4px;
    font-size : small;
}


/* テーブルのスタイル */
.result-table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 100%;
}

.result-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}


/* スタート画面、質問画面、結果画面 */
.start-container, .question-container, .result-container, .explanation-container {
    display: none;
}

.visible {
    display: block;
}

#result-doc {
	text-align : left;
}

/* ボタンスタイル */
button {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
}

.primary-btn {
    background-color: #3498DB;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    background-color: #2980B9;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.answer-btn {
    background-color: #1ABC9C;
    color: white;
    flex: 1;
    margin: 10px;
    transition: all 0.3s ease;
}

.answer-btn:hover {
    background-color: #16A085;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 質問ボックス */
.question-box {
    background-color: #2C3E50;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: cyan;
}

.result-text, .percent-text {
    font-size: 20px;
    margin: 20px 0;
    text-align: center;
}

.percent-text {
    font-weight: bold;
    color: #1ABC9C;
}

@media screen and (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 20px;
    }

    .button-group {
        flex-direction: column;
    }

    .answer-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* 入力欄のスタイル */
label {
    display: block;
    margin: 10px 0 5px;
    font-size: 16px;
    color: #ECF0F1;
}

input[type="date"],
select {
    width: 120px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #7F8C8D;
    border-radius: 5px;
    font-size: 16px;
    background-color: #34495E;
    color: #ECF0F1;
}

input[type="text"] {
    width: 100px;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #7F8C8D;
    border-radius: 5px;
    font-size: 16px;
    background-color: #34495E;
    color: #ECF0F1;
}


input[type="date"]:focus,
select:focus {
    border-color: #3498DB;
    outline: none;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}


/* ボタンを横に列挙 */

#subject-buttons {
    display: flex;
    justify-content: space-around; /* ボタンを横に並べて均等に配置 */
    margin-top: 10px;
}

.subject-btn {
	margin : 5px;
    padding: 10px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.subject-btn:hover {
    background-color: #0056b3;
}

.primary-btn {
    margin-top: 5px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.half-space {
	line-height: 0.5em;
}

.hidden {
    display: none;
}



/* 相性占い画面用のスタイル */

.heart-container {
    width: 300px; /* 💛全体の幅を指定します（10個の💛に相当） */
    display: inline-block;
    position: relative;
    overflow-x: hidden;
}

.bar-filled {
    white-space: nowrap;
    font-size: 20px; /* 💛のサイズ調整 */
    text-align : left;
    padding-top : 5px;
}

#compatibility-container {
    margin-top: 30px;
}


.biorhythm-chart {
    margin: 10px;
    padding :  0 10px 10px 10px;
    text-align : left;
    border : solid 2px white;
}

.bar-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 40px;
    font-size: 30px;
    white-space: nowrap;
}

.bar-background {
    color: #ccc; /* 背景の💛は灰色に */
    position: absolute;
    width: 100%;
    height: 100%;
    line-height: 40px;
    overflow: hidden;
}

.graph-label {
    max-width: 600px;

	width : 80vw;
    font-size: 16px;
    margin-top: 5px;
    white-space: nowrap;
    display: inline-block;
}



/* キャンバスを画面サイズに合わせて縮尺 */
#fortune-canvas {
    width: 100%;  /* 画面幅に応じて拡大縮小 */
    height: auto; /* 高さをアスペクト比に基づいて調整 */
    max-width: 650px;  /* 画像の最大サイズ */
}

/* 九星盤のサイズを30%に設定 */
.kigaku-board img {
    width: 100%; /* 30%に縮小 */
    height: auto;
}

/* 九星盤のグリッド */
.kigaku-grids {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

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

.second-btn {
    padding: 5px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 10px;
    margin-top : 10px;
}



#wish-text {
    width: 100%;
    height: 250px;     /* テキストエリアの高さを設定 */
    border-radius: 5px;
    color: #ECF0F1;
    border: 1px solid #7F8C8D;
    font-size: 16px;

    overflow-y: scroll; /* 縦スクロールバーを表示 */


    padding: 10px;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color : black;
    background-image: url('/pwa/fortune/imgs/futomani.webp'); /* ここに背景画像のURLを指定 */
    background-size: contain;  /* 画像をテキストエリア全体に表示 */
    background-position: center;  /* 画像を中央に配置 */
    background-repeat: no-repeat; /* 画像を繰り返さない */

}


#wish-entry-container {
    margin : 20px;
    paddin : 0px;
}

.small {
	font-size : 14px;
	text-align  : left;
}


button {
  background-color: #fbc2eb;
  color: white;
  border-radius: 50px;
  font-family: 'Cute Font', cursive;
  padding: 10px 20px;
  border: none;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
button:hover {
  background-color: #ff9a9e;
}
.post, .comment {
  border-radius: 15px;
  padding: 15px;
  background-color: #ffe6fa;
  color : red;
}

/* 投稿フォームのスタイル */
#post-form {
    background-color: #fff0f6;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
    position : relative;
}

/* 投稿フォームの入力フィールド */
#post-form input[type="text"],
#post-form textarea {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #f8bbd0; /* 淡いピンクの境界線 */
    border-radius: 10px;
    background-color: #ffeefb; /* 淡い背景色 */
    font-family: 'Cute Font', cursive; /* かわいいフォントを使用 */
    font-size: 16px;
    color: #333;
}

/* 投稿ボタン */
#submit-post-btn {
    background-color: #ff80ab;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
    font-family: 'Cute Font', cursive;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#submit-post-btn:hover {
    background-color: #f06292;
    transform: translateY(-3px);
}

/* 投稿カードのスタイル */
/* いいねボタン、コメントボタンのスタイル */
button.like-btn, button.comment-btn {
    background-color: #ff80ab;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cute Font', cursive;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 5px;
}

button.like-btn:hover, button.comment-btn:hover {
    background-color: #f06292;
    transform: translateY(-3px);
}

/* コメントセクション */
.comments {
    margin-top: 15px;
    border-top: 1px solid #f8bbd0;
    padding-top: 10px;
}

.comment {
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', sans-serif;
    color: #555;
}

/* メディアクエリ: モバイル用の調整 */
@media screen and (max-width: 600px) {
    #post-form {
        width: 90%;
        margin: 20px auto;
    }

    button.like-btn, button.comment-btn {
        width: 100%;
    }
}

#video-page {
    text-align: center;
    padding: 0px;
}

#video-container {
    margin-top: 20px;
    padding: 0px;
}

.primary-btn {
    display: inline-block;
    margin: 5px;
}

#cafe-container {
	background-color : pink;
}

.kanji-square {
    width: 80vw;           /* 90% of the viewport width */
    aspect-ratio: 1 / 1;   /* Maintain a square shape */
    margin: 20px auto;     /* Center the container */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid cyan; /* Border color */
    box-sizing: border-box;
    font-family: 'RyutaiFont', sans-serif;
    color: cyan;
    position: relative;
}

/* Inner text styling */
#kanji-text {
    font-size: 80vmin;         /* 90% of the container's width */
    display: inline-block;

    line-height: 1;         /* Prevent extra space below the text */
}

#referral-container {
    background-color: #34495E;
    color: #ECF0F1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

#referral-container h2 {
    color: cyan;
}

#qr-code , #qr-code-friend {
    width: 80vw; /* Set width to 80% of the viewport width */
    max-width: 280px; /* Set a maximum width to control it on larger screens */
    height: auto; /* Automatically adjust height to maintain aspect ratio */
    margin: 0 auto; /* Center horizontally */
    display: flex;
    justify-content: center;
    margin-bottom : 20px;
    background-color : white;
    padding : 20px;
    color : black;
}

/* For very small screens, if needed */
@media (max-width: 400px) {
    #qr-code {
        width: 90vw; /* Slightly increase width for smaller screens */
    }
}


#socialShare {
	margin-top: 20px;
}

#socialShare a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 20px;
}

#socialShare .fa-x-twitter {
    background-color: #000000; /* Xの公式カラーは黒 */
}

#socialShare .fa-facebook-f {
    background-color: #1877F2; /* Facebookの公式カラー */
}

#socialShare .fa-line {
    background-color: #00B900; /* LINEの公式カラー */
}

#socialShare a:hover {
    opacity: 0.7;
}


#installButton {
	color : black;
}


#Hresult-doc , #Hresult2-doc {
	text-align : left;
}


.cmbox {
	color : black;
	width : 100%;
	background-color: yellow;

    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto; /* ページ全体で中央に配置する場合 */
    border: 1px solid black; /* 枠線を追加して表示位置を確認 */
}


.cmboxHead {
	color : black;
	width-max : 600px;
	width : 100%;
    height: auto; /* 縦横比を維持 */
	background-color: black;

    display: flex; /* 不要な隙間をなくす */
    justify-content: center;
    align-items: center;
    margin: auto; /* ページ全体で中央に配置する場合 */
    border: 1px solid black; /* 枠線を追加して表示位置を確認 */
}

#cm-box2 img {
	width-max : 600px;
    width: 100%; /* 横幅に応じて画像を縮小 */
    height: auto; /* 縦横比を維持 */
    display: block; /* 不要な隙間をなくす */
}
