/* ===================================
   グローバルスタイル
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --secondary-color: #1a7a42;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

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

/* ===================================
   ヘッダー・ナビゲーション
   =================================== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    gap: 10px;
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

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

.btn-back {
    background-color: var(--background-light);
    padding: 8px 16px;
    border-radius: 5px;
}

.btn-back:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* ===================================
   ヒーローセクション - スライドショー
   =================================== */
.hero {
    position: relative;
    min-height: clamp(480px, 72vh, 760px);
    height: 72vh;
    overflow: hidden;
}

/* スライドショーコンテナ */
.hero-slider {
    position: absolute;
    inset: 0;
}

/* 各スライド：アクティブ以外はクリックさせない */
.hero-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    display: flex;
    z-index: 1;
}

/* スライド背景（暗幕） */
.slide-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* スライド・テキストコンテンツ */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: slideContentIn 0.8s ease-out;
}

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

.slide-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 3rem;
    color: var(--white);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slide-description-boxed {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slide-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.slide-tags span {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* スライドナビゲーション（ドット） */
.slider-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.12);
}

.slider-dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 10px;
}

/* 前へ・次へボタン */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.06);
}

.slider-prev { left: 30px; }
.slider-next { right: 30px; }

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

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

/* ===================================
   お知らせティッカー
   =================================== */
.news-ticker {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 25px 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    white-space: nowrap;
    padding-right: 30px;
    border-right: 3px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 30px 10px 20px;
    border-radius: 30px 0 0 30px;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticker-label:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.ticker-label i {
    font-size: 1.5rem;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
}

.ticker-content { flex: 1; overflow: hidden; }

.ticker-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}
.ticker-link:hover .ticker-items { animation-play-state: paused; }

.ticker-items {
    display: flex;
    gap: 80px;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding-right: 80px;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.ticker-item::before {
    content: '📢';
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ティッカーアイテムを複製して無限スクロール効果 */
.ticker-items::after { content: attr(data-clone); }

/* ===================================
   セクション共通スタイル
   =================================== */
section { padding: 80px 0; }

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ===================================
   サービスセクション
   =================================== */
.services { background-color: var(--background-light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p { color: var(--text-light); margin-bottom: 1.5rem; }

.service-features { list-style: none; }

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.service-features i { color: var(--primary-color); }

/* ===================================
   特徴セクション
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item { text-align: center; padding: 2rem; }

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--background-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-item p { color: var(--text-light); }

/* ===================================
   会社概要セクション
   =================================== */
.about { background-color: var(--background-light); }

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.info-table {
    width: 100%;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.info-table tr { border-bottom: 1px solid var(--background-light); }
.info-table tr:last-child { border-bottom: none; }

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
}

.info-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    width: 30%;
}

.info-table td { color: var(--text-dark); }

/* ===================================
   お問い合わせセクション
   =================================== */
.contact { background-color: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; }

.contact-method { display: flex; gap: 1.5rem; align-items: flex-start; }

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-method h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-method p { color: var(--text-light); margin: 0.2rem 0; }

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.contact-hours { font-size: 0.9rem; }

/* フォームスタイル */
.contact-form {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 10px;
}

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.required { color: #e74c3c; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.btn-block { width: 100%; cursor: pointer; border: none; font-size: 1rem; }

/* Googleフォームリンクスタイル */
.google-form-container { text-align: center; padding: 2rem 0; }

.form-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.google-form-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.google-form-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.google-form-btn i { margin-right: 0.5rem; }

.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   フッター
   =================================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-section h4 { margin-bottom: 1rem; color: var(--primary-color); }

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

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-section a:hover { color: var(--primary-color); }

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

.footer-bottom a { color: var(--primary-color); text-decoration: none; }

/* ===================================
   お知らせページ
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.page-header i { margin-right: 10px; }

.news-list { padding: 80px 0; background-color: var(--background-light); }

.news-items { max-width: 900px; margin: 0 auto; }

.news-item {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
}

.news-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

.news-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 10px;
    padding: 1rem 0.5rem;
}

.date-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month { display: block; font-size: 0.9rem; margin-top: 0.5rem; }

.news-content { flex: 1; }

.news-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
}

.news-badge.news { background-color: #3498db; }
.news-badge.recruit { background-color: #e74c3c; }

.news-content h2 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-dark); }
.news-content p  { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }

.news-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.news-content li { color: var(--text-dark); margin-bottom: 0.5rem; }
.news-content strong { color: var(--text-dark); }

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

/* ===================================
   アプリ紹介スライド（左右分割）
   =================================== */

/* スマホ専用スライドとドットはデフォルト非表示 */
.mobile-only-slide { display: none !important; }
.mobile-only-dot   { display: none; }

/* 左右分割のレイアウト（デスクトップ） */
.app-split-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 2px 1fr; /* 左｜線｜右 */
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

.app-divider {
    width: 2px;
    height: 64%;
    margin: 0 auto;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6), transparent);
    border-radius: 2px;
}

.app-half {
    min-height: min(62vh, 640px);
    display: grid;
    place-items: center;
    padding: 2.5rem 2rem;
    position: relative;
    isolation: isolate; /* 内部のオーバーレイ管理 */
}

/* 背景（HTML側で画像設定していてもOK。暗幕はここで） */
.app-half::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
    z-index: -1;
}

/* 左右面の中身 */
.app-content {
    text-align: center;
    max-width: 420px;
    width: 92%;
    margin-inline: auto;
}

/* アプリアイコン（暴走防止・切り抜き防止） */
.app-icon-large {
    display: grid;
    place-items: center;
    width: clamp(120px, 14vw, 160px);
    height: clamp(120px, 14vw, 160px);
    margin: 0 auto 1.6rem;
    background: #fff;
    border-radius: 28px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 22px;
    display: block;
}

/* Uberロゴの黒枠版 */
.uber-icon-container { background: #000; padding: 18px; }

/* タイトル・サブタイトル */
.app-title-white {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .9rem;
    text-shadow: 0 3px 15px rgba(0,0,0,.6);
    line-height: 1.35;
}
.app-subtitle-white {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: #fff;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* ストアボタン：縦並び＆同一幅 */
.app-links {
    display: grid;
    gap: .9rem;
    grid-auto-rows: 1fr;
    margin-top: 1.1rem;
}
.store-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: 12px 28px;
    background: rgba(255,255,255,.95);
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: clamp(.95rem, 1.4vw, 1rem);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,.28);
    min-width: 230px;
}
.store-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,.36);
}
.store-link i { font-size: 1.15rem; }

