/* 基本スタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
}
.container {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}
.hidden { display: none; }

/* チェックリストのスタイル */
.details-content {
    padding: 0 1.5rem 1rem 1.5rem;
    background-color: #fff;
}
.sub-section {
    margin-top: 1.5rem;
}
.sub-section:first-child {
    margin-top: 1rem;
}
.sub-section h3 {
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.section-description {
    color: #555;
    font-size: 0.95rem;
}
ul {
    list-style: none;
    padding-left: 0;
}
li {
    margin-bottom: 0.5rem;
}
li label {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
}
li input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 4px;
}
.text-block {
    background-color: #f9f9f9;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin-top: 1rem;
}
.text-block h4 {
    margin-top: 0;
}

/* アコーディオンのスタイル */
details.checklist-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden; /* 角丸を維持 */
}

summary {
    cursor: pointer;
    list-style: none; /* デフォルトのマーカーを消す */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f7f7f9;
    transition: background-color 0.2s;
}

summary:hover {
    background-color: #e9ecef;
}

summary::-webkit-details-marker {
    display: none; /* Chrome/Safariのマーカーを消す */
}

summary h2 {
    display: inline;
    margin: 0;
    font-size: 1.2rem;
    color: #343a40;
}

/* 右端のアイコン */
summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    color: #007bff;
    transition: transform 0.3s ease-in-out;
    line-height: 1;
}

details[open] > summary::after {
    content: '−';
    transform: rotate(180deg);
}


/* フォームとボタンのスタイル */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}
.back-link:hover {
    text-decoration: underline;
}
.description {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
}
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}
.checkbox-group label {
    font-size: 1.1rem;
    cursor: pointer;
}
.button-container {
    text-align: center;
    margin-bottom: 2rem; /* 結果表示後のボタン下にも余白 */
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #0056b3;
}
#copy-button {
    background-color: #28a745;
}
#copy-button:hover {
    background-color: #218838;
}

/* ステップ2のヘッダー */
.step2-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.secondary-button {
    background-color: #6c757d;
    font-size: 0.9rem;
    padding: 10px 15px;
}
.secondary-button:hover {
    background-color: #5a6268;
}