* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

html {
    scroll-padding-top: 80px; 
    scroll-behavior: smooth;
}

.big-container {
    display: grid;
    grid-template-columns: 
        [full-start] minmax(1rem, 1fr)
        [content-start] min(1180px, 100% - 2rem)
        [content-end] minmax(1rem, 1fr)
        [full-end];
}

.container {
    grid-column: content;
}

header {
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: black;
    font-family: 'inter', sans-serif;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #203F3E;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.header-container nav ul li a {
    font-family: 'inter', sans-serif;
    color: #203F3E;
    opacity: 0.7;
    font-size: 20px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

main {
    margin-top: 80px;
}

.main-container {
    display: contents;
    grid-template-columns: subgrid;
}

.about {
    padding: 40px 0;
    grid-column: full;
    display: grid;
    grid-template-columns: subgrid;
}

.section-title {
    font-family: 'inter', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: black;
    grid-column: content;
    text-align: center;
    margin-bottom: 40px;
}

.about > .hero-wrapper {
    background-color: #F5F5F5;
    display: grid;
    grid-column: full;
    grid-template-columns: subgrid;
}

.hero-wrapper > .hero-container {
    padding: 40px 0;
    display: flex;
    flex-wrap: wrap;
    grid-column: content;
    justify-content: space-between;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;              /* 透明 */
        transform: translateY(50px); /* 50px下にずらす */
    }
    100% {
        opacity: 1;              /* 不透明 */
        transform: translateY(0);   /* 元の位置に戻す */
    }
}

.movable {
    /* 定義したアニメーションを適用 */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.movable.in-view {
    opacity: 1;
    transform: translateY(0);
}

.main-img {
    height: 500px;
    width: 48%;
}

.main-img-object {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: relative;
}

.main-img-info {
    position: absolute;
    top: 40px;
    left: 360px;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: medium;
    text-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
}



.main-message {
    height: 500px;
    width: 48%;
    padding: 40px;
    background-color: rgb(255, 255, 255);
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
}

.main-message-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: black;
    transform: translateY(50px);
}

.main-message-title br {
    display: none;
}

.main-message-title::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: #203F3E;
    margin-right: -8px;
    margin-bottom: -2px;
}

.main-message-sub {
    width: 100%;
    font-size: 20px;
    font-weight: regular;
    color: black;
    position: absolute;
    top: 50%;
    left: 0;
    padding-left: 40px;
    transform: translateY(-50%);
}

.marker {
    background: linear-gradient(transparent 50%, #fffacd 50%)
}

.main-card {
    position: relative;

}

.main-card::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 40px;
    background: linear-gradient(
    90deg, 
    rgba(242, 240, 213, 0.8) 0%, 
    rgba(242, 240, 213, 1) 50%, 
    rgba(242, 240, 213, 0.8) 100%
    );
    opacity: 0.9;
    z-index: 10;
}

.works {
    padding-top: 40px;
    grid-column: content;
    border-bottom: 1px solid rgba(81, 72, 0, 0.8);
    margin-bottom: 20px;
}

.works-carousel-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.works-carousel-container::-webkit-scrollbar {
    display: none;
}

.works-list {
    display: flex;
    gap: 40px;
    padding: 20px 40px;
    list-style: none;
}

.work-item {
    flex: 0 0 100%;
    text-align: center;
}

.work-img-wrapper img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.work-img-wrapper img:hover {
    transform: scale(1.03);
}

.work-title {
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s ease-in-out;
}

.work-title:hover {
    transform: translateY(-2px);
}

.work-title-link {
    font-family: 'inter', sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: black;
    opacity: 0.8;
}

.work-title-link:hover {
    color: black;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.work-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

.services {
    padding: 40px 0;
    grid-column: content;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(81, 72, 0, 0.8);
    margin-bottom: 20px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.service-content-wrapper {
    display: flex;
    flex-direction: column;
    background-color: rgba(229, 246, 245, 1);
    width: 40%;
    height: 300px;
    border-radius: 40px;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
    justify-content: center;
    align-items: center;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.service-content-wrapper:hover {
    transform: scale(1.03);
    background-color: rgba(211, 236, 235, 1);
}

.service-title {
    margin-bottom: 20px;
}

.service-desc {
    line-height: 1.5;
}

.contact {
    padding-top: 40px;
    grid-column: content;
    height: 700px
}

.contact-container {
    display: flex;
    flex-direction: column;
    margin: 0 160px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label, .sns-area p {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif;
}

input,
textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

textarea {
    height: 160px;
    max-height: 190px;
    resize: vertical;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.sns-icons {
    margin-left: 30px;
}

.sns-icons img {
    width: 32px;
    margin-right: 15px;
}

.submit-button {
    background-color: #dcdcdc;
    color: #333;
    border: none;
    padding: 10px 40px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: regular;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #cfcfcf;
    transform: translateY(-2px);
}

footer {
    background-color: rgba(32, 63, 62, 1);
    width: 100%;
}

.footer-container {
    display: flex;
}

.footer-left {
    width: 30%;
}

.footer-logo {
    margin: 20px 0;
    color: white;
}

.footer-left p {
    font-weight: normal;
    color: #e3e3e3;
    margin-bottom: 20px;
}

.footer-main {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-main nav ul li a {
    font-family: 'inter', sans-serif;
    color: #fff;
    opacity: 0.7;
    font-size: 20px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.footer-main nav ul li a:hover {
    opacity: 1;
    border-bottom: 2px solid white;
}

.footer-right {
    width: 30%;
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 20px;
}

.footer-right img {
    filter: brightness(0) invert(1);
    width: 24px;
    height: 24px;
}