/* 基本スタイル */
body {
    font-family: 'Kosugi Maru', sans-serif;
    background-color: #f8f9fa;
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 重要なお知らせセクション */
.important-notice {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.important-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.2;
}

.notice-container {
    position: relative;
    z-index: 2;
}

.notice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

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

.important-notice h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.important-notice p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.notice-link {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.notice-link:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ナビゲーションの重要なお知らせリンク */
.nav-notice {
    color: #ff6b6b !important;
    font-weight: 600 !important;
    position: relative;
}

.nav-notice::before {
    content: '⚠️';
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.nav-notice:hover {
    color: #ee5a24 !important;
}

/* ナビゲーションのサポートリンク（画像対応） */
.nav-support {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-support .nav-icon {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

/* ローディングアニメーション */
#loader {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

#loader .spinner {
    width: 56px;
    height: 56px;
    border: 6px solid #e0e0e0;
    border-top: 6px solid #3BAF92;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader.hide {
    opacity: 0;
    pointer-events: none;
}

/* Apple風ナビゲーションバー */
.navigation-1 {
    min-width: 0;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    min-height: 64px;
    position: relative;
    z-index: 100;
    gap: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.nav-logo {
    flex-shrink: 0;
    min-width: 44px;
    max-width: 80px;
    margin-right: 24px;
    align-self: flex-start;
}

.nav-logo img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    flex-shrink: 0;
    min-width: 0;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    gap: 32px;
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #222;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: rgba(59,175,146,0.7);
    transition: width 0.2s;
    position: absolute;
    left: 0; bottom: 0;
    z-index: 0;
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

.nav-menu > li > a:hover {
    color: #00796b !important;
    background: transparent !important;
}

/* サブメニュー */
.nav-menu .has-submenu:hover .submenu {
    display: block;
}

.nav-menu .submenu {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
    min-width: 180px;
    padding: 8px 0;
    z-index: 10;
}

.nav-menu .submenu li {
    padding: 0;
}

.nav-menu .submenu li a {
    display: block;
    padding: 10px 24px;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.nav-menu .submenu li a:hover {
    background: #f5f5f5;
    color: #3BAF92;
}

/* ヘッダーのタイトル */
.header-title {
    text-align: center;
    padding: 16px 0 0 0;
}

.header-title h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    color: #222;
    letter-spacing: 1px;
}

/* ヘッダー全体のスタイル */
header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ヘッダー内のナビゲーション（ul、liタグ）のスタイル */
header ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

header ul li {
    position: relative;
}

header ul li a {
    color: #222;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 500;
    padding: 8px 16px;
    display: block;
    transition: all 0.2s;
    border-radius: 8px;
}

header ul li a:hover {
    color: #00796b;
    background: #e0f2f1;
}

/* サブメニューのスタイル */
header ul li.has-submenu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
    min-width: 220px;
    z-index: 10;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
}

header ul li.has-submenu:hover .submenu,
header ul li.has-submenu:focus-within .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

header ul li.has-submenu .submenu li { padding: 0; }
header ul li.has-submenu .submenu li a { display: block; padding: 8px 20px; color: #222; text-decoration: none; font-size: 1rem; transition: background 0.2s; border-radius: 0; }
header ul li.has-submenu .submenu li a:hover { background: #e0f2f1; color: #00796b; }

/* ヘッダー内のロゴ画像 */
header img.mainlogo { height: 48px; width: auto; display: block; margin: 0 0 16px 0; align-self: flex-start; }

/* ヘッダー内のタイトル */
header h1 { font-size: 1.6rem; font-weight: 600; margin: 16px 0; color: #222; letter-spacing: 1px; }

/* ハンバーガーメニュー */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; background: none; border: none; cursor: pointer; z-index: 110; margin-left: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 4px 0; background: #222; border-radius: 2px; transition: 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* メインコンテンツ */
main {
    max-width: 700px;
    margin: 32px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px;
    width: calc(100% - 48px);
    box-sizing: border-box;
    flex: 1;
    align-self: center;
}

section { margin-bottom: 30px; }

h2 { color: #00796b; font-size: 1.5rem; margin-top: 0; margin-bottom: 10px; }

section ul { padding-left: 20px; }
section ul li { margin-bottom: 8px; font-size: 1.1rem; }

/* ダウンロードボタン */
.download-bt { display: inline-block; background: #3BAF92; color: #fff; padding: 10px 24px; border-radius: 24px; text-decoration: none; font-weight: bold; margin-top: 8px; transition: background 0.2s; }
.download-bt:hover { background: #33997F; }

/* フィードバックセクション */
.feedback { background: #fff8e1; border-left: 6px solid #ffd54f; padding: 20px; margin-bottom: 30px; border-radius: 8px; }
.feedback-link { color: #00796b; font-weight: bold; text-decoration: underline; margin-right: 8px; }
.feedback-link:hover { color: #004d40; }

/* フッター */
footer { 
    text-align: center; 
    padding: 24px 0 12px 0; 
    background: #f1f1f1; 
    color: #888; 
    font-size: 0.95rem; 
    margin-top: 40px; 
    border-top: 1px solid #e0e0e0; 
    width: 100%;
    align-self: center;
}

/* レスポンシブデザイン */
@media (max-width: 900px) {
    /* ヘッダー内のナビゲーション（モバイル対応） */
    header { padding: 12px 16px; }
    header ul { flex-direction: column; gap: 16px; padding: 16px 0; width: 100%; }
    header ul li a { padding: 12px 20px; text-align: center; width: 100%; box-sizing: border-box; }
    .navigation-1 { flex-direction: row; min-height: 56px; padding: 0 16px; position: relative; justify-content: flex-start; align-items: center; width: 100%; }
    .nav-logo { order: 1; min-width: 44px; flex-basis: 44px; margin: 0 16px 0 0; align-self: flex-start; }
    .nav-menu { order: 2; position: fixed; top: 56px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: center; gap: 0; box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-radius: 0 0 12px 12px; padding: 16px 0 8px 0; margin: 0; display: none; z-index: 1099; width: 100vw; min-width: 0; }
    .nav-menu.open { display: flex; animation: fadeInMenu 0.3s; }
    .nav-toggle { order: 3; display: flex !important; min-width: 40px; flex-basis: 40px; margin: 0 0 0 auto; z-index: 2000 !important; width: 40px; height: 40px; background: none; border: none; position: static; }
    .nav-toggle span { background: #222 !important; }
    @keyframes fadeInMenu { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
}

@media (min-width: 901px) {
    .nav-toggle { display: none !important; }
    .nav-menu { display: flex !important; position: static; background: none; box-shadow: none; border-radius: 0; padding: 0; gap: 32px; width: auto; }
}

@media (max-width: 600px) {
    /* ヘッダー内のナビゲーション（小画面対応） */
    header { padding: 8px 12px; }
    header ul { gap: 12px; padding: 12px 0; }
    header ul li a { padding: 10px 16px; font-size: 1rem; }
    header h1 { font-size: 1.4rem; margin: 12px 0; }
    
    /* 重要なお知らせセクション（モバイル対応） */
    .important-notice {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .notice-icon {
        font-size: 2rem;
    }
    
    .important-notice h3 {
        font-size: 1.3rem;
    }
    
    .important-notice p {
        font-size: 1rem;
    }
    
    .notice-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* モバイルでのメインコンテンツ調整 */
    main {
        margin: 16px;
        padding: 20px 16px;
        width: calc(100% - 32px);
        left: 0;
        transform: none;
    }
    
    .navigation-1 { 
        padding: 0 12px; 
    }
    
    .nav-logo { 
        margin: 0 12px 0 0; 
    }
    
    section { 
        padding: 16px; 
    }
    
    .header-title h1 { 
        font-size: 1.4rem; 
    }
}