/* ===================================
   株式会社エクセ コーポレートサイト
   共通スタイルシート
   =================================== */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #333333;
    background-color: #ffffff;
    padding-top: 80px; /* ヘッダー固定のため、ヘッダーの高さ分のスペース確保 */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* プレースホルダー画像用スタイル */
img[src*="placeholder"],
img[src*="via.placeholder"] {
    border: 3px dashed var(--secondary-color);
    background-color: var(--gray-light);
    position: relative;
}

/* 画像サイズ表示用の擬似要素スタイル */
.image-frame {
    border: 3px dashed var(--secondary-color);
    background-color: var(--gray-light);
    position: relative;
    display: inline-block;
    width: 100%;
}

.image-frame::after {
    content: attr(data-size);
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 51, 102, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #003366;
}

/* カラーパレット */
:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --text-color: #333333;
    --bg-color: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #cccccc;
    --gray-dark: #666666;
}

/* タイポグラフィ */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

/* レイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 60px 0;
}

.section-bg {
    background-color: var(--gray-light);
}

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

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo img {
    width: 96px;
    height: 79px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 15px;
}

/* グローバルナビゲーション */
.global-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-list a:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

/* 言語切替ボタン */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    padding: 5px 10px;
    border: 1px solid var(--gray-medium);
    background-color: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--bg-color);
    margin-bottom: 15px;
    font-size: 1rem;
}

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

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

.footer-section a {
    color: var(--bg-color);
    opacity: 0.9;
    font-size: 0.875rem;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.copyright {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-color);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: var(--bg-color);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* CTAボタン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.125rem;
}

/* カードスタイル */
.card {
    background-color: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-text {
    color: var(--gray-dark);
    margin-bottom: 15px;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* タブUI（見た目のみ） */
.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    border-bottom: none;
    background-color: var(--gray-light);
    border-radius: 8px;
    padding: 5px;
}

.tab-btn {
    padding: 18px 40px;
    background-color: transparent;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    flex: 1;
    text-align: center;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--primary-color);
}

/* テーブルスタイル */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: var(--bg-color);
}

th,
td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

th {
    background-color: var(--gray-light);
    font-weight: 600;
    color: var(--primary-color);
}

tr:hover {
    background-color: var(--gray-light);
}

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

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

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

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

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* レスポンシブ対応 */
@media (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .container,
    .header-inner,
    .footer-content {
        padding: 0 20px;
    }

    .header-inner {
        height: auto;
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .global-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 60px 0;
    }

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

    .section {
        padding: 40px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* SP時: grid内のコンテンツとボタンをセンタリング */
    .grid-2 > div,
    .grid-3 > div {
        text-align: center;
    }

    .grid-2 > div p,
    .grid-3 > div p {
        text-align: left;
    }

    .grid-2 .btn,
    .grid-3 .btn {
        display: inline-block;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
    }

    .tab-btn:hover,
    .tab-btn.active {
        border-bottom: none;
        border-left-color: var(--secondary-color);
    }
}

/* レタースタイル */
.letter-container {
    background-color: var(--bg-color);
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.letter-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.05em;
}

.letter-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-color);
    margin-bottom: 30px;
}

.letter-content p {
    margin-bottom: 1.5rem;
    text-indent: 1em;
}

.letter-date {
    text-align: right;
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 10px;
}

.letter-signature {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 40px;
}

.letter-decoration {
    border-top: 2px solid var(--primary-color);
    width: 100px;
    margin: 30px auto;
}

@media (max-width: 767px) {
    .letter-container {
        padding: 30px 20px;
    }

    .letter-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .letter-content {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* FAQ トグルスタイル */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
    /* buttonタグのデフォルトスタイルリセット */
    width: 100%;
    text-align: left;
    border: none;
    font-family: inherit;
    font-size: inherit;

    background-color: var(--bg-color);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: var(--gray-light);
}

.faq-question.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--gray-light);
    padding: 0 20px;
}

.faq-answer[hidden] {
    display: none;
}

.faq-answer.active {
    max-height: 500px;
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.8;
}

/* ==========================================================================
   アクセシビリティ: スキップリンク
   ========================================================================== */

.skip-link {
    position: fixed; /* ヘッダーが固定されたのでスキップリンクも固定 */
    top: -40px;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10001; /* ヘッダーより上に表示 */
    font-weight: 600;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   アクセシビリティ: フォーカススタイル
   ========================================================================== */

/* 基本のフォーカススタイル */
*:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ボタンのフォーカス */
.btn:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* タブボタンのフォーカス */
.tab-btn:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* FAQボタンのフォーカス */
.faq-question:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: -2px; /* 内側に表示 */
}

