/* 株式会社YSサポート - メインスタイルシート */

/* リセット & グローバルスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background-color: #F8F9FA;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.logo img {
    height: 60px;
    width: auto;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
    color: #5DADE2;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2C3E50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.5), rgba(93, 173, 226, 0.5)), 
                url('../images/hero-mountains.jpg') center/cover no-repeat;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ページヘッダー */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.6), rgba(93, 173, 226, 0.6)),
                url('../images/hero-office.jpg') center/cover no-repeat;
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* セクション */
section {
    padding: 5rem 2rem;
}

.bg-light {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-title p {
    color: #7F8C8D;
    font-size: 1.1rem;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.card-content p {
    color: #7F8C8D;
    line-height: 1.8;
}

/* 特徴グリッド */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 3rem;
    color: #5DADE2;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.feature-item p {
    color: #7F8C8D;
    line-height: 1.7;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #5DADE2;
    color: white;
}

.btn-primary:hover {
    background-color: #4A9CD8;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.4);
}

.btn-secondary {
    background-color: white;
    color: #2C3E50;
    border: 2px solid #5DADE2;
}

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

/* 拠点情報 */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.office-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.office-card h3 {
    font-size: 1.5rem;
    color: #2C3E50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #5DADE2;
}

.office-card p {
    color: #7F8C8D;
    line-height: 1.9;
    margin-bottom: 0.8rem;
}

.office-card strong {
    color: #2C3E50;
    font-weight: 600;
}

.office-info {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.office-info h3 {
    font-size: 1.6rem;
    color: #2C3E50;
    margin-bottom: 2rem;
}

.office-info p {
    color: #7F8C8D;
    line-height: 2;
}

.office-info strong {
    color: #2C3E50;
    font-weight: 600;
    display: block;
    margin-top: 1rem;
}

/* 採用情報 */
.recruit-box {
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.recruit-box h3 {
    font-size: 1.8rem;
    color: #5DADE2;
    margin-bottom: 1.5rem;
}

.recruit-box ul {
    list-style: none;
    margin-bottom: 1rem;
}

.recruit-box li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #E8E8E8;
    color: #7F8C8D;
    line-height: 1.8;
}

.recruit-box li:last-child {
    border-bottom: none;
}

.recruit-box strong {
    color: #2C3E50;
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

/* フォームスタイル */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

.required {
    color: #E74C3C;
    margin-left: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E8E8E8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #5DADE2;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.error-message {
    display: none;
    color: #E74C3C;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #E74C3C;
}

.form-group.error .error-message {
    display: block;
}

/* フッター */
footer {
    background-color: #2C3E50;
    color: white;
    padding: 4rem 2rem 2rem;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #5DADE2;
}

.footer-section p,
.footer-section ul {
    color: #BDC3C7;
    line-height: 1.8;
}

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

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

.footer-section a {
    color: #BDC3C7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #5DADE2;
}

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

.footer-bottom p {
    color: #95A5A6;
}

/* スクロールトップボタン */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #5DADE2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(93, 173, 226, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #4A9CD8;
    transform: translateY(-5px);
}

/* テーブル */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #E8E8E8;
}

th {
    background-color: #5DADE2;
    color: white;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #F8F9FA;
}

/* レスポンシブ: タブレット */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s;
    }
    
    nav.active {
        right: 0;
    }
    
    nav a {
        padding: 1rem 0;
        border-bottom: 1px solid #E8E8E8;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .card-grid,
    .features,
    .office-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* レスポンシブ: スマートフォン */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .hero {
        padding: 5rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .page-header {
        padding: 4rem 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .card-content,
    .office-card,
    .office-info,
    .recruit-box {
        padding: 1.5rem;
    }
    
    .logo img {
        height: 50px;
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ユーティリティクラス */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
