:root {
 --primary-color: #0c97e9;
 --secondary-color: #005bac;
 --bg-color: #ffffff;
 --text-color: #333333;
 --light-gray: #f8f9fa;
 --border-color: #e1e8ed;
 --accent-color: #ff9f43;
 --success-color: #28a745;
 --note-bg: #fff9db;
}

* {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

body {
 font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
 line-height: 1.8;
 color: var(--text-color);
 background-color: #f0f2f5;
 display: flex;
 justify-content: center;
}

a {
 text-decoration: none;
}

/* FAQ (details/summary) スタイル */
details {
 background-color: var(--light-gray);
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 12px;
 transition: all 0.2s ease;
}

details[open] {
 background-color: #eef9ff; /* 開いた時の背景色 */
 border-color: var(--primary-color);
}

summary {
 display: flex;
 align-items: center;
 padding: 15px 20px;
 font-size: 0.88rem;
 line-height: 1.4;
 font-weight: bold;
 color: var(--text-color);
 cursor: pointer;
 outline: none;
 position: relative;
 list-style: none; /* デフォルトのマーカーを非表示 */
}

summary::-webkit-details-marker, /* Webkit系ブラウザのマーカーを非表示 */
summary::marker {
 /* Firefoxのマーカーを非表示 */
 display: none;
}

summary::after {
 content: "+";
 font-size: 1.5rem;
 color: var(--primary-color);
 position: absolute;
 right: 20px;
 top: 50%;
 transform: translateY(-50%);
 transition: transform 0.2s ease;
}

details[open] summary::after {
 content: "-";
 transform: translateY(-50%) rotate(0deg);
}

summary:hover {
 color: var(--primary-color);
}

summary span {
 width: 86%;
}

video {
 width: 90%;
 margin: 0 auto 16px;
 border-radius: 8px;
}

.link {
 color: var(--primary-color);
 border-bottom: 1px solid;
 font-weight: bold;
}
.link:hover {
 color: var(--accent-color);
 border-color: transparent;
}
.link:active {
 color: var(--accent-color);
}

img:not(h1 img) {
 max-width: 100%;
 object-fit: cover;
 border-radius: 12px;
 border: 2px solid var(--border-color);
 display: block;
 margin: auto;
}

.container {
 width: 100%;
 max-width: 480px; /* スマホサイズに最適化 */
 background-color: var(--bg-color);
 min-height: 100vh;
 padding: 24px 20px;
 box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* 見出しデザイン */
h1 {
 font-size: 1.4rem;
 color: var(--primary-color);
 margin-bottom: 24px;
 padding-bottom: 12px;
 border-bottom: 3px solid var(--primary-color);
 display: flex;
 align-items: center;
}

h2 {
 font-size: 1.2rem;
 color: var(--text-color);
 margin-top: 40px;
 margin-bottom: 16px;
 padding-left: 12px;
 border-left: 5px solid var(--primary-color);
 background: var(--light-gray);
 padding-top: 4px;
 padding-bottom: 4px;
}

h3 {
 font-size: 1.05rem;
 color: var(--secondary-color);
 margin-top: 24px;
 margin-bottom: 12px;
 font-weight: bold;
}

/* テキスト要素 */
p {
 margin-bottom: 16px;
 font-size: 0.95rem;
}

strong {
 color: var(--primary-color);
 font-weight: 700;
}

/* リストデザイン */
ul,
ol {
 margin-bottom: 20px;
 padding-left: 20px;
}

li {
 margin-bottom: 10px;
 font-size: 0.95rem;
}

/* メディアプレースホルダー */
.media-placeholder {
 width: 100%;
 aspect-ratio: 9 / 16;
 background-color: var(--light-gray);
 background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 50%, #f0f0f0 50%, #f0f0f0 75%, transparent 75%, transparent);
 background-size: 20px 20px;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 margin: 24px 0;
 border-radius: 12px;
 border: 2px dashed var(--border-color);
 color: #999;
 font-size: 0.85rem;
 text-align: center;
}

.media-placeholder::before {
 content: "📷 / 🎥";
 font-size: 2rem;
 margin-bottom: 8px;
 opacity: 0.5;
}

/* 特殊な装飾ボックス */
.note {
 font-size: 0.9rem;
 color: #555;
 background-color: var(--note-bg);
 padding: 16px;
 border-radius: 8px;
 margin: 20px 0;
 border-left: 4px solid #f1c40f;
}

.info {
 font-size: 0.9rem;
 color: #555;
 background-color: #e7f3ff;
 border-left: 4px solid #007bff;
 padding: 16px;
 border-radius: 8px;
 margin: 20px 0;
}

.summary {
 background-color: #eef9ff;
 padding: 20px;
 border-radius: 12px;
 margin-top: 40px;
 border: 1px solid var(--primary-color);
}

.summary h2 {
    margin-top: 0;
    border-left: none;
    background: none;
    padding-left: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px dashed var(--primary-color);
    margin-bottom: 12px;
}

.check-list {
 list-style-type: none;
 padding-left: 0;
}

.check-list li {
 position: relative;
 padding-left: 28px;
}

.check-list li::before {
 content: "✓";
 position: absolute;
 left: 0;
 color: var(--success-color);
 font-weight: bold;
 font-size: 1.2rem;
}

/* ステップ表示 */
.step-badge {
 display: inline-block;
 background-color: var(--primary-color);
 color: white;
 padding: 2px 12px;
 border-radius: 20px;
 font-size: 0.8rem;
 font-weight: bold;
 margin-bottom: 8px;
}

/* フッター的なサポート案内 */
.support-box {
 margin-top: 30px;
 padding: 15px;
 background-color: #fff;
 border: 1px solid var(--border-color);
 border-radius: 8px;
 text-align: center;
}

.support-box a {
 color: var(--primary-color);
 text-decoration: none;
 font-weight: bold;
}

/* 目次ページ用スタイル */
.menu-list {
 list-style: none;
 padding: 0;
 margin-top: 20px;
}

.menu-item {
 margin-bottom: 16px;
}

.menu-link {
 display: flex;
 align-items: center;
 padding: 16px;
 background-color: var(--light-gray);
 border: 1px solid var(--border-color);
 border-radius: 12px;
 text-decoration: none;
 color: var(--text-color);
 transition: all 0.2s ease;
}

.menu-link:active {
 background-color: #eef9ff;
 border-color: var(--primary-color);
 transform: scale(0.98);
}

.menu-number {
 width: 32px;
 height: 32px;
 background-color: var(--primary-color);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: bold;
 font-size: 0.9rem;
 margin-right: 16px;
 flex-shrink: 0;
}

.menu-text {
 flex-grow: 1;
}

.menu-title {
 display: block;
 font-weight: bold;
 font-size: 1rem;
 margin-bottom: 2px;
}

.menu-desc {
 display: block;
 font-size: 0.8rem;
 color: #777;
}

.menu-arrow {
 color: var(--primary-color);
 font-weight: bold;
 margin-left: 10px;
}

/* テーブルスタイル */
table {
 width: 100%;
 border-collapse: collapse;
 margin: 20px 0;
 font-size: 0.9rem;
}

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

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

tr:nth-child(even) {
 background-color: #fcfdff;
}

/* 戻るボタン */
.back-to-menu {
 display: inline-flex;
 align-items: center;
 margin-top: 30px;
 padding: 10px 0;
 color: var(--primary-color);
 font-size: 0.9rem;
 border: 0;
}

.back-to-menu::before {
 content: "←";
 margin-right: 8px;
}

/* ダウンロードボタン */
.download-button {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 padding: 18px 24px;
 background: linear-gradient(135deg, var(--primary-color) 0%, #0a7bc0 100%);
 color: white;
 text-decoration: none;
 border-radius: 12px;
 text-align: center;
 transition: all 0.3s ease;
 box-shadow: 0 4px 12px rgba(12, 151, 233, 0.3);
}

.download-button:hover,
.download-button:active {
 transform: translateY(-2px);
 box-shadow: 0 6px 16px rgba(12, 151, 233, 0.4);
}

.download-button:active {
 transform: translateY(0);
}

@media (max-width: 480px) {
 .download-button {
  padding: 16px 20px;
 }
}

/* FAQ */
.faq summary::before {
 content: "Q.";
 color: var(--primary-color);
 font-size: 1.1rem;
 margin-right: 10px;
 flex-shrink: 0;
}

.faq .info {
 padding: 16px 24px 0;
 line-height: 1.6;
 color: #555;
 border-top: 1px solid var(--border-color);
 margin-top: 0;
 background-color: transparent !important; /* detailsã®èƒŒæ™¯è‰²ã«åˆã‚ã›ã‚‹ */
 border-left: none !important; /* detailsã§æž ç·šã‚’æŒã¤ãŸã‚ */
 border-radius: 0 0 8px 8px;
}

.faq .info p {
 font-size: 0.88rem;
}

.faq .info p:last-child {
 margin-bottom: 0;
}

.faq .info ul {
 margin-top: 10px;
 margin-bottom: 10px;
}

.faq .info li {
 margin-bottom: 5px;
}
