/* reset.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  /* overflow: hidden; */
  font-feature-settings: "palt";
  letter-spacing: .08em;
  font-family:
      -apple-system,
      /* macOS/iOS用のシステムフォント */
      BlinkMacSystemFont,
      /* macOS用のブラウザ対応フォント */
      "Segoe UI",
      /* Windows用のモダンフォント */
      "Roboto",
      /* Android用 */
      "Helvetica Neue",
      /* 欧文のモダンフォント */
      "Arial",
      /* フォールバック用 */
      "Hiragino Kaku Gothic ProN",
      /* macOS標準和文フォント */
      "Yu Gothic",
      /* Windows標準和文フォント */
      "Meiryo",
      /* フォールバックの日本語フォント */
      sans-serif;
  /* その他サンセリフ系フォント */
}

img {
  width: 100%;
}

a {
  color: #333;
  text-decoration: none;
}

/* 全体レイアウトをflexで制御 */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* headerのスタイル */
#header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 100;
  transition: top 0.5s ease, opacity 0.5s ease;
  opacity: 1;
  position: relative;
  padding-block: 10px;
  justify-content: space-between;
}

#header .logo img {
  max-width: 100px;
}

.main-visual-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  text-align: right;
  gap: 3px;
}

.main-visual-text ._en {
  font-size: 12px;
}

.main-visual-text ._jp {
  font-size: 11px;
}

main {
  flex-grow: 1;
  /* メインの高さを自動調整 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main:has(#main-content) {
  justify-content: flex-start;
}

.intro-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: intro-fade 3s ease-in-out forwards;
  z-index: 1000;
}

.intro-logo img {
  max-width: 50px;
  height: auto;
}

/* アニメーションの設定 */
@keyframes intro-fade {
  0% {
      opacity: 0;
  }

  30% {
      opacity: 1;
  }

  70% {
      opacity: 1;
  }

  100% {
      opacity: 0;
  }
}

/* メインビジュアルロゴ */
#main-visual {
  opacity: 0;
  animation: main-logo-fade-in 1s ease-in forwards;
  animation-delay: 2s;
}

#main-content {
  opacity: 0;
  animation: main-logo-fade-in 1s ease-in forwards;
  animation-delay: .5s;
  width: 100%;
}

@keyframes main-logo-fade-in {
  0% {
      opacity: 0;
  }

  100% {
      opacity: 1;
  }
}

#main-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#main-visual ._link-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 20px;
}

#main-visual ._link-flex h2 {
  font-size: 18px;
  letter-spacing: 0.03em;
}

#main-content ._link-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-block: 20px;
}

#main-content ._link-flex a {
  font-size: 11px;
  letter-spacing: .02em;
  font-weight: 600;
}

#main-content ._link-flex #active {
  color: orange;
}

@media screen and (min-width: 1000px) {
  #main-content ._link-flex {
      margin-block: 30px;
  }

  #main-content ._link-flex a {
      font-size: 16px;
  }
}

footer {
  margin-block-start: auto;
  flex-shrink: 0;
  padding: 10px;
  font-size: 12px;
  text-align: center;
}

#main-content h2 {
  display: flex;
  align-items: center;
  width: 100%;
  padding-inline: 10px;
  font-size: 18px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

#main-content h2:after {
  border-top: 1px solid;
  content: "";
  width: 100%;
  margin-left: 8px;
}

.section-company dl {
  display: flex;
  flex-direction: column;
  padding-inline: 10px;
  margin-block: 5px;
}

.section-company dl .company-item {
  display: flex;
  flex-direction: column;
  margin-block: 5px;
}

.section-company dl .company-item dt {
  font-size: 11px;
  font-weight: 600;
}

.section-company dl .company-item dd {
  font-size: 13px;
  margin-inline-start: 5px;
}

button{
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

#languageForm {
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

#languageForm select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid lightgrey;
}
