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

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

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

h2 {
    margin: 2rem;
}

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;
}

h3.q-title {
    padding: 0.4em 0.5em;
    font-size:1.2rem;
    margin:0 auto;
    text-align: center;
    background-color: #333;
    color: #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 10vw;
}

h3.q-title-text {
    padding: 0.4em 0.5em;
    font-size:1.2rem;
    text-align: center;
    margin:0 3rem auto;
}

section .wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    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.only {
    width:100%;
    position:relative;
}

ul li .voice {
    position: relative;
    top:10px;
    left:0;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 30vw;
    li {
        list-style-type: disc;
        margin-left: 1rem;
    }
}

ul li:nth-child(odd) .voice {
    background-color: #555;
    color: #ddd;
}

ul li:nth-child(even) .voice {
    background-color: #ddd;
    color: #555;
}

ul li .years-of-experience {
    position:absolute;
    top:-2rem;
    left:0;
    display: block;
    color:navy;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

ul li .voice::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    right: auto;
    transform: translateX(0);
    border-width: 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent #fff;
}

ul li:nth-child(odd) .voice::before {
    border-color: transparent transparent #555;
}

ul li:nth-child(even) .voice::before {
    border-color: transparent transparent #ddd;
}

.other-comment {
    margin: 5rem 50% 0.5rem;
    padding: 1rem;
    text-align: left;
    width:70vw;
    transform: translateX(-50%);
    background-color: #ddd;
    color: #000;
    border-radius: 10px;
}

.other-comment ul {
    list-style: inside;
    text-align: left;
    li {
        padding-left: 1rem;
    }
}

.normal-button {
    height:2rem;
    padding:0.1rem 0.5rem;
    color: var(--timberwolf);
    background:var(--east-bay-dark);
    text-align: center;
    border-radius: 0.3rem;
}

.normal-button:hover {
    /* opacity: 0.8; */
    color: var(--east-bay-dark);
    background:var(--grey-4);
}

.color-add {
    color: var(--east-bay-dark);
    font-weight: bold;
    font-size:large;
}

.voice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.voice-table .voice-row:nth-child(odd) .voice-cell:nth-child(even),
.voice-table .voice-row:nth-child(even) .voice-cell:nth-child(odd) {
    background-color: #ddd;
    color: navy;
}

.voice-table .voice-row:nth-child(odd) .voice-cell:nth-child(odd),
.voice-table .voice-row:nth-child(even) .voice-cell:nth-child(even) {
    background-color: navy;
    color: #fff;
}

.voice-table td {
    width: 25%;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.voice-row {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
}

.voice-cell {
    padding:0.8rem;
    font-size:0.8rem;
    margin:auto;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    width: 20%;
    height: calc(var(--line-count) * var(--font-height) + 3vh);
}

.q7-table .q7-row {
    height: 80px;
}

.q7-row {
    margin:1rem;
}

.q7-cell {
    padding: 0.7rem;
    font-size:1rem;
    width: 40vw;
}

.min-font {
    padding:0;
}

.q6-comments {
    margin: 0.5rem auto;
}

.q6-comment {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0.5rem auto;
    justify-content: center;
}

.q6-comment .q6-kind {
    background-color: #000;
    color: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    width:10%;
    .q6-yes{
        margin:0 auto;
    }
}

.q6-comment .q6-yes-comment {
    background-color: #ddd;
    color: #000;
    padding: 0.5rem;
    border-radius: 8px;
    width:60%;
    font-size: 0.8rem;
}

/* PC用レイアウト */
@media (min-width: 768px) {

    .home-text:not(.only,.long-height),
    .home-text2 {
        width: 50vw;
        height:50vh;
        margin-bottom:2rem;
    }

    .long-height {
        height: 60vh;
    }

    .sp-view {
        display: none;
    }

    .voice-table .voice-row {
        height: 60px;
    }

    ul li:nth-child(odd) .voice {
        margin-left: 10%;
        margin-right: auto;
    }
    
    ul li:nth-child(even) .voice {
        margin-left: auto;
        margin-right: 10%;
    }

    ul li .voice {
        width: 35vw;
    }

    .last-comment {
        width: 80%;
        padding:1rem;
        margin:auto;
        margin-top:5rem;
        background-color: #ddd;
        color: #000;
        border-radius: 10px;
    }

    #q5-chart {
        width:45vw;
        height: 80vh;
        margin: 0 auto;
    }

    #q6-chart {
        width: 20vw;
        height: 50vh;
        margin: 0 auto;
    }

    .min-font {
        font-size: 0.7rem;
    }
}

/* スマホ用レイアウト */
@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;
    }

    .pc-view {
        display: none;
    }

    .voice-table .voice-row {
        height: 80px;
    }

    .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%);
    }

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

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

    section .wrapper {
        height: auto;
    }

    h3.q-title {
        font-size: 1rem;
        width:30vw;
    }

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

    .home-text, 
    .home-text2 {
        width: 100vw;
    }

    ul li .voice {
        width: 80vw;
        margin:3.5rem auto;
    }

    .voice-cell {
        width: 40vw;
        height:15vh;
    }

    .other-comment {
        display:none;
    }

    #q6-chart {
        width: 70vw;
        margin: 0 auto;
    }

    .q7-cell {
        padding: 0.7rem;
        font-size:0.7rem;
        height:10vh;
    }

    .last-comment {
        display: none;
    }

    .min-font {
        font-size: 0.5rem;
    }
}
