/* 全体のスタイル */
* {
    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;
}

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

/* ヘッダー */
header {
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    float: left;
    margin-left: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    color: #222;
    border: none;
    box-shadow: none;
}

.logo a {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    color: inherit;
    text-decoration: none;
}

.logo a:focus, .logo a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: none !important;
    color: inherit;
}

.nav-links {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    margin: 0;
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #007bff;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #222;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* モバイル対応 */
@media (max-width: 900px) {
    .hamburger {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 2rem;
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transform: none;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .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, -6px);
    }
}

/* メインビジュアル */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/main.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 60px;
}

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

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
}

/* セクション共通 */
section {
    padding: 80px 0;
}

.future {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* サービス */
.service-subtitle {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 2.5rem 0 1rem 0;
    color: #222;
}
.service-grid.with-image {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}
.service-card {
    background: #fff;
    padding: 2rem 2rem 1.2rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
    flex: 1 1 260px;
    min-width: 260px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}
.service-title {
    background: #2c5a77;
    color: #fff;
    font-weight: bold;
    font-size: 1.08rem;
    padding: 0.5em 0.7em;
    border-radius: 4px 4px 0 0;
    margin-bottom: 1em;
    text-align: center;
}
.service-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 1.2em;
}
@media (max-width: 900px) {
    .service-grid.with-image {
        flex-direction: column;
        gap: 1.5rem;
    }
    .service-card {
        max-width: 100%;
    }
}

/* 強み */
.strengths {
    background-color: #f8f9fa;
}

.strengths-overview {
    margin-top: 40px;
}
.strengths-grid-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
    margin-top: 2.5rem;
}
.strength-card {
    border: 1.5px solid #bbb;
    border-radius: 10px;
    background: #fff;
    padding: 2rem 2rem 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
}
.strength-title {
    background: #2c5a77;
    color: #fff;
    font-weight: bold;
    font-size: 1.08rem;
    padding: 0.5em 0.7em;
    border-radius: 4px;
    margin-bottom: 1em;
    text-align: center;
    width: 100%;
}
@media (max-width: 900px) {
    .strengths-grid-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 今後の展望 */
.future-overview {
    margin-top: 40px;
}
.future-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
}
.future-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    border: 1.5px solid #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 2rem 2rem 1.5rem 2rem;
    gap: 2.5rem;
}
.future-text {
    flex: 1 1 320px;
    min-width: 220px;
    margin-bottom: 0;
    padding-bottom: 0;
}
.future-title {
    font-weight: bold;
    font-size: 1.08rem;
    margin-bottom: 0.3em;
}
.future-img {
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
}
.future-img img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* スマホ用 今後の展望 */
@media (max-width: 900px) {
    .future {
        padding: 20px 0 !important;
    }
    .future-item {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 1rem 1rem 0.5rem 1rem !important;
    }
    .future-text {
        margin-bottom: 0 !important;
    }
    .future-img {
        margin-top: 0 !important;
    }
}




/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007bff;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 事業概要セクション */
.business-overview {
    margin-top: 40px;
}

.business-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    width: 100%;
}

.business-description {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 420px;
    margin: auto 0;
    text-align: left;
}

.business-diagram {
    margin-left: auto;
    position: relative;
    width: 500px;
    height: 500px;
}

.business-diagram .circle {
    position: absolute;
    width: 190px;
    height: 190px;
}

.business-diagram .clean    { left: 155px; top: 0px; }
.business-diagram .equipment{ left: 310px; top: 155px; }
.business-diagram .security { left: 155px; top: 310px; }
.business-diagram .hygiene  { left: 0px;   top: 155px; }

.circle {
    position: absolute;
    background: #fff;
    border: 2.5px solid #007bff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    padding: 1.2em 0.7em 1.2em 0.7em;
    font-size: 1.08rem;
    z-index: 1;
    width: 190px;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    word-break: keep-all;
}

.circle-title {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.3em;
    font-size: 1.13em;
}

.circle ul {
    list-style: disc inside;
    text-align: left;
    font-size: 1em;
    margin: 0;
    padding: 0;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .business-flex {
        flex-direction: column;
        gap: 24px;
    }
    .business-diagram {
        margin: 0 auto 24px auto;
    }
}

