@charset "UTF-8";
/* CSS Document */
/* Common Styles - 株式会社TORITSU */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FFD700;
}

a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    border-radius: 2px;
}

a:active {
    transform: translateY(1px);
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

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

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.worm-tech {
    color: #FFD700;
    font-size: 0.9rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: #FFD700;
}

/* Navigation Active State */
.nav-menu a.active {
    color: #FFD700;
}

/* Dropdown Menu - 矢印分離方式 */
.dropdown {
    position: relative;
}

.dropdown-container {
    display: flex;
    align-items: center;
}

.dropdown-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-link:hover {
    color: #FFD700;
}

.dropdown-link.active {
    color: #FFD700;
}

.dropdown-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    margin-left: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border-radius: 3px;
}

.dropdown-button:hover {
    transform: scale(1.1);
}

.dropdown-button:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #fff;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    border-top-color: #FFD700;
}

.dropdown-button:hover .dropdown-arrow {
    border-top-color: #FFD700;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(51, 51, 51, 0.98);
    backdrop-filter: blur(15px);
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding-left: 2rem;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FFD700;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

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

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

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

/* Hero Section */
.hero {
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 ;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #FFD700;
    font-weight: normal;
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-image {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-image > div {
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: #FFD700;
    color: #000;
}

.btn-primary:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #fff;
    color: #000;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f5f5f5;
}

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

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

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

.feature-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background:#222;
    color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.about-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #FFD700;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.about-image {
    height: 500px;
    background: linear-gradient(45deg, #228B22, #32CD32);
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    bottom: -100px;
    background: linear-gradient(45deg, #228B22, #32CD32, #90EE90);
    opacity: 0.8;
}

.about-image > div {
    position: relative;
    z-index: 1;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #f5f5f5;
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.services-intro p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card::before {
    content: attr(data-number);
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 6rem;
    font-weight: bold;
    color: rgba(255, 215, 0, 0.2);
    line-height: 1;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-number {
    display: none;
}

.service-card h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Technology Section */
.technology {
    padding: 5rem 0;
    background: #2F1B14;
    color: #fff;
}

.technology-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.technology-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.technology-text .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #FFD700;
}

.technology-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.technology-image {
    height: 500px;
    background: linear-gradient(45deg, #228B22, #32CD32);
    border-radius: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.technology-image::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    bottom: -100px;
    background: linear-gradient(45deg, #228B22, #32CD32, #90EE90);
    opacity: 0.8;
}

.technology-image > div {
    position: relative;
    z-index: 1;
}

/* Vision Section */
.vision {
    padding: 5rem 0;
    background: #1a1a1a;
    color: #fff;
    text-align: center;
}

.vision h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.container .vision-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #FFD700;
    text-align: center;
}

.vision p {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: left;
}

.vision-highlight {
    background: rgba(255, 215, 0, 0.05);
    padding:2rem 2rem 1rem 2rem;
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
}

.vision-highlight h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.vision-highlight .english {
    text-align: center;
    font-style: italic;
    color: #FFD700;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background:#000000;
    color: #fff;
    text-align: center;
}

.contact-section .section-title {
    color: #fff;
}

.contact-intro {
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    color: #ddd;
}

.contact-box {
    background: rgba(255, 255, 255, 0.05);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: left;
}

.contact-box h3 {
    color: #FFD700;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-details strong {
    color: #acacac;
    display: inline-block;
    width: 80px;
    font-weight: 500;
}

.contact-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    font-size: 0.85rem;
    color: #ccc;
    text-align: center;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: #2F1B14;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    margin-bottom: 2.5rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section h3 a {
    color: #FFD700;
    text-decoration: none;
}

.footer-section h3 a:hover {
    opacity: 0.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #FFD700;
}

.footer-section p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #888;
    font-size: 0.9rem;
}

/* Page Up Button */
.page-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.page-up-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-up-btn:hover {
    background: #FFC107;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-up-btn:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

/* Breadcrumb */
.breadcrumb-nav {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-top: 120px; 
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: #666;
    font-weight: bold;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #666;
    font-weight: normal;
}

/* Responsive Design */
@media (max-width: 1098px) {
    .hero {
        min-height: 100%;
    }
    .hero-content {
        margin: 0 0 0 20px;
    }
    .hero h1 {
        font-size: 2.0rem;
    }
    .hero-image {
        height: 700px;
    }
}

@media (max-width: 980px) {
    .hero {
        min-height: 100%;
    }
    .hero-content {
        margin: 0;
    }
    .hero-image {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding: 8rem 2rem 2rem;
        justify-content: flex-start;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul.dropdown-menu {
        margin:0 0 0 0;
        padding: 0;
    }

    .nav-menu ul.dropdown-menu li {
        margin:1rem 0 0 0;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        margin:0;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* li要素に統一線 */
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: none; /* a要素の線を削除 */
        margin: 0;
        width: 100%; /* 幅を100%に統一 */
    }

    /* Mobile Dropdown - 矢印分離方式 */
    .dropdown {
        margin: 0;
    }

    .dropdown-container {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding:0 1rem;
        border-bottom: none;
    }

    /* ドロップダウンが閉じている時：線なし、通常間隔 */
    .dropdown:not(.active) .dropdown-container {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* ドロップダウンが開いている時：線なし */
    .dropdown.active .dropdown-container {
        border-bottom: none;
        margin-bottom: 0;
    }

    .dropdown-link {
        flex: 1;
        text-align: left; /* 左寄せに変更 */
        font-size: 1.1rem;
        padding: 0; /* パディングをリセット */
    }

    .dropdown-button {
        margin-left: 0;
        padding: 0.5rem;
        flex-shrink: 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.1);
        margin: 0;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        backdrop-filter: none;
        border: none;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown-arrow {
        border-top-color: #fff;
    }
    
    .dropdown-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* サブメニューも統一 */
    }
    
    .dropdown-menu a {
        padding: 0.5rem 2.5rem;
        font-size: 0.85rem;
        border-bottom: none; /* a要素の線を削除 */
        color: #bbb;
        background: rgba(0, 0, 0, 0.4);
        margin: 0;
        width: 100%; /* 幅を100%に統一 */
    }

    /* 最後のドロップダウン項目の調整 */
    .dropdown-menu li:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        margin-bottom: 1rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 3rem;
        background: rgba(255, 215, 0, 0.1);
        color: #FFD700;
    }

    .dropdown-menu a::before {
        display: none;
    }

    /* 次のメニュー項目（事業内容）の上マージンをリセット */
    .dropdown + li {
        margin-top: 0;
    }

    /* 通常のメニュー項目の間隔調整 */
    .nav-menu > li:not(.dropdown) a {
        margin-top: 0;
    }

    /* 最後のメニュー項目（お問い合わせ）の下線を少し太くする */
    .nav-menu > li:last-child {
        border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    }

    .breadcrumb-nav {
        margin-top: 120px;
        padding: 0.8rem 0;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }

    .hero {
        padding-top: 160px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image {
        height: 500px;
    }

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-number {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
    }

    .technology-content {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2.5rem;
    }
    
    .contact-details strong {
        width: auto;
        display: block;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 180px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .feature-card,
    .service-card {
        padding: 2rem 1.5rem;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .page-up-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .breadcrumb-nav {
        margin-top: 110px;
    }
    
    .breadcrumb {
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .breadcrumb li:not(:last-child)::after {
        margin: 0 0.3rem;
    }

    /* モバイル（480px以下）での線の調整 */
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* 小画面でより見やすく */
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .nav-menu > li:last-child {
        border-bottom: 1px solid rgba(255, 215, 0, 0.4);
    }
}