* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}
.nav-links a:hover {
    opacity: 0.8;
}
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 150px 20px 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.fan-gallery {
    position: absolute;
    top: 50%;
    left: calc(50% - 70px);
    width: 0;
    height: 0;
    z-index: 1;
}
.fan-card {
    position: absolute;
    width: 140px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fanIn 0.8s ease-out forwards;
    transition: transform 0.3s, box-shadow 0.3s;
}
.fan-card:hover {
    z-index: 10 !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}
.fan-card img {
    width: 100%;
    display: block;
    border-radius: 10px;
}
/* 8枚を半円扇状に配置 - 左から右へ */
.fan-card:nth-child(1) { transform: translate(-380px, -20px) rotate(-28deg); animation-delay: 0.1s; }
.fan-card:nth-child(2) { transform: translate(-280px, -60px) rotate(-20deg); animation-delay: 0.2s; }
.fan-card:nth-child(3) { transform: translate(-170px, -80px) rotate(-12deg); animation-delay: 0.3s; }
.fan-card:nth-child(4) { transform: translate(-60px, -90px) rotate(-4deg); animation-delay: 0.4s; }
.fan-card:nth-child(5) { transform: translate(50px, -90px) rotate(4deg); animation-delay: 0.5s; }
.fan-card:nth-child(6) { transform: translate(160px, -80px) rotate(12deg); animation-delay: 0.6s; }
.fan-card:nth-child(7) { transform: translate(270px, -60px) rotate(20deg); animation-delay: 0.7s; }
.fan-card:nth-child(8) { transform: translate(370px, -20px) rotate(28deg); animation-delay: 0.8s; }

@keyframes fanIn {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0.3);
    }
    100% {
        opacity: 0.35;
    }
}
/* アニメーション後の状態をnth-childごとに設定 */
.fan-card:nth-child(1) { animation: fanIn1 0.8s ease-out 0.1s forwards; }
.fan-card:nth-child(2) { animation: fanIn2 0.8s ease-out 0.2s forwards; }
.fan-card:nth-child(3) { animation: fanIn3 0.8s ease-out 0.3s forwards; }
.fan-card:nth-child(4) { animation: fanIn4 0.8s ease-out 0.4s forwards; }
.fan-card:nth-child(5) { animation: fanIn5 0.8s ease-out 0.5s forwards; }
.fan-card:nth-child(6) { animation: fanIn6 0.8s ease-out 0.6s forwards; }
.fan-card:nth-child(7) { animation: fanIn7 0.8s ease-out 0.7s forwards; }
.fan-card:nth-child(8) { animation: fanIn8 0.8s ease-out 0.8s forwards; }

@keyframes fanIn1 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(-560px, 15px) rotate(-30deg); } }
@keyframes fanIn2 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(-400px,-30px) rotate(-21deg); } }
@keyframes fanIn3 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(-240px,-60px) rotate(-12deg); } }
@keyframes fanIn4 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(-80px,-75px) rotate(-3deg); } }
@keyframes fanIn5 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(80px,-75px) rotate(3deg); } }
@keyframes fanIn6 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(240px,-60px) rotate(12deg); } }
@keyframes fanIn7 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(400px,-30px) rotate(21deg); } }
@keyframes fanIn8 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.35; transform: translate(560px, 15px) rotate(30deg); } }

.fan-card:hover {
    opacity: 0.9 !important;
    transform: scale(1.15) rotate(0deg) !important;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}
