/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fffef8ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../images/macbook-air-all-faded-and-stuff.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.fixed-logo {
    position: fixed;
    top: 1rem;
    left: 3rem;
    z-index: 50;
    font-family: 'しまなみ JIS2004';
}

.fixed-logo h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: white;
    -webkit-text-stroke: 1px black;
    text-stroke: 1px white;
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 2rem;
}

.hero-text {
    text-align: left;
    position: relative;
    top: 109px;
}

/* Hero text animation - initial state */
.hero-text .sd {
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    width: 800px;
    max-width: calc(100% - 10px);
}

.hero-text .hero-subtitle {
    opacity: 0;
    transform: translateY(-100px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Hero text animation - animated state */
.hero-text.animate-in .sd {
    opacity: 1;
    transform: translateY(0);
}

.hero-text.animate-in .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.hero-line {
    background: rgba(255, 255, 255, 0);
    border-bottom: 3px solid #ffffffff;
    border-left: 0px solid #ffffffff;
    border-right: 0px solid #ffffffff;
    border-top: 0px solid #ffffffff;
    flex: none;
    height: 3px;
    margin: 20px 0px 10px 0px;
    opacity: 1;
    transform-origin: center left;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
    max-width: 100%;
}

.hero-title {
    font-size: 6rem;
    font-family: serif;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: white;
    margin-bottom: 1rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.5rem;
}

.hero-subtitle {
    font-family: 'Noto Serif JP';
    font-size: 22px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.05em;
}

.scroll-button {
    position: relative;
    z-index: 10;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-button button {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s;
    font-family: Lato;
}

.scroll-button button:hover {
    opacity: 0.8;
}

.chevron-down {
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* About Section */
.about-section {
    /* padding: 6rem 0;
    background: linear-gradient(to bottom, #fef3c7, #fde68a); */
    align-content: center;
    align-items: center;
    background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1), var(--g-color-2) var(--g-position-2));
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 30vh;
    justify-content: center;
    margin: 80px 0px 0px 0px;
    padding: 0px 80px 20px 80px;
    width: 100%;
    z-index: 4;
    max-width: 100%;
    --g-color-0: #ffafafc2;
    --g-position-0: 0%;
    --g-color-1: #fffef8ff;
    --g-position-1: 0%;
    --g-color-2: #f2da7aff;
    --g-position-2: 100%;
    --g-color-3: #f2da7aff;
    --g-position-3: 100%;
    --g-color-4: #f2da7aff;
    --g-position-4: 100%;
    --g-color-5: #f2da7aff;
    --g-position-5: 100%;
    --g-color-6: #f2da7aff;
    --g-position-6: 100%;
    --g-color-7: #f2da7aff;
    --g-position-7: 100%;
    --g-color-8: #f2da7aff;
    --g-position-8: 100%;
    --g-color-9: #f2da7aff;
    --g-position-9: 100%;
    --g-color-10: #f2da7aff;
    --g-position-10: 100%;
    --g-color-11: #f2da7aff;
    --g-position-11: 100%;
    --g-angle: 180deg;
}

.section-title {
    font-family: 'Noto Serif JP';
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #34251fff;
    text-shadow: 0px 0px 10px #faf9f4;
}

.section-title2 {
    color: #34251fff;
    flex: none;
    font-family: var(--s-font-d79ed253);
    font-feature-settings: 'palt' 1;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    height: auto;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-align: center;
    width: auto;
    z-index: 1;
    max-width: 100%;
    justify-content: center;
}

.about-grid {
    align-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.0);
    border-radius: 12px;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    justify-content: center;
    margin: 10px 0px 0px 0px;
    padding: 30px 25px;
    width: 100%;
    max-width: 100%;
    display: flex;
    font-family: 'Noto Serif JP';
}

.about-card {
    align-content: flex-start;
    align-items: flex-start;
    background: #ffffffff;
    box-shadow: 0px 2px 5px 3px #00000033;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    margin: 0px 0px;
    padding: 80px 60px;
    width: 865px;
    max-width: 865px;
    z-index: -2;
}

.about-card-title {
    color: #34251fff;
    flex: none;
    font-family: var(--s-font-3295f3d4);
    font-size: 36px;
    font-weight: 600;
    height: auto;
    letter-spacing: 0.05em;
    line-height: 1.7;
    padding: 0px 0px 0px 6px;
    text-align: left;
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}

.about-card-title::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 0;
    height: 8px;
    width: 109%;
    background: linear-gradient(to right, #fff202 0%, #fff202 50%, rgba(255, 242, 2, 0.3) 70%, transparent 100%);
    border-radius: 4px;
    z-index: -1;
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #fde68a;
}

.about-card p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Works Section */
.works-section {
    /* padding: 6rem 0;
    background: linear-gradient(to bottom, #fde68a, #fef3c7); */
    align-content: center;
    align-items: center;
    background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1), var(--g-color-2) var(--g-position-2));
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 30vh;
    justify-content: center;
    margin: 20px 0px 0px 0px;
    padding: 0px 80px 20px 80px;
    width: 100%;
    z-index: 4;
    max-width: 100%;
    --g-color-0: #ffafafc2;
    --g-position-0: 0%;
    --g-color-1: #fffef8ff;
    --g-position-1: 0%;
    --g-color-2: #f2da7aff;
    --g-position-2: 100%;
    --g-color-3: #f2da7aff;
    --g-position-3: 100%;
    --g-color-4: #f2da7aff;
    --g-position-4: 100%;
    --g-color-5: #f2da7aff;
    --g-position-5: 100%;
    --g-color-6: #f2da7aff;
    --g-position-6: 100%;
    --g-color-7: #f2da7aff;
    --g-position-7: 100%;
    --g-color-8: #f2da7aff;
    --g-position-8: 100%;
    --g-color-9: #f2da7aff;
    --g-position-9: 100%;
    --g-color-10: #f2da7aff;
    --g-position-10: 100%;
    --g-color-11: #f2da7aff;
    --g-position-11: 100%;
    --g-angle: 180deg;
}

