:root {
  --main-font-color: #186f9c;
  --main-color: #DCEBF4;
  --mouse-over-color: #dba0d4;
  --emphasis-color: #ce305f;
}

body {
  background: url(../image/texture.svg);
  background-size: 20%;
  background-color: var(--main-color);
  background-repeat: repeat;
  margin: 0;
  padding: 0;
  font-family: -apple-system, 
    BlinkMacSystemFont, 
    "Segoe UI", 
    "Meiryo", 
    "Yu Gothic UI",  
    "Hiragino Sans", 
    "Hiragino Kaku Gothic ProN",     
    "Noto Sans JP", 
    sans-serif;
  font-size: 22px;
  color: var(--main-font-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
}

.loading_mask {
  display: block;
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 1.0;
  background-color: var(--main-color);
  z-index: 500;
}

a {
  text-decoration: none;
}

a:link {
  color: var(--main-font-color);
}

a:visited {
  color: var(--main-font-color);
}

.normal_link {
  text-decoration: underline;
}

h1 {
  font-family: geneikiwamigo;
  color: var(--main-color);
  font-size: 32px;
}

.subheading {
  color: var(--main-font-color);
  font-family: geneipople;
  font-size: 25px;
}

button {
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  box-shadow: none;
  cursor: pointer;
}

/* ヘッダー */
header {
  position: absolute;
  height: 250px;
  width: 100%;
  background: url(../image/header_img.png);
  margin: 0 0 0 0;
  background-repeat: repeat-x;
  background-size: cover; 
  background-position: center;
  color: var(--main-font-color); 
  z-index: 200; 
}

.heder_menu {
  display: grid;
  grid-template-columns: 350px 630px;
  max-width: 1000px;
  margin: 0 auto;
}

.otono_logo {
  margin: 10px 0 0 0;
  max-width: 220px;
  height: 154px;
}

.otono_logo:hover {
  cursor: pointer;
}

.menu_frame {
  display: grid;
  background-color: #fff;
  max-width: 630px;
  height: 70px;
  margin: 50px 0 0 0;
  border-radius: 35px;
  line-height: 70px;
  grid-template-columns: repeat(3, 1fr);
}

.menu_btn {
  width: 200px;
  font-family: geneipople;
  font-size: 36px;
  text-align: center;
  margin: 0 0 0 -10px;
  color: var(--main-font-color);
}

.menu_btn:hover {
  font-size: 40px;
  color: var(--mouse-over-color);
  cursor: pointer;
}

/* ハンバーガーメニュー */
.humb_menu_btn {
  display: none;
  z-index: 100;
}

.humb_menu_list {
  display: none;
  z-index: 110;
}

.humb_link_btn {
  display: block;
}

main {
  margin: 250px 0 0 0;
  flex: 1;
  min-height: 100vh;
}

/* 最初のコンテンツ */
.top_contents {
  margin: 10px auto;
  text-align: center;
  max-width: 1000px;
}

.fukidashi_area {
  position: relative;
  font-family: geneikiwamigo;
  font-size: 45px;
  margin: 0 auto;
}

.emphasis_text_red {
  font-size: 55px;
  color: var(--emphasis-color);
}

.emphasis_text_default {
  font-size: 55px;
}

.fukidashi_img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.fukidashi_text_area {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.fukidashi_text {
  margin: 5px 0 0 0;
}

.dundemo_top_img {
  margin: 30px 0 0 0;
  max-width: 100%;
  height: auto;
  display: block;
}

.dundemo_top_img:hover {
  cursor: pointer;
}

/* メニュー概要 */
.menu_overview {
  margin: 100px 0 0 0;
  text-align: left;
}

.heading_block {
  width: 990px;
  height: 60px;
  line-height: 65px;
  margin: 0 auto;
  padding: 0 0 0 10px;
  background-color: var(--main-font-color);
  /*border-radius: 10px;*/
}

hr {
  align-items: center;
  max-width: 1000px;
  height: 15px;
  background-color: var(--main-font-color);
  border: 0;
  color: var(--main-font-color);
}

.overview_work, .overview_profile, .overview_contact {
  width: 1000px;
  padding: 1px 0 25px 0;
  text-align: left;
  margin: 50px auto;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

[class$="_title"] {
  padding: 0 0 0 10px;
  margin: 30px 0 0 0;
  font-family: geneikiwamigo;  
  font-size: 28px;
}

.overview_text {
  margin: 15px 0 0 0;
  padding: 0 10px 0 10px;
}

/* フッター */
footer {
  height: 110px;
  width: auto;
  background-image: url(../image/footer_img.png);
  background-repeat: repeat-x;
  text-align: center;
  z-index: 200;
}

.footer_text {
  margin: 0 auto;
  padding: 55px 0 0 0;
  display: grid;
  grid-template-columns: 6fr 4fr;
  max-width: 1000px;
  height: 55px;
  color: var(--main-color);
  font-size: 15px;
  text-align: left;
}

/* workページ */

.work_page, .profile_page, .contact_page {
  max-width: 1000px;
  margin: 0 auto;
}

.demo_game {
  display: block;
  width: 100%;
  margin: 0 auto;
}
 
.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);
}

.youtube_link {
  width: 560px;
  height: 315px;
}

.close_button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}

