/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* スクロールアニメーション用の基本クラス */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-animate-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scroll-animate-scale.animate {
    opacity: 1;
    transform: scale(1);
}

.scroll-animate-delay-1 {
    transition-delay: 0.2s;
}

.scroll-animate-delay-2 {
    transition-delay: 0.4s;
}

.scroll-animate-delay-3 {
    transition-delay: 0.6s;
}

.scroll-animate-delay-4 {
    transition-delay: 0.8s;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    white-space: nowrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-right: 240px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo:hover {
    color: #ccc;
}

.nav-links {
    display: flex;
    list-style: none;
    white-space: nowrap;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #ccc;
}

/* メインコンテンツ */
main {
    margin-top: 0;
    width: 100%;
}

section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ヒーローセクション */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
/*    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero-bg.png');*/
    background: linear-gradient(#242b34b8, rgb(0 0 0 / 78%)), url(images/hero-bg6.png);
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    color: #fff;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-image {
    margin-top: 2rem;
    z-index:1;
}

.hero-image img {
    width: 500px;
    height: auto;
    max-width: 100%;
}

.hero-contact {
    margin-top: 2rem;
    text-align: center;
}

.hero-contact .line-message {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-contact .line-button {
    display: inline-block;
    background: #06C755;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-contact .line-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #05a548;
}

.hero-text-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem auto 0;
    max-width: 1200px;
    padding: 0 5%;
    z-index:1;
}

.hero-text-left {
    text-align: center;
}

.guarantee-text {
    font-size: 1.2rem !important;
    color: #fff;
    margin: 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.guarantee-title {
    font-size: 3.0rem !important;
    font-weight: 700;
    color: #fff;
    margin: 0 !important;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text-right {
    text-align: left;
}

.hero-text-right .material-icons {
    font-size:14px;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    color: #fff;
    font-size: 1.2rem !important;
    margin: 0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* セクションタイトル */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
    position: relative;
    padding: 0 1rem;
}

section h2 span {
    padding: 0 1rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* パララックス背景 */
.about, .services, .works, .production, .contact {
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    margin: 0;
    padding: 5rem 0;
    position: relative;
}

.about::before, .services::before, .works::before, .production::before, .contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.about::before {
    background-image: url('images/about-bg.jpg');
}

.services::before {
    background-image: url('images/services-bg.jpg');
}

.works::before {
    background-image: url('images/works-bg.jpg');
}

.production::before {
    background-image: url('images/works-flow-bg.jpg');
}

.contact::before {
    background-image: url('images/contact-bg.jpg');
}

/* 制作の流れセクション */
.production {
    background-color: #f8f9fa;
    position: relative;
    z-index: 1;
}

.production-content {
    position: relative;
    z-index: 2;
}

/* セクション内のコンテンツ */
section > * {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* 選ばれる理由セクション */
.reason-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.reason-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    gap: 3rem;
}

.reason-item:last-child {
    margin-bottom: 0;
}

.reason-item.reverse {
    flex-direction: row-reverse;
}

.reason-image {
    flex: 1;
    max-width: 500px;
    height: 330px;
    overflow: hidden;
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reason-text {
    flex: 1;
}

.reason-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.reason-text p {
    color: #666;
    line-height: 1.8;
}

/* プラン/料金セクション */
.plans {
    background-color: #f8f9fa;
    padding: 5rem 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.plans::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    background-image: url('images/plans-bg.jpg');
}

.plan-content {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.plan-item {
    width:100%;
    opacity: 0.8;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-5px);
}

.plan-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2B6CB0;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.plan-details {
    color: #666;
}

.plan-details h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem;
    color: #333;
}

.plan-details p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.plan-details ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-details ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.plan-details ul li:before {
    content: "・";
    position: absolute;
    left: 0;
    color: #2B6CB0;
}

.plan-details .class-price {
    text-align:center;
    font-size:1.2em;
    margin-bottom:0;
}

.plan-details .class-price .price {
    font-weight: 700;
    font-size:2.0em;
}

.plan-details .class-price-monthly {
    text-align:center;
    margin-bottom:30px;
}

.plan-details .class-price-monthly .price {
    font-weight: 700;
    font-size:1.6em;
}

.plan-desc {
    background: #2B6CB0;
    color: #fff;
    border-radius: 10px;
    text-align:center;
    padding: 10px 10px;
    width: 70%;
    margin :auto;
    margin-bottom :40px;
}

.plan-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.plan-note p {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .plan-content {
        flex-direction: column; /* 縦並びに変更 */
        gap: 2rem; /* 子要素間の間隔も調整 */
    }

    .plan-item {
        padding: 1.5rem;
    }

    .plan-item h3 {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
    }

    .plan-details h4 {
        font-size: 1.1rem;
        margin: 1.2rem 0 0.6rem;
    }

    .plan-details p {
        font-size: 0.95rem;
    }

    .plan-details ul li {
        font-size: 0.95rem;
    }

    .plan-note p {
        font-size: 0.85rem;
    }
}

/* 制作の流れセクション */
.production-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.production-step {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.production-step:hover {
    transform: translateY(-5px);
}

.step-header {
    background: #2B6CB0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.8rem;
    text-align: center;
}

.step-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.step-content {
    padding: 1.5rem;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.step-note {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .works-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        overflow-x: visible;
        white-space: normal;
        width: 100%;
    }

    .work-item {
        flex: none;
        width: auto;
        white-space: normal;
    }

    .scroll-indicator {
        display: none;
    }

    .production-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-text-left, .hero-text-right {
        width: 100%;
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: center !important;
    }

    .feature-list li {
        font-size: 1.1rem !important;
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .logo {
        margin-right: 0;
    }

    .nav-links {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .hero-image img {
        width: 100%;
        max-width: 500px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .production-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        padding: 2rem 1.5rem;
    }

    .contact-text h2 {
        font-size: 2.1rem !important;
    }

    .contact-text p {
        font-size: 1.1rem;
    }

    .line-contact {
        padding: 1.5rem;
    }

    .line-button {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }

    .reason-item {
        flex-direction: column !important;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .reason-item:last-child {
        margin-bottom: 0;
    }

    .reason-item.reverse {
        flex-direction: column !important;
        display: flex !important;
    }

    .reason-image {
        max-width: 100% !important;
        height: 250px !important;
        order: 1 !important;
    }

    .reason-text {
        text-align: center !important;
        width: 100% !important;
        order: 2 !important;
    }

    .reason-item.reverse .reason-image {
        order: 1 !important;
    }

    .reason-item.reverse .reason-text {
        order: 2 !important;
    }

    .message-title {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .message-text {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .feature-list li {
        font-size: 1.1rem !important;
    }

    .hero {
        position: relative;
        background: url(images/hero-bg6.png);
        background-position: calc(50% - 60px) center;
        background-size: cover;
        background-repeat: no-repeat;
        min-height: 100vh;
        height: auto;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(#242b34b8, rgb(0 0 0 / 78%));
    }


    .about, .services, .works, .production, .contact {
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    .about::before, .services::before, .works::before, .production::before, .contact::before {
        background-attachment: scroll !important;
        background-position: center center !important;
    }

    section h2 {
        font-size: 2.1rem !important;
    }

    .contact-text h2 {
        font-size: 2.1rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .guarantee-title {
        font-size: 2.5rem !important;
    }

    .guarantee-text {
        font-size: 1.2rem !important;
    }

    .feature-list li {
        font-size: 1rem !important;
    }

    .contact-text h2 {
        font-size: 1.8rem;
    }

    .contact-text p {
        font-size: 1rem;
    }

    .line-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* お問い合わせセクション */
.contact {
    background-color: #f8f9fa;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 5%;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #06C755, #2B6CB0);
}

.contact-text {
    margin-bottom: 2.5rem;
}

.contact-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #333;
    position: relative;
    display: inline-block;
}

.contact-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #06C755;
    border-radius: 3px;
}

.contact-text p {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.line-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 2.5rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.line-button {
    display: inline-block;
    background: #06C755;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
    position: relative;
    overflow: hidden;
}

.line-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.line-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.4);
    background: #05a548;
}

.line-button:hover::before {
    left: 100%;
}

/* フッター */
footer {
    text-align: center;
    padding: 2rem;
    background: #1e5a9f;
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-logo:hover {
    color: #ccc;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ccc;
}

.copyright {
    font-size: 0.9rem;
    color: #ccc;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }

    .footer-logo img {
        height: 40px;
    }
}

.partner-section {
    margin: 2rem 0;
    text-align: center;
    display: none;
}

.partner-text {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.partner-logo {
    max-width: 200px;
    height: auto;
    background: #fff;
    padding: 0.5rem;
    border-radius: 10px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .partner-section {
        margin: 1.5rem 0;
    }

    .partner-text {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .partner-logo {
        max-width: 150px;
    }
}

/* バーガーメニュー */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .burger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* メインメッセージセクション */
.main-message {
    /* background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-bg.png'); */
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.message-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.message-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.message-text {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-message {
        padding: 3rem 0;
    }

    .message-content {
        padding: 0 1rem;
    }

    .message-title {
        font-size: 1.3rem !important;
        margin-bottom: 1rem;
    }

    .message-text {
        font-size: 1.1rem;
    }
}

/* 制作実績セクション */
.works {
    /* display: none !important; */
    overflow: hidden;
}
.works p {
    margin-top: 0.5em;
}

.works-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
}

.scroll-indicator:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.scroll-indicator.left {
    left: 10px;
}

.scroll-indicator.right {
    right: 10px;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    font-size: 27px;
    font-weight: bold;
    margin-top: -5px;
    margin-left: 1px;
}

/* 制作実績セクション */
.works-grid {
    display: flex;
    gap: 2rem;
    padding: 0 5%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.works-grid::-webkit-scrollbar {
    height: 8px;
}

.works-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.works-grid::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.works-grid::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.work-item {
    flex: 0 0 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    white-space: normal;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.work-item h3 {
    padding: 1rem;
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.work-item p {
    padding: 0 1rem 1rem;
    color: #666;
    font-size: 0.95rem;
}

.work-item a {
    display: inline-block;
    color: #2B6CB0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #2B6CB0;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.work-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 108, 176, 0.1), transparent);
    transition: 0.5s;
}

.work-item a:hover {
    background: #2B6CB0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.3);
}

.work-item a:hover::before {
    left: 100%;
}

.work-item a:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(43, 108, 176, 0.3);
}

.work-item a::after {
    content: ' ↗';
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.work-item a:hover::after {
    opacity: 1;
}

/* 4番目の制作実績を非表示 */
.work-item:nth-child(4) {
    /* display: none; */
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .works-container {
        padding: 0 1rem;
    }

    .works-grid {
        display: flex;
        gap: 1rem;
        padding: 0;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        flex-wrap: nowrap;
        width: 100%;
    }

    .work-item {
        flex: 0 0 280px;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        white-space: normal;
    }

    .scroll-indicator {
        display: flex;
        width: 35px;
        height: 35px;
        font-size: 18px;
        line-height: 1;
        text-align: center;
    }

    .scroll-indicator.left {
        left: 5px;
    }

    .scroll-indicator.right {
        right: 5px;
    }

    .work-item img {
        height: 180px;
    }

    .work-item h3 {
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    .work-item p {
        font-size: 0.9rem;
        padding: 0 0.8rem 0.8rem;
    }

    .work-item a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* サービスセクション */
.services {
    background-color: #f8f9fa;
    padding: 5rem 0;
    position: relative;
}

.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-category {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2B6CB0, #4299E1);
}

.service-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-category h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.service-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #2B6CB0;
    border-radius: 3px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #2B6CB0;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 3rem 0;
    }

    .services-content {
        padding: 0 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .service-category {
        padding: 1.5rem;
    }

    .service-category h3 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .service-list li {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
} 