.works-grid {
    /* display: grid;
    gap: 2rem; */
    align-content: center;
    align-items: center;
    background: #eeeeee00;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: auto;
    justify-content: center;
    padding: 96px 16px 96px;
    transform: translate(0px, 1px);
    width: 100%;
    max-width: 100%;
}

.work-image2 {
    /* background: #EEEEEE; */
    bottom: 0px;
    flex: none;
    height: 100%;
    left: 0;
    margin: 0 0 0 0;
    position: absolute;
    top: 0px;
    width: 50%;
    z-index: -1;
    max-width: 50%;
}

.work-image2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-decoration: none;
    border: solid 1px black;
}

a .work-card,
a:has(.work-card) {
    text-decoration: none;
}

.work-card * {
    text-decoration: none;
}

.work-content-number {
    font-family: 'Montserrat';
    color: #34251fff;
    font-size: 28px;
    font-weight: 700;
    height: auto;
    letter-spacing: 0.1em;
    line-height: 1.4;
    padding: 0px 0px 5px 0px;
    text-align: left;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

.work-content-title {
    color: #34251fff;
    font-family: 'Noto Serif JP';
    font-size: 24px;
    font-weight: 600;
    height: auto;
    line-height: 1.1;
    margin: 5px 0px;
    text-align: left;
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

.work-content-description {
    color: #34251fff;
    font-family: 'Noto Serif JP';
    font-size: 16px;
    font-weight: 400;
    height: auto;
    line-height: 1.7;
    margin: 20px 0px 0px 0px;
    text-align: left;
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
}

.work-image {
    border-radius: 4px;
    flex: none;
    height: auto;
    transform: scale(1, 1);
    transition-duration: 1000ms;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    width: calc(40% - (var(--gap-h-9adfb89d-991e-418d-a356-d32a6a346d86) * 0.6));
    max-width: calc(40% - (var(--gap-h-9adfb89d-991e-418d-a356-d32a6a346d86) * 0.6));
    display: flex;
    align-items: center;
}

.work-image-container {
    overflow: hidden;
    border-radius: 4px;
}

.work-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-image-container:hover img {
    transform: scale(1.1);
}

.work-placeholder {
    font-size: 3rem;
    font-weight: bold;
    color: #9ca3af;
}

.work-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #78350f;
}

.work-content p {
    color: #6b7280;
    line-height: 1.8;
}

/* Services Section */
.services-section {
    align-content: center;
    align-items: center;
    background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1), var(--g-color-2) var(--g-position-2));
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 30vh;
    justify-content: center;
    margin: 40px 0px 0px 0px;
    padding: 0px 80px 20px 80px;
    width: 100%;
    z-index: 4;
    max-width: 100%;
    --g-color-0: #ffafafc2;
    --g-position-0: 0%;
    --g-color-1: #fffef8ff;
    --g-position-1: 0%;
    --g-color-2: #f2da7aff;
    --g-position-2: 100%;
    --g-color-3: #f2da7aff;
    --g-position-3: 100%;
    --g-color-4: #f2da7aff;
    --g-position-4: 100%;
    --g-color-5: #f2da7aff;
    --g-position-5: 100%;
    --g-color-6: #f2da7aff;
    --g-position-6: 100%;
    --g-color-7: #f2da7aff;
    --g-position-7: 100%;
    --g-color-8: #f2da7aff;
    --g-position-8: 100%;
    --g-color-9: #f2da7aff;
    --g-position-9: 100%;
    --g-color-10: #f2da7aff;
    --g-position-10: 100%;
    --g-color-11: #f2da7aff;
    --g-position-11: 100%;
    --g-angle: 180deg;
}

