/* リセット */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.main-content {
    margin-top: 0;
    padding-top: 0;
}

/* ========================================
   ヘッダー - 本家ドコモ仕様（1階層）
   ======================================== */

/* ヘッダー全体 */
.header {
    position: fixed;
    z-index: 8001;
    top: 13px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 75%;
    margin-inline: auto;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

/* ヘッダー非表示状態 */
.header.header-hidden {
    top: -200px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background-color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    padding: 0 24px;
}

/* ロゴ */
.header-logo {
    flex-shrink: 0;
    margin-right: 40px;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo-link img {
    display: block;
    height: 32px;
    width: auto;
}

.logo-link:hover {
    transform: scale(1.05);
}

/* メインナビゲーション */
.header-nav {
    flex: 0 0 auto;
    display: flex;
    margin-right: auto;
}

.header-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 79, 141, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #2c4f8d;
    background-color: rgba(44, 79, 141, 0.05);
    transform: translateY(-1px);
}

.nav-link:active {
    transform: translateY(0);
}

.nav-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-arrow,
.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* 右側アクション */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.header-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #2c4f8d;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header-link:hover {
    color: #2c4f8d;
    background-color: rgba(44, 79, 141, 0.05);
}

.header-link:hover::after {
    width: 80%;
}

.header-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.header-link:hover .header-icon {
    transform: scale(1.15) rotate(5deg);
}

.btn-login {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: transparent;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    white-space: nowrap;
}

.btn-login:hover {
    color: #2c4f8d;
    background-color: rgba(44, 79, 141, 0.05);
    transform: none;
    box-shadow: none;
}

.btn-login:active {
    transform: none;
    box-shadow: none;
}

.btn-login span {
    display: none;
}

/* ドロップダウンメニュー */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 700px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px;
}

.dropdown-section {
    min-width: 0;
}

.dropdown-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c4f8d;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2c4f8d;
}

.dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-list li a {
    display: block;
    padding: 8px 12px;
    color: #333;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 20px;
}

.dropdown-list li a::before {
    content: '▶';
    position: absolute;
    left: 8px;
    font-size: 8px;
    color: #2c4f8d;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.dropdown-list li a:hover {
    background-color: rgba(44, 79, 141, 0.05);
    color: #2c4f8d;
    padding-left: 24px;
}

.dropdown-list li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}


/* モバイルメニュートグル */
.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(44, 79, 141, 0.05);
}

