/* =========================
   Layout
========================= */

/* main */
body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index:1;
    background-image: radial-gradient(#FFE2CC 4%, transparent 4%);
    background-size: 36px 36px;
    background-position: 0 0, 20px 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.header-nav .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* PC/スマホの切り替え */
@media (min-width: 1025px) {
  .hamburger, .sp-nav, .sp-header-actions { display: none; }
  .pc-only { display: flex; }
}

@media (max-width: 1024px) {
  .pc-only { display: none; }
  
  .sp-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  /* ハンバーガー本体 */
  .hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
  }

  .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--navy);
    transition: all 0.4s;
  }

  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 8px; }
  .hamburger span:nth-child(3) { top: 16px; }

  /* ×印への変化 */
  .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* スライドメニュー */
  .sp-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1500;
    transition: right 0.4s cubic-bezier(0.45, 0, 0.55, 1);
    padding: 50px 2em 40px;
    overflow-y: auto;
  }

  .sp-nav.active { right: 0; }

  .sp-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .sp-nav-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
.sp-nav-link::after {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: rotate(45deg);
    margin-right: 15px;
}

  .sp-nav-cta {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* スマホ用診断アイコン */
  .sp-guide-icon {
    font-size: 1.4rem;
    color: var(--accent);
  }
}


/* Footer */


/* --- Contact Section --- */
.section-contact {
    background: #F6F6F6;
    padding: 80px 0;
}

.l-container {
    width: 100%;
    max-width: 1248px;
    padding: 0 24px;
    margin: 0 auto;
}

/* 2カラム親 */
.section-contact_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}
.contact-text-content {
    flex: 1;
}
/* 右画像 */
.contact-decoration {
    flex: 0 0 45%;
}

.contact-decoration img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- ボタンエリア --- */
.contact-action-area {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 上段 */
.contact-buttons-top {
    display: flex;
    gap: 16px;
}

/* 下段 */
.contact-buttons-bottom {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* ボタン共通 */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #333;
}

/* ボタン色 */
.btn-og { background-color: #FE4A26; color: #fff; position: relative; }
.btn-out { border: 2px solid #FE4A26; color: #FE4A26; position: relative;}
.btn-demo { background-color: #2ECC71; color: #fff; flex: 0 1 290px; position: relative;} 
.contact-tel {
    color: #FE4A26;
}

.btn-og:after,.btn-demo:after {
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  bottom: 0;
  content: "";
  height: 7px;
  width: 7px;
  margin: auto;
  position: absolute;
  right: 30px;
  top: 0;
  transform: rotate(45deg);
  transition: right .3s;
}
.btn-out:after{
  border-right: 2px solid #FE4A26;
  border-top: 2px solid #FE4A26;
  bottom: 0;
  content: "";
  height: 7px;
  width: 7px;
  margin: auto;
  position: absolute;
  right: 30px;
  top: 0;
  transform: rotate(45deg);
  transition: right .3s;
}
.btn-out:hover{
    background: #333;
    color:  var(--primary);
}


.btn-og:hover:after,.btn-out:hover:after,.btn-demo:hover:after {
  right: 25px;
}

.tel-number {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    gap: 8px;
}

.tel-number a {
    color: inherit;
    text-decoration: none;
}

.tel-time {
    display: block;
    font-size: 13px;
    padding-left: 36px;
    margin-top: 4px;
}

/* スマホ固定CTA：PC非表示 */
.sp-fixed-cta {
    display: none;
}


@media (max-width: 1024px) {
    .contact-buttons-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .section-contact_container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-decoration {
        width: 100%;
        order: -1;
    }

    .contact-buttons-top {
        flex-direction: column;
    }

    .contact-buttons-bottom {
        align-items: center;
        width: 100%;
    }

    .contact-btn {
        width: 100%;
    }

    .tel-number {
        font-size: 24px;
    }
.btn-demo {
    flex: 0 1;
}
    /* スマホ固定CTA */
.sp-fixed-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 58px;
        background: #fff;
        z-index: 3000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        padding-bottom: env(safe-area-inset-bottom); 
    }

    .sp-cta-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 11px;
        font-weight: bold;
        gap: 4px;
        transition: background 0.3s;
    }
    .sp-cta-item.mail { color: var(--primary); }
    .sp-cta-item.doc { background: var(--primary); color: #fff; }
    .sp-cta-item.soudan { color: var(--primary); }

    .sp-cta-item i {
        font-size: 1.4rem;
    }
}

/* --- Footer Section --- */
.footer-bg-outer {
    background-color: #F6F6F6;
    width: 100%;
}
.l-footer {
    background: #333333;
    color: #ffffff;
    width: 91%;
    max-width: 1400px;
    margin-right: auto;
    border-radius: 0 100px 0 0; 
    padding: 60px 0;
    position: relative;
}

.l-footer .l-container {
    max-width: 1000px;
    margin-left: 10%;
    padding: 0 24px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 60px;
    margin-top: 40px;
    justify-content: flex-start;
}

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 200px;
}

.footer-nav-list li {
    white-space: nowrap;
}

.footer-nav-list li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
}

.footer-nav-list li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-main-top {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-sns {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.footer-copyright {
    text-align: right;
    margin-top: 40px;
    font-size: 12px;
    opacity: 0.5;
}
/***トップへ戻る***/
#page-top{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: fixed;
right: 20px;
bottom: 20px;
cursor: pointer;
z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
#page-top.is-show {
    opacity: 1;
    visibility: visible;
}

#page-top:hover{
opacity: 0.7;
}

@media (max-width: 768px) {
    .l-footer {
        width: 100%;
        border-radius: 0 60px 0 0;
    }
    .l-footer .l-container {
        margin-left: 0;
        text-align: center;
    }
    .footer-nav {
        justify-content: center;
    }
#page-top{
bottom: 30px;
}
}

/* タブレットサイズ */
@media (max-width: 1024px) {
.section-contact_container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .contact-text-content,
  .contact-decoration {
    width: 100%;
    max-width: 640px;
  }

  .contact-buttons-top,
  .contact-buttons-bottom {
    flex-direction: column;
    gap: 16px;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
  }
.btn-demo {
    flex: 0 1;
}
}