.services-section2 {
    align-content: flex-start;
    align-items: flex-start;
    background: #eeeeee00;
    display: flex;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    justify-content: center;
    padding: 50px 16px 96px;
    transform: translate(0px, 1px);
    width: 100%;
    max-width: 100%;
}

.container-services {
    align-content: flex-start;
    align-items: flex-start;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 200px;
    justify-content: center;
    padding: 0px;
    width: 1080px;
    --gap-h-4c9fa957-0cfa-4b90-b614-8271a4f772a1: 200px;
    --gap-v-4c9fa957-0cfa-4b90-b614-8271a4f772a1: 0px;
    --gap-uuid: 4c9fa957 -0cfa -4b90 -b614-8271a4f772a1;
    max-width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    font-family: 'Noto Serif JP';
    position: relative;
    z-index: -2;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.service-card-title1,
.service-card-title2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #34251fff;
    /* border-bottom: 3px solid #fbbf24; */
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    font-size: 36px;
    position: relative;
    display: inline-block;
}

.service-card-title1::after,
.service-card-title2::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 0;
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #fff202 0%, #fff202 50%, rgba(255, 242, 2, 0.3) 70%, transparent 100%);
    border-radius: 4px;
    z-index: -1;
}

.service-card ul {
    list-style: none;
    padding-left: 0;
    font-size: 24px;
}

.service-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #fde68a;
}

.services-image {
    align-content: center;
    align-items: center;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 200px;
    justify-content: center;
    margin: 0px 0px 100px 0px;
    padding: 0px;
    width: 100%;
    max-width: 100%;
    display: flex;
}

.services-image-container1 {
    flex: 1;
    height: 100%;
    transform: translate(0px, 0px);
    width: auto;
    max-width: 100%;
}

.services-image-container1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-image-container2 {
    flex: 1;
    height: 100%;
    transform: translate(0px, 0px);
    width: auto;
    max-width: 100%;
}

.services-image-container2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-image-text {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

/* Skills Section */
.skills-section {
    align-content: center;
    align-items: center;
    background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1), var(--g-color-2) var(--g-position-2));
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 30vh;
    justify-content: center;
    margin: 0px 0px 0px 0px;
    padding: 0px 80px 20px 80px;
    width: 100%;
    z-index: 4;
    max-width: 100%;
    --g-color-0: #ffafafc2;
    --g-position-0: 0%;
    --g-color-1: #fffef8ff;
    --g-position-1: 0%;
    --g-color-2: #f2da7aff;
    --g-position-2: 100%;
    --g-color-3: #f2da7aff;
    --g-position-3: 100%;
    --g-color-4: #f2da7aff;
    --g-position-4: 100%;
    --g-color-5: #f2da7aff;
    --g-position-5: 100%;
    --g-color-6: #f2da7aff;
    --g-position-6: 100%;
    --g-color-7: #f2da7aff;
    --g-position-7: 100%;
    --g-color-8: #f2da7aff;
    --g-position-8: 100%;
    --g-color-9: #f2da7aff;
    --g-position-9: 100%;
    --g-color-10: #f2da7aff;
    --g-position-10: 100%;
    --g-color-11: #f2da7aff;
    --g-position-11: 100%;
    --g-angle: 180deg;
}

