/* ページ全体 */
html {
    font-size: 62.5%;
}

body {
    background-color: #f2f2f2;
    font-family: "Noto Sans JP", sans-serif;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.sp-only {
    display: none;
}

.sp-hide {
    display: inline;
}

/* フォントサイズ */
.small-heading {
    color: #232323;
    font-size: 2.5rem;
}

.medium-heading {
    color: #232323;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 10px auto;
    text-align: center;
}

.reload-info {
    color: #232323;
    font-size: 1.8rem;
    margin: 10px auto;
    text-align: center;
}

.parallelogram-text {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
}

.error-text {
    color: #d40000;
    font-size: 1.0rem;
}

.error-text.isopen {
    display: block;
}

/* 共通素材 */
.parallelogram-box {
    width: 300px;
    background: #1b005e;
    padding: 10px 20px;
    margin: 10px auto;
    text-align: center;
    transform: skewX(-10deg);
}

.field {
    display: grid;
    flex-direction: row;
    width: 850px;
    height: 34px;
    grid-template-columns: 150px 100px 1fr;
    gap: 5px;
    margin: 15px 0;
    align-items: center;
}

.field-message {
    display: flex;
    height: auto;
    margin: 20px;
}

.field-message .label {
    align-items: flex-start;
    margin-top: 4px;
}

.field-btn{
    display: flex;
    height: auto;
    justify-content: center;
}

.pp-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 65px;
}

.pp-text {
    text-decoration: none;
    text-align: center;
}

.label {
    display: flex;
    width: 150px;
    font-size: 1.8rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}

.form-text {
    font-size: 1.5rem;
    margin: 0;
}

.input-size {
    width: 200px;
    border: 1px solid #333;
    padding: 5px;
    font-size: 1.8rem;
    text-align: center;
    box-sizing: border-box;
}

.select,
.input-text,
.input-message {
    width: 600px;
    border: 1px solid #333;
    padding: 5px 0 5px 10px;
    font-size: 1.8rem;
    box-sizing: border-box;
}

.input-number,
.input-zipcode {
    width: 200px;
    border: 1px solid #333;
    padding: 5px;
    font-size: 1.8rem;
    box-sizing: border-box;
}

.input-number {
    text-align: center;
}

.input-zipcode {
    padding: 5px 0 5px 10px;
}

.input-message {
    margin-left: 10px;
}

.required-pill-wrapper {
    display: flex;
    width: 80px;
    align-items: center;
    justify-content: center;
}

.required-pill {
    display: inline-flex;
    width: 45px;
    background: #ff6200;
    padding: 4px 10px;
    border-radius: 999px;
    box-sizing: border-box;

    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/*見積フォーム*/
.estimate-box {
    width: 1000px;
    background: #fff;
    border: 3px #1b005e solid;
    padding: 10px 20px 10px 75px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.estimate-btn,
.confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    width: 230px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: none;
    padding: 15px 10px;

    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.4s ease;
    -webkit-transition: transform 0.4s ease;
}

.estimate-btn:hover,
.confirm-btn:hover {
    outline-offset: -2px;
    transform: translateY(-4px);
    -webkit-transform: translateY(-4px);
}

.estimate-btn {
    background: #1b005d;
    color: #fff;
}

.estimate-btn:hover {
    background: #fff;
    outline: 2px solid #1b005d;
    color: #1b005d;
}

.confirm-btn {
    background: #039fe9;
    color: #fff;
}

.confirm-btn:hover {
    background: #fff;
    outline: 2px solid #039fe9;
    color: #039fe9;
}

/*金額表示*/
.estimate-result {
    padding: 10px 0;
}

.estimate-result-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-right: 90px;
}

.notes-wrapper {
    position: absolute;
    bottom: 0;
    left: 10px;
}

.estimate-result-label {
    font-size: 1.8rem;
}

.estimate-result-price {
    width: 180px;
    background: #f2f2f2;
    border: 1px solid #333;
    padding: 5px 12px;
    box-sizing: border-box;

    color: #cc0000;
    font-size: 3.2rem;
    font-weight: 800;
    text-align: right;
}

.estimate-result-unit {
    font-size: 1.8rem;
    font-weight: 700;
}

/*問い合わせ*/
.contact-section {
    display: none;
}

.contact-section.is-open {
    display: block;
}

.form-box {
    width: 1000px;
    background: #fff;
    border: 3px #039fe9 solid;
    border-radius: 10px;
    padding: 10px 20px 10px 75px;
    margin: 20px auto;
    box-sizing: border-box;
}




/* フッター */
.footer-background {
    width: 100%;
    background: #fff;
    padding: 10px 0 0;
    margin: 40px 0 0;
}

.adv-name {
    font-size: 2.0rem;
    font-weight: 700;
}

.site-footer {
    margin: 20px 0;
    text-align: center;
}

.adv-adress {
    font-size: 1.5rem;
}

.adv-adress a {
    color: #232323;
    text-decoration: none;
}

.blog-link {
    font-size: 2.0rem;
    margin: 10px 0;
}

.hp-link a{
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
}

.footer-logo {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.adv-logo {
    display: block;
    object-fit: contain;
    width: 200px;
    height: 50px;
}

.footer-bottom {
    display: flex;
    width: 100%;
    height: 40px;
    background: #74afbf;
    align-items: center;
}

.footer-bottom-left,
.scroll-top-btn {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.footer-bottom-center {
    flex: 1;
    text-align: center;
}

.scroll-top-btn {
    background: #000;
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .sp-hide {
    display: none;
  }

  .parallelogram-text,
  .medium-heading {
    font-size: 1.8rem;
  }

  .reload-info {
    font-size: 1.1rem;
}

  .form-text,
  .label {
    font-size: 1.1rem;
  }

  .estimate-result-label,
  .estimate-result-unit {
    font-size: 1.4rem;
  }

  .parallelogram-box {
    max-width: 250px;
  }

  .estimate-box,
  .form-box {
    width: 100%;
    max-width: 350px;
    padding: 10px;
    box-sizing: border-box;
  }

  .field {
    width: 100%;
    max-width: 350px;
    grid-template-columns: 80px 5px 1fr;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
  }

  .field > :nth-child(3){
  justify-self: start;
  }

  .input-size {
    width: 85px;
    font-size: 1.4rem;
  }

  .select,
  .input-text,
  .input-zipcode,
  .input-message {
    width: 210px;
    font-size: 1.4rem;
  }

  .estimate-result-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: -10px 6px 0;
  }

  .notes-wrapper {
    position: static !important;
    flex-basis: 100%;
    margin-top: -5px;
  }

  .notes-text {
    font-size: 0.8rem;
  }

  .estimate-result-price {
    width: 120px;
    font-size: 2.5rem;
    box-sizing: border-box;
  }

  .notes-wrapper {
    position: absolute;
    bottom: 0;
    left: 10px;
}

  .field-message {
    flex-direction: column;
    justify-items: center;
    margin: 0;
  }

  .field-message .label{
    width: 90px;
    justify-content: center;
    margin-bottom: 10px;
  }

  .input-message{
    width: 290px;
    margin-left: 5px;
    box-sizing: border-box;
  }

  .pp-wrap {
    margin-top: 15px;
    padding-right: 0;
  }

  .pp-text {
    font-size: 1.1rem;
  }

  /*フッター*/
   .site-footer {
    width: 100%;
  }

  .footer-logo {
    gap: 5px;
  }

  .adv-logo {
    width: 100px;
  }

  .adv-name {
    font-size: 1.6rem;
  }

  .adv-adress {
    font-size: 1.2rem;
  }

  .blog-link {
    font-size: 1.6rem;
  }
}