:root {
  --main-font-color: #186f9c;
  --main-color: #DCEBF4;
  --sub-color: #37A5E0;
  --bg-color: #DCEBF4;
  --mouse-over-color: #dba0d4;
  --emphasis-color: #ce305f;
}

button {
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

hr {
  align-items: center;
  max-width: 1000px;
  height: 15px;
  background-color: var(--main-font-color);
  border: 0;
  color: var(--main-font-color);
}

li {
  width: auto;
}

body {
  background: url(../image/texture.svg);
  background-size: 20%;
  background-color: var(--bg-color);
  background-repeat: repeat;
  margin: 0;
  padding: 0;
  font-family: -apple-system, 
    BlinkMacSystemFont, 
    "Yu Gothic UI",
    "Segoe UI", 
    "Meiryo", 
    "Hiragino Sans", 
    "Hiragino Kaku Gothic ProN",     
    "Noto Sans JP", 
    sans-serif;
  font-size: 22px;
  color: var(--main-font-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

section {
  z-index: 10;
}

.index_mask {
  display: flex;
  position: fixed;
  background-color: var(--main-color);
  z-index: 999;
  width: 100%;
  height: 100%;
  opacity: 1.0;
  transition: 500ms;
}

/* ヘッダー */
header {
  height: 170px;
  width: 100%;
  background-color: var(--main-font-color);
  z-index: 200;
}

#header_container {
  width: 100%;
}

#header_main {
  display: flex;
  justify-content: center;
}

#logo_container {
  width: 1000px;
}

#otono_logo {
  margin: 5px 0 0 0;
  max-width: auto;
  height: 120px;
  cursor: pointer;
}

#menu_container {
  display: flex;
  justify-content: center;
  width: 100vw;
  min-height: 40px;
  background-color: var(--sub-color);
}

#content_menu {
  display: flex;
  min-width: 1000px;
  min-height: 40px;
  color: var(--main-color);
  font-family: geneipople;
  font-size: 25px;
}

#humb_menu_conttainer {
  display: none;
  position: absolute;
}

#humb_menu_list {
  display: none;
  position: relative;
  width: 80vw;
  height: auto;
}

/* メニューボタン 共通 */
[id$="menu_btn"] {
  cursor: pointer;
  line-height: 40px;
  margin: 0 50px 0 10px;
  text-align: left;
}

[id$='sub_menu_btn']:hover {
  color: var(--mouse-over-color);
}

.menu_btn_base {
  position: relative;
}

.sub_menu_base {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--sub-color);
  width: fit-content;
  z-index: 300;
  font-size: 20px;
  border-radius: 0px 0px 10px 10px;
}

#application_btn:hover #application_sub_menu{
  display: inline-block;
  white-space: nowrap;
}

#plugins_btn:hover #plugins_sub_menu {
  display: inline-block;
  white-space: nowrap;
}

#sound_btn:hover #plugins_sub_menu {
  display: inline-block;
  white-space: nowrap;
}

.none_sub_menu:hover {
  color: var(--mouse-over-color);
}

/* フッター */
footer {
  height: 110px;
  width: 100%;
  background-color: var(--main-font-color);
  background-repeat: repeat-x;
  text-align: center;
  z-index: 200;
}

#footer_top_line {
  width: 100vw;
  height: 20px;
  background-color: var(--sub-color);
}

#footer_container {
  display: flex;
  justify-content: center;
}

#footer_text {
  display: flex;
  width: 990px;
  color: var(--main-color);
  line-height: 90px;
  font-size: 18px;
}

#footer_text_a {
  width: 60%;
  text-align: left;
}

#footer_text_b {
  width: 40%;
  text-align: right;
}

/* コンテンツページ共通 */
.content_mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--main-color);
  z-index: 100;
  transition: 500ms;
}

#content {
  display: flex;
  justify-content: center;
  min-width: 100vw;
  min-height: 100vh;
  transition: 300ms;
}

#content_base {
  margin: 30px 0 0 0;
  width: 1000px;
}

.content_overview {
  display: flex;
  justify-content: center;
}

[id$="_title"], .contact_title {
  padding: 0 0 0 10px;
  margin: 20px 0 0 0;
  font-family: geneikiwamigo;  
  font-size: 28px;
  color: var(--main-font-color);
}

#sub_head_line {
  font-family: geneipople;
  font-size: 25px;
  margin: 30px 0 10px 0;
}

.text_position_format {
  width: 100%;
  padding: 0 10px 0 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

#operating_environment {
  font-size: 18px;
}