.skills-grid {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem; */
}

.skill-card {
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    font-family: 'Noto Serif JP';
    z-index: -2;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.skill-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skill-card2 {
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    font-family: 'Noto Serif JP';
    z-index: -2;
    display: flex;
    justify-content: center;
    align-items: center;    
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.skill-card2.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skill-card-title1, .skill-card-title2, .skill-card-title3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #34251fff;
    font-size: 36px;
    position: relative;
    display: inline-block;
}

.skill-card-title1::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 0;
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #fff202 0%, #fff202 50%, rgba(255, 242, 2, 0.3) 70%, transparent 100%);
    border-radius: 4px;
    z-index: -1;
}

.skill-card-title2::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 0;
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #fff202 0%, #fff202 50%, rgba(255, 242, 2, 0.3) 70%, transparent 100%);
    border-radius: 4px;
    z-index: -1;
}

.skill-card-title3::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 0;
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #fff202 0%, #fff202 50%, rgba(255, 242, 2, 0.3) 70%, transparent 100%);
    border-radius: 4px;
    z-index: -1;
}

.skill-card-content-container {
    align-content: center;
    align-items: center;
    /* background: #ffffffff; */
    border-bottom: 0px solid #00000000;
    border-left: 0px solid #00000000;
    border-radius: 32px;
    border-right: 0px solid #00000000;
    border-top: 0px solid #00000000;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: calc(100% - 4px);
    justify-content: center;
    margin: 2px 2px 2px 2px;
    width: auto;
    max-width: calc(100% - 4px);
    margin-bottom: 23px;
}

.skill-card-content-container2 {
    align-content: center;
    align-items: center;
    /* background: #ffffffff; */
    border-bottom: 0px solid #00000000;
    border-left: 0px solid #00000000;
    border-radius: 32px;
    border-right: 0px solid #00000000;
    border-top: 0px solid #00000000;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: calc(100% - 4px);
    justify-content: center;
    margin: 2px 2px 2px 2px;
    width: auto;
    max-width: calc(100% - 4px);
}

.skill-card-content {
    font-family: 'しまなみ JIS2004';
    font-size: 24px;
    color: #34251fff;
    border: 2px solid #f59e0b;
    border-radius: 6.5rem;
    padding: 0.3rem 1.5rem;
    display: inline-block;
    padding-bottom: 8px;
}

.skill-card-content2 {
    font-family: 'しまなみ JIS2004';
    font-size: 36px;
    color: #34251fff;
    /* border: 2px solid #f59e0b; */
    /* border-radius: 6.5rem; */
    padding: 0.3rem 1.5rem;
    display: inline-block;
    padding-bottom: 8px;
    font-weight: 600;
}

.skill-card2-container {
    border: solid 2px black;
    width: 28%;
    padding: 25px;
    border-radius: 15px;
}

.software-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.software-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fef3c7;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #78350f;
}

