:root{
    --color-main: #7B3923;
    --sub-color : #7B3923;
    --banner-color : #B95534;
    --header-color : #EAC8AA;
    --title-background-color : #401D12;
}

.sp-only {
    display: none;
}

html,
body {
    overflow-x: hidden;
}

.main-content {
    min-height: 100vh;
}

.top-banner-area{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    width: 100%;
    height: 800px;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    transition: background-image 0.8s ease-in-out;
}

.top-banner-text {
    font-size: 2.5vw;
    display: flex;
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.6);
    justify-content: center;
    font-weight: bold;
    width: 50%;
}

.top-banner-sub-text {
    font-size: 1.5vw;
    display: flex;
    position: absolute;
    top: 70%;
    background-color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    width: fit-content;
    width: 50%;
    padding-left: 35px;
}

.title {
    width: 40vw;
    max-width: 800px;
    height: auto;
    min-height: clamp(80px, 10vw, 140px);
    background-color: var(--title-background-color);
    color: white;
    display: flex;
    flex-direction: column;
    clip-path: polygon(0 0, 85% 0, 100% 100%, 0% 100%);
}

.title .label {
    margin-top: 4%;
    margin-left: 5%;
    font-size: clamp(14px, 2vw, 22px);
    display: inline-block;
    line-height: 1.2;
}

.title h2 {
    margin: 0;
    margin-top: 2%;
    margin-left: 5%;
    font-size: clamp(32px, 6vw, 72px);
    display: inline-block;
    line-height: 1.1;
}

.sub-title {
    width: 60%;
    height: auto;
    min-height: clamp(80px, 10vw, 140px);
    background: linear-gradient(to right, var(--banner-color) 3%, transparent 3%);
    display: flex;
    align-items: center;
}

.sub-title-text {
    margin-left: 10%;
    font-size: 3.8vw;
    font-weight: bold;
}

.service-body,
.about-us-body {
    margin: clamp(16px, 4vw, 32px) auto;
    margin-bottom: clamp(60px, 10vw, 120px);
    padding: 0 32px;
    max-width: 2200px;
    align-items: center;
}

.content-introduction {
    margin-top: 20px;
    display: inline-grid;
}

.content-introduction p {
    margin: 0;
    font-weight: 800;
    margin-top: 10px;
    font-size: 1.55rem; 
    display: inline;
    background: linear-gradient(transparent 55%, var(--banner-color) 140%);
    padding: 0 4px;
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 4vh;
}

.container {
    display: flex;
    width: 70vw;
    height: auto;
    margin-bottom: clamp(16px, 3vw, 32px);
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}
.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--banner-color) 0%, var(--banner-color) 100%);
    z-index: -1;
}

.image-wrapper {
    width: 40%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0% 100%);
    border-radius: 20px 0 0 20px;
}

.image-area {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

img.image-area {
    display: block;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    min-height: clamp(140px, 22vw, 260px);
    align-self: stretch;
}

.container > img.image-area {
    width: 50%;
}

.image-wrapper > img.image-area {
    width: 100%;
    height: 100%;
}

.text-area {
    flex: 1;
}

.text-area h2 {
    margin: 15px 10px 0;
    padding-bottom: 10px;
    font-size: clamp(18px, 2.5vw, 28px);
    text-align: center;
    border-bottom: 4px solid var(--banner-color);
    text-align: center;
}

.text-area p {
    margin: 0;
    margin: 25px 10px 0;
    font-size: 1.1vw;
    padding-bottom: 20px;
}

.owner-introduction {
    display: flex;
    flex-wrap: wrap;
    margin-top: 25px;
    padding: 30px;
    width: 80%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    margin: 32px auto;
}
.owner-introduction::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--banner-color) 0%, var(--banner-color) 100%);
    z-index: -1;
}

.owner-area {
    width: 40%;
    display: block;
}

.owner-area img {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.organization-name {
    width: 80%;
    font-size: 1.4vw;
    display: block;
    margin: 1vh auto 0;
}

.organization-name p {
    margin: 0;
    display: inline;
    padding: 0 4vw 1vh 0;
    border-bottom: 1.5px solid #aaa;
}

.owner-name h2 {
    margin: 0;
    font-size: 4vw;
}

.owner-name {
    margin-top: 1vh;
    font-size: 1.75vw;
}

.introduction-area {
    width: 60%;
    margin: 0 auto;
}

.owner-greeting h1 {
    margin: 0 5vw 5%;
    font-size: 2.75vw;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 8px solid var(--banner-color);
}

.owner-greeting {
    font-size: 1.25vw;
}

.career h2 {
    margin: 30px 0 0;
    font-size: 2vw;
}

.career p {
    margin: 10px 0 0;
    font-size: 1.5vw;
}

.members {
    width: 100vw;
    overflow-x: hidden;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    gap: 2vw;
    scroll-behavior: smooth;

    scrollbar-width: none; 
    padding: 16px 0;
    margin-top: 16px;

    scroll-snap-type: x mandatory;
    user-select: none;
    cursor: grab;   
}

.members::before,.members::after {
    content: "";
    display: block;
    min-width: 16px;
    height: 1px;
}

.members::-webkit-scrollbar {
    display: none; 
}

.members.active {
    cursor: grabbing;
}

.card {
    display: grid;
    grid-template-rows: 7fr 3fr;
    max-width: 35vw;
    height: 55vh;
    aspect-ratio: 4 / 5;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    background: var(--sub-color);
    color: #EADBC8;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: scale(1.05);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    overflow: hidden;
}

.card-text-area {
    display: block;
    align-items: center;
    text-align: center;

    padding: 8px;
    font-size: 0.75rem;

}

.member-name {
    font-size: 40px;
    font-weight: bolder;
}

.hurigana {
    font-size: 18px;
}

.content {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-area {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 55vw;
    position: relative;
    display: flex;
}

.modal-image {
    width: 50%;
    height: 340px;
    border-radius: 8px;
    object-fit: cover;
    overflow: hidden;
}

.modal-text {
    width: 50%;
    margin-left: 2vw;
    display: block;
}

#modal-name {
    font-size: 3vw;
    margin: 0;
}

#modal-hurigana {
    font-size: 1.25vw;
    margin: 0;
}

#modal-content {
    white-space: pre-line;
    font-size: 0.9vw;
    text-align: left;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}