/* ベーススタイル */
body {
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

body {
	color: #555;
}
p {
    line-height: 1.7;
}

main {
    padding-top: 10vh;
    color:var(--font);
}

h2.title {
    margin-top: 2rem;
    font-size: 1.5rem;
    line-height: 1.5;
}
h2.title::after {
    content: '';
    display: block;
    height: 5px;
    width: 10rem;
    background: #d0bea2;
    margin: 1rem 1rem 1rem 0;
}

h3.title {
    padding: 0.4em 0.5em;
    border-left: solid 5px var(--black);
    font-size:1.3rem;
    margin:1.5rem auto;
}

section .wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

section .wrapper.top {
    height: 60vh;
}

.content {
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    padding: 4rem 1rem;
}

.top-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 写真のスタイル */
.photo-row {
    display: flex;
    gap: 10px;
    position: absolute;
}

.photo-row img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#title-name1 {
    position:absolute;
    top:40%;
    left:50%;
    transform:translate(-50%, -50%);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

#title-name2 {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

#back-title-name {
    position:absolute;
    top:60%;
    right:30%;
    transform:translate(-50%, -50%);
    font-size: 60px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0.5;
    color:var(--blue);
}

/* 左上の写真エリア */
.top-left {
    position: absolute;
    top: 20px;
    left: 20px;
}

/* 右下の写真エリア */
.bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.home-text {
    width: 70vw;
}

.home-chart {
    width: 30vw;
}

.home-text.only {
    width: 90vw;
}

.statistics {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0 1rem;
}

.statistics .stat-item {
    width: 100%;
    margin: 1rem;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    color: var(--font);
    text-align: center;
}

.statistics .stat-item .title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.statistics .stat-item .rate {
    font-size: 2rem;
    font-weight: 600;
}

/* スマホ用レイアウト */
@media (max-width: 768px) {
    
    body {
        font-size: 14px;
    }

    h2.title {
        font-size: 1.2rem;
    }

    h3.title {
        font-size: 1rem;
    }

    .content {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .photo-row img {
        width: 80px;
        height: 80px;
    }

    #title-name1, #title-name2, #back-title-name {
        font-size: 18px;
    }

    #back-title-name {
        font-size: 36px;
        right:0%;
        transform:translate(-50%, -50%);
    }

    .home-text, .home-chart {
        width: 100%;
    }

    .top-left, .bottom-right {
        position: static;
        margin: 10px 0;
    }

    .bottom-right {
        margin-top: 200px;
    }

    section .wrapper {
        height: auto;
    }

    .statistics {
        flex-wrap: wrap;
    }
}