.text_position_format {
  padding: 0 10px 0 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.emphasis_text_cv, .emphasis_text_dundemo {
  font-family: geneipople;
  font-size: 25px;
}

.download_btn {
  width: 200px;
  height: auto;
}

.music {
  margin: 100px 0 0 0;
}

/* 整音 */
.voice_editing {
  margin: 100px auto;
}

.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;
}

/* sound player */
.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;
}

/* profileページ */
.profile_page {
  max-width: 1000px;
  margin: 0 auto;
}

.otono_icon_container {
  display: block;
  margin: 0 auto;
  text-align: center;
}

.otono_icon_img {
  max-width: 300px;
}

.profile_text {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  font-size: 30px;
}

.profile_item {
  font-family: geneipople;
  font-size: 30px;
  padding: 0 0 0 10px;
}

/* 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 40px 0;
  padding: 0 10px 0 10px;
}

.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;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
  body {
    background-size: 40%;
    font-size: 22px;
  }

  [class$="_title"] {
    font-size: 28px;
  }

  .menu_frame {
    display: none;
  }

  /* ハンバーガーメニュー */
  .humb_menu_btn {
    display: block;
    position: absolute;
    top: 30px;
    right: 20px;
  }
 
  .humb_menu_img {
    display: block;
    width: 90px;
    height: auto;
  }

  .humb_menu_list {
    display: none;
    position: absolute;
    top: -230px; /* -220 ⇒ -20 */
    right: 10px;
    max-width: 200px;
    height: 200px;
    padding: 20px 0 0 0;
    background: linear-gradient(to bottom, #d3e8f5, #DCEBF4);
    font-family: geneipople;
    border-radius: 15px;
    font-size: 30px;
    border: solid 5px var(--main-font-color);
  }

  
  .humb_link_btn {
    margin: 20px;
  }

  .humb_link_btn:hover {
    cursor: pointer;
  }

  .fukidashi_area, .dundemo_top_img {
    width: 100%;
  }

  .menu_overview {
    width: 100%;
  }

  .heder_menu,
  .top_contents,
  .fukidashi_text_area,
  .heading_block,
  hr,
  .overview_work, 
  .overview_profile, 
  .overview_contact,
  .footer_text {
    width: 100%;
  }

  .fukidashi_text_area {
    margin: 0 0 0 0;
    font-size: 5vw;
  }

  .emphasis_text_red {
    font-size: 6vw;
    color: var(--emphasis-color);
  }
   .emphasis_text_default {
    font-size: 6vw;
  }

  .fukidashi_img {
    max-width: 100%;
    height: auto;
    margin: 0 0 0 0;
  }

  /* workページ@スマホ */
  .demo_game_scr {
    max-width: 100vw;
  }

  [class^="game_img_"] {
    width: 45vw;
  }

  .window_show_img {
    max-width: 95%;
    max-height: 95%;
  }

  .window_show_img {
    width: 100%;
  }

  .youtube_link {
    width: 320px;
    height: 180px;
  }

  .music_flex_container {
    display: grid;
    grid-template-columns: 125px auto;
    column-gap: 25px;
  }

  .sound_img {
    max-width: 125px;
    height: auto;
    margin: 0 0 20px 0;
  }

  /* プロフィール＠スマホ */
  .profile_text, .profile_item {
    font-size: 20px;
  }

  .profile_text {
    grid-template-columns: 110px 1fr;
  }

  /* 音楽プレイヤー＠スマホ */

  .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);
  }

  /* お問い合わせ＠スマホ */
  .contact_text {
    font-size: 16px;
    margin: 0 0 30px 0;
  }

  /* フッター＠スマホ */
  .footer_text {
    font-size: 12px;
  }
}
