/* ========================================
   CSS Variables (カラーパレット・フォント)
   ======================================== */
:root {
    /* カラーパレット */
    --color-main: #FF9966;
    --color-sub: #FFB380;
    --color-bg-white: #FFFFFF;
    --color-bg-cream: #FFF8F0;
    --color-text-dark: #333333;
    --color-text-gray: #666666;
    --color-accent-blue: #87CEEB;
    --color-accent-green: #90EE90;
    
    /* フォント */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-accent: 'Zen Maru Gothic', sans-serif;
    --font-title: 'Poppins', sans-serif;
}

/* ========================================
   リセット・基本スタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-bg-white);
}

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

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

/* ========================================
   コンテナ
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   セクションタイトル
   ======================================== */
.section-title {
    font-family: var(--font-accent);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-main);
}

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-desktop a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-desktop a:hover {
    color: var(--color-main);
}

.social-icons-desktop {
    display: flex;
    gap: 15px;
}

.social-icons-desktop a {
    font-size: 1.3rem;
    color: var(--color-text-gray);
    transition: color 0.3s, transform 0.3s;
}

.social-icons-desktop a:hover {
    color: var(--color-main);
    transform: translateY(-2px);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-main);
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* モバイルメニュー */
.nav-mobile {
    display: none;
    flex-direction: column;
    background-color: var(--color-bg-cream);
    padding: 20px;
    gap: 15px;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    font-weight: 500;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-mobile a:hover {
    background-color: var(--color-sub);
    color: var(--color-bg-white);
}

.social-icons-mobile {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.social-icons-mobile a {
    font-size: 1.5rem;
    color: var(--color-text-gray);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    height: 600px;
    background-image: url('https://i.postimg.cc/SRgt0qY1/hirosekushon.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-bg-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-accent);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #FF7F3D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 102, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--color-bg-white);
    color: var(--color-main);
    transform: translateY(-2px);
}

/* ========================================
   特徴セクション
   ======================================== */
.features {
    padding: 80px 0;
    background-color: var(--color-bg-white);
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    background-color: var(--color-bg-cream);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 153, 102, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-main);
}

.feature-card p {
    color: var(--color-text-gray);
    line-height: 1.8;
}

/* ========================================
   アプリ一覧セクション
   ======================================== */
.apps-section {
    padding: 80px 0;
    background-color: var(--color-bg-cream);
}

.filters {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--color-text-dark);
}

.filter-select {
    padding: 10px 20px;
    border: 2px solid var(--color-main);
    border-radius: 25px;
    background-color: var(--color-bg-white);
    font-family: var(--font-base);
    font-size: 1rem;
    color: var(--color-text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:hover {
    background-color: var(--color-bg-cream);
}

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

.app-card {
    background-color: var(--color-bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 153, 102, 0.3);
}

/* 特別アプリ（目立たせる） */
.app-card.featured {
    grid-column: span 2;
    border: 3px solid var(--color-main);
    box-shadow: 0 6px 20px rgba(255, 153, 102, 0.4);
}

.app-card.featured .app-thumbnail {
    height: 250px;
}

.app-card.featured .app-card-header {
    background: linear-gradient(135deg, #FF6B35, #FF9966, #FFB380);
}

.app-card.featured h3 {
    font-size: 1.5rem;
}

.app-card.featured .app-description {
    font-size: 1rem;
}

.app-card.featured:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(255, 153, 102, 0.5);
}

/* サムネイル画像 */
.app-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.app-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.app-card:hover .app-thumbnail img {
    transform: scale(1.05);
}

.app-card-header {
    background: linear-gradient(135deg, var(--color-main), var(--color-sub));
    padding: 20px;
    color: var(--color-bg-white);
}

.app-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.3);
}

.app-card h3 {
    font-family: var(--font-accent);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.app-meta {
    font-size: 0.9rem;
    opacity: 0.9;
}

.app-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-description {
    color: var(--color-text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.app-link {
    display: inline-block;
    color: var(--color-main);
    font-weight: 600;
    transition: color 0.3s;
    margin-top: auto;
}

.app-link:hover {
    color: #FF7F3D;
}

/* ========================================
   開発者セクション
   ======================================== */
.developer {
    padding: 80px 0;
    background-color: var(--color-bg-white);
}

.developer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.developer-image img {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.developer-text h3 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    color: var(--color-main);
    margin-bottom: 15px;
    margin-top: 30px;
}

.developer-text h3:first-child {
    margin-top: 0;
}

.developer-text p {
    color: var(--color-text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact {
    padding: 80px 0;
    background-color: var(--color-bg-cream);
    text-align: center;
}

.contact-description {
    font-size: 1.1rem;
    color: var(--color-text-gray);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-bg-white);
    transition: all 0.3s;
}

.contact-btn i {
    font-size: 1.5rem;
}

.contact-btn-twitter {
    background-color: #000000;
}

.contact-btn-twitter:hover {
    background-color: #333333;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.contact-btn-facebook {
    background-color: #1877F2;
}

.contact-btn-facebook:hover {
    background-color: #0e5fc7;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    padding: 30px 0;
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* Tablet (769px - 1199px) */
@media (max-width: 1199px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-card.featured {
        grid-column: span 2;
    }
}

/* Mobile & Small Tablet (≤768px) */
@media (max-width: 768px) {
    /* ヘッダー */
    .nav-desktop,
    .social-icons-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* ヒーロー */
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* 特徴 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* アプリ一覧 */
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card.featured {
        grid-column: span 1;
    }
    
    .app-card.featured .app-thumbnail {
        height: 220px;
    }
    
    /* 開発者 */
    .developer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* お問い合わせ */
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 350px;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 2rem;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}
