/* 
 * メガマシン社コーポレートサイト
 * スタイルシート
 */

/* ===== 基本設定 ===== */
:root {
    /* カラー設定 - 高級感と清潔感を重視 */
    --primary-color: #1a2b47;      /* 深いネイビー */
    --secondary-color: #4a90e2;    /* 鮮やかな青 */
    --accent-color: #e2b04a;       /* ゴールド */
    --light-color: #f4f5f6;        /* 明るいグレー */
    --dark-color: #212529;         /* 暗いグレー */
    --text-color: #333333;         /* テキスト色 */
    --bg-color: #ffffff;           /* 背景色 */
    --border-color: #e0e0e0;       /* ボーダー色 */
    
    /* フォント設定 */
    --font-primary: 'Noto Sans JP', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* サイズ設定 */
    --header-height: 80px;
    --section-padding: 70px 0; /* 縦幅を縮小 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px; /* 縦幅を縮小 */
}

p {
    margin-bottom: 15px; /* 縦幅を縮小 */
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* 画像の下の余白を防ぐ */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 40px; /* 縦幅を縮小 */
}

.section-title {
    font-size: 32px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 15px; /* 縦幅を縮小 */
    position: relative;
}

.section-line {
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

/* ロゴ表示の修正 */
.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

.header.scrolled .logo-dark {
    display: block;
}

.header.scrolled .logo-light {
    display: none;
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--light-color);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link i {
    margin-right: 8px;
    font-size: 18px;
}

/* ナビゲーションリンクのホバーエフェクト */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header.scrolled .nav-link {
    color: var(--primary-color);
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.header.scrolled .menu-toggle span {
    background-color: var(--primary-color);
}

/* リンクホバーエフェクト */
.link-hover {
    position: relative;
    overflow: hidden;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.link-hover:hover::after {
    width: 100%;
}

/* ===== ヒーローエリア ===== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transform: scale(1);
    transition: transform 0.2s ease; /* 初期状態での変化のためのトランジション */
}

/* ヒーロー画像のズームインアニメーションクラス */
.hero-image.zoom-in-animation {
    animation: heroZoomIn 10s ease forwards;
}

/* ズームインアニメーション定義 */
@keyframes heroZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: 54px; /* サイズを小さく */
    font-weight: 700;
    margin-bottom: 15px; /* 縦幅を縮小 */
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 22px; /* サイズを小さく */
    font-weight: 400;
    margin-bottom: 25px; /* 縦幅を縮小 */
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-color);
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 10;
}

.scroll-arrow {
    width: 20px;
    height: 40px;
    border: 2px solid var(--light-color);
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background-color: var(--light-color);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ===== 企業理念 ===== */
.philosophy {
    background-color: var(--light-color);
}

.philosophy-content {
    display: flex;
    flex-direction: column;
    gap: 40px; /* 縦幅を縮小 */
}

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

.philosophy-catchphrase {
    font-size: 28px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 20px; /* 縦幅を縮小 */
    font-weight: 700;
}

.philosophy-text {
    font-size: 16px; /* サイズを小さく */
    line-height: 1.7;
}

.philosophy-vision {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px; /* 縦幅を縮小 */
}

.vision-item {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-color);
    padding: 30px 25px; /* パディングを縮小 */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* 影を軽減 */
    text-align: center;
    transition: all 0.3s ease;
}

