/******************************************************************************/
/* Custom Properties
/******************************************************************************/
:root {
  --main-color: #000000;
  --text-color-main: #3c3c3c;
  --text-color-accent: var(--main-color);
  --text-color-white: white;
  --text-color-red: hsl(0 75% 50% / 1);
  --background-color-accent: var(--main-color);
  --background-color-white: white;
  --background-color-gray: hsl(0 0% 86% / 1);
  --background-color-yellow: hsl(56 100% 50% / 1)
}



/******************************************************************************/
/* Body
/******************************************************************************/
html, body {
  height: 100%;   /* フッタ固定のため、高さを指定 */
}

body {
  background-color: var(--background-color-white);
  color: var(--text-color-main);
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "メイリオ", sans-serif;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: break-word;
}



/******************************************************************************/
/* Hero Image
/******************************************************************************/
#h1-hero-image {
  background: url("../img/background-image-white00.png");
  background-size: cover;
  margin: 0;
  text-align: center;
}
@media (min-width: 768px) {
  #h1-hero-image {
    padding-top: 25px;
  }
}

#picture-hero-image {
  line-height: 0;
  margin: 0 auto;
  padding-top: 0;
  width: 100%;
  max-width: 1230px;
}

#picture-hero-image > * {
  width: 100%;
  max-width: inherit;
}



/******************************************************************************/
/* Article
/******************************************************************************/
article {
  margin: auto;
  width: 100%;
}

hr {
  border: none;
  border-bottom: solid 1px var(--text-color-accent);
  margin: 0.5rem auto;
  width: 100%;
  max-width: 600px;
}

#area-floating-button {
  display: flex;
  justify-content: end;
  height: 6rem;
  margin-bottom: 4rem;
  pointer-events: none;
  position: sticky;
  top: calc(100vh - 9rem);
  width: 100%;
  z-index: 10;
}

#img-floating-button {
  filter: drop-shadow(0px 9px 8px hsl(0 0% 0% / 0.25));
  flex-direction: column;
  margin: 0 2rem 2rem 2rem;
  width: 8rem;
}
@media (min-width: 768px) {
  #img-floating-button {
    width: 12rem;
  }
}

#area-floating-button + section {
  margin-top: -10rem;
}


/******************************************************************************/
/* Section
/******************************************************************************/
section {
  align-items: center;
  background-image: url(../img/background-image-white.png);
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}
section:nth-of-type(2n) {
  background-image: url(../img/background-image-popblue.png);
}

section h2 {
  background-color: var(--background-color-accent);
  color: var(--text-color-white);
  font-size: 2.3rem;
  font-weight: 700;
  margin: 0 0.5rem 3rem 0.5rem;
  padding: 8px 16px 4px 16px;
  width: fit-content;
}
section:nth-of-type(2n) h2 {
  background-color: var(--background-color-white);
  color: var(--text-color-accent);
}

section h3 {
  color: var(--text-color-accent);
  font-size: 1.5rem; /* 約24px相当（1rem=16px） */
}
.a-make-card {
  align-items: center;
  background-color: var(--background-color-yellow);
  border: solid 3px var(--text-color-accent);
  border-radius: 2rem;
  box-sizing: border-box;
  color: var(--text-color-accent);
  display: flex;
  filter: drop-shadow(0px 9px 8px hsl(0 0% 0% / 0.25));
  font-size: 1.25em;
  font-weight: 900;
  height: 4rem;
  justify-content: center;
  margin: 3rem 1rem 0 1rem;
  pointer-events: all;
  position: relative;
  text-decoration: none;
  transition: all 225ms ease-in-out;
  width: 22rem;
}

.img-floating-button {
  height: 3.5rem;
  position: absolute;
  left: 0.5rem;
}

.a-with-icon-chebron-right::before {
  background-color: var(--background-color-accent);
  border-radius: 50%;
  content: '';
  height: 2rem;
  position: absolute;
  right: 1rem;
  transition: transform 225ms ease-in-out;
  transform: scale(100%);
  width: 2rem;
}
.a-with-icon-chebron-right:hover::before {
  transform: scale(125%);
}

.a-with-icon-chebron-right::after {
  border: solid 3px var(--background-color-yellow);
  border-style: solid solid none none;
  content: '';
  height: 0.75rem;
  position: absolute;
  right: 1.75rem;
  transform: rotate(45deg);
  width: 0.75rem;
}

.area-anchor {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  width: 100%;
}

.area-anchor-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
  flex: 1;
  flex-direction: column;
  max-width: 30rem;
}



