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

:root {
    --primary-green: #2E8B57;
    --dark-green: #228B22;
    --light-green: #90EE90;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #666666;
    --black: #333333;
    --accent-black: #000000;
    --text-color: #444444;
    --border-color: #DDDDDD;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* ヘッダー */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo h1 {
    color: var(--primary-green);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

.logo-badge {
    font-size: 11px;
    color: var(--white);
    background: var(--primary-green);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green);
}

.contact-btn {
    background: var(--primary-green);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.contact-btn:hover {
    background: var(--dark-green);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ファーストビュー */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, #1a5c38 100%);
    margin-top: 70px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.hero-main-copy {
    display: block;
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-sub-copy {
    display: block;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 17px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--gray-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 22px 44px;
    font-size: 19px;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-green);
}

/* TUSGとは */
.about-tusg {
    background: var(--gray-light);
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* 事業内容 */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.business-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon i {
    font-size: 28px;
    color: var(--white);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--black);
}

.card-description {
    margin-bottom: 25px;
    line-height: 1.7;
}

.card-details {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.card-details p {
    margin-bottom: 10px;
}

.card-details p:last-child {
    margin-bottom: 0;
}

.card-list {
    list-style: none;
    margin-top: 20px;
}

.card-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.card-list li::before {
    content: '•';
    color: var(--primary-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 強み・選ばれる理由 */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.strength-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.strength-item:hover {
    border-color: var(--primary-green);
}

.strength-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.strength-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--black);
}

.strength-description {
    line-height: 1.7;
}

/* 想定実績モデル */
.performance-model {
    background: var(--primary-green);
    color: var(--white);
}

.performance-content {
    text-align: center;
}

.performance-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.stat-plus, .stat-equal {
    font-size: 36px;
    font-weight: 700;
}

.performance-note {
    font-size: 18px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 代表挨拶 */
.ceo-message {
    background: var(--gray-light);
}

.message-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.lead-message {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--primary-green);
    line-height: 1.8;
}

.message-text p {
    margin-bottom: 25px;
    line-height: 1.8;
}

.message-text p:last-child {
    margin-bottom: 40px;
}

.ceo-info {
    text-align: right;
    margin-top: 40px;
}

.ceo-position {
    font-size: 14px;
    color: var(--gray-dark);
    margin-bottom: 5px;
}

.ceo-name {
    font-size: 18px;
    font-weight: 600;
}

/* 会社概要 */
.company-info {
    background: var(--white);
}

.company-table {
    max-width: 800px;
    margin: 0 auto;
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.company-table th {
    width: 30%;
    font-weight: 600;
    color: var(--black);
    background: var(--gray-light);
}

.company-table td {
    line-height: 1.7;
}

/* お問い合わせ */
.contact {
    background: var(--gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--black);
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-note {
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.required {
    color: #E74C3C;
    font-weight: 600;
}

/* フッター */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.footer-company {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--gray-medium);
}

.footer-address {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-medium);
}

.footer-nav-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.footer-nav-list a {
    color: var(--gray-medium);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-list a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--gray-dark);
    color: var(--gray-medium);
    font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-inner {
        padding: 10px 0;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-main-copy {
        font-size: 32px;
    }
    
    .hero-sub-copy {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .business-card {
        padding: 30px 20px;
    }
    
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .performance-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-nav-list {
        grid-template-columns: 1fr;
    }
    
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    
    .company-table th {
        background: var(--gray-light);
        border-bottom: none;
    }
    
    .company-table td {
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-main-copy {
        font-size: 24px;
    }
    
    .hero-sub-copy {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .strength-title {
        font-size: 18px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* スクロールアニメーション用 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}