.vision-item:hover {
    transform: translateY(-5px); /* 移動距離を縮小 */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.vision-icon {
    font-size: 36px; /* サイズを小さく */
    color: var(--secondary-color);
    margin-bottom: 15px; /* 縦幅を縮小 */
}

.vision-title {
    font-size: 20px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 10px; /* 縦幅を縮小 */
}

.vision-text {
    font-size: 15px; /* サイズを小さく */
    line-height: 1.5;
}

/* 企業理念の挿絵 */
.philosophy-illustration {
    margin-bottom: 20px; /* 縦幅を縮小 */
    text-align: center;
}

.philosophy-image {
    max-width: 100%;
    max-height: 300px; /* 高さ制限を追加 */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 影を軽減 */
    margin: 0 auto; /* 中央揃え */
}

/* ===== 事業内容 ===== */
.services {
    background-color: var(--bg-color);
}

.service-block {
    margin-bottom: 60px; /* 縦幅を縮小 */
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px; /* 縦幅を縮小 */
}

.service-number {
    font-size: 50px; /* サイズを小さく */
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-right: 15px; /* 縦幅を縮小 */
    line-height: 1;
}

.service-title {
    font-size: 28px; /* サイズを小さく */
    color: var(--primary-color);
    position: relative;
    padding-bottom: 12px; /* パディングを縮小 */
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px; /* 幅を縮小 */
    height: 3px;
    background-color: var(--accent-color);
}

.service-content {
    padding-left: 65px; /* パディングを縮小 */
}

.service-description {
    font-size: 16px; /* サイズを小さく */
    line-height: 1.7;
    margin-bottom: 30px; /* 縦幅を縮小 */
    max-width: 100%;
    overflow: hidden; /* float解除 */
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* 縦幅を縮小 */
    margin-bottom: 40px; /* 縦幅を縮小 */
}

.feature-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--light-color);
    padding: 25px 20px; /* パディングを縮小 */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* 影を軽減 */
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px); /* 移動距離を縮小 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 影を軽減 */
}

.feature-icon {
    font-size: 26px; /* サイズを小さく */
    color: var(--secondary-color);
    margin-bottom: 15px; /* 縦幅を縮小 */
}

.feature-title {
    font-size: 18px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 10px; /* 縦幅を縮小 */
}

.feature-text {
    font-size: 15px; /* サイズを小さく */
    line-height: 1.5;
}

.service-courses {
    display: flex;
    flex-direction: column;
    gap: 30px; /* 縦幅を縮小 */
}

.course-item {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* 影を軽減 */
}

.course-header {
    background-color: var(--primary-color);
    padding: 20px 25px; /* パディングを縮小 */
    color: var(--light-color);
}

.course-title {
    font-size: 22px; /* サイズを小さく */
    margin-bottom: 12px; /* 縦幅を縮小 */
}

.course-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* 縦幅を縮小 */
    font-size: 14px;
}

.course-info span {
    display: flex;
    align-items: center;
}

.course-info i {
    margin-right: 6px; /* 縦幅を縮小 */
}

.course-content {
    padding: 25px; /* パディングを縮小 */
}

.course-overview {
    font-size: 15px; /* サイズを小さく */
    line-height: 1.7;
    margin-bottom: 15px; /* 縦幅を縮小 */
}

.course-details h5 {
    font-size: 17px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 12px; /* 縦幅を縮小 */
}

.course-details ul {
    list-style-type: none;
    padding-left: 15px; /* パディングを縮小 */
}

/* コースリストを3カラムにする */
.course-list.three-column {
    column-count: 3;
    column-gap: 20px;
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.course-details li {
    position: relative;
    padding-left: 18px; /* パディングを縮小 */
    margin-bottom: 8px; /* 縦幅を縮小 */
    line-height: 1.5;
    font-size: 15px; /* サイズを小さく */
    break-inside: avoid-column; /* 項目が列をまたがないようにする */
}

.course-details li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px; /* サイズを小さく */
    height: 6px; /* サイズを小さく */
    background-color: var(--secondary-color);
    border-radius: 50%;
}

.service-support {
    margin-top: 40px; /* 縦幅を縮小 */
    background-color: var(--light-color);
    padding: 30px; /* パディングを縮小 */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* 影を軽減 */
}

.support-title {
    font-size: 22px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 15px; /* 縦幅を縮小 */
}

.support-text {
    font-size: 15px; /* サイズを小さく */
    line-height: 1.7;
    margin-bottom: 20px; /* 縦幅を縮小 */
}

.support-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* 縦幅を縮小 */
}

.support-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.support-icon {
    font-size: 26px; /* サイズを小さく */
    color: var(--secondary-color);
    margin-bottom: 12px; /* 縦幅を縮小 */
}

.support-item h5 {
    font-size: 17px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 8px; /* 縦幅を縮小 */
}