#download_container {
  display: grid;
  grid-template-columns: auto auto;
  margin: 30px 0 30px 0;
  font-size: 20px;
}

.booth_dl {
  font-size: 24px;
}

#download_btn {
  width: 200px;
  height: auto;
}

.default_scr_img {
  width: 100%;
  height: auto;
}

#end_hr {
  margin-bottom: 50px;
}

#youtube_movie_container {
  width: 100%;
  max-width: 960px;
  margin: 0 20px;
}

#youtube_movie_container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* topページ */
.slideshow {
  max-width: 960px;
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  touch-action: pan-y;
  border: solid 2px var(--main-font-color);
  margin: 0 20px 0 20px;
}

.track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  cursor: pointer;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ナビ ※prev nextボタンは使用保留*/
.nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /*background: rgba(0,0,0,0.4);
  color: rgba(255, 255, 255, 0.8);*/
  border: none;
  font-size: 48px;
  width: 56px;
  height: 56px;
  /*border-radius: 50%;*/
  cursor: pointer;
  /*text-align: center;*/
  /*font-family: geneipople;*/
}

.nav.prev { 
  left: 16px;
  background-image: url(../image/nav_prev_btn_a.png);
  background-repeat: no-repeat;
}

.nav.next {
  right: 16px; 
  background-image: url(../image/nav_next_btn_a.png);
  background-repeat: no-repeat;
}

/* 選択ドット */

.dots {
  position: inherit;
  bottom: 16px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 40px;
  height: 10px;
  margin: 0 10px;
  border-radius: 5px;
  background: rgba(55, 165, 224, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dot.active {
  background: var(--main-font-color);
  transform: scale(1.3);
}

/* お知らせ */
#notice {
  display: grid;
  grid-template-columns: 960px;
  grid-template-rows: auto 250px;
  width: 960px;
  height: auto;
  border: solid 2px var(--main-font-color);
  border-radius: 10px;
  margin: 50px 20px 50px 20px;
}

#title_container {
  background-color: var(--main-font-color);
  width: 100%;
  color: var(--main-color);
  grid-row: 1;
  grid-column: 1;
}

#notice_text {
  grid-row: 2;
  padding: 0 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 22px;
  max-height: auto;
  overflow: scroll;
  scrollbar-color: var(--main-font-color);
  scrollbar-width: thin;
}

/* Demoゲーム */
.demo_game_scr {
  display: grid;
  max-width: 100%;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
}

.demo_game_scr img {
  max-width: 475px;
  height: auto;
  margin: 10px;
}

[class^="game_img_"]:hover {
  cursor: zoom-in;
}

.img_window {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 200;
}

.window_show_img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  border: solid 2px var(--main-font-color);
}

.close_button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}

#demo_game_movie {
  width: 560px;
  height: 315px;
  margin: 0 0 20px 0;
}

/* Otama Metronome */
#otama_metronome_main {
  display: flex;
  align-items: flex-start;
  margin: 0 20px;
}

#metronome_movie {
  width: 450px;
  max-width: 550px;
  height: auto;
}

#otama_metronome_hr {
  display: none;
}

.otama_metronome_text {
  margin: 0 0 0 20px;
}

/* オーディオシームレスプラグイン */
#audio_seamless_loop_txet {
  font-size: 23px;
}

/* ボイス整音 */
.tim_voice_container, .sonia_voice_container {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 5fr 1fr 5fr;
}

.triangle_img {
  width: 100%;
  margin: -25px 0 0 0
}

.triangle_mark {
  width: 100%;
  height: 100%;
}

.voice_credit {
  text-align: left;
  padding: 0 10px 0 10px;
  font-family: geneipople;
  font-size: 20px;
}

/* サウンドプレイヤー */
.music_flex_container {
  display: grid;
  grid-template-columns: 300px auto;
}

