/* 全体のスタイル */
body {
    font-family: 'Yu Mincho', serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #2c3e50;
    background-color: #fafafa;
}

/* ヘッダー */
header {
    display: flex;
    justify-content: center;
    background-color: #8e5b35; /* 京都風の茶色 */
    color: white;
    width: 100%;
    padding: 5px 0;
}

header .container h1 {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ヘッダー内のh1 */
header h1 a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-family: 'Yu Mincho', serif;
    border-radius: 5px;
    padding: 5px 10px;
}

header h1 a:hover {
    background-color: #5c4033;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn {
    font-family: 'Yu Mincho', serif;
    padding: 10px 15px;
    background-color: #8e5b35; /* 京都風の茶色 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ヒーローセクション */
.hero {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-slider .slide.active {
    opacity: 1;
}

.hero .container {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

#hero h2 {
    margin: 0 1rem 1rem;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

#hero p {
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    text-align: center;
}

#hero .btn {
    /* display: inline-block; */
    padding: 10px 20px;
    background-color: #d4a373; /* 落ち着いた金茶色 */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.2rem;
    text-align: center;
}

/* カメラセクション */
#camera {
    padding: 0.5rem;
    background-color: #ddd;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
}

#camera h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#camera video {
    transform: scaleX(-1);
    border: 1px solid #aaa;
    max-width: 80%;
    max-height: 50vh;
    margin-bottom: 1rem;
}

#camera .btn {
    padding: 10px 15px;
    background-color: #8e5b35; /* 京都風の茶色 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
}

#camera a.btn {
    font-size: 1rem;
}

#camera .btn:hover {
    background-color: #5c4033;
}

/* 結果 */
#results {
    flex: 1;
    padding: 0.5rem;
    background-color: #ddd;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#results .container #text {
    text-wrap: wrap;
}

#results .result-img {
    width: 150px;
    height: auto;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

#results .recognition-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

footer p {
    margin: 0;
}
