@charset "utf-8";

/* CSS読み込み状況 2025年9月
style.css - トップページ用に作られた既存のCSS
taidan.css - 対談ページ用に作られた既存のCSS
common.css - 今回比較ページ用に新たに作られたCSS
header.css  - CSSの競合を解決するために、今回新たにindex.html, discussion/index.htmlのヘッダー用に作られたCSS

index.html - style.css, header.css
discussion/index.html - taidan.css, header.css
comparison/index.html - common.css*/

/* index.html, discussion/index.htmlで/comparison/assets/css/common.cssを読み込んだところ競合が激しかったため、
index.html, discussion/index.html用に新規でヘッダー部分だけheader.cssを作成
内容は/comparison/assets/css/common.cssの中に書いてあるものをそのまま流用し、remなどで指定しているところだけ調整を加えている */

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
}

.divImg {
  width: 100%;
}

.divImg img {
  width: 100%;
}

.pcShown {
  display: none;
}

.spShown {
  display: block;
}

/* ヘッダー ----------------------------------------*/
header {
  letter-spacing: 0px; /* index.htmlとdiscussion/index.htmlで読み込んでいるstyle.cssのletter-spacing:0.5pxを打ち消すため、調整を加えている */
  line-height: 1.5;
  padding: 18px 20px;
  position: fixed;
  background-color: rgb(255, 255, 255, 0.5);
  width: 100%;
  z-index: 99;
}

/* ハンバーガーをクリックした時に、ヘッダー下にラインを追加 */
.headerIsOpen::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 2px;
  background: linear-gradient(to right, #28315f 0%, #2844da 25%, #883ea2 80%);
  top: 54px;
  margin: 0 -30px;
}

.headerContents {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  gap: 1rem;
  position: relative;
  z-index: 999;
}

/* ロゴ */
.headerLogo {
  width: 160px;
}

/* ハンバーガーメニューとお問い合わせボタン */
.contactAndMenu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9379rem; /* index.htmlとdiscussion/index.htmlのHTMLフォントサイズに合わせるため、comparison/assets/css/common.cssはgap:1.5remだが、調整を加えている */
}

.contactAndMenu a {
  text-decoration: none;
}

/* お問い合わせボタン */
.contactButton {
  display: flex;
  justify-content: space-between;
  width: 115px;
  background-color: #dc000b;
  padding: 11px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contactButton:hover {
  background-color: #fb676f;
}

.contactButton .contactText {
  font-size: 0.625rem; /* index.htmlとdiscussion/index.htmlで読み込んでいるstyle.cssのHTMLフォントサイズに合わせるため、comparison/assets/css/common.cssは1remだが、調整を加えている */
  color: white;
  font-weight: 600;
}

.contactButton img {
  width: 22%;
}

/* ハンバーガーメニュー */
/* メニューの線一括設定 */
.hamburgerButton span {
  display: block;
  width: 34px;
  height: 2px;
  background-color: #535353;
  transition: all 0.3s;
}

/* メニューの線の間の余白 */
.hamburgerButton span:nth-child(2),
.hamburgerButton span:nth-child(3) {
  margin-top: 10px;
}

/* ハンバーガーメニューをクリックしたときに、一番上の線が移動して×になる */
.buttonIsOpen span:first-child {
  transform: translateY(12px) rotate(45deg);
}

/* ×にしたときに真ん中の線が消える */
.hamburgerButton.buttonIsOpen span:nth-child(2) {
  opacity: 0;
}

/* ハンバーガーメニューをクリックしたときに、一番下の線が移動して×になる */
.buttonIsOpen span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* ハンバーガーメニューの設定 */
.overlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  transition: all 0.3s;
  background-color: white;
  padding: 0;
}

/* ハンバーガーメニューをクリックした時に見えるようになる */
.overlayIsOpen {
  visibility: visible;
  opacity: 1;
}

/* 各メニューの設定 */
.hamburgerMain {
  margin: 80px 20px 30px;
}

.hamburgerMain ul {
  padding-left: 0px;
}

.hamburgerMain li {
  list-style: none;
}

.hamburgerMain li a {
  color: #2e3176;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 20px 0 20px 20px;
  display: block;
  border-bottom: 1px solid #2e3176;
}

.hamburgerMain li a span {
  margin-left: 25px;
  font-size: 0.75rem;
}

.hamburgerList img {
  display: inline;
  padding: 0 6px 1px 3px;
  width: unset; /* index.htmlとdiscussion/index.htmlで読み込んでいるstyle.cssのwidth: 100%を打ち消すため、調整を加えている */
}

/* 公式サイトへのボタン */
.eastButton {
  display: block;
  padding: 15px 20px;
  font-size: min(3.8vw, 18px);
  font-weight: 600;
  background-color: #2e3176;
  color: white;
  text-align: center;
  margin: 40vh 20px 0;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .pcShown {
    display: block;
  }

  .spShown {
    display: none;
  }
  /* ヘッダー */

  header {
    padding: 18px 30px;
  }

  .headerContents {
    max-width: 1100px;
  }

  .headerLogo {
    width: 198px;
  }

  .contactButton {
    width: 207px;
    padding: 15px 39px;
  }

  .contactButton .contactText {
    font-size: 1rem; /* index.htmlとdiscussion/index.htmlで読み込んでいるstyle.cssのHTMLフォントサイズに合わせるため、comparison/assets/css/common.cssは1remだが、調整を加えている */
  }

  .contactButton img {
    width: 20%;
  }

  .headerIsOpen::after {
    display: none;
  }
}