.support-item p {
    font-size: 14px; /* サイズを小さく */
    line-height: 1.5;
}

/* 事業内容の挿絵 */
.service-illustration {
    margin-bottom: 20px; /* 縦幅を縮小 */
    float: right;
    width: 50%;
    margin-left: 25px; /* マージンを縮小 */
}

.service-image {
    max-width: 100%;
    max-height: 250px; /* 高さ制限を追加 */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 影を軽減 */
    object-fit: cover; /* 画像比率を維持 */
}

/* タブ切り替え - デザイン改善 */
.service-tabs {
    margin-top: 30px; /* 縦幅を縮小 */
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px; /* 縦幅を縮小 */
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    padding: 12px 18px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 15px; /* サイズを小さく */
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 8px; /* マージンを縮小 */
    white-space: nowrap;
    position: relative;
    border-radius: 8px 8px 0 0; /* 上部の角を丸く */
    display: flex;
    align-items: center;
}

/* タブボタンのホバーアニメーション */
.tab-btn:hover {
    color: var(--secondary-color);
    background-color: rgba(74, 144, 226, 0.05);
    transform: translateY(-3px);
}

/* タブボタンの番号表示 */
.tab-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
}

.tab-btn:hover {
    color: var(--secondary-color);
    background-color: rgba(74, 144, 226, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
    background-color: rgba(74, 144, 226, 0.1);
}

.tab-btn.active .tab-number {
    background-color: var(--accent-color);
}

.tabs-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeEffect 0.5s;
}

.tab-pane.active {
    display: block;
}

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

/* ===== 会社概要 ===== */
.company {
    background-color: var(--light-color);
}

/* 会社概要コンテンツのフレックスレイアウト */
.company-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.company-info {
    flex: 1;
    min-width: 300px;
}

.company-map-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

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

.company-table th,
.company-table td {
    padding: 15px; /* パディングを縮小 */
    border-bottom: 1px solid var(--border-color);
}

.company-table th {
    width: 35%;
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
    vertical-align: top;
}

.company-table th i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.company-table td {
    width: 70%;
}

.company-table td ul {
    list-style-type: none;
    padding-left: 0;
}

.company-table td ul li {
    position: relative;
    padding-left: 18px; /* パディングを縮小 */
    margin-bottom: 8px; /* 縦幅を縮小 */
    font-size: 15px; /* サイズを小さく */
}

.company-table td ul li::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 0;
    width: 6px; /* サイズを小さく */
    height: 6px; /* サイズを小さく */
    background-color: var(--secondary-color);
    border-radius: 50%;
}

/* 会社概要の地図 */
.map-title {
    font-size: 22px; /* サイズを小さく */
    color: var(--primary-color);
    margin-bottom: 15px; /* 縦幅を縮小 */
}

.map-title i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 影を軽減 */
    flex-grow: 1;
    min-height: 350px;
}

