/* mypage-style.css */

/* 行間を確実に上書きする */
body main.content .line .japanese,
body main.content .line .english,
body main.content .title.rounded-box,
body main.content .line .translation {
    line-height: 1.1 !important;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.0;
  background-color: #370F73;
  color: #F1EAFC;
}

.line {
  margin-bottom: 2px;
}

.line .translation {
  margin-top: 0px;
  margin-bottom: 32px;
}

.rounded-box {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 10px;
  background-color: #2B0C58;
  color: #F1EAFC;
  padding: 0 10px 0 10px;
}

.title-bar {
  background-color: #370F73;
  color: #F1EAFC;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100px;
  margin-top: 10px;
}

.subtitle {
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  margin-bottom: 10px;
}

header {
  background-color: #2B0C58;
  color: #F1EAFC;
  padding: 5px 0;
  border-top: 1px solid #A478EC;
  border-bottom: 1px solid #A478EC;
  text-align: center;
  font-size: 14px;
}

header nav {
  display: flex;
  justify-content: center;
  gap: 15px;
}

header nav a {
  color: #F1EAFC;
  text-decoration: none;
  font-weight: bold;
}

.container {
  display: flex;
  flex-wrap: wrap;
  padding: 30px;
  gap: 20px;
}

.content, .widget-container {
  background-color: #2B0C58;
}

.content {
  flex: 2;
  padding-right: 10px;
  padding-left: 0px;
  gap: 16px;
}

.widget-container {
   flex: 0.8;
   padding: 10px;
}

#output {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding-left: 20px;
  margin-top: 30px;
  background-color: #F1EAFC;
  color: #000;
  overflow: auto;
}

#output .translation {
  line-height:1.5;
}

.eyecatch img {
  width: 95%;
  height: auto;
  margin: 30px auto 0;
  display: block;
  border: 1px solid #A478EC;
  border-radius: 10px;
  padding-left: 0px;
  padding-right: 0px;
}

button {
  cursor: pointer;
  margin: 0 5px;
}

#content.show-japanese .english, .title.show-japanese .english {
  display: none;
}

#content.show-english .japanese, .title.show-english .japanese {
  display: none;
}

.title.rounded-box {
  width: 95%;
  font-weight: bold;
  color: #F1EAFC;
  background-color: #1E083E;
  font-size: 20px;
  margin: 10px;
}

.footer {
  background-color: #1E083E;
  color: #F1EAFC;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
  font-size: 14px;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #F1EAFC;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  margin: 0;
  font-size: 12px;
}



/* レスポンシブ対応 */
@media (max-width: 958px) {
  .container {
    flex-direction: column;
    padding: 10px 0 0 0;
  }
  .line {
    margin-bottom: 2px !important;
  }
  .line .translation {
    margin-top: 0px !important;
    margin-bottom: 32px !important;
  }
  #output .translation {
    line-height: 1.2;
  }
}