.sound_img {
  display: block;
  width: 250px;
  height: auto;
  margin: 0 50px 0 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.player-container {
  background-color: var(--main-color);
  padding: 0 10px 0 10px;
  border-radius: 10px;
  border: solid 5px var(--main-font-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 670px;
  margin-bottom: 30px;
}

.song-title {
  color: var(--main-font-color);
  margin-bottom: 10px;
  font-size: 22px;
  font-family: geneipople;
}

.sound_ctrl_panel {
  display: grid;
  grid-template-columns: 50px 50px 50px 2fr 1fr;
}

.sound_ctrl_panel > :nth-child(1),
.sound_ctrl_panel > :nth-child(2),
.sound_ctrl_panel > :nth-child(3) {
  justify-self: start;
}

.sound_ctrl_panel > :nth-child(4),
.sound_ctrl_panel > :nth-child(5) {
  justify-self: end;
}

.controls button {
  background: none;
  border: none;
  padding: 0;
  margin: 10px 15px 0 10px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: inline-flex;
  justify-content: center;
  align-items: left;
}

.controls button:hover {
  opacity: 0.8;
}

.controls button img {  
  width: 90%;
  height: 90%;
  display: block;
}

.volume-slider {
  display: block;
  max-width: 200px;
  margin: 10px 0 0 15px;
  background-color: #186F9C;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  width: 20px;
  height: 40px;
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 40px;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin: 10px 0;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.progress {
  height: 100%;
  width: 0%;
  background-color: var(--main-font-color);
  border-radius: 5px;
}

.time-display {
  margin: 8px 0 0 0;
  width: 100%;
  font-size: 15x;
  text-align: right;
  color: var(--main-font-color);
}

.waveform-canvas {
  width: 100%;
  height: 100px;
  background-color: #e9ecef;
  border-radius: 5px;
  margin-top: 5px;
  border: 1px solid #ccc;
}

.voice_separator_hr {
  display: none;
  height: 5px;
}

/* 最新セーブデータ表示プラグイン */
#new_save_data_scr_container {
  display: flex;
  justify-content: center;
  max-width: 960px;
  width: 100%;
  margin: 0 20px;
}

/* profileページ */
#otono_icon_container {
  display: block;
  margin: 0 auto;
  text-align: center;
}

#otono_icon_img {
  max-width: 300px;
}

#profile_text {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  font-size: 25px;
  padding: 0 20px;
}

#profile_item {
  font-family: geneipople;
  font-size: 25px;
}

/* contactページ */
.contact_top_msg {
  font-family: geneipople;
  font-size: 24px;
  margin: 40px 0 10px 0;
  padding: 0 10px 0 10px;
}

.contact_text {
  font-size: 18px;
  margin: 0 0 5px 0;
  padding: 0 10px 0 10px;
}

#price_list_btn {
  display: inline-block;
  width: fit-content;
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0 30px 10px;
  border: solid 2px var(--main-font-color);
  border-radius: 10px;
  cursor: pointer;
  padding: 5px;
}

#price_list_btn:hover {
  color: var(--mouse-over-color);
  border-color: var(--mouse-over-color);
}

.contact_form {
  margin: 0 auto;
}

.form-group {
  margin-bottom: 15px;
  padding: 0 10px 0 10px;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"], input[type="email"], select, textarea {
  max-width: 300px;
  width: 50%;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

textarea {
  max-width: 100%;
  width: 100%;
  resize: vertical;
  min-height: 200px;
}

.error-message {
  color: var(--emphasis-color);
  margin-top: 5px;
}

.success-message {
  color: var(--main-font-color);
  margin-top: 15px;
  padding: 0 10px 0 10px;
  height: 50px;
}

#submitButton {
  margin: 0 0 0 10px;
  padding: 10px 20px;
  background-color: var(--main-font-color);
  color: var(--main-color);
  font-family: geneipople;
  font-size: 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#submitButton:hover {
  background-color: var(--mouse-over-color);
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* 料金表 */
#price_list_main {
  max-width: 1000px;
  width: 100%;
}

.price_headline {
  font-weight: bold;
  margin: 10px 0 10px 0;
  font-size: 24px;
}

.price_grid {
  display: grid;
  grid-template-columns: auto auto auto;
  max-width: 100%;
  margin-bottom: 30px;
  border: solid 2px var(--main-font-color);
  border-radius: 10px;
  overflow: hidden;
}

.price_grid div {
  padding: 10px;
  border-bottom: solid 2px var(--main-font-color);
  border-right: solid 2px var(--main-font-color);
}

.price_grid > div:nth-child(3n) {
  border-right: none;
}

.price_grid > div:nth-last-child(-n+3) {
  border-bottom: none;
}

.price_grid > div:nth-child(-n+3) {
  background-color: rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

.unit_price, .deadline {
  text-align: right;
}

#red_text {
  color: var(--emphasis-color);
}

