/* 修正メモ：地図の部分を修正したい。 */



/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* ローディングアニメーション */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1a3e72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ヘッダースタイル */
#header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.fixed {
    position: fixed;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.logo a {
    text-decoration: none;
    color: #1a3e72;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo span {
    font-size: 12px;
    display: block;
    text-align: right;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
    color: #1a3e72;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a3e72;
    transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #1a3e72;
    transition: all 0.3s ease;
}

/* メインビジュアル */
.main-visual {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(26, 62, 114, 0.7), rgba(26, 62, 114, 0.5)), url(../images/trade3.jpg) no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.main-visual-content {
    max-width: 800px;
    padding: 0 20px;
}

.main-text h2 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.main-text h2 span {
    display: block;
    font-size: 36px;
    font-weight: 300;
}

.main-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 1s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a3e72;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 1.5s;
}

.btn:hover {
    background-color: #0f2a4f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: -10px;
    margin-bottom: 20px;
    animation: scrollDown 2s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* セクション共通スタイル */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #1a3e72;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #1a3e72;
}

/* 会社概要セクション */
.about-section {
    background-color: #f9f9f9;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.03);
}

/* 会社の歴史セクション */
.history-section {
    background-color: #fff;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #1a3e72;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    right: -17px;
    background-color: white;
    border: 4px solid #1a3e72;
    top: 15px;
    border-radius: 50%;
    z-index: 1;

}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -15px;
}

.left::after {
    right: -15px;
}

.timeline-content {
    padding: 20px 30px;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #e4efff;
}

.timeline-content h3 {
    color: #1a3e72;
    margin-bottom: 10px;
}


/* 取扱製品セクション */
.products-section {
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #e4efff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #1a3e72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.product-card h3 {
    color: #1a3e72;
    margin-bottom: 15px;
    font-size: 20px;
}

.product-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 契約の流れセクション */
.process-section {
    background-color: #f9f9f9;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #1a3e72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #1a3e72;
    margin-bottom: 10px;
    font-size: 18px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* お問い合わせセクション */
.contact-section {
    background-color: #fff;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    color: #1a3e72;
    margin-bottom: 20px;
    font-size: 24px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #1a3e72;
    width: 20px;
    text-align: center;
}

.google-map {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    background-color: #f9f9f9;
    background-color: #e4efff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a3e72;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

/* フッター */
.footer {
    background-color: #1a3e72;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    opacity: 0.8;
    font-size: 14px;
}

.footer-links {
    flex: 1;
    min-width: 250px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links ul li a:hover {
    opacity: 0.8;
}

.footer-info {
    flex: 2;
    min-width: 250px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text {
    animation: fadeInUp 1s ease forwards;
}

.animated-subtext {
    animation: fadeInUp 1s ease forwards 0.3s;
}

.animated-btn {
    animation: fadeInUp 1s ease forwards 0.6s;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    .main-text h2 {
        font-size: 36px;
    }
    
    .main-text h2 span {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    .nav-menu ul li {
        margin: 15px 0;
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 1000;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .main-text h2 {
        font-size: 28px;
    }
    
    .main-text h2 span {
        font-size: 22px;
    }
    
    .main-text p {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .main-text h2 {
        font-size: 24px;
    }
    
    .main-text h2 span {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}