h1 {
  font-size: 3rem;
}

h1 span {
  font-size: 1.7rem;
  color: #2F9BFF;
}

h2 {
  font-size: 2rem;
  margin-bottom: 32px;
}

h3 {
  margin-bottom: 8px;
}

/* ヘッダー */
#sub-navigation {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 0 80px;
  margin: auto;
  background-color: var(--color-black);
  z-index: 1000;
}

#sub-navigation ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#sub-navigation ul li {
  color: var(--color-white);
  flex: 1;
  text-align: center;
  padding: 8px;
}

#sub-navigation ul li a {
  display: block;
  width: 100%;
  height: 100%;
}

/* メインコンテンツ共通 */
.container {
  margin: 80px auto 0;
}

section {
  padding: 80px 32px;
}

section > div {
  max-width: 1200px;
  margin: 0 auto;
}

.content-background {
  background-color: #FAFAFA;
}

#factory h2,
#price h2,
#faq h2,
#steps h2,
#contact h2 {
  margin-bottom: 8px;
}

.item-description {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
}

.item-description div {
  width: 80%;
}

.works-main-item .item-img,
.other-goods-01 .item-img,
.other-goods-02 .item-img {
  aspect-ratio: 3 / 2;
  width: 50%;
}

/* ヒーロー */
.hero {
  text-align: center;
  padding-top: 104px;
  padding-bottom: 72px;
  position: relative;
}

.back-ground-text {
  background-image: url(../../img/oem/a.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 50%;
  height: 230px;
}
.back-ground-shapes {
  width: 100%;
  height: 50px;
  margin-top: 96px;
  margin-bottom: 88px;
  background-color: #FBDC10;
}
.hero-message {
  width: 374px;
  margin-left: auto;
  text-align: left;
}

.hero-message h1 {
  font-size: 24px;
}
.hero-message p {
  font-size: 16px;
}


.hero img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  max-width: 424px;
  height: auto;
  filter: drop-shadow(1px 6px 6px #0000004b);
  opacity: 0.4;
  animation: fadeDown 1s ease-out forwards;
}

@keyframes fadeDown {
  to {
    opacity: 1;
    transform: translate(-50%, -60%);
  }
}

/* OEM */
.about-oem {
  background-color: #FAFAFA;
}

.about-oem .layout {
  display: flex;
  gap: 40px;
}

.about-oem .layout > div {
  flex: 1;
}

.about-oem .item-img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 20px;
}

.about-oem .layout h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.print {
  display: flex;
  gap: 5%;
  margin-top: 80px;
  padding: 72px 5%;
  background-color: #eff1f4;
}

.print-description {
  max-width: 476px;
  height: auto;
}

.print-description h2 {
  margin-bottom: 24px;
}

.print-description p:first-child,
.goods .item-description span {
  margin-bottom: 8px;
  color: #2F9BFF;
}

.print-description span {
  background-color: #FBDC10;
}

.print .item-img {
  margin-bottom: 8px;
}

.print-image {
  min-width: 318px;
  margin-top: 40px;
}

.print-image div:last-child {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.about-us {
  margin-top: 128px;
}

.about-us h2 {
  margin-bottom: 0;
}

.about-us div {
  aspect-ratio: 3.3 / 1.6;
  margin: 0 auto;
  overflow: hidden;
  padding-top: 56px;
}

/* 製作実績 */
.works, #steps, #factory {
  background-color: #ebecef;
}

.works .layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列レイアウト */
  grid-template-rows: auto auto; /* 2行 */
  gap: 32px;
}

.works-main-item {
  display: flex;
  grid-column: 1 / span 3; /* 1行目を3列分にまたがる */
}

.works-item {
  padding: 32px;
}

.works-item h3 {
  text-align: center;
}

.works-item p {
  text-align: center;
  padding: 8px 0;
}

.works-item span {
  display: block;
  font-size: 2.8rem;
  color: #2f9bff;
  font-weight: 900;
  line-height: 1.1;
  margin-left: 8px;
}

.strong-point {
  margin-top: 80px;
}

.strong-point--layout {
  display: flex;
  gap: 32px;
}

.strong-point-item {
  flex: 1;
  padding: 32px;
  background-color: #eff1f4;
}

.strong-point-item .item-img {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: initial;
}

.strong-point-item .item-img img {
  width: 50%;
  height: auto;
}

.strong-point-item p {
  padding: 8px 0;
}

.hidden-pc {
  display: none;
}

/* 商品紹介 */
.goods .pick_up{
  margin-bottom: 80px;
}

.goods .pick_up .item-description {
  width: 100%;
  padding: 40px;
}

.goods .layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
}

.goods-img {
  aspect-ratio: 2 / 2.4;
  margin-bottom: 16px;
}

