/* フォントを読み込む */
@font-face {
    font-family: 'TopFont'; /* フォントの名前を指定 */
    src: url('./image/nicomoji-plus_v2.ttf') format('truetype'); /* フォントファイルへのパスと形式を指定 */
}

/* Reset CSS */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
}

/* グループ化された要素を縦に配置 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh; ビューポートの高さいっぱいに広げる */
}

header {
    background: url('./image/bgimg_sakura.png') repeat;
    background-size: 10%; /* 画像サイズを調整 */
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000; /* 下部に1ピクセルの線を引く */
}

header p {
    font-family: "TopFont" , sans-serif; /* 'TopFont'という名前で指定したフォントを適用 */
    font-size: 50px; /* フォントサイズを指定 */
    color: #fe4b74; /* フォントの色を赤に設定 */
    text-shadow: 1px 1px 2px #000000; /* アウトラインの色と影を追加（1px右、1px下に影をつけ、2pxのぼかし、#000000の色） */
    margin-left: 20px;
}

.social-icons {
    display: flex;
    /* gap: 0px 10px; */
}

.social-icons img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: 2px solid #ff9cb4; /* 枠線の色と幅を調整 */
    overflow: hidden; /* 枠線の外側を隠す */
}

/* ナビゲーションメニューのスタイル */

nav {
    /* background-color: #555; */
    margin-right: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav li {
    position: relative;
  }

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
  }

/* サブメニューのスタイル */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* 右端に配置 */
    background-color: #444;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  li:hover .submenu {
    display: block;
  }
  
  .submenu a {
    padding: 5px 10px;
    display: block;
    white-space: nowrap; /* 文字列を折り返さないようにする */
  }
  
  .submenu :hover {
    background-color: #666; /* ホバー時の背景色を変更 */
  }
  
/* ナビゲーションメニューのスタイル -- ここまで -- */

/* ハンバーガーメニュー */

#humberger {
    position: relative;
    height: 44px;
    width: 44px;
    display: inline-block;
    box-sizing: border-box;
    background-color: #fff;
    border: 2px solid #444;
    border-radius: 4px;
  }
  #humberger div {
    position: absolute;
    left: 6px;
    height: 2px;
    width: 28px;
    background-color: #444;
    border-radius: 2px;
    display: inline-block;
    box-sizing: border-box;
  }
  #humberger div:nth-of-type(1) {
    bottom: 29px;
  }
  #humberger div:nth-of-type(2) {
    bottom: 19px;
  }
  #humberger div:nth-of-type(3) {
    bottom: 9px;
  }

/* ハンバーガーメニュー -- ここまで -- */

/* 各要素のスタイル */
input[type="text"], audio {
    margin-bottom: 10px;
    width: 80%;
    padding: 8px;
    box-sizing: border-box;
}

.miko-img {
    /* max-width: 100%; */
    width: 25%; /* 画像が親要素の幅いっぱいに広がるようにする */
    height: auto; /* アスペクト比を保つ */
    margin-bottom: 10px;
    border: 4px solid #ff9cb4; /* 枠線の色と幅を調整 */
    overflow: hidden; /* 枠線の外側を隠す */
}
/* 要素を横に並べる */
.center-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.horizontal-container {
    display: flex;
    width: 90%;
    justify-content: space-between;
}

#text-to-synthesize {
    flex: 9;
    padding: 5px; /* テキストボックス内の余白を設定 */
    margin-right: 5px; /* text-to-synthesize と button の隙間 */
    margin-bottom: 1px; /* text-to-synthesize と button の隙間 */
    height: 35px; /* 高さを30pxに設定 */
    /* box-sizing: border-box; 幅や高さにpaddingやborderが含まれるように設定 */
  }

button {
    flex: 1;
    padding: 5px;
    margin-left: 5px; /* text-to-synthesize と button の隙間 */
    width: 100%; /* ボタンの幅を変更 */
    height: 100%; /* ボタンの高さを変更 */
    text-align: center; /* ボタン内のテキストを中央揃えにする */
}

audio {
    margin-top: 10px;
    align-items: center;
    width: 50%;
}

label, input, select, button {
    margin: 1px;
}

.links {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    background:#fbfbfb; /*背景色の指定*/
    /* border: #333; */
    width: 40%;

}

.link-item {
    display: flex;
    align-items: center;
    padding: 5px 7px;

}

.link-item img {
    width: 24px; /* アイコンの幅 */
    height: 24px; /* アイコンの高さ */
    margin-right: 1px; /* アイコンとテキストの間隔 */
    border-radius: 50%; /* 画像を円形にするためのスタイル */
    border: 2px solid #070038; /* 枠線の色と幅を調整 */
    overflow: hidden; /* 枠線の外側を隠す */

}

.link-item a {
    text-decoration: none;
    color: white; /* リンクの色 */
}