/* ===== お問い合わせ ===== */
.contact {
    background-color: var(--bg-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    margin-bottom: 30px; /* 縦幅を縮小 */
}

.contact-form {
    background-color: var(--light-color);
    padding: 35px; /* パディングを縮小 */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* 影を軽減 */
}

.form-group {
    margin-bottom: 20px; /* 縦幅を縮小 */
}

.form-group label {
    display: block;
    margin-bottom: 8px; /* 縦幅を縮小 */
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.required {
    color: #e74c3c;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px; /* パディングを縮小 */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 15px; /* サイズを小さく */
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.privacy-policy {
    display: flex;
    align-items: center;
}

.privacy-policy input {
    width: auto;
    margin-right: 8px; /* マージンを縮小 */
}

.form-submit {
    text-align: center;
    margin-top: 30px; /* 縦幅を縮小 */
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 35px; /* パディングを縮小 */
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.submit-btn i {
    margin-right: 8px;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* ===== フッター ===== */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0 25px; /* パディングを縮小 */
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px; /* 縦幅を縮小 */
}

.footer-logo {
    margin-bottom: 15px; /* 縦幅を縮小 */
}

.footer-logo img {
    height: 40px; /* サイズを小さく */
}

.footer-info p {
    margin-bottom: 8px; /* 縦幅を縮小 */
    font-size: 14px;
    display: flex;
    align-items: center;
}

.footer-info p i {
    margin-right: 8px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.footer-info a {
    color: var(--light-color);
}

.footer-info a:hover {
    color: var(--accent-color);
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* 縦幅を縮小 */
}

.footer-nav-item a {
    color: var(--light-color);
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-nav-item a i {
    margin-right: 5px;
    color: var(--accent-color);
}

.footer-nav-item a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px; /* パディングを縮小 */
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== スクロールトップボタン ===== */
.scroll-top {
    position: fixed;
    bottom: 25px; /* 位置を調整 */
    right: 25px; /* 位置を調整 */
    width: 45px; /* サイズを小さく */
    height: 45px; /* サイズを小さく */
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px; /* サイズを小さく */
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.scroll-top:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 46px; /* サイズを小さく */
    }
    
    /* コースリストを3カラムから2カラムに */
    .course-list.three-column {
        column-count: 2;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 38px; /* サイズを小さく */
    }
    
    .hero-subtitle {
        font-size: 18px; /* サイズを小さく */
    }
    
    .section {
        padding: 60px 0; /* パディングを縮小 */
    }
    
    .philosophy-vision {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .vision-item {
        width: 100%;
    }
    
    .service-content {
        padding-left: 0;
    }
    
    .service-features {
        flex-direction: column;
        max-width: 500px;
    }
    
    .feature-item {
        width: 100%;
    }
    
    .support-items {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .support-item {
        width: 100%;
    }
    
    /* 会社情報と地図を縦並びに */
    .company-flex-container {
        flex-direction: column;
    }
    
    .company-map-container {
        margin-top: 30px;
    }
    
    .map-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .header {
        height: 70px;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-list.active {
        height: calc(100vh - 70px);
        padding: 25px 0; /* パディングを縮小 */
    }
    
    .nav-item {
        margin: 12px 0; /* マージンを縮小 */
    }
    
    .nav-link {
        color: var(--primary-color);
        font-size: 16px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 32px; /* サイズを小さく */
    }
    
    .hero-subtitle {
        font-size: 16px; /* サイズを小さく */
    }
    
    .section-title {
        font-size: 28px; /* サイズを小さく */
    }
    
    .philosophy-catchphrase {
        font-size: 24px; /* サイズを小さく */
    }
    
    .service-number {
        font-size: 42px; /* サイズを小さく */
    }
    
    .service-title {
        font-size: 24px; /* サイズを小さく */
    }
    
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }
    
    .company-table th {
        padding-bottom: 5px;
    }
    
    .company-table td {
        padding-top: 5px;
    }
    
    .contact-form {
        padding: 25px; /* パディングを縮小 */
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo,
    .footer-info,
    .footer-nav {
        margin-bottom: 20px; /* 縦幅を縮小 */
    }
    
    .footer-nav-list {
        justify-content: center;
    }
    
    .footer-info p {
        justify-content: center;
    }

    .service-illustration {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px; /* 縦幅を縮小 */
    }

    /* タブUIのモバイル対応を改善 */
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
        gap: 8px;
    }
    
    .tab-btn {
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        border: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        border-radius: 5px;
        margin-right: 0;
    }
    
    .tab-btn.active {
        border-left-color: var(--accent-color);
        background-color: rgba(74, 144, 226, 0.1);
    }
    
    /* コースリストを1カラムに */
    .course-list.three-column {
        column-count: 1;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px; /* サイズを小さく */
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0; /* パディングを縮小 */
    }
    
    .section-title {
        font-size: 24px; /* サイズを小さく */
    }
    
    .philosophy-catchphrase {
        font-size: 22px; /* サイズを小さく */
    }
    
    .service-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-number {
        margin-bottom: 8px; /* 縦幅を縮小 */
    }
    
    .course-info {
        flex-direction: column;
        gap: 8px; /* 縦幅を縮小 */
    }
    
    .course-header,
    .course-content {
        padding: 20px 15px; /* パディングを縮小 */
    }
}