body {
font-family: 'Noto Serif JP', serif;
background-color: #E6E2D7;
}

button {
  font-family: 'Noto Serif JP', serif;
}

/* ヘッダー */

header {
  background-image: url(img/mainvisual-pc.jpg);
  background-size: cover;
  background-position: center;
  aspect-ratio: 7 / 3; 
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
  position: relative;
}

#logo {
  margin-top: 60px;
  margin-right: 80px;
}

#header-menu {
  font-size: 16px;
  color: #fff;
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  gap: 20px;
  margin-right: 8%;
  font-size: 16px;
}

header button {
  all: unset;
  writing-mode: vertical-rl;
  position: absolute;
  left: 40px;
  bottom: 30px;
  font-size: 16px;
  padding: 26px;
  background-color:rgba(255, 255, 255, 0.2);
  color: #fff;
  outline: 1px solid #CCC;
  outline-offset: -8px;
}

/* ニュース */

#news {
  width: 80%;
  max-width: 1024px;
  margin: 100px auto;
  display: flex;
  flex-direction: row-reverse;
}

#news-title {
  display: flex;
  flex-direction: row-reverse;
  font-size: 36px;
  font-weight: medium;
  margin-left: 10%;
  align-items: flex-start;
}

#news-title p {
  font-size: 14px;
  writing-mode: vertical-rl;
  display: block;
  margin-left: 20%;
}

h1 {
  font-size: 36px;
  writing-mode: vertical-rl;
}

ul {
  writing-mode: vertical-rl;
  flex-direction: row-reverse;
  margin-top: 80px;
  height: 286px;
}

.list-day {
  padding: 5% 8% 0 3%;
  border-right: 1px solid #000;  
}

.list-title {
  padding: 5% 0 0 8%;
}

li:last-child {
  border-left: 1px solid #000;
}

/* プロダクト */

#product {
  width: 80%;
  max-width: 1024px;
  margin: 100px auto;
  display: block;
}

#new-values {
  display: flex;
  flex-direction: row-reverse;
  position: relative;
  margin-bottom: 10%;
  margin-left: auto;
}

#science {
  display: flex;
  position: relative;
  width: 70%;
  margin-bottom: 10%;
  margin-right: auto;
}

.product-text {
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 7%;
  margin: 0 1%;
}

.product-title {
  font-size: 32px;
}

.product-sentence {
  font-size: 14px;
}

.product-img {
  margin-top: 5%;
  width: 639px;
  display: flex;
}

.product-img-text-first {
  position: absolute;
  width: 358px;
  height: 146px;
  background-color: rgb(249, 233, 6,0.6);
  color: #fff;
  writing-mode: horizontal-tb;
  right: 40%;
  bottom: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-img-text-first p {
  width: 128px;
}

.product-img-text-second {
  position: absolute;
  width: 358px;
  height: 146px;
  background-color: rgb(149, 42, 38,0.6);
  color: #fff;
  writing-mode: horizontal-tb;
  left: 55%;
  bottom: -15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-img-text-second p {
  width: 128px;
}

/* フッター */

#footer {
  background-color: #8D8470;
  color: #fff;
  flex-direction: row-reverse;
  display: flex;
  padding-right: 10%;
  padding-top: 50px;
  position: relative;
}

#address {
  writing-mode: vertical-rl;
  margin: 0 50px 30px 0;
  font-size: 14px;
}

#footer-menu {
  writing-mode: vertical-rl;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-right: 8%;
  font-size: 16px;
}

#footer-link {
  writing-mode: vertical-rl;
  margin-left: 2%;
  margin-right: auto;
  font-size: 14px;
  display: flex;
  text-align: center;
  gap: 3%;

}

#copyright {
  position: absolute;
  bottom: 3%;
  left: 50%;
  translate: X(-50%); 
  font-size: 10px;
}



/* スマホ対応 */

@media screen and (max-width: 768px) {

/* ヘッダー */

  header {
    background: url(img/mainvisual-sp.jpg) no-repeat center/cover !important;
    background-size: cover;
    background-position: center;
    aspect-ratio: 5 / 8; 
  }

  #logo {
  margin-top: 60px;
  margin-right: 10px;
  }

  #header-menu {
    margin-top: 60px;
    gap: 25px;
    margin-right: 12%;
  }

  /* ニュース */

  ul li:nth-of-type(n+7) {
    display: none;
  }

  ul li:nth-of-type(n+6) {
    border-left: 1px solid;
  }

  /* プロダクト */

  #product {
  width: 90%;
  margin: 100px auto;
  display: block;
}

#new-values {
  display: flex;
  flex-direction: row-reverse;
  position: relative;
  margin-bottom: 10%;
  margin-left: auto;
}

#science {
  display: flex;
  position: relative;
  width: 70%;
  margin-bottom: 10%;
  margin-right: auto;
}

.product-title {
  font-size: 24px;
}

.product-sentence {
  display: none;
}

.product-img {
  margin-top: 15%;
  width: 301px;
  display: flex;
}

.product-img-text-first ,
.product-img-text-second {
  width: 192px;
  height: 100px;
}

.product-img-text-first p ,
.product-img-text-second p {
  font-size: 14px;
}

/* フッター */

#address {
  margin-right: 15px;
  font-size: 14px;
}

#footer-menu {
  font-size: 14px;
}

}