.other-goods-01 {
  display: flex;
  margin: 128px 0 40px;
}

.other-goods-02 {
  display: flex;
  flex-direction: row-reverse;
}

/* 設備 */
.factory .layout {
  display: flex;
  gap: 40px;
  margin: 40px 0;
}

.factory-item {
  width: 100%;
}

.factory-item .item-img {
  aspect-ratio: 3 / 2;
}

.model-info {
  text-align: center;
  margin: 32px 0;
}

/* 価格表 */
.price .layout {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 80px;
  font-size: 0.96rem;
}

.price .layout > div {
  flex: 1;
}

.price-goods {
  display: flex;
  width: auto;
  height: 172px;
  padding-left: 24px;
  background-color: #FAFAFA;
  position: relative;
}

.price-goods .item-img {
  position: absolute;
  width: auto;
  filter: drop-shadow(1px 2px 4px #8a8a8a);
}

.price-goods .item-img.price-type-a {
  top: 50px;
  right: 10%;
  height: 75%;
}

.price-goods .item-img.price-type-b {
  top: 72px;
  right: 10%;
  height: 62%;
}

.price-goods .item-img.price-type-c {
  top: 80px;
  right: 10%;
  height: 46%;
}

.price-goods h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 0 0;
}

.price-goods p {
  margin-bottom: 10px;
}

.price-goods span {
  padding: 4px 12px;
  color: #FAFAFA;
  background-color: #2F9BFF;
  border-radius: 6px;
}

.price-information {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  height: 416px;
}

.price-information.price-type-a {
  background-color: #0dba83;
}

.price-information.price-type-b {
  background-color: #f2c54f;
}

.price-information.price-type-c {
  background-color: #4c9cf5;
}

.price-information ul,
.price-other {
  border-radius: 6px;
}

.price-information > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 86%;
}

.price-information ul,
.price-other {
  background-color: #FAFAFA;
  overflow: hidden;
}

.price-information ul li:not(:last-child) {
  border-bottom: solid 1px #CFCFCF;
}

.price-information ul li:first-child {
  border-bottom: solid 3px #CFCFCF;
}

.price-information span {
  display: inline-block;
  height: 100%;
  padding: 8px 0;
  text-align: center;
}

.price-information ul li span:first-child,
.price-other span:first-child {
  width: 40%;
  color: #FAFAFA;
  background-color: #494949;
}

.price-information ul li span:last-child,
.price-other span:last-child {
  width: 60%;
  font-weight: 700;
}

/* ご利用の流れ */
.steps-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.steps-description {
  width: 50%;
}

.steps-contents {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 50%;
  max-width: 400px;
  margin-top: 8px;
  position: relative;
  z-index: 10;
}

.steps-contents::before {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  content: '';
  width: 11px;
  height: 89%;
  background-color: #2F9BFF;
  z-index: -1;
}

.steps-contents::after {
  position: absolute;
  bottom: 9.9%;
  left: 50%;
  transform: translateX(-50%);
  content: '';
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 16px solid #2F9BFF;
  z-index: -1;
}

.steps-contents div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  padding: 0 24px;
  text-align: center;
  border: 1px solid #2F9BFF;
  background-color: #FAFAFA;
}

/* Q&A */
#faq h2, #faq p {
  text-align: center;
}

.faq-cotents {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: fit-content;
  margin:56px auto;
}

#faq .faq-question {
  text-align: left;
}

#faq .faq-answer {
  display: flex;
  align-items: center;
  max-width: 590px;
  height: auto;
  padding: 8px 0 8px 16px;
  text-align: left;
  font-weight: 600;
  color: #2F9BFF;
  position: relative;
}

.faq-answer::before {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 8px;
  height: 100%;
  background-color: #2F9BFF;
}

#contact {
  background-color: #FAFAFA;
}

.contact-contents {
  width: fit-content;
  margin: 0 auto;
}

.contact-contents h2,
.contact-contents p {
  text-align: center;
}

.contact-contents > a {
  display: block;
  text-align: center;
  text-decoration: underline;
  margin: 40px 0;
}

.contact p {
  margin-bottom: 24px;
}

.contact label {
  display: inline-block;
  width: 100%;
  height: 100%;
  text-align: left;
}

.contact-form {
  max-width: 400px;
  margin: 0 auto;
}

.required {
  color: red;
}

.contact input {
  width: 100%;
  max-width: 400px;
  height: 48px;
  padding: 8px;
  font-size: 1rem;
}

.contact-hope {
  display: block;
  text-align: left;
}

.contact-hope label {
  width: fit-content;
}

.contact-hope input, .contact-confirm input {
  width: initial;
  height: initial;
}

.contact-hope .first {
  margin-right: 16px;
}