/* Contact Section */
.contact-section {
    align-content: center;
    align-items: center;
    background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1), var(--g-color-2) var(--g-position-2));
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap;
    height: 30vh;
    justify-content: center;
    margin: 50px 0px 0px 0px;
    padding: 0px 80px 20px 80px;
    width: 100%;
    z-index: 4;
    max-width: 100%;
    --g-color-0: #ffafafc2;
    --g-position-0: 0%;
    --g-color-1: #fffef8ff;
    --g-position-1: 0%;
    --g-color-2: #f2da7aff;
    --g-position-2: 100%;
    --g-color-3: #f2da7aff;
    --g-position-3: 100%;
    --g-color-4: #f2da7aff;
    --g-position-4: 100%;
    --g-color-5: #f2da7aff;
    --g-position-5: 100%;
    --g-color-6: #f2da7aff;
    --g-position-6: 100%;
    --g-color-7: #f2da7aff;
    --g-position-7: 100%;
    --g-color-8: #f2da7aff;
    --g-position-8: 100%;
    --g-color-9: #f2da7aff;
    --g-position-9: 100%;
    --g-color-10: #f2da7aff;
    --g-position-10: 100%;
    --g-color-11: #f2da7aff;
    --g-position-11: 100%;
    --g-angle: 180deg;
}

.contact-description {
    text-align: center;
    margin-bottom: 3rem;
    color: #34251fff;
    line-height: 1.8;
    text-align: left;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 25px;
    margin-bottom: 50px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #34251fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #fde68a;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: border-color 0.3s;
    line-height: 24px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #f2da7aff;
    color: #34251fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: rgb(209, 186, 93);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: #78350f;
    color: white;
    text-align: center;
}