.menu-toggle-line {
    width: 24px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.menu-toggle.active .menu-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.menu-toggle.active .menu-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.menu-toggle-text {
    font-size: 10px;
    font-weight: 700;
    color: #333;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* カルーセル */
.carousel-section {
    background: #2c4f8d;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

/* 背景動画 */
.carousel-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* 青いオーバーレイ */
.carousel-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 79, 141, 0.6);
    z-index: 2;
}

.carousel-container {
    z-index: 3;
    max-width: 100%;
    margin: 0;
    position: relative;
    height: 600px;
    padding-top: 110px;
}

/* ヒーローテキスト */
.hero-text {
    position: absolute;
    bottom: 60px;
    right: 80px;
    color: #ffffff;
    text-align: right;
    z-index: 10;
}

.hero-subtitle {
    font-size: 32px;
    margin: 0 0 4px 0;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-subtitle span {
    display: inline-block;
    opacity: 0;
    animation: dropDownChar 0.3s ease-out forwards;
}

.hero-subtitle span:nth-child(1) { animation-delay: 0s; }
.hero-subtitle span:nth-child(2) { animation-delay: 0.03s; }
.hero-subtitle span:nth-child(3) { animation-delay: 0.06s; }
.hero-subtitle span:nth-child(4) { animation-delay: 0.09s; }
.hero-subtitle span:nth-child(5) { animation-delay: 0.12s; }
.hero-subtitle span:nth-child(6) { animation-delay: 0.15s; }
.hero-subtitle span:nth-child(7) { animation-delay: 0.18s; }
.hero-subtitle span:nth-child(8) { animation-delay: 0.21s; }
.hero-subtitle span:nth-child(9) { animation-delay: 0.24s; }
.hero-subtitle span:nth-child(10) { animation-delay: 0.27s; }
.hero-subtitle span:nth-child(11) { animation-delay: 0.3s; }
.hero-subtitle span:nth-child(12) { animation-delay: 0.33s; }

.hero-title {
    font-size: 96px;
    margin: 0;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    animation: dropDownChar 0.3s ease-out forwards;
    white-space: pre;
}

.hero-title:nth-of-type(1) span:nth-child(1) { animation-delay: 0.4s; }
.hero-title:nth-of-type(1) span:nth-child(2) { animation-delay: 0.43s; }
.hero-title:nth-of-type(1) span:nth-child(3) { animation-delay: 0.46s; }
.hero-title:nth-of-type(1) span:nth-child(4) { animation-delay: 0.49s; }
.hero-title:nth-of-type(1) span:nth-child(5) { animation-delay: 0.52s; }
.hero-title:nth-of-type(1) span:nth-child(6) { animation-delay: 0.55s; }
.hero-title:nth-of-type(1) span:nth-child(7) { animation-delay: 0.58s; }
.hero-title:nth-of-type(1) span:nth-child(8) { animation-delay: 0.61s; }
.hero-title:nth-of-type(1) span:nth-child(9) { animation-delay: 0.64s; }
.hero-title:nth-of-type(1) span:nth-child(10) { animation-delay: 0.67s; }
.hero-title:nth-of-type(1) span:nth-child(11) { animation-delay: 0.7s; }
.hero-title:nth-of-type(1) span:nth-child(12) { animation-delay: 0.73s; }
.hero-title:nth-of-type(1) span:nth-child(13) { animation-delay: 0.76s; }
.hero-title:nth-of-type(1) span:nth-child(14) { animation-delay: 0.79s; }
.hero-title:nth-of-type(1) span:nth-child(15) { animation-delay: 0.82s; }
.hero-title:nth-of-type(1) span:nth-child(16) { animation-delay: 0.85s; }
.hero-title:nth-of-type(1) span:nth-child(17) { animation-delay: 0.88s; }

.hero-title:nth-of-type(2) span:nth-child(1) { animation-delay: 0.95s; }
.hero-title:nth-of-type(2) span:nth-child(2) { animation-delay: 0.98s; }
.hero-title:nth-of-type(2) span:nth-child(3) { animation-delay: 1.01s; }
.hero-title:nth-of-type(2) span:nth-child(4) { animation-delay: 1.04s; }
.hero-title:nth-of-type(2) span:nth-child(5) { animation-delay: 1.07s; }
.hero-title:nth-of-type(2) span:nth-child(6) { animation-delay: 1.1s; }
.hero-title:nth-of-type(2) span:nth-child(7) { animation-delay: 1.13s; }
.hero-title:nth-of-type(2) span:nth-child(8) { animation-delay: 1.16s; }
.hero-title:nth-of-type(2) span:nth-child(9) { animation-delay: 1.19s; }
.hero-title:nth-of-type(2) span:nth-child(10) { animation-delay: 1.22s; }
.hero-title:nth-of-type(2) span:nth-child(11) { animation-delay: 1.25s; }

/* ヒーローテキストのドロップダウンアニメーション（文字単位） */
@keyframes dropDownChar {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-track {
    display: flex;
    height: 500px;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.3);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-control:hover {
    background-color: rgba(255,255,255,0.5);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

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

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background-color: #fff;
    width: 30px;
    border-radius: 6px;
}

.carousel-pause {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255,255,255,0.3);
    color: #fff;
    border: 1px solid #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-pause:hover {
    background-color: rgba(255,255,255,0.5);
}

/* 説明セクション */
.description-section {
    padding: 40px 0 48px 0;
    background-color: #f8f9fa;
}

.description-content {
    text-align: center;
}

.description-content .description-text {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.5px;
}

/* サービスセクション */
.services-section {
    padding: 64px 0 32px 0;
    background-color: #fff;
}

.section-title {
    font-size: 28px;
    margin-bottom: 32px;
    text-align: center;
    color: #333;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.25s;
    cursor: pointer;
    min-height: 120px;
}

.service-item:hover {
    border-color: #2c4f8d;
    box-shadow: 0 2px 8px rgba(44, 79, 141, 0.1);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.service-icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    object-fit: contain;
}

.service-item span {
    font-size: 13px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* バナーセクション */
.banner-section {
    padding: 0 0 40px 0;
    background-color: #fff;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* トピックスセクション */
.topics-section {
    padding: 64px 0;
    background-color: #fff;
}

.topics-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #2c4f8d #f5f5f5;
}

.topics-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.topics-scroll-container::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 4px;
}

.topics-scroll-container::-webkit-scrollbar-thumb {
    background-color: #2c4f8d;
    border-radius: 4px;
}

.topics-scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #1a3a6b;
}

.topics-grid {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.topic-item {
    flex-shrink: 0;
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: all 0.25s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.topic-item:hover {
    border-color: #2c4f8d;
    box-shadow: 0 4px 12px rgba(44, 79, 141, 0.15);
    transform: translateY(-3px);
}

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

/* トピックス画像の準備中プレースホルダー */
.topic-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
}

.topic-image-placeholder::before {
    content: '📋';
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.topic-image-placeholder::after {
    content: '準備中';
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

.topic-title {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background-color: #fff;
    line-height: 1.4;
}

/* 目的から探す */
.purpose-section {
    padding: 64px 0;
    background-color: #f5f5f5;
}

.purpose-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 48px 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.purpose-box .section-title {
    margin-bottom: 32px;
    text-align: left;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.purpose-item {
    padding: 20px 24px;
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.25s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.purpose-item:hover {
    background-color: #fff;
    border-color: #2c4f8d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.purpose-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.purpose-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

.external-icon {
    flex-shrink: 0;
    color: #666;
    transition: color 0.25s;
}

.purpose-item:hover .external-icon {
    color: #2c4f8d;
}

.purpose-item:hover .purpose-text {
    color: #2c4f8d;
}

/* 無効化された目的アイテム */
.purpose-item-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.purpose-item-disabled:hover {
    background-color: #fafafa;
    border-color: #e5e5e5;
    box-shadow: none;
}

.purpose-item-disabled .purpose-text {
    color: #999;
}

.purpose-item-disabled:hover .purpose-text {
    color: #999;
}

/* 準備中バッジ */
.purpose-badge {
    flex-shrink: 0;
    padding: 4px 12px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    white-space: nowrap;
}

/* タブセクション */
.tabs-section {
    padding: 64px 0;
    background-color: #fff;
}

.tabs-header {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 12px 28px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 500;
    color: #333;
}

.tab-btn:hover {
    border-color: #2c4f8d;
    color: #2c4f8d;
    background-color: #fff5f5;
}

.tab-btn.active {
    background-color: #2c4f8d;
    color: #fff;
    border-color: #2c4f8d;
}

.tabs-content {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.tab-panel {
    display: none;
}

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

.tab-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media screen and (max-width: 1024px) {
    .tab-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

.tab-card {
    padding: 24px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.25s;
    cursor: pointer;
}

.tab-card:hover {
    border-color: #2c4f8d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tab-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 700;
}

.tab-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* サービスリンクグリッド */
.service-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
}

.service-link-item:hover {
    border-color: #2c4f8d;
    background-color: #fff5f5;
    box-shadow: 0 2px 8px rgba(44, 79, 141, 0.1);
}

.service-link-item:hover span {
    color: #2c4f8d;
}

.service-link-item .arrow-icon {
    flex-shrink: 0;
    color: #999;
    transition: all 0.25s;
}

.service-link-item:hover .arrow-icon {
    color: #2c4f8d;
    transform: translateX(4px);
}

/* スマートライフカテゴリー */
.smartlife-categories {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.smartlife-category {
    width: 100%;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2c4f8d;
}

/* モバイルタブ - 統合グリッド */
.mobile-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.featured-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.featured-card:hover {
    border-color: #2c4f8d;
    box-shadow: 0 4px 16px rgba(44, 79, 141, 0.15);
    transform: translateY(-4px);
}

.featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #f5f5f5;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-text {
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
}

.featured-card:hover .featured-text {
    color: #2c4f8d;
}

/* おすすめセクション */
.recommend-section {
    padding: 64px 0;
    background-color: #fff;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.recommend-card {
    display: block;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
}

.recommend-card:hover {
    border-color: #2c4f8d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.recommend-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.recommend-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.recommend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recommend-card h3 {
    padding: 16px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    line-height: 1.5;
}

.recommend-card:hover h3 {
    color: #2c4f8d;
}

/* お知らせセクション */
.news-section {
    padding: 64px 0;
    background-color: #f5f5f5;
}

.news-box {
    background-color: #fff;
    border-radius: 10px;
    padding: 32px 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.news-list {
    list-style: none;
    border-top: 1px solid #e5e5e5;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: #fafafa;
}

.news-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex-shrink: 0;
}

.news-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    text-decoration: none;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #2c4f8d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-category-important {
    background-color: #2c4f8d;
}

.news-category-release {
    background-color: #0066cc;
}

.news-category-maintenance {
    background-color: #ff9800;
}

.news-category-update {
    background-color: #4caf50;
}

.news-category-campaign {
    background-color: #9c27b0;
}

.news-category-service {
    background-color: #00bcd4;
}

.news-title {
    font-size: 15px;
    color: #333;
    transition: color 0.2s;
}

.news-link:hover .news-title {
    color: #2c4f8d;
    text-decoration: underline;
}

.news-more {
    margin-top: 24px;
    text-align: center;
}

.news-more-link {
    display: inline-block;
    padding: 12px 32px;
    background-color: #fff;
    color: #2c4f8d;
    border: 2px solid #2c4f8d;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.news-more-link:hover {
    background-color: #2c4f8d;
    color: #fff;
}

/* 企業情報セクション */
.corporate-section {
    padding: 64px 0;
    background-color: #fff;
}

.corporate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.corporate-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s;
}

.corporate-item:hover {
    background-color: #fff;
    border-color: #2c4f8d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.corporate-item h3 {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.corporate-item:hover h3 {
    color: #2c4f8d;
}

/* フッター */
/* ========================================
   フッター - セパレート2段型
   ======================================== */

.footer {
    background: linear-gradient(135deg, #2c4f8d 0%, #1a3a6b 100%);
    color: #fff;
    padding: 60px 0 0;
}

/* 上段：コンテンツエリア */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* 左：会社情報 */
.footer-company {
    gap: 20px;
    align-items: flex-start;
}

.footer-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-address {
    color: #e0e8f5;
    font-size: 14px;
    line-height: 1.8;
}

/* 中央：サービスリンク */
.footer-services .footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}

.footer-services .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-services .footer-links li {
    margin-bottom: 10px;
}

.footer-services .footer-links a {
    color: #e0e8f5;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-block;
}

.footer-services .footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* 右：お問い合わせ・SNS */
.footer-contact .footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 8px;
}

.footer-contact-info {
    margin-bottom: 20px;
}

.footer-contact-info p {
    margin-bottom: 10px;
}

.footer-contact-info a {
    color: #e0e8f5;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: #fff;
}

.footer-sns a {
    font-size: 16px;
    font-weight: 500;
}

.footer-policies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.footer-policies a {
    color: #b8c9e0;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-policies a:hover {
    color: #fff;
}

/* 区切り線 */
.footer-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3) 20%,
        rgba(255,255,255,0.3) 80%,
        transparent
    );
    margin: 20px 0 30px;
}

/* 下段：著作権情報 */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px 0;
    background-color: rgba(0,0,0,0.2);
}

.footer-copyright-item {
    text-align: center;
}

.copyright-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.license-text {
    font-size: 12px;
    color: #b8c9e0;
    line-height: 1.6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-logo {
        height: 32px;
    }
}

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

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

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

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* レスポンシブ */
@media screen and (max-width: 1200px) {
    .header-container {
        padding: 0 16px;
    }

    .header-actions {
        gap: 12px;
    }

    .header-link span,
    .btn-login span {
        font-size: 13px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media screen and (max-width: 1024px) {
    .header-link:not(:has(.header-icon)) {
        display: none;
    }

    .dropdown-menu {
        min-width: 600px;
    }

    .dropdown-container {
        gap: 24px;
        padding: 24px;
    }

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

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

@media screen and (max-width: 1200px) {
    .header-container {
        height: auto;
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    /* ナビゲーションを2列表示 */
    .header-nav {
        width: 100%;
        order: 3;
        margin-top: 12px;
    }

    .nav-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    .header-actions {
        gap: 8px;
    }

    .header-link span {
        display: none;
    }

    .header-link {
        padding: 8px 12px;
        min-width: auto;
    }

    /* ドロップダウンメニューのサイズ調整 */
    .dropdown-menu {
        min-width: 90%;
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    /* ドロップダウンを縦並びに */
    .dropdown-container {
        display: flex;
        flex-direction: column;
    }

    /* カルーセルセクションの上部余白を増やす */
    .carousel-container {
        padding-top: 160px;
        height: 500px;
    }

    .carousel-track {
        height: 350px;
    }
}

@media screen and (max-width: 900px) {
    /* 900px以下では少しフォントサイズを小さく */
    .nav-link {
        font-size: 12px;
        padding: 8px 10px;
    }

    /* 説明セクションのレスポンシブ */
    .description-section {
        padding: 48px 0 32px 0;
    }

    .description-content .description-text {
        font-size: 16px;
        line-height: 1.6;
    }

    /* ヒーローテキストのレスポンシブ */
    .hero-text {
        bottom: 30px;
        right: 30px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero-title {
        font-size: 64px;
    }

    /* Making reuse more Meaningful. を単語ごとに改行 */
    .hero-title span {
        word-break: break-word;
    }

    /* 狭い画面で単語ごとに改行 */
    @media (max-width: 480px) {
        .hero-title {
            font-size: 48px;
        }

        /* "Making" "reuse" "more" ごとに改行させるため */
        .hero-title:nth-of-type(1) span:nth-child(7),  /* スペース after "Making" */
        .hero-title:nth-of-type(1) span:nth-child(13), /* スペース after "reuse" */
        .hero-title:nth-of-type(1) span:nth-child(18)  /* スペース after "more" */
        {
            display: block;
            height: 0;
        }

        /* 改行が増えるのでコンテナの高さを伸ばす */
        .carousel-container {
            height: 500px;
            padding-top: 160px;
        }
    }
}

@media screen and (max-width: 767px) {
    .header-container {
        height: auto;
        padding: 10px 16px;
    }

    /* ナビゲーションを1列表示 */
    .nav-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }

    .carousel-container {
        height: 400px;
        padding-top: 140px;
    }

    .carousel-track {
        height: 260px;
    }

    .slide-content {
        margin: 20px;
        padding: 24px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .services-section {
        padding: 40px 0 20px 0;
    }

    .banner-section,
    .purpose-section,
    .tabs-section,
    .topics-section {
        padding: 40px 0;
    }

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

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .banner-section {
        padding: 0 0 30px 0;
    }

    .topic-item {
        width: 160px;
        height: 160px;
    }

    .service-item {
        padding: 20px 12px;
        min-height: 100px;
    }

    .service-icon {
        font-size: 32px;
    }

    .service-item span {
        font-size: 12px;
    }

    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .purpose-item {
        padding: 24px 20px;
    }

    .tabs-content {
        padding: 24px 16px;
    }

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

    .service-links-grid {
        grid-template-columns: 1fr;
    }

    .mobile-featured-grid {
        grid-template-columns: 1fr;
    }

    .footer-links ul {
        flex-direction: column;
        align-items: center;
    }

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

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

@media screen and (max-width: 520px) {
    /* 極小画面用の調整 */
    .header-container {
        padding: 8px 12px;
    }

    .nav-list {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 10px;
        white-space: normal;
        line-height: 1.3;
        text-align: center;
    }

    .header-actions {
        gap: 4px;
    }

    .header-link {
        padding: 6px 8px;
    }

    .carousel-container {
        padding-top: 120px;
        height: 320px;
    }

    .carousel-track {
        height: 200px;
    }
}

@media screen and (max-width: 900px) {
    .purpose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .purpose-box {
        padding: 32px 24px;
    }

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

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

@media screen and (max-width: 600px) {
    .purpose-grid {
        grid-template-columns: 1fr;
    }

    .purpose-box {
        padding: 24px 20px;
        border-radius: 8px;
    }

    .purpose-box .section-title {
        margin-bottom: 24px;
        font-size: 22px;
    }

    .purpose-item {
        padding: 16px 20px;
    }

    .purpose-text {
        font-size: 14px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .news-box {
        padding: 24px 20px;
        border-radius: 8px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-date {
        margin-right: 0;
    }

    .corporate-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .corporate-item {
        padding: 16px 20px;
    }
}

/* ===========================
   Technology Suite Section
   =========================== */

.technology-wrapper {
    position: relative;
    margin-top: -1px;
}

/* Wave SVG Styles */
.technology-wave-top {
    position: relative;
    width: 100%;
    margin-top: -1px;
}

.technology-wave-bottom {
    position: relative;
    width: 100%;
    margin-top: -1px;
}

.technology-svg {
    width: 100%;
    display: block;
    background: hsl(220, 8%, 19%);
    min-width: 540px;
    max-height: 20vh;
    height: 160px;
}

.technology-wave-top .technology-svg {
    transform: rotate(180deg);
}

/* Main Technology Section with Dark Background */
.technology-section {
    position: relative;
    padding: 80px 0;
    background: hsl(220, 8%, 19%);
    margin-top: -1px;
    overflow: hidden;
}

.technology-content {
    position: relative;
    z-index: 10;
}

.technology-header {
    text-align: center;
    margin-bottom: 60px;
}

.technology-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    background: linear-gradient(90deg, #ef91f7 0%, #ffd2e1 10%, #7fd1fe 20%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.technology-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.technology-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 電話CTAボタン */
.phone-cta-container {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.phone-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: #214176;
    color: #ffffff;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(33, 65, 118, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.phone-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(33, 65, 118, 0.4);
    background: #1a3460;
}

.phone-cta-button:active {
    transform: translateY(-1px);
}

.phone-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.phone-cta-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.phone-number {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding-left: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.technology-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.technology-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.technology-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.technology-card-icon svg {
    width: 30px;
    height: 30px;
}

.technology-icon-blue {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: #fff;
}

.technology-icon-purple {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: #fff;
}

.technology-icon-orange {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #fff;
}

.technology-card-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.technology-card-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-weight: 600;
}

.technology-card-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Responsive Design for Technology Suite */
@media (max-width: 992px) {
    .technology-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

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

    .technology-svg {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .technology-section {
        padding: 60px 0;
    }

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

    .technology-title {
        font-size: 1.8rem;
    }

    .technology-description {
        font-size: 1rem;
    }

    .technology-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .technology-card {
        padding: 25px;
    }

    .technology-card-title {
        font-size: 1.3rem;
    }

    .technology-svg {
        height: 80px;
        min-width: 0;
    }

    /* 電話CTAボタン - モバイル */
    .phone-cta-button {
        flex-direction: column;
        padding: 16px 24px;
        gap: 8px;
        font-size: 1rem;
    }

    .phone-icon {
        width: 20px;
        height: 20px;
    }

    .phone-cta-text {
        font-size: 0.95rem;
    }

    .phone-number {
        font-size: 1.1rem;
        padding-left: 0;
        padding-top: 8px;
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* ===========================
   3D Floating IT Devices Animation
   =========================== */

.floating-objects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    perspective: 1200px;
}

/* デバイス共通スタイル */
.floating-device {
    position: absolute;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.floating-device svg {
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.9);
}

/* スマートフォン */
.device-smartphone {
    top: 12%;
    left: 8%;
    width: 70px;
    height: 70px;
    animation: float-device-1 14s ease-in-out infinite;
}

.device-smartphone svg {
    filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.6));
}

/* タブレット */
.device-tablet {
    top: 65%;
    right: 12%;
    width: 110px;
    height: 110px;
    animation: float-device-2 16s ease-in-out infinite;
}

.device-tablet svg {
    filter: drop-shadow(0 0 20px rgba(156, 39, 176, 0.6));
}

/* ノートパソコン */
.device-laptop {
    top: 25%;
    right: 8%;
    width: 120px;
    height: 120px;
    animation: float-device-3 18s ease-in-out infinite;
}

.device-laptop svg {
    filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.6));
}

/* メモリー */
.device-memory {
    bottom: 20%;
    left: 15%;
    width: 85px;
    height: 85px;
    animation: float-device-4 15s ease-in-out infinite;
}

.device-memory svg {
    filter: drop-shadow(0 0 20px rgba(255, 152, 0, 0.6));
}

/* CPU */
.device-cpu {
    top: 45%;
    left: 5%;
    width: 95px;
    height: 95px;
    animation: float-device-5 17s ease-in-out infinite;
}

.device-cpu svg {
    filter: drop-shadow(0 0 20px rgba(244, 67, 54, 0.6));
}

/* ストレージ */
.device-storage {
    bottom: 15%;
    right: 20%;
    width: 90px;
    height: 90px;
    animation: float-device-6 19s ease-in-out infinite;
}

.device-storage svg {
    filter: drop-shadow(0 0 20px rgba(0, 188, 212, 0.6));
}

/* マウス */
.device-mouse {
    top: 55%;
    right: 25%;
    width: 75px;
    height: 75px;
    animation: float-device-7 13s ease-in-out infinite;
}

.device-mouse svg {
    filter: drop-shadow(0 0 20px rgba(103, 58, 183, 0.6));
}

/* モニター */
.device-monitor {
    top: 8%;
    right: 18%;
    width: 115px;
    height: 115px;
    animation: float-device-8 20s ease-in-out infinite;
}

.device-monitor svg {
    filter: drop-shadow(0 0 20px rgba(63, 81, 181, 0.6));
}

/* キーボード */
.device-keyboard {
    bottom: 10%;
    left: 22%;
    width: 105px;
    height: 105px;
    animation: float-device-9 21s ease-in-out infinite;
}

.device-keyboard svg {
    filter: drop-shadow(0 0 20px rgba(233, 30, 99, 0.6));
}

/* ヘッドフォン */
.device-headphone {
    top: 35%;
    right: 5%;
    width: 80px;
    height: 80px;
    animation: float-device-10 16s ease-in-out infinite;
}

.device-headphone svg {
    filter: drop-shadow(0 0 20px rgba(0, 150, 136, 0.6));
}

/* USBメモリ */
.device-usb {
    bottom: 40%;
    left: 12%;
    width: 65px;
    height: 65px;
    animation: float-device-11 14s ease-in-out infinite;
}

.device-usb svg {
    filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.6));
}

/* ルーター/Wi-Fi */
.device-router {
    top: 70%;
    left: 8%;
    width: 95px;
    height: 95px;
    animation: float-device-12 17s ease-in-out infinite;
}

.device-router svg {
    filter: drop-shadow(0 0 20px rgba(121, 85, 72, 0.6));
}

/* アニメーション定義 */
@keyframes float-device-1 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateY(0deg) rotateZ(0deg);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotateY(90deg) rotateZ(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) translateX(-10px) rotateY(180deg) rotateZ(-5deg);
        opacity: 0.85;
    }
    75% {
        transform: translateY(-25px) translateX(20px) rotateY(270deg) rotateZ(3deg);
        opacity: 1;
    }
}

@keyframes float-device-2 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateX(0deg) rotateY(0deg);
        opacity: 0.85;
    }
    33% {
        transform: translateY(-40px) translateX(-20px) rotateX(15deg) rotateY(120deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-20px) translateX(25px) rotateX(-10deg) rotateY(240deg);
        opacity: 0.9;
    }
}

@keyframes float-device-3 {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateZ(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-60px) rotateX(180deg) rotateZ(10deg);
        opacity: 1;
    }
}

@keyframes float-device-4 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateY(0deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-35px) translateX(20px) rotateY(60deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-70px) translateX(-15px) rotateY(180deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-40px) translateX(25px) rotateY(300deg);
        opacity: 0.95;
    }
}

@keyframes float-device-5 {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        opacity: 0.9;
    }
    33% {
        transform: translateY(-45px) rotateX(120deg) rotateY(90deg) rotateZ(15deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-25px) rotateX(240deg) rotateY(180deg) rotateZ(-10deg);
        opacity: 0.85;
    }
}

