/* style8.css – 写真がめちゃくちゃきれいになる最終版 */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
    background: linear-gradient(135deg, #e3f2fd, #fff8e1);
    color: #333;
    line-height: 1.8;
    padding: 20px 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    padding: 60px 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

h1 {
    text-align: center;
    color: #004d40;
    font-size: 2.4rem;
    margin-bottom: 20px;
}
h1 span {
    font-size: 1.5rem;
    color: #00796b;
}

.question-list {
    counter-reset: num;
    list-style: none;
}

.question-list > li {
    counter-increment: num;
    margin: 50px 0;
    padding: 35px;
    background: #f5fffa;
    border-radius: 20px;
    border: 4px solid #e0f2f1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    position: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
}

.question-list .q {
    position: absolute;
    left: -25px;
    top: -25px;
    background: linear-gradient(135deg, #009688, #004d40);
    color: white;
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.question-text {
    flex: 1;
    min-width: 300px;
    margin-left: 50px;
}
.question-text p {
    font-size: 1.4rem;
}
.question-text strong {
    font-size: 1.65rem;
    color: #004d40;
}

/* 写真 */
.photo, .photo-double {
    flex: 0 0 380px;
    text-align: center;
}
.photo img {
    width: 100%;
    max-width: 380px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s;
}
.photo img:hover {
    transform: scale(1.06);
}
.photo figcaption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #555;
}

/* 2枚並べ用 */
.photo-double {
    display: flex;
    gap: 20px;
    flex: 1;
}
.photo-double .photo {
    flex: 1;
}

/* スマホ */
@media (max-width: 840px) {
    .container { padding: 40px 20px; }
    .question-list > li { flex-direction: column; text-align: center; }
    .question-text { margin-left: 0; margin-top: 30px; }
    .photo, .photo-double { width: 100%; max-width: 420px; }
    .photo-double { flex-direction: column; }
    .question-list .q { left: 50%; transform: translateX(-50%); top: -30px; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.9rem; }
    .question-text p { font-size: 1.25rem; }
    .question-text strong { font-size: 1.45rem; }
}
/* 引用元リンクをクリックしやすく＆カーソル表示 */
.photo-link {
    text-decoration: none;
    display: block;
    transition: opacity 0.3s;
}

.photo-link:hover {
    opacity: 0.85;
}

.photo-link figcaption {
    cursor: pointer;
    color: #00695c;
    font-weight: 500;
    transition: color 0.3s;
}

.photo-link:hover figcaption {
    color: #004d40;
    text-decoration: underline;
}

/* 2枚並びのときも同じ */
.photo-double .photo-link {
    flex: 1;
}