/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
}

/* メインコンテナ */
.container1 {
    min-height: 100vh;
    display: flex;
}

/* 左カラム - 基本設定 */
.left-column {
    flex: 2;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem;
    overflow-y: auto;
}

.header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.header-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.header h1 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

.header-description {
    background-color: #dbeafe;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.header-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e40af;
}

.header-subtitle {
    font-size: 0.75rem;
    color: #2563eb;
    margin-top: 0.25rem;
}

/* フォームセクション */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-select, .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-select:focus, .form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

.form-select:disabled, .form-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.form-help.warning {
    color: #d97706;
}

/* 続行ボタン */
.proceed-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.proceed-button:enabled {
    background-color: #2563eb;
    color: white;
}

.proceed-button:enabled:hover {
    background-color: #1d4ed8;
}

.proceed-button:disabled {
    background-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

/* 中央カラム - 学習指導要領 */
.center-column {
    flex: 4;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem;
    overflow-y: auto;
}

.unit-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.unit-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.unit-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

#unit-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
}

#unit-details {
    font-size: 0.875rem;
    color: #6b7280;
}

.curriculum-section {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.curriculum-header {
    background-color: #f0fdf4;
    border-bottom: 1px solid #dcfce7;
    border-radius: 0.5rem 0.5rem 0 0;
}

.curriculum-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #166534;
}

.curriculum-header p {
    font-size: 0.875rem;
    color: #16a34a;
    margin-top: 0.25rem;
}

.curriculum-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.curriculum-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.curriculum-item h3 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.curriculum-item p, .curriculum-item li {
    font-size: 0.875rem;
}

.skills {
    background-color: #f0fdf4;
}

.skills ul {
    list-style: none;
    padding-left: 0;
}

.skills li {
    color: #15803d;
    margin-bottom: 0.25rem;
}

.skills li::before {
    content: "• ";
    margin-right: 0.5rem;
}



/* 単元情報セクション */
.unit-info-section {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
}

.unit-info-header {
    background-color: #fefce8;
    border-bottom: 1px solid #facc15;
    border-radius: 0.5rem 0.5rem 0 0;
}

.unit-info-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #a16207;
}

.unit-info-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.unit-info-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.unit-info-item h3 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.unit-info-item p, .unit-info-item li {
    font-size: 0.875rem;
}

.description {
    background-color: #f0f9ff;
}

.description h3 {
    color: #0c4a6e;
}

.description p {
    color: #0369a1;
    line-height: 1.6;
}

.themes {
    background-color: #f3e8ff;
}

.themes h3 {
    color: #6b21a8;
}

.themes ul {
    list-style: none;
    padding-left: 0;
}

.themes li {
    color: #7c3aed;
    margin-bottom: 0.25rem;
}

.themes li::before {
    content: "• ";
    margin-right: 0.5rem;
}

.unit-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.difficulty {
    background-color: #fef3c7;
}

.difficulty h3 {
    color: #92400e;
}

.hours {
    background-color: #ecfdf5;
}

.hours h3 {
    color: #166534;
}

.info-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
}

.prerequisites {
    background-color: #fdf2f8;
}

.prerequisites h3 {
    color: #be185d;
}

.prerequisites ul, .related ul {
    list-style: none;
    padding-left: 0;
}

.prerequisites li, .related li {
    color: #db2777;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.prerequisites li::before, .related li::before {
    content: "• ";
    margin-right: 0.5rem;
}

.related {
    background-color: #f0fdf4;
}

.related h3 {
    color: #166534;
}

.related li {
    color: #16a34a;
}

/* 右カラム - カスタマイズ設定 */
.right-column {
    flex: 4;
    background-color: #f9fafb;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.settings-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
}

.settings-icon {
    width: 1rem;
    height: 1rem;
}

/* 時間数設定 */
.hours-setting {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.hours-range {
    font-size: 0.75rem;
    color: #6b7280;
}

.hours-slider {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    cursor: pointer;
}

.hours-type {
    font-size: 0.75rem;
    color: #6b7280;
}

/* 教材・教具グリッド */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-item:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.tool-item.active {
    border-color: #3b82f6;
    background-color: #dbeafe;
}

.tool-icon {
    font-size: 1.125rem;
}

.tool-name {
    font-size: 0.75rem;
    color: #374151;
}

/* カードヘッダー */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.auto-generate-tag {
    font-size: 0.75rem;
    color: #2563eb;
    background-color: #dbeafe;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* テキストエリア */
.settings-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    resize: none;
    font-family: inherit;
}

.settings-textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* Will設定 */
.will-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.will-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.will-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
}

.will-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.will-item:hover {
    border-color: #d1d5db;
}

.will-item.active {
    border-color: #3b82f6;
    background-color: #dbeafe;
}

.will-item.full-width {
}

.will-icon {
    font-size: 0.875rem;
}

.will-name {
    font-size: 0.75rem;
    color: #111827;
}

.will-text-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.will-textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    height: 6rem;
    resize: none;
    font-family: inherit;
}

.will-textarea:focus {
    outline: none;
    ring: 2px;
    ring-color: #3b82f6;
    border-color: #3b82f6;
}

/* 生成ボタン */
.generate-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generate-button:hover {
    background-color: #1d4ed8;
}

.generate-button:disabled {
    background-color: #9ca3af;
    color: #d1d5db;
    cursor: not-allowed;
}

.button-icon {
    width: 1rem;
    height: 1rem;
}

/* アコーディオン（.accordion-006） */
.accordion-006 {
    max-width: 100%;
    margin-bottom: 7px;
    border-radius: 5px;
    /* 背景色は既存のまま */
}

.accordion-006 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
}

.accordion-006 summary::-webkit-details-marker {
    display: none;
}

.accordion-006 summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #c2c2c2;
    border-right: 3px solid #c2c2c2;
    content: '';
    transition: transform .3s;
}

.accordion-006[open] summary::after {
    transform: rotate(225deg);
}

/* レスポンシブ対応*/
@media (max-width: 1024px) {
    .container1 {
        flex-direction: column;
    }
    
    .left-column,
    .center-column,
    .right-column {
        width: 100%;
        flex: unset;
    }
} 

/* Loader CSS */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loader-text {
    font-size: 1rem;
    color: #374151;
}

/* 汎用ボタンスタイル */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
}

.button:hover {
    background-color: #1d4ed8;
}

.button:disabled {
    background-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}
