a:visited {
    color: #75b8ff;
  }
  


    h1, .caption {
        text-align:center;
      }

   



    .fixed-menu {
        position: sticky; /* Keeps the menu fixed at the top */
        top: 0;
        z-index: 10;
        padding: 1rem;
        background: rgba(68, 68, 68, 0.8); /* Semi-transparent background */
        backdrop-filter: blur(10px); /* Blurring the background content */
        -webkit-backdrop-filter: blur(10px); /* Safari support */
        border: 1px solid rgba(255, 255, 255, 0.3); /* Optional: subtle border for visual separation */
    }
    

    





/* テキストエリアのスタイリング */
.font-input {
    width: 80%; /* テキストエリアの横幅 */
    padding: 0.3rem; /* 内側の余白 */
    font-size: 1rem; /* 文字サイズ */
    box-sizing: border-box; /* パディングを含めた幅の計算 */
    margin-bottom: 0.5rem; /* 下部の余白 */
    border: 3px solid black; /* 枠線のスタイル */
    border-radius: 0.3rem; /* 角を丸くする */
  
    /* 改行設定 */
    word-break: break-all; /* 長い単語を強制的に改行 */
    overflow-wrap: anywhere; /* 任意の位置での改行を許可 */
    white-space: pre-wrap; /* 改行と空白を維持して表示 */
}

/* フォントプレビュー */
.font-preview {
    margin-bottom: 20px; /* 下部余白 */
    font-size: 1.5rem; /* フォントサイズ */
    border-bottom: 2px dotted black; /* 点線の下線 */
    width: 80%; /* 横幅 */
    border-radius: 0.3rem;
    resize: none;

    /* 改行設定 */
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap;
}

/* ボタンのデザイン */
.font-button {
    border-radius: 1rem; /* 角を丸く */
    background-color: #FF1493; /* 濃いピンク */
    color: #000080; /* 紺色 */
    border: none; /* 枠線をなしに */
    padding: 10px; /* 内側の余白 */
    margin-bottom: 5px; /* 下部余白 */
    cursor: pointer; /* ポインタに変更 */
}
/* CSS */
.google-font {
    background-color: #4CAF50; 
    color:white;
}

.adobe-font {
    background-color: #E41100; 
    color:white;
}

.default-font {
    background-color: #FF1493; 

}
/* Serif & Sans-Serif 用のスタイル */
.serif-font {
    background-color: #FF1493; 
}

.sans-serif-font {
    color:white;
    background-color: #007bff; 
}



/* ラベル・テキスト間の改行をなくす*/
.weight-controls label {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    margin-right: 1em; /* ラベル間の余白（任意） */
  }





.font-controls, .weight-controls, .style-controls {
    color:white;
}
.font-controls, .weight-controls  {
    margin-bottom:1rem;
}


/* 文字サイズ調整スライダー全体 */
#font-size-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 50%; /* 目盛りの幅に対応 */
    height: 5px;
    background: #767676; /* 背景色 */
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

/* スライダーのつまみ（Webkit対応） */
#font-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #FF1493; /* つまみのピンク色 */
    border-radius: 50%;
    border: 2px solid #000080; /* 紺の枠線 */
    cursor: pointer;
    transition: background 0.3s;
}

/* スライダーのつまみ（ホバー時の色変更） */
#font-size-slider::-webkit-slider-thumb:hover {
    background: #2196F3; /* ホバー時に青色に */
}

/* スライダーのつまみ（Firefox対応） */
#font-size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #FF1493;
    border: 2px solid #000080;
    border-radius: 50%;
    cursor: pointer;
}

/* スライダー目盛り用コンテナ */
.slider-ticks {
    display: flex; /* 横並び */
    justify-content: space-between; /* 均等に配置 */
    margin-bottom: 0.1rem;
    font-size: 0.8rem;
    color: #94c8ff;
    width: 50%;
}


/* スイッチのスタイル */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 26px;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 8px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FF1493; /* ピンク色 */
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* スイッチのラウンド形状 */
.slider.round {
    border-radius: 26px;
}

.slider.round:before {
    border-radius: 50%;
}

/* スタイル状態表示用テキスト */
#style-status {
    font-size: 1rem;
    color: white;
    vertical-align: middle;
}
/* スタイル状態表示用テキスト */
.style-controls {
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
    gap: 10px; /* 要素間の間隔 */
}

.style-label {
    font-size: 1rem;
    color: white; /* ラベルの文字色 */
}

#style-status {
    font-size: 1rem;
    color: #94c8ff; /* 水色に変更 */
    vertical-align: middle;
}

















/* カスタムツールチップのスタイル */
.tooltip {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;fi
    white-space: nowrap;
    pointer-events: none; /* ツールチップがホバーを妨げないようにする */
    top: -30px; /* プレビューテキストの上に表示 */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

/* ホバー時にツールチップを表示 */
.font-preview:hover .tooltip {
    opacity: 1;
}


/* 選択したフォント一覧のスタイル */
#combined-preview-container .font-preview {
    position: relative; /* ツールチップの位置基準にする */
    display: inline-block; /* ツールチップの位置調整用 */
}
#font-preview-container{
    margin: 5rem 0;
}
#combined-preview-section{
    background-color:white;
    padding:0.5rem;
}
.selected h3 {
    display: inline-block;
    margin: 0 0 1rem 0;
}
.selected i {
    display: inline-block;
    margin-left: 1rem;
    color:#007bff;
    font-size:1.5rem;
}
#combined-preview-container .font-preview {
    margin-bottom: 0 !important; /* 強制的に下部余白をなくす */
}



/* 全体のボックススタイル */
.recommended-section { 
     background-color: #004fa3; /* 背景青色 */
     border: 2px solid black; /* 黒いボーダー */ 
     padding: 20px; /* 内側の余白 */ 
     position: relative; /* 擬似要素用 */ 
     color: white; /* テキスト色を見やすく白に変更 */ 
     margin: 150px auto 0px auto; 
     width:50%;
     
    } 
    /* ドットの内側ボーダー */ 

     .recommended-section::before { 
        content: ""; 
        position: absolute; 
        inset: 10px; 
        border: 3px dotted white; /* 白いドットの線 */ 
        pointer-events: none; /* ユーザーの操作を無効化（装飾専用） */ 
    }
.recommended-section h3 {
    margin:0 1rem 2rem 0;
    font-size:1rem;
}
@media screen and (min-width: 769px) {
    .recommended-section h3 {
        font-size:1.2rem;
    }
}

.recommended-list {
    list-style-type: disc; /* リストのドット表示 */
    margin: 0;
    padding: 0 20px; /* 左余白を少し追加 */
}

.recommended-list li {
    margin-bottom: 10px; /* 各リストアイテム間の余白 */
    font-size:0.6rem;
}
@media screen and (min-width: 769px) {
    .recommended-list li {
        font-size:0.9rem;
    }
}


.makers {
    color: #ffeb3b; /* リンクを黄色に */
    text-decoration: none; /* 下線を削除 */
}

.makers:hover {
    text-decoration: underline; /* ホバー時に下線を追加 */
}

/* デスクトップ用スタイル */
@media screen and (min-width: 769px) {
    .recommended-section { 
        display:flex;  
        
       } 
       

       h1 { margin:0;
        padding:0;}
   .centered {
     margin-left: 37.5%;
     transform: translateX(-50%);
     position: relative;
     display: inline-block;
   }
      
    }