/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* テキスト選択を有効にする要素 */
p, span, h1, h2, h3, h4, h5, h6, .news-summary, .news-title {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* CSS変数でカラーパレット - 事務所風の落ち着いた色調 */
:root {
    --primary-color: #2d4a22;
    --secondary-color: #4a6b3a;
    --accent-color: #8b4513;
    --light-green: #e8f5e3;
    --dark-green: #1e3a16;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    --background-light: #f8faf7;
    --background-white: #ffffff;
    --border-color: #d4d4d4;
    --gold-accent: #b8860b;
    --footer-blue: #1B1464;
    --footer-blue-light: #2e2488;
    --footer-blue-dark: #140f4f;
}

/* 基本設定 */
body {
    font-family: 'Yu Gothic Medium', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, 'MS Gothic', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background-white);
    font-weight: 400;
}

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

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


.header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-header {
    background-color: #f0f0f0;
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background-color: var(--border-color);
}

.header-img-btn {
    height: 32px;
    width: auto;
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast; /* for Webkit browsers */
    image-rendering: crisp-edges;
}

.header-img-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.btn-contact {
    background-color: #3366cc;
    color: white;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background-color: #2755b8;
}

/* メインヘッダーエリア */
.header-main {
    background-color: var(--background-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.contact-section {
    display: flex;
    align-items: center;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #f8f9fa;
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
}

.phone-icon {
    font-size: 1.2rem;
}

.phone {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* ナビゲーションエリア */
.header-nav {
    background: #C0504D !important;
    padding: 0;
}

/* タッチデバイス用のアクティブ状態 */
.nav-list a:active,
.btn:active,
.btn-header:active,
.btn-contact:active,
.indicator:active,
.menu-toggle:active {
    transform: scale(0.98);
    opacity: 0.8;
}

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

.nav-list li {
    flex: 1;
}

.nav-list a {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-list li:last-child a {
    border-right: none;
}

.nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* デスクトップではモバイルヘッダー情報を非表示 */
.mobile-header-info {
    display: none;
}

/* メインビジュアル */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--background-white), #f8f9fa);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f8f9fa, var(--background-white));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
}

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

.section-header {
    text-align: center;
    margin-bottom: 30px; /* マージンを縮小 */
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 選ばれる5つの理由セクション */
.reasons {
    background-color: var(--background-white);
    padding: 80px 0;
}

.reasons-list {
    max-width: 1000px; /* 幅を調整 */
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* 1列表示 */
    gap: 2rem; /* 項目間のスペースをさらに広げる */
}

.reason-item {
    background: #f5f4f0; /* ベージュ背景色 */
    padding: 3rem; /* パディングを増やす */
    border: none; /* 外側のボーダーを削除 */
    border-radius: 15px; /* 角丸に変更 */
    box-shadow: none; /* シャドウを削除 */
    transition: all 0.3s ease; /* シンプルなアニメーション */
    position: relative;
    overflow: visible; /* オーバーフローを表示 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center; /* 中央揃え */
}

.reason-item::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 3px dotted #8B4513;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

/* 背景の数字は削除 */

.reason-item:hover {
    transform: none; /* ホバー時の動きを削除 */
    background: #f0ede8; /* ホバー時に少し暗いベージュ */
}

.reason-header {
    position: absolute;
    top: 35px;
    left: 35px;
    z-index: 3;
}

.reason-category {
    background: #8B4513;
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.reason-content {
    position: relative;
    z-index: 2;
    padding-top: 3rem;
}

.reason-subtitle {
    font-size: 1rem;
    color: #333; /* 黒色 */
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.reason-title {
    font-size: 2rem; /* タイトルを大きく */
    color: #000; /* 黒色 */
    margin-bottom: 1.5rem;
    font-weight: 800; /* 太字に */
    line-height: 1.2;
}

/* reason-numberクラスは削除されたので不要 */

.reason-description {
    color: #333; /* 黒色 */
    line-height: 1.9; /* 行間を広げる */
    font-size: 1.05rem; /* フォントサイズを少し大きく */
    margin-bottom: 0;
    text-align: left; /* 説明文は左揃え */
}

.cloud-systems {
    margin-top: 2.5rem; /* 上マージンを増やす */
    background-color: #ffffff; /* 白背景に変更 */
    padding: 2rem; /* パディングを増やす */
    border-radius: 10px; /* 角丸に変更 */
    border: none; /* 外側のボーダーを削除 */
    box-shadow: none; /* シャドウを削除 */
    text-align: left; /* 左揃え */
    position: relative;
}

/* cloud-systemsの点線は削除 */

.cloud-systems h4 {
    font-size: 1.25rem; /* 少し大きく */
    color: #000; /* 黒色 */
    margin-bottom: 1.2rem;
    font-weight: 700; /* 太字に */
    position: relative;
    z-index: 2;
}

.cloud-logos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.cloud-system p {
    font-size: 1rem; /* 少し大きく */
    color: #333; /* 黒色 */
    line-height: 1.7;
    margin-bottom: 0;
}

/* サービスボタンセクション */
.service-buttons {
    background-color: #FEF8F3;
    padding: 80px 0;
    text-align: center;
}

.service-intro {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-weight: 600;
}

.service-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.service-button-group {
    display: flex;
    flex-direction: column;
}

.service-card {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.service-footer {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: linear-gradient(135deg, var(--background-white) 0%, #f1f5f9 100%);
    padding: 2.5rem;
    border-radius: 25px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--light-blue), var(--primary-color));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.2);
    transform: translateY(-8px) rotate(1deg);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 400;
}

/* 実績・認定セクション */
.achievements {
    background-color: var(--primary-color);
    color: var(--background-white);
}

.achievements .section-title,
.achievements .section-subtitle {
    color: var(--background-white);
}

.achievements-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.achievement-item {
    background-color: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 350px;
    border: 2px solid var(--gold-accent);
}

.achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.achievement-item h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.achievement-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ニュースセクション */
.news-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.news-item {
    background: linear-gradient(135deg, var(--background-white) 0%, #f8f9fa 100%);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.news-item:active {
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.1);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.news-item:hover::before {
    transform: scaleY(1);
}

.news-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, var(--background-white) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
}

.news-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--background-white);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.news-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.news-summary {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.news-more {
    text-align: center;
    margin-top: 3rem;
}

/* フッター */
.footer {
    background: rgba(122, 46, 43, 0.6);
    /*background: rgba(44, 44, 44, 0.6);*/
    color: var(--background-white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46, 36, 136, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-section h3 {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.contact-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section h4 {
    font-size: 1.1rem;
    color: var(--footer-blue-light);
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    font-weight: 400;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--footer-blue-light);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.footer-section ul li a:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 事務所紹介セクション */
.about-us {
    position: relative; /* 擬似要素の基準 */
    background-image: url('images/tab3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス効果 */
    padding: 80px 0;
}

.about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒いオーバーレイ */
    z-index: 1;
}

.about-us .container {
    position: relative; /* コンテンツをオーバーレイの上に表示 */
    z-index: 2;
}

.about-us-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.9); /* 半透明の白 */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* シャドウを強調 */
    transition: all 0.3s ease;
}

.about-us-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.about-us-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-primary); /* テキスト色を確実に設定 */
}

.about-us .section-title {
    color: white; /* 背景が暗くなるのでタイトルを白に */
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    /* ヘッダー - モバイル */
    .header-main-content {
        justify-content: center;
    }
    
    .right-section {
        display: none;
    }
    
    .logo-image {
        height: 60px;
    }
    
    /* モバイルメニュー内のヘッダー情報 */
    .mobile-header-info {
        display: block;
        padding: 1rem 20px;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
    }
    
    .mobile-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        margin-bottom: 0.5rem; /* 下の余白を縮小 */
    }
    
    .mobile-buttons .btn-header {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .mobile-buttons .btn-contact {
        background-color: #3366cc;
        color: white;
        font-size: 0.7rem;
        line-height: 1.1;
    }
    
    .mobile-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        padding: 0.8rem;
        border-radius: 6px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .mobile-phone .phone-icon {
        font-size: 1.2rem;
    }
    
    .mobile-phone .phone {
        font-size: 1.3rem;
        font-weight: bold;
        color: white;
    }

    .menu-toggle {
        display: flex;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 1001;
        background-color: var(--primary-color);
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .nav {
        position: fixed;
        top: 81px; /* ヘッダーの高さ分下げる */
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background-white) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.3s ease;
        padding: 0; /* パディングを削除 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    .mobile-contact-area {
        background-color: #C0504D;
        padding: 20px;
        flex-grow: 1;
    }
    
    /* メニューが開いている時はbodyのスクロールを無効化 */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li {
        flex: none;
    }

    .nav-list a {
        padding: 1.2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-list li:last-child a {
        border-bottom: none;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: 6px;
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: -6px;
    }

    /* メインビジュアル */
    .hero {
        height: 100vh;
        min-height: 600px;
    }

    .hero-content {
        padding: 2rem 1rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 600px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-indicators {
        bottom: 30px;
    }

    /* セクション */
    section {
        padding: 60px 0;
    }

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

    .section-header {
        margin-bottom: 40px;
    }

    .strengths-grid {
        grid-template-columns: 1fr;
    }

    /* グリッドレイアウト */
    .philosophy-grid,
    .achievements-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 選ばれる5つの理由 - モバイル */
    .reason-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem; /* さらにパディング縮小 */
        border-radius: 10px; /* モバイルでも角丸 */
    }
    
    .reason-item::after {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        border-width: 2px; /* モバイルでは細く */
    }
    
    .reason-header {
        position: static; /* モバイルでは通常の配置 */
        margin-bottom: 1rem;
    }
    
    .reason-content {
        padding-top: 1rem; /* モバイルではパディング縮小 */
    }
    
    .cloud-systems {
        padding: 1.5rem; /* モバイルでパディング縮小 */
        border-radius: 8px; /* モバイルでも角丸 */
    }
    
    /* cloud-systemsの点線はモバイルでも削除 */
    
    .cloud-logos {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* サービスボタン - モバイル */
    .service-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }

    .philosophy-item,
    .service-card,
    .achievement-item {
        padding: 2rem 1.5rem;
    }

    /* ニュース */
    .news-item:hover {
        margin: 0 -1rem;
        padding: 2rem 1rem;
    }

    /* フッター */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-info {
        margin-bottom: 1rem;
    }
    
    .footer-section ul {
        justify-content: center;
        gap: 0.8rem;
    }
}

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

    .logo-image {
        height: 50px;
    }

    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 1rem 0.5rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 500px;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-bottom: 3rem;
    }
    
    .hero-indicators {
        bottom: 20px;
    }

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

    .philosophy-item,
    .service-card,
    .achievement-item {
        padding: 1.5rem;
    }
    
    .philosophy-item {
        width: 100%;
        max-width: 350px;
    }
    
    .achievement-item {
        width: 100%;
        max-width: 350px;
    }

    .news-item:hover {
        margin: 0;
        padding: 2.5rem;
    }
    
    /* サービスボタン - 小画面 */
    .service-buttons-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    /* フッター - 小画面 */
    .footer-section ul {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
}

/* 事務所案内ページスタイル */
.about-page {
    padding: 180px 0 80px;
    background-color: var(--background-white);
}

.post {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.entry-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.5rem;
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.entry-content table th {
    background-color: #f5f5f5;
    color: #333;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    width: 150px;
    font-size: 1rem;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.entry-content table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-white);
}

.entry-content table tr:last-child td {
    border-bottom: none;
}

.entry-content table tr:hover td {
    background-color: var(--background-light);
}

.entry-content table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.entry-content table a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .about-page {
        padding: 100px 0 60px;
    }
    
    .post {
        margin: 0 0.8rem;
        padding: 2rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content table th {
        width: 120px;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .entry-content table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .post {
        margin: 0 0.3rem;
        padding: 1.2rem;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-content table th {
        width: 100px;
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .entry-content table td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* アクセスマップスタイル */
.map-container {
    text-align: center;
    margin: 2rem 0;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map-link {
    margin-top: 1rem;
}

.map-link a {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 500;
}

.map-link a:hover {
    text-decoration: underline;
}

.access-info {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.access-info p {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.access-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.3rem;
}

/* レスポンシブ対応 - アクセスマップ */
@media (max-width: 768px) {
    .map-container {
        padding: 1.5rem;
    }
    
    .map-container iframe {
        width: 100%;
        height: 300px;
    }
    
    .access-info p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .map-container {
        padding: 1rem;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    .access-info {
        padding: 1.5rem;
    }
    
    .access-info p {
        font-size: 1rem;
    }
}

/* 採用情報スタイル */
.recruit-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #dee2e6;
    margin: 2rem 0;
}

.recruit-notice i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: block;
}

.recruit-notice h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    font-weight: 700;
    border: none;
    padding: 0;
}

.recruit-notice p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* レスポンシブ対応 - 採用情報 */
@media (max-width: 768px) {
    .recruit-notice {
        padding: 2rem;
    }
    
    .recruit-notice i {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .recruit-notice h2 {
        font-size: 1.5rem;
    }
    
    .recruit-notice p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .recruit-notice {
        padding: 1.5rem;
    }
    
    .recruit-notice i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .recruit-notice h2 {
        font-size: 1.3rem;
    }
    
    .recruit-notice p {
        font-size: 0.9rem;
    }
}

/* 業務内容スタイル */
.service-intro-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-image {
    flex-shrink: 0;
}

.service-image img.pic2 {
    width: 186px;
    height: 156px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.service-text {
    flex: 1;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0;
}

.ul-box {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin: 1.5rem 0 3rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    list-style: none;
}

.ul-box li {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.ul-box li:last-child {
    margin-bottom: 0;
}

.ul-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.ul-box li {
    list-style: none;
}

/* レスポンシブ対応 - 業務内容 */
@media (max-width: 768px) {
    .service-intro-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .service-image img.pic2 {
        width: 150px;
        height: 126px;
    }
    
    .service-text p {
        font-size: 1rem;
        text-align: left;
    }
    
    .ul-box {
        padding: 1.5rem;
    }
    
    .ul-box li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .service-intro-content {
        padding: 1rem;
    }
    
    .service-image img.pic2 {
        width: 120px;
        height: 100px;
    }
    
    .service-text p {
        font-size: 0.9rem;
    }
    
    .ul-box {
        padding: 1rem;
    }
    
    .ul-box li {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }
}

/* プライバシーポリシースタイル */
.privacy-list {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    counter-reset: privacy-counter;
    list-style: none;
}

.privacy-list li {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
    counter-increment: privacy-counter;
    list-style: none;
}

.privacy-list li:last-child {
    margin-bottom: 0;
}

.privacy-list li::before {
    content: counter(privacy-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    background: var(--background-light);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* レスポンシブ対応 - プライバシーポリシー */
@media (max-width: 768px) {
    .privacy-list {
        padding: 1.5rem;
    }
    
    .privacy-list li {
        font-size: 0.95rem;
        padding-left: 1.8rem;
    }
    
    .privacy-list li::before {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .privacy-list {
        padding: 1rem;
    }
    
    .privacy-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }
    
    .privacy-list li::before {
        width: 1.2rem;
        height: 1.2rem;
        font-size: 0.75rem;
    }
}

/* 段落をわかりやすくするスタイル */
.privacy-list li {
    white-space: pre-line;
}

/* お問い合わせフォームスタイル */
.contents01 {
    margin: 2rem 0;
}

.inner02 {
    max-width: 100%;
}

.fBold {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.mB10 {
    margin-bottom: 1rem;
}

.mB20 {
    margin-bottom: 2rem;
}

.mB30 {
    margin-bottom: 3rem;
}

.kome {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.fcRed01 {
    color: #e74c3c;
    font-weight: bold;
}

.entry_form {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.entry_form dl {
    margin: 0;
}

.entry_form dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.entry_form dt:first-child {
    margin-top: 0;
}

.entry_form dd {
    margin: 0 0 1rem 0;
}

.entry_form h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary-color);
}

.entry_form select,
.entry_form input[type="text"],
.entry_form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--background-white);
    transition: border-color 0.3s ease;
}

.entry_form select:focus,
.entry_form input[type="text"]:focus,
.entry_form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(45, 74, 34, 0.1);
}

.entry_form textarea {
    min-height: 120px;
    resize: vertical;
}

.form_button01 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    min-width: 200px;
}

.form_button01:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 74, 34, 0.3);
}

/* エラーメッセージコンテナ */
.error-container {
    background-color: #ffeaea;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.error-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #dc3545;
    font-size: 1rem;
}

.error-header i {
    margin-right: 8px;
    font-size: 18px;
}

.error-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.error-list li {
    color: #721c24;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.error-list li:before {
    content: "•";
    color: #dc3545;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.error-list li:last-child {
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

/* レスポンシブ対応 - お問い合わせフォーム */
@media (max-width: 768px) {
    .entry_form {
        padding: 1.5rem;
    }
    
    .fBold {
        font-size: 1rem;
    }
    
    .entry_form h4 {
        font-size: 1.1rem;
    }
    
    .form_button01 {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .entry_form {
        padding: 1rem;
    }
    
    .entry_form select,
    .entry_form input[type="text"],
    .entry_form textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .form_button01 {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* スムーススクロール */
html {
    scroll-behavior: smooth;
}

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

.philosophy-item,
.service-card,
.achievement-item {
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
}

.philosophy-item:active,
.service-card:active,
.achievement-item:active {
    transform: translateY(-2px) scale(0.98);
}