/* ===== Global Reset ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url("../images/top/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ===== Base Styles ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover,
a:focus {
    opacity: 0.8;
}

a:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: inherit;
}

p {
    margin: 0;
}

/* ===== Section: Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 24px 0 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 32px;
}



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

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    background: #FFFFFF;
    border-radius: 30px;
    padding: 0 48px;
    height: 60px;
}

/* ===== Section: First View ===== */
.fv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    position: relative;
}

.fv-container {
    aspect-ratio: 3/2;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../images/top/bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.fv-content {
    max-width: 500px;
}

.fv-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin-bottom: 40px;
}

.fv-text{
    padding: 20px;
    font-size: 42px;
    color: #20508A;
    font-weight: 900;
    left: 10%;
    position: absolute;
    bottom: 30%;
    line-height: 3.3rem;
    display: inline-block;
    z-index: 2;
}

.fv-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: -1;
    animation: markerEffect 1.5s ease-out forwards;
    animation-delay: 0.5s;
    transform: skew(-2deg);
    border-radius: 3px;
}

@keyframes markerEffect {
    0% {
        width: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

.fv-text span {
    color: #2e7bd4;
    position: relative;
}

/* マスキングテープ風の装飾 */
.fv-text::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    background-image:
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.1) 70%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(255, 255, 255, 0.1) 30%, rgba(255, 255, 255, 0.1) 70%, transparent 70%);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    opacity: 0;
    z-index: -2;
    animation: tapeEffect 0.3s ease-out forwards;
    animation-delay: 1.8s;
}

.fv-scroll {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.1em;
}

.scroll_down{
  position:absolute;
  bottom: 90px;
  left: 50%;
}

.scroll_down a{
  position: absolute;
  left: 10px;
  bottom: 87px;
  color: #20508a;
  font-size: 14px;
  font-family: 'Josefin Sans', sans-serif;
  letter-spacing: .2em;
  writing-mode: vertical-lr;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll_down:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:#20508a;
  animation:
    circlemove 1.6s ease-in-out infinite,
    cirlemovehide 1.6s ease-out infinite;
}

@keyframes circlemove{
  0%{bottom:160px;}
  100%{bottom:0px;}
}

@keyframes cirlemovehide{
  0%{opacity:0}
  50%{opacity:1;}
  80%{opacity:0.9;}
  100%{opacity:0;}
}

.scroll_down:after{
  content:"";
  position: absolute;
  bottom:0;
  left:0;
  width:2px;
  height: 160px;
  background:#20508a;
}

/* Mobile responsive for scroll_down */
@media (max-width: 768px) {
  .scroll_down {
    bottom: 0px;
    transform: scale(0.5);
  }

  .scroll_down a {
        bottom: 5px;
                font-weight: bold;
        font-size: 12px;
  }

  .scroll_down:before {
    width: 8px;
    height: 8px;
  }

  .scroll_down:after {
    width: 1px;
    height: 80px;
  }

  @keyframes circlemove{
    0%{bottom:80px;}
    100%{bottom:0px;}
  }
}

/* ===== Section: Service ===== */
.service {
    padding: 120px 0;
    background-color: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: relative;
}

.service-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-title {
    font-family: "Poppins", sans-serif;
    font-size: 72px;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin-bottom: 80px;
}

.service-area{
    background-color:#fff;
    max-width: 768px;
    margin: 0 auto;
    padding: 25px 60px;
    border-radius: 50px;
}
.service-area img.service-img{
    max-width: 650px;
    margin: auto;
    width: 100%;
}
.service-area img.logo{
    max-width: 180px;
    margin: 0 auto 10px;
}
.service-area-title{
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    color: #20508a;
}
.service-area-text{
    margin: 24px 0;
    font-size: 12px;
    text-align: center;
    color: #666;
    line-height: 1.4rem;
}

.service-lists{
    margin-top:72px;
}
.service-list {
    display: flex;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 48px;
}
.service-list-icon{
    width: 200px;
}
.service-list-title{
    font-size: 24px;
    font-weight: bold;
}
.service-list-subtitle{
    color: #B5B5B5;
    font-size: 14px;
    margin: 12px 0;
}
.service-list-content{
    padding: 20px 0px;
}
.service-list-description{
    color: #666;
    font-size: 12px;
}
.service-list-link {
    background-color: #20508a;
    display: inline-block;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    padding: 9px 32px;
    border-radius: 30px;
    margin-top: 12px;

}

/* ===== Section: News ===== */
.news {
    padding: 120px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: relative;
}

.news-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 67px;
}