@keyframes float-device-6 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateY(0deg);
        opacity: 0.85;
    }
    40% {
        transform: translateY(-55px) translateX(-30px) rotateY(144deg);
        opacity: 1;
    }
    80% {
        transform: translateY(-30px) translateX(20px) rotateY(288deg);
        opacity: 0.9;
    }
}

@keyframes float-device-7 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateZ(0deg) rotateX(0deg);
        opacity: 0.9;
    }
    30% {
        transform: translateY(-42px) translateX(18px) rotateZ(20deg) rotateX(45deg);
        opacity: 1;
    }
    60% {
        transform: translateY(-28px) translateX(-22px) rotateZ(-15deg) rotateX(90deg);
        opacity: 0.85;
    }
}

@keyframes float-device-8 {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) rotateX(0deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-50px) rotateY(72deg) rotateX(20deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-75px) rotateY(180deg) rotateX(-15deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-35px) rotateY(288deg) rotateX(25deg);
        opacity: 0.95;
    }
}

@keyframes float-device-9 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateY(0deg);
        opacity: 0.9;
    }
    40% {
        transform: translateY(-65px) translateX(25px) rotateY(100deg);
        opacity: 1;
    }
    80% {
        transform: translateY(-40px) translateX(-18px) rotateY(260deg);
        opacity: 0.85;
    }
}