.btn:hover {
    transform: translateY(-3px);
}
.hamburger {
    display: none;
}
.services {
    padding: 80px 20px;
    background: #f8f9fa;
    position: relative;
}
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('001.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}
.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1e3c72;
    position: relative;
    z-index: 1;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-card {
    position: relative;
}
.service-card .preview-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.85) translateY(15px);
    width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: none;
}
.service-card .preview-popup::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.1));
}
.service-card .preview-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) translateY(0);
}
.service-card .preview-popup img {
    width: 100%;
    border-radius: 8px;
    display: block;
}
.service-card .preview-popup .popup-label {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 6px;
    padding-bottom: 2px;
}
.service-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.service-card ul {
    list-style: none;
    padding-left: 0;
}
.service-card li:before {
    content: "✓ ";
    color: #2a5298;
    font-weight: bold;
}
.features {
    padding: 80px 20px;
    position: relative;
}
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('002.png');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}
.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #1e3c72;
    position: relative;
    z-index: 1;
}
.feature-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.feature-item {
    background: rgba(248, 249, 250, 0.95);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2a5298;
    border-radius: 5px;
    position: relative;
    cursor: default;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 101;
}
.feature-item .feat-popup {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) scale(0.85) translateY(15px);
    width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,0,0,0.05);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: none;
}
.feature-item .feat-popup::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.1));
}
.feature-item .feat-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) translateY(0);
}
.feature-item .feat-popup img {
    width: 100%;
    border-radius: 8px;
    display: block;
}
.feature-item h3 {
    color: #1e3c72;
    margin-bottom: 0.5rem;
}
.contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
}
.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem;
}
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: left;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    font-size: 0.95rem;
    color: white;
}
.required {
    color: #ffcc00;
    font-size: 0.85rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    background: #fff;
}
.form-group select {
    appearance: auto;
}
.form-group textarea {
    resize: vertical;
}
.form-submit-wrap {
    text-align: center;
    margin-top: 1.5rem;
}
.btn-submit {
    display: inline-block;
    padding: 14px 40px;
    background: white;
    color: #1e3c72;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero {
        padding-bottom: 140px;
    }
    .nav-links {
        flex-direction: column;
        gap: 0;
        position: fixed;
        top: 0;
        right: -250px;
        height: 100vh;
        background: #1e3c72;
        width: 220px;
        padding: 70px 0 10px;
        box-shadow: -4px 0 15px rgba(0,0,0,0.3);
        transition: right 0.3s ease;
        z-index: 1001;
    }
    .nav-links.open {
        display: flex;
        right: 0;
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .nav-overlay.active {
        display: block;
    }
    .nav-links li a {
        display: block;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 5px;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        border-radius: 3px;
    }
    .service-card .preview-popup {
        width: 280px;
    }
    .service-card .preview-popup.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1) translateY(0);
    }
    .feature-item .feat-popup {
        width: 280px;
        left: 50%;
        top: auto;
        bottom: calc(100% + 15px);
        transform: translateX(-50%) scale(0.85) translateY(15px);
    }
    .feature-item .feat-popup::after {
        left: 50%;
        top: auto;
        bottom: -10px;
        transform: translateX(-50%);
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid #fff;
        border-bottom: none;
    }
    .feature-item .feat-popup.show {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) scale(1) translateY(0);
    }
    .fan-gallery {
        display: block;
        left: calc(50% - 20px);
        top: 58%;
    }
    .fan-card {
        width: 40px;
    }
    .fan-card:nth-child(1) { animation: fanInSp1 0.8s ease-out 0.1s forwards; }
    .fan-card:nth-child(2) { animation: fanInSp2 0.8s ease-out 0.2s forwards; }
    .fan-card:nth-child(3) { animation: fanInSp3 0.8s ease-out 0.3s forwards; }
    .fan-card:nth-child(4) { animation: fanInSp4 0.8s ease-out 0.4s forwards; }
    .fan-card:nth-child(5) { animation: fanInSp5 0.8s ease-out 0.5s forwards; }
    .fan-card:nth-child(6) { animation: fanInSp6 0.8s ease-out 0.6s forwards; }
    .fan-card:nth-child(7) { animation: fanInSp7 0.8s ease-out 0.7s forwards; }
    .fan-card:nth-child(8) { animation: fanInSp8 0.8s ease-out 0.8s forwards; }
}
@keyframes fanInSp1 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(-155px, 5px) rotate(-30deg); } }
@keyframes fanInSp2 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(-110px,-15px) rotate(-21deg); } }
@keyframes fanInSp3 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(-65px,-28px) rotate(-12deg); } }
@keyframes fanInSp4 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(-20px,-33px) rotate(-3deg); } }
@keyframes fanInSp5 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(20px,-33px) rotate(3deg); } }
@keyframes fanInSp6 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(65px,-28px) rotate(12deg); } }
@keyframes fanInSp7 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(110px,-15px) rotate(21deg); } }
@keyframes fanInSp8 { 0% { opacity:0; transform: translate(0,0) rotate(0) scale(0.3); } 100% { opacity:0.5; transform: translate(155px, 5px) rotate(30deg); } }