/* 万一の端末で画像がはみ出さないように */
.phone-screenshot {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,.3);
}

/* ===================================
   レスポンシブデザイン
   =================================== */
@media (max-width: 1024px) {
    .hero { height: 68vh; min-height: 520px; }
    .app-half { min-height: min(58vh, 580px); }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-menu.active { display: flex; }

    /* ヒーロー：モバイルは全画面でシンプルに */
    .hero { min-height: 100vh; height: 100vh; }
    .hero-slide { min-height: 100vh; height: 100vh; padding-top: 60px; }

    /* PC版の左右分割は隠す。スマホ専用スライドを使う */
    .app-split-container { display: none; }
    .mobile-only-slide { display: flex !important; align-items: center; justify-content: center; }
    .mobile-only-dot   { display: inline-block; }

    .mobile-only-slide .slide-content { padding: 0 1.4rem; }
    .mobile-only-slide .app-icon-large { margin: 0 auto 1.3rem; }
    .mobile-only-slide .app-title-white { font-size: 1.55rem; margin-bottom: 1rem; }
    .mobile-only-slide .app-subtitle-white { font-size: 1.08rem; margin-bottom: 1.2rem; }
    .mobile-only-slide .app-links { max-width: 320px; margin: 0 auto; }

    .app-icon-large {
        width: 100px; height: 100px; border-radius: 20px;
    }
    .app-icon-large img { border-radius: 16px; }

    .slider-arrow { width: 44px; height: 44px; font-size: 1rem; }
    .slider-prev { left: 12px; }
    .slider-next { right: 12px; }
    .slider-nav { bottom: 18px; }

    .section-title { font-size: 2rem; }
    .services-grid, .features-grid { grid-template-columns: 1fr; }
    .about-content, .contact-grid { grid-template-columns: 1fr; }
    .ticker-wrapper { gap: 10px; }
    .ticker-label { font-size: .95rem; padding-right: 10px; }
}

@media (max-width: 480px) {
    .hero { min-height: 100vh; height: 100vh; }
    .hero-slide { min-height: 100vh; height: 100vh; }

    .slide-title { font-size: 1.5rem; }
    .slide-description { font-size: .95rem; }

    .store-link { padding: 10px 20px; font-size: .9rem; }
    section { padding: 50px 0; }
    .container { padding: 0 15px; }
}