.contact-money span {
  display: inline-block;
  text-align: end;
  width: 100%;
}

.contact-message textarea {
  width: 100%;
  height: 260px;
  padding: 8px;
  font-size: 1rem;
}

.contact-confirm {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  margin-bottom: 40px;
  background-color: #fff1e2;
}

.contact-confirm p {
  text-align: left;
  margin: 0;
}

.contact-confirm span {
  display: block;
  margin: 0;
}

.contact-confirm .wpcf7-list-item-label {
  display: inline-block;
}

.contact-confirm label {
  padding-top: 16px;
  border-top: solid 1px #999;
}

.contact-confirm input {
  margin-right: 8px;
}

#contact ul,
.wpcf7-response-output
{
  display: none;
}

.wpcf7-not-valid-tip {
  color: red;
}

.contact-fixed {
  position: fixed;
  bottom: 4px;
  right: 4px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #fbdc10e8;
  z-index: 1000;
  display: none;
}

.contact-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 13px;
}

@media (max-width: 1080px) {
  #sub-navigation {
    display: none;
  }

  .about-oem .layout {
    gap: 16px;
  }

  .contact-fixed {
    display: block;
  }
}

@media (max-width: 960px) {
  .hero img {
    max-width: 360px;
  }

  .price .layout {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h1 span {
    font-size: 1.2rem;
  }

  section {
    padding: 64px 32px;
  }

  .item-description {
    width: 100%;
  }

  .item-description div {
    width: 100%;
    padding: 32px;
  }

  .works-main-item .item-img,
  .other-goods-01 .item-img,
  .other-goods-02 .item-img {
    aspect-ratio: 3 / 2;
    width: 100%;
  }

  .about-oem .layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .about-oem .layout > div {
    display: flex;
    gap: 24px;
  }

  .print {
    flex-direction: column;
  }

  .print-description {
    max-width: 100%;
  }

  .about-us {
    text-align: left;
    margin-top: 80px;
  }

  .about-us div {
    width: 100%;
    padding-top: 24px;
  }

  .about-us h2 {
    font-size: 1.5rem;
    padding-top: 32px;
  }

  .strong-point--layout {
    flex-direction: column;
  }

  .strong-point--layout {
    gap: 16px;
  }

  .works .layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .works-main-item {
    display: block;
    grid-column: 1 / span 2;
  }

  .works-item {
    padding: 16px;
  }

  .works-item h3 {
    font-size: 1rem;
  }

  .works-item span {
    font-size: 1.8rem;
  }

  .goods .layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .goods-img {
    margin-bottom: 8px;
  }

  .goods .pick_up .item-description {
    padding: 0;
  }

  .other-goods-01, .other-goods-02 {
    display: block;
  }

  .factory .layout {
    display: block;
  }

  .factory-item {
    display: flex;
    margin-bottom: 16px;
  }

  .factory-item .item-img {
    width: 40%;
  }

  .price .layout {
    flex-direction: column;
    gap: 32px;
  }

  .price-goods {
    padding-left: 7.2%;
  }

  .price-goods .item-img {
    right: 17%;
  }

  #steps h2 {
    text-align: left;
  }

  .steps-container {
    flex-direction: column;
  }

  .steps-description {
    width: 100%;
  }
  
  .steps-contents {
    width: 100%;
    max-width: 100%;
  }

  #faq h2, #faq p {
    text-align: left;
  }

  .faq-cotents {
    width: 100%;
  }

  .contact-contents h2, .contact-contents p {
    max-width: 400px;
    text-align: left;
  }

  .contact-contents > a {
    text-align: left;
  }

  .contact-contents {
    margin: 0;
  }
}


@media (max-width: 480px) {
  body {
    font-size: 0.97rem;
    line-height: 1.75;
  }

  h1 {
    font-size: 1.7rem;
    text-align: left;
  }

  h1 span {
    font-size: 0.92rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 64px 16px;
  }

  .back-ground-text {
    height: 113px;
  }

  .hero-message {
    width: 100%;
    margin-left: initial;
  }

  .hero {
    padding: 24px 16px;
  }

  .hero img {
    max-width: 220px;
    top: 39%;
  }

  .hero p {
    margin-bottom: 30px;
  }

  .about-oem .layout h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .about-oem .layout {
    gap: 56px;
  }

  .about-oem .layout > div {
    display: block;
  }

  .print {
    padding: 40px 4%;
  }

  .other-goods-01 {
    margin: 80px 0 64px;
  }

  .factory .layout {
    flex-direction: column;
    gap: 40px;
  }

  .price .layout {
    margin-top: 48px;
  }

  .price-goods h3 {
    margin: 24px 0 0 0;
  }

  .faq-cotents {
    margin: 32px auto;
  }
}