/* 言語切り替えボタンのフォーカス */
.lang-btn:focus-visible {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* リンクのフォーカス */
a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* フォーム要素のフォーカス */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ナビゲーションリンクのフォーカス */
.nav-list a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   レスポンシブ: ハンバーガーメニュー
   ========================================================================== */

/* ハンバーガーボタン (デフォルトは非表示、SP時のみ表示) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ハンバーガーメニュー開閉時のアニメーション */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

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

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* モバイルメニューのオーバーレイ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* タブレット・スマートフォン対応 (768px以下) */
@media (max-width: 768px) {
    /* ハンバーガーボタンを表示 */
    .hamburger-btn {
        display: flex;
    }

    /* ヘッダー調整 */
    .header-inner {
        padding: 0 20px;
    }

    /* ロゴサイズ調整 */
    .logo img {
        height: 40px !important;
    }

    /* グローバルナビをモバイルメニュー化 */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-color);
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 80px;
    }

    .global-nav.active {
        right: 0;
    }

    /* ナビゲーションリストを縦並び */
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-list li {
        border-bottom: 1px solid var(--gray-light);
    }

    .nav-list a {
        display: block;
        padding: 20px;
        border-bottom: none;
        color: var(--text-color);
    }

    .nav-list a:hover {
        background-color: var(--gray-light);
        border-bottom: none;
    }

    /* 言語切り替えボタンをメニュー内に配置 */
    .lang-switcher {
        flex-direction: column;
        margin: 20px;
        margin-left: 0;
        padding: 20px;
        border-top: 2px solid var(--gray-light);
        gap: 10px;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Heroセクション専用スタイル (index.htmlから移動)
   ========================================================================== */

/* ヒーローセクション専用スタイル */
.hero-top {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* WebP対応ブラウザ用 (モダンブラウザは自動的にWebPを優先) */
    background-image: url('../images/hero/hero-background.webp');
    /* WebP非対応ブラウザ用フォールバック (IE11等) */
    background-image: -webkit-image-set(
        url('../images/hero/hero-background.webp') 1x
    );
    background-image: image-set(
        url('../images/hero/hero-background.webp') 1x
    );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* WebP非対応ブラウザ用フォールバック */
.no-webp .hero-background {
    background-image: url('../images/hero/hero-background.png');
}

/* アニメーションは画像背景のため削除
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
*/

/* 部分的なグラデーションオーバーレイ（中央部分のみ暗くして視認性を確保） */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out 0.3s both;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-title-line1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 1);
}

.hero-title-line2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #3498db;
    min-height: 60px;
    display: inline-block;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 1);
}

.hero-title-line2::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 1s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 50px 0;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1.5s both;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 1);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 2s both;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    animation: fadeIn 1s ease-out 2.5s both;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.4);
    margin: 10px auto 0;
    position: relative;
    animation: scrollDown 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) rotate(45deg);
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-title-line1 {
        font-size: 1.8rem;
    }
    .hero-title-line2 {
        font-size: 1.3rem;
    }
    .hero-stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 2rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    /* CTAボタンとの被りを防ぐため、SPでは非表示 */
    .hero-scroll-indicator {
        display: none;
    }
}

/* ===================================
   フォームエラースタイル (PHP版追加)
   =================================== */

/* アラートメッセージ */
.alert {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* フォームグループエラー状態 */
.form-group.has-error .form-input,
.form-group.has-error .form-textarea,
.form-group.has-error .form-select {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.has-error .form-input:focus,
.form-group.has-error .form-textarea:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* エラーメッセージ */
.error-message {
    margin-top: 8px;
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 必須マーク */
.required {
    color: #dc3545;
    margin-left: 4px;
    font-weight: bold;
}

/* フォームアクションボタン */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

/* contact-info スタイル */
.contact-info h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* マップコンテナ */
.map-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* ==========================================================================
   求人票テーブル: SP版専用レイアウト
   ========================================================================== */

@media (max-width: 767px) {
    /* 求人票テーブルを縦並びレイアウトに変更 */
    .job-listing-table {
        display: block;
    }

    .job-listing-table tbody {
        display: block;
    }

    .job-listing-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--gray-medium);
        border-radius: 8px;
        overflow: hidden;
        background-color: var(--bg-color);
    }

    .job-listing-table th,
    .job-listing-table td {
        display: block;
        width: 100% !important; /* インラインスタイルを上書き */
        padding: 15px;
        border-bottom: none;
    }

    .job-listing-table th {
        background-color: var(--primary-color);
        color: var(--bg-color);
        font-weight: 600;
        text-align: left;
        border-bottom: 2px solid var(--secondary-color);
    }

    .job-listing-table td {
        background-color: var(--bg-color);
        color: var(--text-color);
        line-height: 1.8;
    }

    .job-listing-table tr:hover {
        background-color: transparent;
    }
}