@media (max-width: 700px) {
    .business-flex {
        flex-direction: column;
        gap: 24px;
    }
    .business-description {
        max-width: 98vw;
        margin: 0 auto 12px auto;
        text-align: left;
    }
    .business-diagram {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .business-diagram .circle {
        width: 100%;
        height: auto;
        min-height: 80px;
        font-size: 0.9rem;
        padding: 1rem;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .business-diagram .circle.hidden {
        opacity: 1 !important;
        transform: none !important;
    }
    .business-diagram .circle.visible {
        opacity: 1 !important;
        transform: none !important;
    }
    .business-diagram svg {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 60vh;
        min-height: 320px;
        margin-top: 50px;
    }
    .hero-content h2 {
        font-size: 1.3rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    
    .future-item {
        gap: 0 !important;
        padding: 1.2rem 1.2rem 0.8rem 1.2rem !important;
    }
    
    .future-text {
        width: 100% !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .future-img {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .future-img img {
        max-width: 260px !important;
        height: 140px !important;
    }
}

/* アニメーション関連 */
.fadein-section {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}

.fadein-section.fadein-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.business-diagram .circle.hidden {
    opacity: 0;
    transform: scale(0.7) translateZ(0);
    transition: opacity 0.5s, transform 0.5s;
}

.business-diagram .circle.visible {
    opacity: 1;
    transform: scale(1) translateZ(0);
    transition: opacity 0.5s, transform 0.5s;
}

/* ローダー */
#loader {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: url('images/load.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s;
}

#loader.fadeout {
    opacity: 0;
    pointer-events: none;
}

#loader-rock {
    width: 120px;
    height: 120px;
    opacity: 1;
    transform: translateY(-300px) rotate(0deg);
    animation:
        loader-drop-spin 3s cubic-bezier(.4,0,.2,1) 0s 1 forwards,
        loader-spin 1.2s linear 3s infinite;
    animation-fill-mode: forwards;
}

@keyframes loader-drop-spin {
    0%   { transform: translateY(-300px) scale(0.7) rotate(0deg); opacity: 0.2; }
    60%  { opacity: 1; transform: translateY(20px) scale(1.05) rotate(180deg);}
    80%  { transform: translateY(-10px) scale(0.98) rotate(270deg);}
    100% { transform: translateY(0) scale(1) rotate(360deg); opacity: 1;}
}

@keyframes loader-spin {
    0% { transform: translateY(0) scale(1) rotate(0deg);}
    100% { transform: translateY(0) scale(1) rotate(360deg);}
}

@media (max-width: 480px) {
    .business-diagram {
        width: 100%;
        max-width: 350px;
        gap: 0.8rem;
    }
    .business-diagram .circle {
        width: 100%;
        min-height: 70px;
        font-size: 0.8rem;
        padding: 0.8rem;
        left: auto !important;
        top: auto !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .business-diagram .circle.hidden {
        opacity: 1 !important;
        transform: none !important;
    }
    .business-diagram .circle.visible {
        opacity: 1 !important;
        transform: none !important;
    }
    .business-diagram svg {
        display: none !important;
    }
}

.diagram-lines-sp { display: none; }
@media (max-width: 480px) {
  .diagram-lines-pc {
    display: none !important;
    opacity: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
  }
  .diagram-lines-sp {
    display: block !important;
    opacity: 1 !important;
    z-index: 0 !important;
  }
}
@media (min-width: 481px) {
  .diagram-lines-pc {
    display: block !important;
    opacity: 1 !important;
    z-index: 0 !important;
  }
  .diagram-lines-sp {
    display: none !important;
    opacity: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
  }
}

@media (min-width: 901px) {
  .business-flex {
    display: flex !important;
    gap: 40px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    width: 100% !important;
  }
  .business-description {
    flex: 1 1 260px !important;
    min-width: 220px !important;
    max-width: 420px !important;
    margin: auto 0 !important;
    text-align: left !important;
  }
  .business-diagram {
    margin-left: auto !important;
  }
}

#diagram-ellipse-pc,
#diagram-ellipse-sp {
  opacity: 0;
  transition: opacity 0.3s;
}
.business-diagram.ellipse-visible #diagram-ellipse-pc,
.business-diagram.ellipse-visible #diagram-ellipse-sp {
  opacity: 1;
  transition: opacity 0.3s;
} 