body {
  font-family: "Noto Sans", sans-serif;
  max-width: 1080px;
  margin: 0 auto;
  box-sizing: border-box;
}

header {
  height: 100px;
  display: flex;
  justify-content: space-between;
}

#nav-pc {
  text-align: left;
  font-size: 14px;
}

#nav-pc > a {
  text-decoration: none;
}

#nav-pc > a:hover {
  color: #0d0d0d;
  text-decoration: underline;
}

#main-visual {
  position: relative;
  height: 400px;
}

#main-message {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #04414a;
  color: #ffffff;
  border-radius: 0 0 150px 0;
  max-width: 620px;
  height: 100%;
  width: 100%;
  z-index: 11;
}

#main-message > h1 {
  font-size: 60px;
  font-weight: bold;
  margin: 100px 0 0 50px;
}
#main-message > p {
  font-size: 28px;
  margin: 0 0 0 50px;
}

#main-visual > img {
  max-width: 600px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

h2 {
  margin: 40px 0 0 0;
}

h2::after {
  content: url("images/line.png");
  margin-left: 10px;
}

h3 {
  font-size: 27px;
}

#concept {
  margin: 80px auto 80px auto;
}

#concept-flex {
  width: 100%;
  display: flex;
  text-align: center;
}

#concept-flex > div {
  width: 50%;
  margin: 20px;
}

#concept-photo {
  width: 80%;
  margin: 0 auto;
}

#product {
  background-color: #fafafa;
  margin: 20px 0 80px 0;
  padding: 10px 40px 0px 40px;
}

#product > div {
  margin-top: 40px;
  display: flex;
}

#product-left {
  width: 50%;
  margin-right: 20px;
}

#product-right {
  width: 50%;
  margin-left: 20px;
  margin-top: 80px;
}

#product-left > div {
  position: relative;
  height: 480px;
  margin-right: 20px;
}
#product-right > div {
  position: relative;
  height: 480px;
  margin-left: 20px;
}

.product-photo {
  width: 100%;
}

.product-explain {
  background-color: #ffffff;
  position: absolute;
  left: 0;
  bottom: 50px;
  margin: 0 40px 0 40px;
  padding: 20px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.05);
}

.product-explain > span {
  color: #04414a;
  font-weight: bold;
  font-size: 16px;
  margin: 0;
}

.product-explain > h3 {
  margin: 5px 0 5px 0;
}

.product-explain > p {
  margin: 0;
}

#company {
  margin: 80px auto 80px auto;
}

#company-table {
  width: 100%;
}

.tableheader {
  text-align: left;
  padding: 20px;
  border-bottom-color: #04414a;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  width: 100px;
}

.tableheader-first {
  border-top-color: #04414a;
  border-top-width: 1px;
  border-top-style: solid;
}

.cell {
  padding: 30px;
  border-bottom-color: #ececec;
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.cell-first {
  border-top-color: #ececec;
  border-top-width: 1px;
  border-top-style: solid;
}

footer {
  background-color: #04414a;
  text-align: center;
  padding: 80px 80px 30px 80px;
}

#footer-logo {
  margin-bottom: 30px;
}

#footer-link {
  margin-bottom: 50px;
}

#footer-link > a {
  text-decoration: none;
  margin: 10px;
  color: #ffffff;
}

#footer-link > a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#sns-footer {
   text-align: left;
   width: 100%;;
 }

 #sns-footer > a {
   margin-right: 30px;
   display: inline-block;
 }
 
 #copyright {
   color: #ffffff;
   float: right;
 }

 /* ==================================== */
/* 8. レスポンシブデザインの追加 (スマートフォン対応) */
/* ==================================== */

/* --- 8.1 ハンバーガーメニューボタンのスタイル --- */
#nav-sp {
  /* スマホ表示時のみ利用 */
  display: none;
}

.menu-btn {
  /* ボタンの位置とサイズ */
  position: absolute;
  top: 35px; /* headerの高さに合わせて調整 */
  right: 20px;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 200; /* メニュー本体より手前に表示 */
}

.menu-btn span {
  /* ハンバーガーの線 */
  display: block;
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #04414a; /* ロゴやPCメニューの色に合わせる */
  transition: all 0.3s;
}

.menu-btn span:nth-of-type(1) {
  top: 0;
}
.menu-btn span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}
.menu-btn span:nth-of-type(3) {
  bottom: 0;
}

/* --- 8.2 メニューが開いた時のボタンのアニメーション --- */
.menu-btn.active span:nth-of-type(1) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}
.menu-btn.active span:nth-of-type(2) {
  opacity: 0;
}
.menu-btn.active span:nth-of-type(3) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}


/* --- 8.3 スマホ用オーバーレイメニュー本体のスタイル --- */
.nav-overlay {
  /* 全画面を覆うように設定 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(4, 65, 74, 0.95); /* 半透明の背景色 */
  z-index: 100;
  
  /* メニューアイテムの配置 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  /* 初期状態では非表示 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}

.nav-overlay.active {
  /* メニューが開いた状態 */
  opacity: 1;
  visibility: visible;
}

.nav-overlay a {
  color: white;
  font-size: 1.5rem;
  padding: 15px 0;
  text-decoration: none;
  font-weight: bold;
}

/* --- 8.4 メディアクエリ (画面幅768px以下の時の設定) --- */
@media (max-width: 768px) {
    /* PCメニューを非表示にし、スマホメニューを表示 */
    #nav-pc {
        display: none;
    }
    #nav-sp {
        display: block;
    }
    
    /* ヘッダーの調整（ハンバーガーボタンが収まるように） */
    header {
        height: 80px; /* PC版より少し低くしても良い */
    }

    /* メインビジュアルのレイアウト調整 */
    #main-visual {
      height: auto; /* 高さを自動調整 */
    }
    #main-message {
      position: static; /* position:absoluteをやめて通常配置 */
      border-radius: 0;
      max-width: 100%;
      height: auto;
      padding: 30px 20px;
    }
    #main-message > h1 {
      font-size: 40px;
      margin: 0;
    }
    #main-message > p {
      font-size: 20px;
      margin: 0;
    }
    #main-visual > img {
      position: static; /* position:absoluteをやめて通常配置 */
      max-width: 100%;
      width: 100%;
      height: auto;
    }

    /* その他のセクションのレイアウト調整 */
    #concept-flex {
        flex-direction: column; /* 縦並びにする */
        margin: 0;
    }
    #concept-flex > div {
        width: 100%;
        margin: 20px 0;
    }
    
    /* 商品セクションのレイアウト調整 */
    #product > div {
        flex-direction: column; /* 縦並びにする */
    }
    #product-left, #product-right {
        width: 100%;
        margin: 0;
    }
    #product-right {
        margin-top: 40px; /* 縦並びになったので、上の要素との間隔を空ける */
    }
    #product-left > div, #product-right > div {
        margin: 0 0 40px 0;
        height: auto;
    }
    .product-explain {
        position: static; /* absoluteを解除して通常配置に戻す */
        margin: 0 0 10px 0;
    }
}