@charset "UTF-8";

/* --- 基本設定 --- */
html {
  font-size: 62.5%;/* 1remを10pxにする設定 */
}
body {
  margin: 0;
  padding: 0;
  font-size: 1.6rem;/* =16px */
  color: #333333;
  font-family: sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: normal;
}
p {
  margin: 0;
}
.section {
  margin: 0 1em 3em;
}
.container {
  max-width: 1024px;
  margin: 0 auto;
}
.section-title {
  font-size: calc(0.6vw + 1.6rem);
  font-weight: bold;
  color: #333333;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 0.5em;
}
.small {
  font-size: calc(0.5vw + 0.6rem);
  text-align: end;
  margin-right: 2em;
}
hr {
  max-width: 1024px;
  width: 95%;
  margin: 3em auto;
}
.mobile {
  display: none;
}
.annotation {
  color: darkgray;
  line-height: 1.5;
  margin: 1em 0;
}
.flexbox {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
@media screen and (min-width: 1441px) {
  .container {
    max-width: 1440px;
  }
  hr {
    max-width: 1440px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 0 1em;
    margin: 0 auto 3em;
  }
  .container {
    max-width: 100%;
  }
  .pc {
    display: none;
  }
  .mobile {
    display: initial;
  }
  .flexbox {
    flex-direction: column;
  }
}
@media (max-width: 424px) {
  .section-title {
    font-size: calc(1vw + 1.2rem);
  }
}
/* --- header --- */
.header {
  background-color: #ffffff;
  padding: 10px 20px 20px;
  position: sticky;
  top: 0;
}
.header-inner {
  max-width: 1024px;
  margin: 0 auto;
}
@media screen and (min-width: 1441px) {
  .header-inner {
    max-width: 1440px;
  }
}

/* --- header-top --- */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}
.header-logo .logo {
  width: 280px;
  height: auto;
}
.header-top-right {
  align-items: end;
}
.header-top-right .toyota_logo {
  width: 200px;
  height: auto;
}
.header-mobile-top-left {
  position: absolute;
  top: 5px;
}
.header-mobile-top-left .toyota_logo-moblile {
  width: 60px;
  height: auto;
}
/* PC用お問い合わせボタン */
.contact-button {
  background-color: #e60020;
  color: #fff;
  font-size: 2rem;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: opacity 0.3s;
}
.contact-button:hover {
  opacity: 0.8;
}

/* --- header-PCnav --- */
.header-nav {
  display: flex;
  align-items: center;
  position: relative;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5em;
}
.nav-item-mobile {
  display: none;
}
.nav-item a {
  font-size: 1.6rem;
  position: relative;
  padding: 5px 0;
}
.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.nav-item a:hover::after {
  transform: scaleX(1);
}
.p-right {
  position: absolute;
  right: 0;
}

/* --- hamburger --- */
.hamburger {
  display: none; /* PCでは非表示 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 110;
}
.hamburger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}
.hamburger-bar:nth-of-type(1) { top: 0; }
.hamburger-bar:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
.hamburger-bar:nth-of-type(3) { bottom: 0; }

/* --- スマホ用スタイル (ブレークポイント: 768px) --- */
@media (max-width: 768px) {
  /* ヘッダー全体を固定 */
  .header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-sizing: border-box;
    padding: 10px;
  }
  .header-top {
    border-bottom: none; /* 下線を消す */
    padding-bottom: 0;
  }
  /* トヨタロゴ・お問い合わせボタンを非表示に */
  .header .contact-button {
    display: none;
  }
  .header-top .toyota_logo {
    display: none;
  }
  /* ハンバーガーボタンを表示 */
  .hamburger {
    display: block;
  }
  /* ナビゲーションメニューのスタイル */
  .header-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%; /* 画面右外に配置 */
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    padding-top: 60px;
    transition: right 0.5s;
    z-index: 105;
    box-shadow: -5px 0 10px rgba(0,0,0,0.1);
  }
  /* メニューが開いた時のスタイル */
  .header-nav.is-active {
    right: 0; /* 画面右にスライドイン */
  }
  .nav-list {
    display: block; /* 縦並びに変更 */
  }
  .nav-item-mobile {
    display: block;
    margin: 2em;
    text-align: center;
  }
  .nav-item a {
    display: block;
    padding: 20px;
    font-size: 1.8rem;
    border-bottom: 1px solid #f0f0f0;
  }
  .nav-item a:hover::after {
    transform: scaleX(0); /* ホバー時の下線を無効化 */
  }
  /* ハンバーガーボタンが開いた時のスタイル (×印) */
  .hamburger.is-active .hamburger-bar:nth-of-type(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .hamburger.is-active .hamburger-bar:nth-of-type(2) {
    opacity: 0;
  }
  .hamburger.is-active .hamburger-bar:nth-of-type(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
  .header-logo {
    margin-left: 1em;
  }
  .header-logo .logo {
    width: 160px;
    height: auto;
    display: flex;
  }
}

/* -- section-top -- */
.section-top .mainvisual {
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.mainvisual img {
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .section-top {
    margin-top: 60px;
    padding: 0;
  }
}
@media screen and (min-width: 1441px) {
  .section-top .mainvisual {
    max-width: 1440px;
  }
}

/* -- solution -- */
.circular-economy {
  max-width: 900px;
  width: 100%;
  height: auto;
  margin: 3em auto;
}
.circular-economy-img {
  width: 100%;
  height: auto;
}
.solution h3 {
  font-size: calc(0.8vw + 0.8rem);
  text-align: center;
  line-height: 2;
}
@media (max-width: 768px) {
  .circular-economy {
    max-width: 100%;
  }
}
@media screen and (min-width: 1441px) {
  .circular-economy {
    max-width: 1200px;
  }
}

/* -- case-study -- */
.case-study-inner .flexbox {
  width: 100%;
  height: auto;
  justify-content: space-evenly;
  margin: 0 auto;
}
.case-study-inner .case-box {
  margin-bottom: 3em;
}
.case-study-inner .case-cost-box {
  margin-bottom: 0;
}
.case-img {
  width: 100%;
  height: auto;
}
.case-cost-img {
  width: 100%;
  height: auto;
}

/* -- demo-exp -- */
.demo-exp-inner .map {
  margin: 1em;
}
.demo-exp-inner .map .map-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* -- contact area --*/
.contact-inner {
  text-align: center;
}
.contact-inner p {
  font-size: calc(0.8vw + 1rem);
  margin-bottom: 2em;
}
.contact-inner .contact-button {
  font-size: calc(1vw + 1.6rem);
}
@media (max-width: 768px) {
  .contact-inner .annotation {
    text-align: center;
  }
}

/* -- footer -- */
.footer {
  color: #ffffff;
  background-color: #333333;
  padding: 3em 0 1em;
}
.footer-inner .toyota_logo {
  width: 300px;
}
.footer-inner .flexbox {
  justify-content: space-around;
  margin-bottom: 3em;
}
.footer-inner .columns {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 3em;
  line-height: 2.5;
}
.footer-inner a {
  color: #ffffff;
}
.copyright {
  color: #ffffff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 0 1em;
}
@media (max-width: 768px) {
  .footer-inner .flexbox {
    flex-direction: column;
  }
  .footer-inner .toyota_logo {
    width: 200px;
    margin-bottom: 2em;
  }
  .copyright {
    flex-direction: column;
  }
  .copyright small {
    margin-bottom: 1em;
  }
}