@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Shippori+Mincho&display=swap");

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  letter-spacing: 1px;
  color: #333333;
  font-family: "Noto Sans JP", sans-serif;
}

img{
    width: 100%;
}

p{
    line-height: 1.8;
}

header{
    width: 100%;
    position: fixed;
    background: linear-gradient(to bottom, #ffffffa4, #ffffffb9);
    box-shadow: 0px 4px 10px 5px #53535306;
    z-index: 2;
    transition: all 0.4s ease,
}

header.is-open{
    background: #fff;
}

nav{
    width: 90%;
    max-width: 1280px;
    padding: 22px 0;
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo{
    max-width: 240px;
    object-fit: contain;
}

.header-links{
    display: flex;
    gap: 20px;
}

.contact-link{
    width: fit-content;
    padding: 10px 16px;
    text-align: center;
    color: #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    background-color: #3D97A5;
}

.contact-link:hover{
    background-color: #287c88;
}

  .hamburger {
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    gap: 6px;
    position: relative;
    z-index: 1;
  }

  .hamburger .line {
    display: block;
    width: 26px;
    height: 2px;
    background: #3d3d3d;
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.25s ease,
                width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center;
  }

  /* Open state → X */
  .hamburger.is-open .line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }
  .hamburger.is-open .line:nth-child(2) {
    display: none;
  }
  .hamburger.is-open .line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* MOBILE MENU OVERLAY */
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 1;
    margin-top: 80px;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;

    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, #4E9FE2, #BB72DD);
    border-image-slice: 1;

    /* closed state */
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
  }

  /* Staggered link animation */
  .mobile-menu a {
    width: 85%;
    margin: 0 auto;
    color: #3d3d3d;
    text-decoration: none;
    font-weight: 500;
    padding: 16px 0;
    letter-spacing: 0.04em;
    position: relative;
    border-bottom: 1px solid #A1DDE5;
    /* border-image: linear-gradient(to right, #4E9FE2, #BB72DD);
    border-image-slice: 1; */
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s;
  }

  .mobile-menu.is-open a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delays */
  .mobile-menu.is-open a:nth-child(1) { transition-delay: 0.05s; }
  .mobile-menu.is-open a:nth-child(2) { transition-delay: 0.10s; }
  .mobile-menu.is-open a:nth-child(3) { transition-delay: 0.15s; }
  .mobile-menu.is-open a:nth-child(4) { transition-delay: 0.20s; }
  .mobile-menu.is-open a:nth-child(5) { transition-delay: 0.25s; }
  .mobile-menu.is-open a:nth-child(6) { transition-delay: 0.30s; }
  .mobile-menu.is-open a:nth-child(7) { transition-delay: 0.35s; }

  .mobile-menu .contact-link {
    margin-top: 16px;
  }

