/* タブのスタイル調整 */
.tab-wrap { margin-top: 2em; }
.tab-switch { display: none; }
.tab-label {
    display: inline-block;
    padding: 1em 2em;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #eee;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.tab-switch:checked + .tab-label {
    background-color: #638c0b;
    color: #fff;
    border-color: #1a1a1a;
}

h1 { text-align: left; }
h2 { text-align: left; border-left: 5px solid #1a1a1a; padding-left: 0.5em; margin-bottom: 1em; font-weight: bold; }
h3 { text-align: left; font-size: 1.25em; margin-top: 1.5em; font-weight: bold; color: #1a1a1a; border-bottom: 1px solid #eee; padding-bottom: 0.3em; }

/* 新規テンプレート用スタイル */
.tire_category {
    text-align: center;
    font-weight: bold;
    margin: 0 auto 2em;
    color: #666;
    width: fit-content;
    padding: 0.4em 1.5em;
    border-radius: 50px;
    font-size: 0.9em;
}

.tire_category.summer {
    color: #c4561a;
    background-color: #fff5ee;
    border: 1px solid #ffdab9;
}

.tire_category.studless {
    color: #1a56c4;
    background-color: #f0f8ff;
    border: 1px solid #add8e6;
}

.tire_category.allseason {
    color: #2e8b57;
    background-color: #f0fff0;
    border: 1px solid #98fb98;
}

.tab_contents {
    display: none;
    text-align: left;
    background: #fff;
    border: 1px solid #eee;
    border-top: 5px solid #1a1a1a;
    padding: 2em;
}

.tab-switch:checked + .tab-label + .tab_contents {
    display: block;
}

.lead {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2em;
}

.tire_container {
    display: grid;
    grid-template-columns: 3fr 7fr;
    gap: 2em;
}

@media screen and (max-width: 768px) {
    .tire_container {
        grid-template-columns: 1fr;
    }
}

.thumb img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.tire_summary h3 {
    text-align: left;
    border-left: 5px solid #1a1a1a;
    padding-left: 0.5em;
    margin-bottom: 1em;
}

.matching ul {
    list-style: disc;
    padding-left: 1.5em;
}

.message {
    background: #f5f5f5;
    padding: 1.5em;
    border-radius: 5px;
    margin-top: 1.5em;
}

.user_voice {
    grid-column: 1 / -1;
    margin-top: 3em;
}

.user_voice ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    list-style: none;
    padding: 0;
}

.user_voice ul:has(> li:only-child) {
    grid-template-columns: 1fr;
}

.user_voice ul:has(> li:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 768px) {
    .user_voice ul {
        grid-template-columns: 1fr;
    }
}

.user_voice li {
    background: #f9f9f9;
    padding: 1.5em;
    border-radius: 15px;
    display: flex;
    gap: 1em;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user_voice i {
    font-size: 2em;
    color: #ccc;
}

.size {
    grid-column: 1 / -1;
    margin-top: 3em;
}

.sizelist {
    margin-bottom: 2em;
}

.sizelist h3 {
    text-align: left;
    font-size: 1.1em;
    border-left: 4px solid #ccc;
    padding-left: 0.6em;
    margin-bottom: 0.8em;
}

.sizelist ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    list-style: none;
    padding: 0;
}

.sizelist li a {
    display: inline-block;
    padding: 0.5em 1em;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.2s;
}

.color01 {
    color: #1a56c4;
    border: 1px solid #1a56c4;
}

.color01:hover {
    background: #1a56c4 !important;
    color: #fff !important;
}

.btn_guide {
    margin-top: 3em;
    text-align: center;
}

.btn_guide a {
    display: block;
    background-color: #638c0b;
    color: #fff;
    padding: 1.5em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn_guide a:hover {
    background-color: #d9534f;
    opacity: 1;
}

.btn_guide a span {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
}
