/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー - オレンジテクノロジー風 */
header {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 26px;
    color: white;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.logo p {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
}

nav ul li a:hover {
    color: white;
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* ヒーローセクション - スライドショー */
.hero {
    position: relative;
    height: 450px;
    overflow: hidden;
    margin-top: 80px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.fade {
    opacity: 1;
    display: block;
}

/* 画像のフォールバック用背景 */
.slide:nth-child(1) {
    background-image: url('https://images.unsplash.com/photo-1608043152255-8f0c28a01a5d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.slide:nth-child(2) {
    background-image: url('https://images.unsplash.com/photo-1589405488114-5f2c4b9419dd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.slide:nth-child(3) {
    background-image: url('https://images.unsplash.com/photo-1526170375885-4d8ecf77b99f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.slide:nth-child(4) {
    background-image: url('https://images.unsplash.com/photo-1598327105666-5b89351aff97?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    width: 80%;
    max-width: 800px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #FF6B00, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
    font-weight: 300;
}

/* スライドコントロール */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    user-select: none;
    background: rgba(255, 107, 0, 0.8);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background: #FF6B00;
    transform: scale(1.1);
}

/* スライドドット */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.dot:hover {
    background-color: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.dot.active {
    background-color: #FF6B00;
    transform: scale(1.3);
    box-shadow: 0 0 10px #FF6B00;
}

/* 会社概要セクション */
.about {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
}

.about h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #FF6B00;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.company-info h3 {
    font-size: 26px;
    margin-bottom: 25px;
    color: #FF6B00;
    font-weight: 600;
}

.company-info table {
    width: 100%;
    border-collapse: collapse;
}

.company-info table tr {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.company-info table tr:hover {
    background-color: #fff8f0;
    transform: translateX(5px);
}

.company-info table td {
    padding: 14px 0;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
}

.company-info table td:first-child {
    font-weight: 600;
    width: 35%;
    color: #FF6B00;
    padding-left: 10px;
}

/* 事業内容セクション */
.services {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.services h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

.services h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: white;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 107, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 107, 0, 0.2);
    border-color: rgba(255, 107, 0, 0.3);
}

.service-icon {
    font-size: 52px;
    margin-bottom: 25px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    color: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 18px;
    color: #1a1a2e;
    font-weight: 600;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

/* お問い合わせセクション */
.contact {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
}

.contact h2 {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #1a1a2e;
    position: relative;
    display: inline-block;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 26px;
    margin-bottom: 30px;
    color: #FF6B00;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.contact-info h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #FF6B00;
    border-radius: 50%;
}

.contact-item {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #fff8f0;
    border-radius: 10px;
    border-left: 4px solid #FF6B00;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: #fff0e0;
    transform: translateX(5px);
}

.contact-item strong {
    display: block;
    margin-bottom: 8px;
    color: #FF6B00;
    font-weight: 600;
}

.contact-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.contact-form h3 {
    font-size: 26px;
    margin-bottom: 30px;
    color: #FF6B00;
    font-weight: 600;
    position: relative;
    padding-left: 15px;
}

.contact-form h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #FF6B00;
    border-radius: 50%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #1a1a2e;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
    background-color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, #FF6B00, #FF8C00);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
    background: linear-gradient(135deg, #FF8C00, #FFA500);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* フッター */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ecf0f1;
    padding: 70px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: white;
    font-weight: 600;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-info h4 {
    font-size: 17px;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.footer-links h4::after,
.footer-info h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B00, #FF8C00);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: block;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #FF6B00;
    transform: translateX(5px);
}

.footer-links ul li a:hover::before {
    opacity: 1;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
        padding: 12px 20px;
    }
    
    nav ul {
        margin-top: 12px;
    }
    
    nav ul li {
        margin: 0 12px;
    }
    
    .hero {
        height: 400px;
        margin-top: 100px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 15px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about h2,
    .services h2,
    .contact h2 {
        font-size: 32px;
    }
    
    .prev, .next {
        padding: 12px;
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    .hero {
        height: 350px;
        margin-top: 120px;
    }
    
    .slide-content h2 {
        font-size: 26px;
    }
    
    .slide-content p {
        font-size: 14px;
    }
    
    .about h2,
    .services h2,
    .contact h2 {
        font-size: 28px;
    }
    
    .service-icon {
        font-size: 42px;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }
    
    .submit-button {
        padding: 12px 25px;
    }
}