/* ベーススタイル */
:root {
    --primary-color: #FF9900;
    --secondary-color: #E68A00;
    --accent-color: #FF9900;
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f4f4f4;
    --dark-bg: #333333;
    --border-radius: 5px;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ボタンスタイル */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e6e6e6;
}

.btn-contact {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: var(--border-radius);
}

.btn-contact:hover {
    background-color: #e67e22;
    color: var(--light-text);
}

/* ヘッダー */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: var(--light-text);
    text-align: center;
    padding: 120px 20px 60px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 製品セクション */
.products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--dark-bg);
}

/* スライダースタイル */
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    padding: 0 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    min-height: 500px; /* 新規追加 */
}

@media (min-width: 768px) {
    .product-card {
        flex-direction: row;
    }
}

.product-image {
    flex: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    padding: 30px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.product-url {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.features {
    margin-bottom: 20px;
}

.features li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.features li i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
}

/* スライダーコントロール */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: var(--transition);
}

.slider-control:hover {
    background-color: #fff;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* スライダーページネーション */
.slider-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-dot.active {
    background-color: var(--primary-color);
}

/* CTA セクション */
.cta {
    background-color: var(--dark-bg);
    color: var(--light-text);
    text-align: center;
    padding: 80px 20px;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* お問い合わせページ */
.contact-hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: var(--light-text);
    text-align: center;
    padding: 120px 20px 60px;
}

.contact-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-form {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-form form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-group {
    text-align: center;
    margin-top: 30px;
}

/* フッター */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 30px;
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .footer-logo {
        flex: 0 0 30%;
    }
}

.footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links, .footer-contact {
    margin-bottom: 30px;
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .footer-links, .footer-contact {
        flex: 0 0 30%;
    }
}

.footer-links h3, .footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after, .footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #a6b1c0;
}

.footer-links ul li a:hover {
    color: var(--light-text);
}

.footer-contact p {
    margin-bottom: 10px;
    color: #a6b1c0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-card {
        flex-direction: column;
    }
    
    .product-image {
        height: 200px;
    }
}

@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
    }
    
    .contact-form form {
        padding: 20px;
    }
}

/* 製品画像ギャラリー */
.product-image-gallery {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    cursor: pointer; /* 新規追加 */
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.main-image img.active {
    opacity: 1;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: #f0f0f0;
}

.thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

@media (max-width: 768px) {
    .main-image {
        height: 200px;
    }
    
    .thumbnail {
        width: 50px;
        height: 30px;
    }
}

/* ロゴ */
.logo-link {
    display: block;
}

.logo-image {
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-image {
        height: 30px;
    }
}

/* ロゴ */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .logo-image {
        height: 30px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* 画像拡大モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-img {
    left: 20px;
}

.next-img {
    right: 20px;
}

/* アニメーション */
@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.modal-content {
    animation-name: zoom;
    animation-duration: 0.6s;
}

/* お問い合わせ送信完了ページ */
.thanks-hero {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: var(--light-text);
    text-align: center;
    padding: 120px 20px 80px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thanks-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.thanks-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-hero .btn-primary {
    margin-top: 20px;
}

/* アイコンスタイル */
.hero-icon {
    font-size: 1.5em;
    margin-right: 10px;
    color: var(--accent-color);
}

.section-title i {
    margin-right: 15px;
    color: var(--primary-color);
}

.features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.product-url i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.btn-primary i, 
.btn-secondary i {
    margin-right: 8px;
}

.footer-logo p i,
.footer-links h3 i,
.footer-contact h3 i,
.footer-links li i,
.footer-contact p i {
    margin-right: 8px;
    color: var(--primary-color);
}

.contact-hero i,
.thanks-hero i {
    margin-right: 8px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.thanks-icon {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

/* アニメーション効果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.thanks-icon {
    animation: pulse 2s infinite;
}

/* ホバーエフェクト */
.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(3px);
    transition: transform 0.3s;
}

.features li:hover i {
    transform: scale(1.2);
    transition: transform 0.3s;
}

/* ナビゲーションアイコン */
.slider-control i {
    font-size: 1.2em;
}

/* メディアクエリ */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 1.2em;
    }
    
    .thanks-icon {
        font-size: 1.5em;
    }
}

/* ローディングオーバーレイ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    background-color: white;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.loading-spinner i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.loading-spinner p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0;
}

/* ローディングアニメーション */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}