.news-title {
    font-family: "Poppins", sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.news-more-btn {
    background: linear-gradient(135deg, #20508a 0%, #2e7ad4 100%);
    color: white;
    padding: 13px 32px;
    border-radius: 100px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-more-btn:hover,
.news-more-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 80, 138, 0.3);
    opacity: 1;
}

.news-list {
    padding-left: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        align-items: baseline;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-date {
    font-family: "Avenir", "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #333;
    min-width: 76px;
    flex-shrink: 0;
}

.news-item-title {
    flex: 1;
}

.news-item-link {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2f7ad5;
    line-height: 1.5;
    transition: text-decoration 0.3s ease;
}

.news-item-link:hover,
.news-item-link:focus {
    text-decoration: underline;
    opacity: 1;
}

/* ===== Section: Partner ===== */
.partner {
    padding: 100px 0;
    background: linear-gradient(135deg, #20508a 0%, #2e7ad4 100%);
    color: white;
    position: relative;
}

.partner-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.partner-header {
    text-align: center;
    margin-bottom: 60px;
}

.partner-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 12px;
}

.partner-description {
    font-family: "Noto Sans", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
}

.partner-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.partner-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


.partner-card-content {
    text-align: center;
}

.partner-card-title {
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.partner-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #20508a 0%, #2e7ad4 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card-btn:hover,
.partner-card-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 80, 138, 0.3);
    opacity: 1;
}

/* ===== Section: Footer ===== */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    padding: 80px 0;
    background: #F5F5F5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 980px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 271px;
}

.footer-logo {
    width: 193px;
    height: 40px;
}

.footer-logo-img {
    width: 193px;
    height: 40px;
    object-fit: contain;
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-address p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

.footer-phone {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    color: #666666;
}

.footer-navigation {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 160px;
    flex-shrink: 0;
}

.footer-section h4 {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 14px;
    line-height: 1.6;
    color: #B5B5B5;
    margin: 0;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: #B5B5B5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.footer-section li a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.6;
    color: #252525;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section li a:hover {
    color: #666666;
}

.sp{
    display: none;
}


/* ===== Responsive Breakpoints ===== */

/* 1280px and below */
@media (max-width: 1280px) {
    .service-container,
    .news-container,
    .partner-container,
    .footer-container {
        padding: 0 30px;
    }

    .service-title,
    .news-title {
        font-size: 60px;
    }

    .footer-brand-title {
        font-size: 300px;
    }
}

/* 1024px and below */
@media (max-width: 1024px) {
    .fv-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .fv-title {
        font-size: 32px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-title,
    .news-title {
        font-size: 48px;
    }

    .partner-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand-title {
        font-size: 200px;
    }
}

/* 768px and below */
@media (max-width: 768px) {
    .pc{
        display: none;
    }
    .sp{
        display: block;
    }
    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .logo {
        z-index: 1001;
        position: relative;
    }

    .nav-list {
        display: none;
    }

    .fv-container,
    .service-container,
    .news-container,
    .partner-container,
    .footer-container {
        padding: 0 20px;
    }

    .fv-container {
        background-image: url("../images/top/fv-sp.png");
        height: 550px;
    }

    .fv {
        padding: 80px 0 0px;
    }

    .fv-title {
        font-size: 25px;
        line-height: 1.3;
    }

    .fv-logos {
        position: static;
        transform: none;
        margin-top: 40px;
    }

    .service {
        padding: 40px 0;
    }

    .service-title {
        font-size: 42px;
        margin-bottom: 60px;
    }

    .service-list{
        display: block;
        text-align:center;
    }
    .service-list-icon{
        width: auto;
    }
    .service-icon {
        display: block;
        margin: 0 auto;
    }
    .service-list-description{
        text-align:left;
    }

    .news {
        padding: 40px 0;
    }

    .news-title {
        font-size: 42px;
    }

    .news-header {

        margin-bottom: 40px;
    }

    .news-list {
        padding-left: 0;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-item-title {
        width: 100%;
    }

    .partner {
        padding: 80px 0;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand-title {
        font-size: 120px;
    }
    .footer-left,
    .footer-content {
        display: block;
    }
    .footer-left{
        text-align: center;
        width: 100%;
    }
    .footer-logo img {
        margin: 0 auto 20px;
    }
    .footer-logo{
        width: auto;
        height: auto;
    }
    .footer-address{
        margin-bottom: 40px;
    }
    .footer-navigation{
        padding: 0 20px;
    }
        .fv-text{
        font-size: 25px;
        width: 94%;
        left: 3%;
        line-height: 2.4rem;
        text-align: left;
    }
}

/* 480px and below */
@media (max-width: 480px) {
    .fv-container,
    .service-container,
    .news-container,
    .partner-container,
    .footer-container {
        padding: 0 16px;
    }

    .fv-title {
        font-size: 22px;
    }

    .service-title,
    .news-title {
        font-size: 32px;
    }

    .service-card,
    .partner-card {
        padding: 30px 20px;
    }

    .service-card-title {
        font-size: 20px;
    }

    .partner-title {
        font-size: 20px;
    }

    .partner-card-title {
        font-size: 13px;
    }

    .news-date {
        font-size: 12px;
        min-width: 60px;
    }

    .news-item-link {
        font-size: 12px;
    }
    

    .footer-brand-title {
        font-size: 80px;
    }
    .service-area{
            padding: 40px 20px;
    }
    .service-area-text{
        font-size: 11px;
    }
}