/* レスポンジブ対応 */
@media screen and (max-width: 850px) {
  body {
    background-size: 40%;
    font-size: 22px;
  }

  #content_menu {
    display: none;
  }

  /* ハンバーガーメニュー@スマホ */
  [id$="_menu_btn"] {
    margin: 0;
    cursor: pointer;
  }

  [id$="_menu_btn"]:hover {
    color: var(--mouse-over-color);
  }

  .humb_btn {
    width: auto;
  }

  #humb_menu_conttainer {
    display: block;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
  }

  #menu_humb_btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    cursor: pointer;
  }

  #humb_menu_main {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    justify-content: center;
    top: -10px;
  }

  #humb_menu_list {
    display: none;
    position: relative;
    width: 80vw;
    background-color: var(--main-color);
    border: solid 4px var(--main-font-color);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding: 30px 10px 0 10px;
    font-size: 18px;
    font-family: geneipople;
    color: var(--main-font-color);
  }

  [id$="_humb_menu_btn"] {
    margin: 5px 5px;
  }

  [id$="_humb_menu_btn"]:hover {
    color: var(--main-font-color);
  }

  [id$="_list_menu"] {
    display: none;
  }

  /* 共通@スマホ */
  [id$="_title"] {
    font-size: 28px;
  }

  #youtube_movie_container {
    width: 94%;
    max-width: 100vw;
    margin: 0 auto;
  }

  #youtube_movie_container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  [id$="_title"] {
    font-size: 25px;
  }

  #sub_head_line {
    font-size: 22px;
  }

  /* フッター@スマホ */
  #footer_text {
    display: block;
    width: 90%;
    font-size: 16px;
    line-height: normal;
    padding: 20px 0 0 0;
  }

  #footer_text_a, #footer_text_b {
    width: 100%;
    height: auto;
    text-align: left;
  }

  /* コンテンツ@スマホ */
  #content_base {
    width: 100vw;
    min-height: 100vh;
  }

  /* 共通@スマホ */
  .text_position_format {
    width: 90vw;
    margin: 0 auto;
    border-radius: 10px;
  }

  .sub_text {
    font-size: 18px;
  }

  /* topページ@スマホ */

  .slideshow {
    width: 90%;
    height: 90%;
    margin: 0 20px;
  }

  #notice {
    grid-template-columns: auto;
    width: auto;
    height: auto;
  }

  #notice_text {
    font-size: 20px;
  }

  /* ダンジョンDEMO@スマホ */
  .demo_game_scr {
    max-width: 100vw;
  }

  [class^="game_img_"] {
    width: 45vw;
  }

  #demo_games_sub_text {
    margin: 0 0 10px 0;
  }

  #demo_game_movie {
    width: 320px;
    height: 180px;
  }

  /* Otama Metronome@スマホ */
  #otama_metronome_main {
    display: block;
  }

  #metronome_movie {
    width: 100%;
    height: auto;
  }

  #otama_metronome_hr {
    display: block;
    width: 100%;
    height: 5px;
  }

  .otama_metronome_text {
    margin: 0;
  }

  #download_container {
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
  }

  .booth_dl {
    font-size: 22px;
  }

  /* 最新セーブデータ表示@スマホ */
  #new_save_data_scr_container {
    width: 95%;
    height: auto;
    margin: 0 auto;
  }

  /* ボイス整音 */ 
  .music_flex_container {
    display: block;
  }
  .player-container {
    height: 250px;
    margin: 10px 0 10px 0;
  }

  .sound_ctrl_panel {
    display: grid;
    grid-template-columns: 50px 50px 50px 1fr 1fr;
  }

  .volume-slider {
    display: none;
    max-width: 100px;
  }

  .tim_voice_container, .sonia_voice_container {
    max-width: 100vw;
    display: block;
  }

  .time-display {
    width: 120px;
    height: 100%;
    margin: 9px 0 0 30px;
    text-align: right;
  }

  .waveform-canvas {
    width: 100%;
    height: 50px;
  }

  .triangle_img {
    width: 20%;
    height: 20%;
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .voice_separator_hr {
    display: block;
    height: 5px;
    margin: 20px 0;
  }

  /* proffile@スマホ */
  #profile_text {
    font-size: 22px;
    padding: 0 10px;
  }

  #profile_item {
    font-size: 22px;
  }

  /* お問い合わせ＠スマホ */
  .contact_text {
    font-size: 16px;
    margin: 0 0 30px 0;
  }

  .price_list_btn {
    font-size: 16px;
  }

  /* 料金の目安 */
  .price_headline {
    font-size: 20px;
  }

  .price_grid {
    font-size: 18px;
  }

  .supplement {
    font-size: 18px;
  }

  /* フッター＠スマホ */
  .footer_text {
    font-size: 12px;
  }
}