@keyframes float-device-10 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateX(0deg) rotateZ(0deg);
        opacity: 0.85;
    }
    33% {
        transform: translateY(-38px) translateX(-25px) rotateX(60deg) rotateZ(12deg);
        opacity: 1;
    }
    66% {
        transform: translateY(-58px) translateX(15px) rotateX(120deg) rotateZ(-18deg);
        opacity: 0.9;
    }
}

@keyframes float-device-11 {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) rotateZ(0deg);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-48px) rotateY(180deg) rotateZ(25deg);
        opacity: 1;
    }
}

@keyframes float-device-12 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotateX(0deg) rotateY(0deg);
        opacity: 0.85;
    }
    25% {
        transform: translateY(-45px) translateX(20px) rotateX(90deg) rotateY(45deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-70px) translateX(-15px) rotateX(180deg) rotateY(135deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-32px) translateX(28px) rotateX(270deg) rotateY(225deg);
        opacity: 0.95;
    }
}

/* モバイル対応 - デバイスを少なく、小さく */
@media (max-width: 768px) {
    .floating-device {
        display: none;
    }

    /* スマートフォン、タブレット、ラップトップ、USBのみ表示 */
    .device-smartphone,
    .device-tablet,
    .device-laptop,
    .device-usb {
        display: block;
        opacity: 0.7;
    }

    .device-smartphone {
        width: 50px;
        height: 50px;
        top: 15%;
        left: 10%;
    }

    .device-tablet {
        width: 70px;
        height: 70px;
        bottom: 20%;
        right: 10%;
    }

    .device-laptop {
        width: 75px;
        height: 75px;
        top: 20%;
        right: 8%;
    }

    .device-usb {
        width: 45px;
        height: 45px;
        bottom: 35%;
        left: 12%;
    }
}

