
/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #fcfcfc;
    max-width: 1600px;
    margin: 0 auto;
}

/* ハンバーガーメニュー展開時にスクロール禁止 */
body.no-scroll {
    overflow: hidden;
}

.logo-image {
    width: 200px;
    height: auto;
    float: left;
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.primary-btn {
    background: linear-gradient(135deg, #5a73d1, #a178df);
    color: white;
    box-shadow: 0 4px 15px rgba(90, 115, 209, 0.2);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(90, 115, 209, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: #5a73d1;
    border: 2px solid #5a73d1;
}

.secondary-btn:hover {
    background-color: #5a73d1;
    color: white;
}

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

.section-header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #5a73d1, #a178df);
}

.section-header p {
    color: #777;
    font-size: 18px;
}

section {
    padding: 80px 0;
}

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

.loader {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 150px;
}

.bubble {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(161, 120, 223, 0.2);
    animation: bubble 1.5s ease-in-out infinite alternate;
}

.bubble:nth-child(2) {
    animation-delay: 0.5s;
}

.bubble:nth-child(3) {
    animation-delay: 1s;
}

@keyframes bubble {
    0% {
        transform: scale(0.5);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.logo-container {
    text-align: center;
    z-index: 2;
}

.logo-container h1 {
    font-size: 28px;
    color: #5a73d1;
    margin-bottom: 5px;   
}

.logo-container p {
    font-size: 14px;
    color: #777;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1100; /* オーバーレイより上にするため数値を増加 */
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 34px;
    font-weight: 700;
    color: #5a73d1;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 8px 0;
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}
/* ヒーローセクション */
.hero {
    height: 100vh;
    min-height: 700px;
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding: 0 5%;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 0px;
    color: #18bef0;
}

.hero-content h2 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* アニメーション用クラス */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 1s ease forwards 0.3s;
}

.pop-in {
    opacity: 0;
    transform: scale(0.9);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.6s;
}

.float-in {
    opacity: 0;
    transform: translateY(30px);
    animation: floatIn 1s ease forwards 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* サービスセクション */
.services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #5a73d1, #a178df);
    border-radius: 50%;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    text-align: left;
}
.service-detail-block table td,
.service-detail-block table th {
    text-align: left;
}
/* 特徴セクション */
.features {
    background: linear-gradient(135deg, #f9f9f9 0%, #f2f2f2 100%);
}

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

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 50px;
}

.feature:last-child {
    margin-bottom: 0;
}

.feature.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
}
    .feature-content h3 {
        font-size: 28px;
        margin-bottom: 20px;
        color: #333;
        position: relative;
        padding-bottom: 15px;
    }
    
    .feature-content h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(135deg, #5a73d1, #a178df);
    }
    
    .feature-content p {
        font-size: 16px;
        color: #666;
        line-height: 1.8;
    }
    
    .parallax-image {
        transition: transform 0.5s ease-out;
    }

    /* 施工事例セクション */
    .works {
        background-color: #fff;
    }
    .works-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        cursor: pointer;
    }

    .gallery-item img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }
    
    .gallery-item:hover img {
        transform: scale(1.1);
    }
    
    .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        padding: 20px;
        color: white;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .gallery-item:hover .overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    .overlay h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .overlay p {
        font-size: 14px;
        opacity: 0.8;
    }
    
    /* お客様の声セクション */
    .testimonials {
        background: linear-gradient(135deg, #f9f9f9 0%, #f2f2f2 100%);
    }
    
    .testimonials-slider {
        max-width: 900px;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }
    
    .testimonial-card {
        background-color: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        text-align: center;
        margin: 0 15px;
    }
    
    .quote-icon {
        font-size: 24px;
        color: #a178df;
        margin-bottom: 15px;
    }
    
    .testimonial-card p {
        font-style: italic;
        color: #555;
        margin-bottom: 20px;
        line-height: 1.8;
    }
    
    .client-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .client-name {
        font-weight: 600;
        color: #333;
    }
    
    .slider-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 30px;
    }
    
    .prev-btn, .next-btn {
        background: none;
        border: none;
        font-size: 20px;
        color: #5a73d1;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 8px;
    }
    
    .prev-btn:hover, .next-btn:hover {
        color: #a178df;
    }
    
    .slider-dots {
        display: flex;
        margin: 0 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        background-color: #ccc;
        border-radius: 50%;
        margin: 0 5px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .dot.active {
        background-color: #5a73d1;
    }
    
    /* お問い合わせセクション */
    .contact {
        background-color: #fff;
    }
    
    .contact-container {
        display: flex;
        max-width: 800px;
        margin: 0 auto;
        padding: 0 20px;
        justify-content: center;
    }
    
    .contact-form {
        flex: 1;
        max-width: 100%;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        font-family: inherit;
        font-size: 16px;
        color: #333;
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: #5a73d1;
        outline: none;
        box-shadow: 0 0 0 3px rgba(90, 115, 209, 0.2);
    }
    
    .form-group textarea {
        resize: vertical;
        min-height: 150px;
    }
    /* フッター */
footer {
    background-color: #2c3141;
    color: #fff;
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

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

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}

.footer-logo p {
    color: #aaa;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex: 2;
    justify-content: space-around;
    flex-wrap: wrap;
}

.footer-nav, .footer-services {
    margin-bottom: 30px;
    min-width: 150px;
}

.footer-nav h3, .footer-services h3, .footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h3::after, .footer-services h3::after, .footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #5a73d1;
}

.footer-nav ul li, .footer-services ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #5a73d1;
}

.footer-services ul li {
    color: #ccc;
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #5a73d1;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* フローティングアクションボタン */
#floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    font-size: 24px; /* アイコンサイズを少し大きく */
    text-decoration: none;
    padding: 0;
}

.float-btn i {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: block; /* 描画ボックスの癖をなくす */
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-btn {
    background: linear-gradient(135deg, #5a73d1, #a178df);
}

.top-btn {
    background-color: rgba(51, 51, 51, 0.8);
    display: none; /* 初期状態は非表示 */
}

/* 上に戻るボタンのアイコンを視覚的に中央に配置するための微調整 */
.top-btn i {
    position: relative;
    top: 9px; /* 少し上に移動して視覚的中央へ */
    left: 16.5px; /* 左右の微調整 */
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 40px 20px;
    }

    .hero-content h {
        font-size: 36px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .feature, .feature.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .feature-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
        z-index: 1002;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .overlay-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: none;
    }

    .overlay-menu.active {
        display: block;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
        grid-template-columns: 2fr;
    }

    .works-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
    }
    
    #floating-actions {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .service-card {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* ← ここがポイント */
        gap: 15px; /* 必要に応じて調整 */
      }
    
      .service-card {
        padding: 15px;
      }
    
    
}