/******************************************************************************/
/* Section - Lead
/******************************************************************************/
#section-lead {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-family: 'Noto Sans JP', sans-serif !important;
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 120px;
  position: relative;
  text-align: center;
}
@media (max-width: 1080px) {
  #section-lead {
    padding-top: 30px;
    padding-bottom: 250px;
  }
}

.p-lead-description {
  min-height: 10rem;
  padding: 0 1rem;
  text-align: justify;
  max-width: 30rem;
}

#section-lead .a-make-card {
  margin: 0rem 1rem 5rem 1rem;
}

#text-title-sub {
  align-items: center;
  color: var(--text-color-accent);
  display: flex;
  flex-wrap: wrap;
  font-size: 1.5rem;
  font-weight: 700;
  justify-content: center;
  margin: 0;
  position: relative;
}
@media (max-width: 768px) {
  #text-title-sub {
    font-size: 1rem;
  }
}
#text-title-sub::before,
#text-title-sub::after {
  background: url(../img/lead-decoration01.png) no-repeat center top/contain;
  content: '';
  height: 1em;
  position: absolute;
  width: 1em;
}
#text-title-sub::before {
  left: -1em;
}
#text-title-sub::after {
  right: -1em;
  transform: rotateY(180deg);
}

#h2-title {
  align-items: center;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 0 2rem 0;
}

.text-title {
  background-color: var(--background-color-accent);
  color: var(--text-color-white);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: inherit;
}

#area-lead-main {
  position: relative;
}

#area-text-lead {
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 2.4em;
  padding: 0 3rem;
  position: relative;
  text-align: center;
  width: fit-content;
  max-width: 30rem;
}
@media (max-width: 768px) {
  #area-text-lead {
    font-size: 1rem;
    padding: 0 2rem 1rem 2rem;
  }
}

#area-text-lead::before,
#area-text-lead::after {
  background: url(../img/lead-decoration02.png) no-repeat center top/contain;
  content: '';
  height: 1em;
  position: absolute;
  width: 1em;
}
#area-text-lead::before {
  top: 0;
  left: 1rem;
}
#area-text-lead::after {
  right: 1rem;
  bottom: 0;
  transform: rotate(180deg);
}

.text-lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  text-align: center;
}

.lead-badge {
  position: absolute;
}

#lead-badge-1 {
  left: 1rem;
  bottom: -1rem;
  transform: translateX(-100%);
}
#lead-badge-2 {
  top: -1rem;
  right: 1rem;
  transform: translateX(100%);
}
@media (max-width: 1080px) {
  #lead-badge-1 {
    top: 100%;
    left: 0;
    transform: translateX(0);
  }
  #lead-badge-2 {
    top: 100%;
    right: 0;
    transform: translateX(0);
  }
}



/******************************************************************************/
/* Section - 作り方
/******************************************************************************/
#area-how-to-make-steps {
  --width-step: 12rem;
  --length-gap: 4rem;

  align-items: center;
  display: flex;
  gap: var(--length-gap);
  justify-content: center;
}

.area-how-to-make-step {
  background-color: var(--background-color-white);
  border-radius: 0.5rem;
  height: 10rem;
  padding: 1rem;
  position: relative;
  width: var(--width-step);
  min-width: var(--width-step);
}
/* ステップ間のトライアングル */
.area-how-to-make-step:not(:first-child)::before {
  background-color: hsl(0 100% 100% / 0.95);
  clip-path: polygon(0 0, 75% 50%, 0 100%);   /* 三角形に切り抜き */
  content: '';
  height: 2rem;
  position: absolute;
  top: 50%;
  left: -2.75rem;
  transform: translateY(-50%);
  width: 2rem;
}

/* 縦並び */
@media (max-width: calc(12rem * 3 + 4rem * 3 + 2rem /* スクロールバー分を考慮 */)) {
  #area-how-to-make-steps {
    flex-direction: column;
  }

  .area-how-to-make-step:not(:first-child)::before {
    clip-path: polygon(0 0, 100% 0, 50% 75%);   /* 三角形に切り抜き */
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
  }
}

.title-step {
  box-sizing: border-box;
  color: var(--text-color-accent);
  font-family: 'Yu Gothic';
  font-weight: 900;
  margin: 0 0 0.5rem 0;
  text-align: center;
  width: 100%;
}

.text-step {
  margin: 0;
  text-align: justify;
}



/******************************************************************************/
/* Section - 商品仕様
/******************************************************************************/
#section-product-info {
  /* padding-bottom: 7rem; */
}