.kv{
    width: 100%;
    padding: 100px 0;
    background: url(/assets/images/kv_bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

.kv-wrapper{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    margin-bottom: 40px;
}

.kv-content{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agent-server-logo{
    max-width: 196px;
    object-fit: contain;
}

.kv-content h1{
    font-size: 80px;
    line-height: 1.2;
}

.kv-img-sp{
    display: none;
}

.kv-content h2{
    font-size: 20px;
    line-height: 1.5;
}

.kv-content p{
    font-size: 14px;
}

.kv-image{
    position: relative;
}

.kv-img{
    z-index: 1;
}

.small-bg-circle,
.mid-bg-circle,
.big-bg-circle{
    position: absolute;
    z-index: 0;
}

.small-bg-circle{
    width: 40px;
    object-fit: contain;
}

.mid-bg-circle{
    bottom: 50px;
    left: 20px;
    width: 64px;
    object-fit: contain;
}

.big-bg-circle{
    top: 10px;
    right: 10px;
    width: 86px;
    object-fit: contain;
}

.clients{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fifty-years-logo{
    max-width: 580px;
    margin: 0 auto;
}

.clients h2{
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.5;
    text-align: center;
}

.clients h2 > br{
    display: none;
}

.clients p{
    text-align: right;
    font-size: 14px;
}

.clients-logos > .clients-logo-container:nth-child(2) {
  display: none;
}

.clients-logo-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 8px;
  justify-items: center;
  align-items: center;
  list-style: none;
  margin: 1rem 0;
}

.client-logo {
  width: 100%;
  height: 60px;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0px 7px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.client-logo img {
  height: 23px;
  object-fit: contain;
}

.client-logo:nth-child(3) img {
  height: 20px;
  object-fit: contain;
}

.client-logo:nth-child(10) img {
  height: 40px;
  object-fit: contain;
}

.client-logo:nth-child(12) img {
  height: 30px;
  object-fit: contain;
}

.client-logo:nth-child(13) img {
  height: 20px;
  object-fit: contain;
}

.client-logo:nth-child(15) img {
  height: 20px;
  object-fit: contain;
}

.clients > p {
    margin-top: -20px;
  font-size: 0.75rem;
  text-align: right;
}

section{
    width: 100%;
    padding: 100px 0;
}

.section-wrapper{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.common-issues{
    width: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 50%, #3D97A5 50%, #3D97A5 100%);
}

.section-wrapper h2{
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 50px;
    text-align: center;
    line-height: 40px;
    color: #08393B;
}

.section-wrapper h2 small{
    font-family: "futura-pt", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
}

.issues-container{
    position: relative;
    padding: 50px 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.issues-list{
    width: 90%;
    max-width: 945px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.issue-item{
    display: flex;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1.5px dotted #3D97A5;
}

.issue-item:nth-last-child(1){
    border-bottom: 0;
}

.issue-item p{
    font-size: 20px;
}

.issue-item img{
    width: 28px;
    margin-top: 2px;
    object-fit: contain;
}

.triangle-shape{
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    width: 0;
	height: 0;
	border-left: 50px solid transparent;
	border-right: 50px solid transparent;
	border-top: 50px solid #ffffff;
    margin: 0 auto;
    filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.15));
}

.issues-robot{
    width: 100px;
    object-fit: contain;
    position: absolute;
    right: 30px;
    bottom: -50px;
}

.bottom-txt{
    margin-top: 30px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
}

.underline{
    padding-bottom: 2px;
    border-bottom: 1px solid #fff;
}

.big-txt{
    font-size: 40px;
    font-weight: 700;
}

.yellow-txt{
    color: #E1C628;
}

.ai-content{
    width: 100%;
    background-color: #F4F8F9;
}

.llmo-explained{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
    border-radius: 16px;
}

.llmo-explained h3{
    font-size: 36px;
    font-weight: 700;
    color: #319DAE;
    margin-bottom: 26px;
}

.llmo-explained p{
    font-size: 20px;
    width: 90%;
    max-width: 1040px;
    margin: 0 auto;
}

.llmo-explained img{
    width: 90%;
    max-width: 1060px;
    object-fit: contain;
    margin-top: 26px;
}

.ai-overview-sp{
    display: none;
}

.five-cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.point-card{
    max-width: 372px;
    border-radius: 10px;
    padding: 30px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 2px solid #E6ECED;
    background-color: #F9FDFF;
}

.point-card h3{
    font-size: 20px;
}

.point-card img{
    height: 120px;
    object-fit: contain;
}

.our-strengths{
    width: 100%;
    background: url(/assets/images/strength_bg.webp);
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100%;
}

.three-cards{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 40px;
}

.strength-card{
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 28px 20px 32px 20px;
    border-radius: 16px;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.strength-card h3{
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

.strength-card img{
    height: 120px;
    object-fit: contain;
}

.agent-server-banner{
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    background: url(/assets/images/banner_bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 70px 0;
    margin-top: 80px;
}

.banner-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: #ffffff;
}

.banner-wrapper small{
    font-size: 16px;
}

.banner-wrapper h2{
    font-size: 40px;
    font-weight: 700;
}

.banner-wrapper p{
    font-size: 20px;
}

.banner-link{
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 12px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.banner-link:hover{
    opacity: 0.8;
}

.banner-link p{
    font-size: 20px;
    font-weight: 500;
    margin-left: auto;
}

.banner-link span{
    display: block;
    height: 20px;
    margin-left: auto;
}

.banner-link span img{
    width: 20px;
    object-fit: contain;
}

.faq-wrapper{
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item{
    width: 100%;
    border-radius: 10px;
    padding: 0 16px;
    background-color: #F6F9FA;

    display: flex;
    flex-direction: column;
     transition: all 0.3s ease;
}

.question, .answer{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 10px 0;
}

.question{
    cursor: pointer;
    transition: all 0.3s ease;
}

.question img, .answer img{
    width: 40px;
    object-fit: contain;
}

.answer{
    display: none;
    align-items: flex-start;
    border-top: 1px dotted #B8C4DB;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.answer p{
    margin-top: 5px;
}

.plus-icon{
    font-size: 26px;
    margin-left: auto;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
}

.faq-item.is-open .answer {
    display: flex;
    opacity: 1;
}

.faq-item.is-open .plus-icon {
  content: '−';
}

.last-section{
    background: url(/assets/images/last_section_bg.png);
    background-repeat: no-repeat;
    background-position: top;
    background-size: cover;
    padding: 96px 0 30px 0;
}

.last-section .section-wrapper{
    align-items: center;
    gap: 1rem;
}

.last-section h2{
    font-size: 42px;
    line-height: 1.4;
    text-align: center;
    z-index: 1;
}

.last-robot{
    max-width: 264px;
    object-fit: contain;
    z-index: 1;
}

footer{
    padding: 60px 0 20px 0;
    background-color: #091E2B;
}

.pc-footer{
    width: 90%;
    max-width: 918px;
    margin: 0 auto;
    color: #ffffff;
}

.pc-footer-wrapper{
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 44px;
}

.footer-logo, .contact, .mail{
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.footer-logo{
    align-items: flex-end;
}

.footer-logo img{
    max-width: 332px;
    object-fit: contain;
}

.address{
    margin-top: -10px;
    max-width: 246px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blue-txt{
    font-size: 16px;
    color: #94C5CD;
}

.address small{
    font-size: 10px;
}

.contact h2{
    font-family: "futura-pt-bold", sans-serif;
    font-weight: 700;
    font-style: normal;
    display: flex;
    flex-direction: column;
    font-size: 30px;
}

.contact h2 small{
    font-family: "futura-pt", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
}

.mail{
    align-items: flex-end;
}

.contact .blue-txt,
.mail .blue-txt{
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact .blue-txt{
    margin-bottom: -20px;
    gap: 0;
}

.mail .blue-txt{
    text-align: center;
    margin-top: 5px;
    margin-bottom: -12px;
    margin-right: 10px;
}

.mail-icon{
        width: 28px;
        margin-top: 2px;
    }

.phone-icon{
        width: 40px;
    }

.contact p:nth-last-child(1){
    font-size: 36px;
    line-height: 20px;
    font-weight: 700;
}

.contact p:nth-last-child(1) > small{
    font-size: 10px;
    font-weight: 400;
    color: #9EABB3;
}

.p-mark{
    width: 50px;
    object-fit: contain;
}

.mail .contact-link{
    padding: 10px 30px;
}

.copyright-txt{
    margin-top: 100px;
    font-size: 10px;
    font-weight: 400;
    color: #6D7A82;
    text-align: center;
}

.sp-footer{
    display: none;
}

@media (max-width: 800px){
    nav{
        width: 100%;
        max-width: 100%;
        padding: 20px 5%;
    }

    .header-logo{
        width: 100%;
        max-width: 160px;
    }

    nav .contact-link{
        display: none;
    }

    .mobile-menu .contact-link{
        display: block;
        color: #fff;
        margin: 0 auto;
        border-bottom: 0;
        width: 100%;
        max-width: 240px;
        margin-top: 30px; 
    }

    .hamburger{
        display: flex;
    }

    .kv{
        padding: 100px 0 50px 0;
        overflow: hidden;
    }

    .kv-wrapper{
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 2rem;
    }

    .kv-img{
        display: none;
    }

    .kv-img-sp{
        display: block;
        width: 120%;
        margin: -30px;
    }

    .kv-content{
        gap: 10px;
    }

    .kv-content h1{
        font-size: 50px;
    }

    .kv-content h2{
        font-size: 18px;
    }

    .agent-server-logo{
        max-width: 158px;
    }

    .clients h2{
        font-size: 18px;
    }

    .clients h2 > br{
        display: block;
    }

    .clients-logos{
        margin-top: 26px;
        overflow: hidden;
        display: inline-flex;
    }

    .clients-logos > .clients-logo-container:nth-child(2) {
        display: block;
        display: grid;
    }

    .clients-logo-container {
        grid-template-columns: repeat(7, 155px);
        grid-template-rows: repeat(3, 66px);
        gap: 3px;
        animation: 25s slide infinite linear;
    }

    .client-logo {
        width: 150px;
        height: 60px;
    }

    @keyframes slide {
        from {
        transform: translateX(0);
        }
        to {
        transform: translateX(-100%);
        }
    }

    .clients-logos:hover .clients-logo-container {
        animation-play-state: paused;
    }

    section{
        padding: 64px 0;
    }

    .section-wrapper h2{
        font-size: 36px;
        line-height: 30px;
    }

    .section-wrapper{
        gap: 2rem;
    }

    .section-wrapper h2 small{
        font-size: 16px;
    }

    .issue-item p{
        font-size: 16px;
    }

    .issues-robot{
        width: 80px;
    }

    .triangle-shape{
        bottom: -34px;
        border-left: 36px solid transparent;
        border-right: 36px solid transparent;
        border-top: 36px solid #ffffff;
        filter: drop-shadow(0 8px 3px rgba(0, 0, 0, 0.15));
    }

    .bottom-txt{
        font-size: 18px;
        text-align: left;
    }

    .big-txt{
        font-size: 28px;
    }

    .llmo-explained{
        width: 100%;
        padding: 2rem 1rem;
    }

    .llmo-explained img{
        width: 100%;
    }

    .llmo-explained h3{
        font-size: 28px;
        margin-bottom: 1rem;
    }

    .llmo-explained p{
        width: 100%;
        font-size: 18px;
        text-align: left;
    }

    .llmo-explained p > br{
        display: none;
    }

    .ai-overview-pc{
        display: none;
    }

    .ai-overview-sp{
        display: block;
    }

    .five-cards{
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }

    .point-card{
        width: 100%;
        max-width: 100%;
    }

    .point-card h3,
    .strength-card h3{
        font-size: 20px;
    }
    
    .point-card img,
    .strength-card img{
        height: 90px;
    }

    .three-cards{
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .agent-server-banner{
        margin-top: 70px;
        padding: 54px 0;
    }

    .banner-wrapper{
        padding: 0 1rem;
    }

    .banner-wrapper h2{
        font-size: 30px;
    }

    .banner-wrapper p{
        font-size: 16px;
        text-align: left;
    }

    .banner-wrapper p > br{
        display: none;
    }

    .last-section{
        padding: 48px 0 32px 0;
        background: url(/assets/images/last_section_sp_bg.webp);
        background-position: top;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .last-section h2{
        font-size: 20px;
        line-height: 1.5;
    }

    .last-section p{
        font-size: 14px;
        text-align: center;
    }

    footer{
        padding: 40px 0;
    }

    .pc-footer{
        display: none;
    }

    .sp-footer{
        width: 90%;
        display: block;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        margin: 0 auto;
        color: #ffffff;
    }

    .sp-footer .mail-icon{
        width: 28px;
        margin-top: 2px;
    }

    .sp-footer .phone-icon{
        width: 40px;
    }

    .sp-footer .contact .blue-txt{
        gap: 0;
    }

    .sp-footer .blue-txt{
        font-size: 18px;
    }

    .sp-footer .contact p:nth-last-child(1){
        font-size: 40px;
    }

    .sp-footer .address .blue-txt{
        color: #ffffff;
    }

    .sp-footer .p-mark{
        width: 62px;
    }

    .east-footer-logo{
        max-width: 352px;
    }

    .small-divide-line{
        display: block;
        width: 68px;
        height: 1.5px;
        margin: 0 auto;
        background-color: #2D3F49;
        border-radius: 1px;
    }

    .contact .blue-txt, .mail .blue-txt{
        justify-content: center;
    }

    .divide-line{
        display: block;
        width: 100%;
        height: 1.5px;
        margin: 0 auto;
        background-color: #2D3F49;
        border-radius: 1px;
    }

    .copyright-txt{
        margin-top: 0;
    }

}

@media (min-width: 801px) and (max-width: 1000px){
    .kv-content h1{
        font-size: 52px;
    }
}