/* Responsive Design */
/* タブレット向け（768px〜1024px） */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 0 1.5rem;
    }

    .fixed-logo {
        left: 2rem;
        top: 0.8rem;
    }

    .fixed-logo h1 {
        font-size: 3rem;
    }

    .hero-text .sd {
        width: 70vw;
        max-width: calc(100% - 10px);
    }

    .hero-text {
        top: 80px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .about-section, .works-section, .services-section, .skills-section, .contact-section {
        padding: 0px 40px 20px 40px;
    }

    .about-card {
        width: 100%;
        max-width: 100%;
        padding: 60px 40px;
    }

    /* About Section */
    .about-section2 {
        padding: 40px 0;
    }

    /* About Section内の画像を調整 */
    .about-section2 .sd {
        display: none;
    }

    .work-card {
        grid-template-columns: 500px 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .works-section2 {
        position: relative;
    }

    .work-image2 {
        width: 40%;
    }

    .container-services {
        gap: 100px;
        width: 100%;
    }

    .services-section2 {
        padding: 40px 16px;
    }

    .skills-section2 {
        padding: 40px 16px;
    }

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

    .skill-card2-container {
        width: 100%;
    }

    .contact-section2 {
        padding: 40px 16px;
    }
}

/* スマートフォン向け（768px以下） */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .fixed-logo {
        left: 1rem;
        top: 0.8rem;
    }

    .fixed-logo h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .hero-section {
        height: 100vh;
        min-height: 600px;
    }

    .hero-content {
        padding: 0 1rem;
        justify-content: center;
        align-items: flex-start;
    }

    .hero-text {
        top: 120px;
        text-align: center;
    }

    .hero-text .sd {
        width: 90vw;
        max-width: calc(100% - 20px);
        margin: 0 auto;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 18px;
        text-align: center;
    }

    .hero-line {
        margin: 20px auto 10px;
        max-width: 90%;
    }

    .scroll-button {
        padding-bottom: 2rem;
    }

    /* About Section */
    .about-section, .works-section, .services-section, .skills-section, .contact-section {
        height: 25vh;
        min-height: 200px;
        padding: 0px 20px 20px 20px;
        margin: 40px 0px 0px 0px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-title2 {
        font-size: 20px;
    }

    .about-grid {
        padding: 20px 15px;
    }

    .about-card {
        width: 100%;
        max-width: 100%;
        padding: 40px 25px;
        margin: 0;
    }

    .about-card-title {
        font-size: 28px;
    }

    /* About Section */
    .about-section2 {
        padding: 30px 0;
    }

    .about-section2 .container {
        position: relative;
    }

    /* About Section内の画像を非表示または調整 */
    .about-section2 .sd {
        display: none;
    }

    /* Works Section */
    .works-section2 {
        position: relative;
        padding: 50px 0px 50px;
    }

    .work-image2 {
        display: none;
    }

    .works-grid {
        padding: 50px 16px;
    }

    .work-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        margin-bottom: 30px;
    }

    .work-content-number {
        font-size: 24px;
    }

    .work-content-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .work-content-description {
        font-size: 15px;
    }

    .work-image {
        width: 100%;
        max-width: 100%;
        order: -1;
    }

    /* Services Section */
    .services-section2 {
        padding: 50px 16px;
    }

    .container-services {
        width: 100%;
        gap: 40px;
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 500px;
    }

    .service-card {
        opacity: 1;
        transform: translateX(0);
        width: 100%;
    }

    .service-card-title1, .service-card-title2 {
        font-size: 28px;
    }

    .service-card-title1::after,
    .service-card-title2::after {
        width: 100%;
    }

    .service-card ul {
        font-size: 20px;
    }

    .services-image {
        height: 150px;
        margin: 0px 0px 50px 0px;
    }

    /* Skills Section */
    .skills-section2 {
        padding: 50px 16px;
    }

    .skills-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .skill-card {
        width: 100%;
        max-width: 500px;
    }

    .skill-card-title1, .skill-card-title2, .skill-card-title3 {
        font-size: 28px;
    }

    .skill-card-title1::after,
    .skill-card-title2::after,
    .skill-card-title3::after {
        width: 100%;
    }

    .skill-card-content {
        font-size: 20px;
    }

    .skill-card-content2 {
        font-size: 28px;
    }

    .skill-card2 {
        width: 100%;
        max-width: 500px;
        margin-bottom: 20px;
    }

    .skill-card2-container {
        width: 100%;
    }

    /* Contact Section */
    .contact-section2 {
        padding: 50px 16px;
    }

    .contact-form {
        max-width: 100%;
        padding: 1.5rem;
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .contact-description {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.6rem;
    }
}

/* 小型スマートフォン向け（480px以下） */
@media (max-width: 480px) {
    .fixed-logo {
        left: 0.8rem;
        top: 0.5rem;
    }

    .fixed-logo h1 {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }

    .hero-section {
        min-height: 500px;
    }

    .hero-content {
        padding: 0 0.8rem;
    }

    .hero-text {
        top: 100px;
    }

    .hero-text .sd {
        width: 95vw;
        max-width: calc(100% - 20px);
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .scroll-button button {
        font-size: 1rem;
    }

    /* About Section */
    .about-section, .works-section, .services-section, .skills-section, .contact-section {
        height: 20vh;
        min-height: 150px;
        padding: 0px 15px 15px 15px;
        margin: 30px 0px 0px 0px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title2 {
        font-size: 18px;
    }

    /* About Section */
    .about-section2 {
        padding: 20px 0;
    }

    .about-card {
        padding: 30px 20px;
    }

    .about-card-title {
        font-size: 24px;
    }

    .about-section2 .sd {
        display: none;
    }

    /* Works Section */
    .works-grid {
        padding: 30px 10px;
    }

    .work-card {
        padding: 1rem;
        gap: 1rem;
    }

    .work-content-number {
        font-size: 20px;
    }

    .work-content-title {
        font-size: 18px;
    }

    .work-content-description {
        font-size: 14px;
        margin-top: 15px;
    }

    /* Services Section */
    .services-section2 {
        padding: 30px 10px;
    }

    .container-services {
        gap: 30px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card-title1, .service-card-title2 {
        font-size: 24px;
    }

    .service-card ul {
        font-size: 18px;
    }

    .services-image {
        height: 120px;
        margin: 0px 0px 40px 0px;
    }

    /* Skills Section */
    .skills-section2 {
        padding: 30px 10px;
    }

    .skill-card-title1, .skill-card-title2, .skill-card-title3 {
        font-size: 24px;
        margin-bottom: 1rem;
    }

    .skill-card-content {
        font-size: 18px;
        padding: 0.25rem 1rem;
    }

    .skill-card-content2 {
        font-size: 24px;
    }

    .skill-card2-container {
        padding: 20px;
    }

    /* Contact Section */
    .contact-section2 {
        padding: 30px 10px;
    }

    .contact-form {
        padding: 1rem;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .contact-description {
        font-size: 14px;
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.5rem;
    }

    .submit-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}