/* ===========================
   恐竜アニメーション
   =========================== */

.dino-container {
    position: absolute;
    width: 200px;
    height: 200px;
    left: -250px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 100;
    pointer-events: none;
}

.dino-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 25px rgba(129, 199, 132, 0.4)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.15));
}

/* 恐竜が登場した状態 */
.dino-container.dino-active {
    opacity: 1;
}

/* 恐竜が食べている状態（可愛く） */
.dino-container.dino-eating {
    transform: translateY(-50%) scale(1.15);
    animation: happy-bounce 0.4s ease-in-out;
}

@keyframes happy-bounce {
    0%, 100% {
        transform: translateY(-50%) scale(1.15);
    }
    25% {
        transform: translateY(-52%) scale(1.18) rotate(2deg);
    }
    50% {
        transform: translateY(-48%) scale(1.12) rotate(-2deg);
    }
    75% {
        transform: translateY(-51%) scale(1.16) rotate(1deg);
    }
}

/* 笑顔が大きくなる */
.dino-container.dino-eating .dino-smile {
    stroke-width: 4;
    transition: stroke-width 0.2s ease-out;
}

/* 目が嬉しそうに細くなる */
.dino-container.dino-eating .dino-eyes ellipse:first-child {
    transform: scaleY(0.7);
    transition: transform 0.2s ease-out;
}

/* 恐竜の歩行アニメーション（可愛くバウンス） */
.dino-container.dino-active .back-leg {
    animation: walkBack 0.5s ease-in-out infinite;
}

.dino-container.dino-active .front-leg {
    animation: walkFront 0.5s ease-in-out infinite;
    animation-delay: 0.25s;
}

.dino-container.dino-active .dino-body {
    animation: body-bounce 0.5s ease-in-out infinite;
}

@keyframes walkBack {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes walkFront {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

@keyframes body-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* 恐竜が退場する状態 */
.dino-container.dino-exit {
    left: 120%;
    opacity: 0;
    transition: all 1s ease-in;
}

/* デバイスが食べられる状態 */
.floating-device.device-eaten {
    animation: none !important;
    transform: scale(0) rotate(360deg) !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* ===========================
   Map/Access Section
   =========================== */

.map-section {
    padding: 80px 0;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.access-note {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-top: 20px;
}

/* Responsive Design for Map Section */
@media (max-width: 768px) {
    .map-section {
        padding: 50px 0;
    }

    .map-container iframe {
        height: 300px;
    }
}