#area-product-info {
  display: flex;
  padding: 0 0.5rem;
}

.title-product-info {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0;
  white-space: nowrap;
}

.text-product-info {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0;
}

#area-price {
  color: var(--text-color-accent);
  font-weight: 900;
  gap: 1rem 3rem;
  justify-content: space-evenly;
}

.price {
  text-align: right;
}

.number {
  font-size: 1.5rem;
}

.text-product-note {
  margin: 1rem 1rem 3rem 1rem;
  margin: 1rem;
}


/******************************************************************************/
/* Section - 注意事項
/******************************************************************************/
#section-note {
  background-color: var(--background-color-white);
  background-image: none;
  padding: 3rem 1rem;
}

#section-note > h2 {
  background-color: transparent;
  color: var(--text-color-main);
  font-size: 1.125rem;
  font-weight: bolder;
  margin: 1rem 0;
}

#section-note > hr {
  border: none;
  background-image: linear-gradient(to right, rgb(0, 0, 0), rgb(0, 0, 0) 5px, transparent 5px, transparent 10px);
  background-size: 10px 1px;
  background-position: left bottom;
  background-repeat: repeat-x;
  height: 1px;
}

#section-note > p {
  text-align: center;
}



/******************************************************************************/
/* Section - お問い合わせ
/******************************************************************************/
.label-mailform-row {
  display: flex;
  flex-wrap: wrap;
  font-family: 'Yu Gothic';
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
}

.area-mailform-title {
  padding-top: 0.5rem;
  text-align: left;
  min-width: 12rem;
}

.area-mailform-input {
  padding-bottom: 0.5rem;
  text-align: left;
  width: 100%;
}

#table-contact-form {
  border: 0;
  border-collapse: collapse;
  font-family: 'Yu Gothic';
  margin: 1rem auto;
  width: 100%;
  max-width: 600px;
}

#table-contact-form th {
  background-color: var(--background-color-gray);
  background-color: #f8f8f8;
  border: solid 1px #cccccc;
  padding: 0.5rem;
  text-align: left;
  vertical-align: middle;
  min-width: 10rem;
}

.required {
  color: var(--text-color-red);
  font-size: calc(1rem - 4px);
  margin-left: 0.5rem;
}

.any {
  font-size: calc(1rem - 4px);
  margin-left: 0.5rem;
}

.area-mailform-input input {
  box-sizing: border-box;
  font-size: 1rem;
  height: 2rem;
  width: 100%;
}

.area-mailform-input textarea {
  box-sizing: border-box;
  display: block;   /* 下の余白を打ち消し */
  font-size: 1rem;
  height: 5rem;
  width: 100%;
}


#table-contact-form td {
  background-color: white;
  border: solid 1px #cccccc;
  padding: 0.5rem;
  text-align: left;
  vertical-align: middle;
  width: 100%;
}

#table-contact-form input {
  box-sizing: border-box;
  font-size: 1rem;
  height: 2rem;
  width: 100%;
}

#table-contact-form textarea {
  box-sizing: border-box;
  display: block;   /* 下の余白を打ち消し */
  font-size: 1rem;
  height: 5rem;
  width: 100%;
}

.check {
 margin: 1rem auto;
}

.submit {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1rem auto;
}

.submit button, .submit .button {
  align-items: center;
  background-color: var(--background-color-white);
  border: solid 1px var(--text-color-accent);
  border-radius: 1.5rem;
  color: var(--text-color-accent);
  cursor: pointer;
  display: flex;
  font-family: 'Yu Gothic';
  font-weight: 900;
  height: 3rem;
  justify-content: center;
  text-decoration: none;
  transition: all 225ms ease-in-out;
  width: 15rem;
}
.submit button:hover, .submit .button:hover {
  background-color: var(--background-color-accent);
  color: var(--text-color-white);
}



/******************************************************************************/
/* Footer
/******************************************************************************/
footer {
  background-color:#ececec;
  border-top: 2px solid #000;
  font-size: calc(1rem - 2px);
  padding: 1rem;
  position: sticky;
  top: 100vh;
}

#area-company-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

#area-company-info > p {
  flex: 1;
  min-width: 20em;
}

#logo-daiko {
  height: 76px;
  width: 170px;
}

#area-copyright {
  margin: 0;
  text-align: center;
}



/******************************************************************************/
/* 川本 追記
/******************************************************************************/
.sp {
  display: none;
}

@media screen and (max-width:768px){
  .pc {
    display: none !important;
  }

  .sp {
    display: inherit;
  }
}
