/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

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

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

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

/* Global Navigation */
.global-nav ul {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-nav li {
    flex: 0 1 auto;
    text-align: center;
}

.global-nav li:not(.logo) {
    margin-left: 80px;
}

.global-nav li.logo {
    margin-right: 150px;
}

.nav-group {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.logo-image {
    height: 60px;
    width: auto;
    vertical-align: middle;
}

.global-nav a {
    text-decoration: none;
    color: #254678;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.global-nav a:hover {
    color: #FF6B00;
}

.nav-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
}

.global-nav a:hover .nav-icon {
    opacity: 0.7;
}

/* Navigation Icons */
.news-icon {
    background-image: url('images/icon-news.png');
}

.service-icon {
    background-image: url('images/icon-service.png');
}

.works-icon {
    background-image: url('images/icon-works.png');
}

.flow-icon {
    background-image: url('images/icon-flow.png');
}

.company-icon {
    background-image: url('images/icon-company.png');
}

.contact-icon {
    background-image: url('images/icon-contact.png');
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    z-index: 10;
    transition: background-color 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s;
}

.hero-dot.active {
    background: #fff;
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 80px;
    text-align: left;
    color: white;
    z-index: 2;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 28px;
    font-weight: bold;
}

/* News Section */
.news {
    padding: 120px 20px;
    background-color: #fff;
}

.news h2,
.works h2,
.flow h2,
.company h2,
.contact h2 {
    font-size: 32px;
    margin-bottom: 60px;
    text-align: center;
    color: #000;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services h2 {
    font-size: 32px;
    margin-bottom: 60px;
    text-align: center;
    color: #fff;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news h2::after,
.services h2::after,
.works h2::after,
.flow h2::after,
.company h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 3px;
    background-color: #FF6B00;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.news-item .date {
    width: 140px;
    color: #666;
    font-size: 15px;
}

.news-item a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.news-item a:hover {
    color: #FF6B00;
}

/* Services Section */
.services {
    width: 100%;
    padding: 120px 20px;
    position: relative;
    background: url('images/background.png') no-repeat 100% top;
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    /* ２列 */
    /* grid-template-columns: repeat(2, 1fr);
    gap: 80px; */
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 100px;
    position: relative;
    z-index: 1;
    /* ２列 */
    /* padding: 0 60px; */
    padding: 0 40px;
}

.service-item {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.3s;
    border-radius: 0; /* 角を直角に戻す */
}

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

.service-item .image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.service-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.service-item .image-container .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}


.service-item h3 {
    font-size: 22px;
    padding: 15px 15px 8px;
    margin: 0;
    text-align: center;
    font-weight: bold;
    color: #254678;
}

.service-item p {
    font-size: 16px;
    padding: 0 15px 15px;
    text-align: center;
    color: #333;
}

/* 塗装工事の料金表示用に追加 */
.service-item:nth-child(1) p:last-child {
    color: #333;
}

.service-item:nth-child(1) p:last-child .price,
.service-item:nth-child(1) p:last-child .tax {
    color: #FF6B00;
}

.service-item:nth-child(1) p:last-child .tax {
    font-size: 12px;
    font-weight: normal;
}

/* Works Section */
.works {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.works::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 38%;
    height: 100%;
    background-color: #254678;
    z-index: 0;
}

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.work-item {
    display: flex;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 40px 20px;
}

.work-image {
    width: 50%;
    height: 400px;
    overflow: hidden;
}

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

.work-content {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-content h3 {
    color: #254678;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: normal;
    text-align: center;
}

.work-content p {
    width: 60%;
    margin: 0 auto;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Flow Section */
.flow {
    padding: 120px 20px;
    background-color: #fff;
}

.flow-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.flow-item {
    display: block;
    margin-bottom: 60px;
    position: relative;
    background-color: #fff;
    border: none;
    padding: 0;
    width: 100%;
}

.flow-number {
    background-color: #254678;
    color: #fff;
    font-size: 20px;
    font-weight: normal;
    padding: 15px 30px;
    margin: 0;
    min-width: auto;
    text-align: left;
    display: flex;
    align-items: center;
}

.flow-number span {
    margin: 0 20px;
}

.flow-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 30px;
    border: 1px solid #254678;
    border-top: none;
    background: #fff;
}

.flow-image {
    width: 400px;
    height: 250px;
    overflow: hidden;
}

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

.flow-content p {
    flex: 1;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin: auto 0;
    padding-right: 0;
}

.flow-arrow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 20px solid #254678;
    background-image: none;
}

.flow-arrow::after {
    display: none;
}

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

.flow-item:last-child .flow-arrow {
    display: none;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .header-inner {
        max-width: 90%;
    }

    .logo-image {
        height: calc(45px + (60 - 45) * ((100vw - 480px) / (1600 - 480)));
    }

    .nav-icon {
        width: calc(28px + (38 - 28) * ((100vw - 480px) / (1600 - 480)));
        height: calc(28px + (38 - 28) * ((100vw - 480px) / (1600 - 480)));
        margin-bottom: calc(4px + (8 - 4) * ((100vw - 480px) / (1600 - 480)));
    }

    .global-nav a {
        font-size: calc(12px + (16 - 12) * ((100vw - 480px) / (1600 - 480)));
    }

    .global-nav li:not(.logo) {
        margin-left: calc(15px + (80 - 15) * ((100vw - 480px) / (1600 - 480)));
    }

    .global-nav li.logo {
        margin-right: calc(30px + (150 - 30) * ((100vw - 480px) / (1600 - 480)));
    }
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        /* ２列 */
        /* gap: 60px;
        padding: 0 40px; */
        gap: 40px;
        padding: 0 30px;
        max-width: 1200px;
    }

    .works::before {
        width: 38%;
    }

    .work-item {
        margin: 0 15px;
    }

    .work-content {
        padding: 30px;
    }

    .flow-content {
        gap: 30px;
        padding: 25px;
    }

    .flow-image {
        width: 350px;
        height: 220px;
    }

    .flow-content p {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: #fff;
        transition: all 0.3s;
        padding-top: 60px;
        z-index: 99;
    }

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

    .global-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }

    .global-nav li {
        margin: 15px 0;
    }

    .global-nav li:not(.logo) {
        margin: 15px 0;
        width: 100%;
    }

    .global-nav li.logo {
        display: none;
    }

    .logo-mobile {
        display: flex;
        align-items: center;
    }

    .logo-mobile img {
        height: 45px;
        width: auto;
        display: block;
    }

    .global-nav a {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
        margin: 0;
    }

    .services {
        background: url('images/background.png') no-repeat center center;
        background-size: 230% auto;
        background-position: top center;
        padding: 80px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .news {
        padding: 80px 20px;
    }

    .news h2,
    .works h2,
    .flow h2,
    .company h2,
    .contact h2,
    .services h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .news h2::after,
    .services h2::after,
    .works h2::after,
    .flow h2::after,
    .company h2::after,
    .contact h2::after {
        width: 80%;
    }

    .service-item img {
        height: 240px;
    }

    .service-item h3 {
        font-size: 20px;
        padding: 12px 15px 8px;
    }

    .service-item p {
        font-size: 15px;
        padding: 0 15px 12px;
    }

    .service-item p:last-child {
        font-size: 17px;
        padding: 5px 15px 15px;
    }

    .works {
        padding: 80px 0;
    }

    .works::before {
        width: 20%;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .work-item {
        flex-direction: column;
        margin: 0 15px;
    }

    .work-image {
        width: 100%;
        height: 240px;
    }

    .work-content {
        width: 100%;
        padding: 20px;
    }

    .work-content h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .work-content p {
        font-size: 14px;
    }

    .flow {
        padding: 80px 20px;
    }

    .flow-item {
        margin-bottom: 50px;
    }

    .flow-number {
        font-size: 18px;
        padding: 12px 25px;
    }

    .flow-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .flow-image {
        width: 100%;
        height: 200px;
    }

    .flow-content p {
        font-size: 14px;
    }

    .flow-arrow {
        bottom: -30px;
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-top: 15px solid #254678;
    }

    .contact-content {
        padding: 30px 20px;
    }

    .hero-content {
        bottom: 40px;
        left: 40px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
	
    .hero-content h1 span {
        display: block;
        margin-bottom: 5px;
    }
    
    .hero-content p {
        font-size: 20px;
    }

    .hero-dots {
        bottom: 20px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .slider-prev,
    .slider-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .service-dots {
        bottom: 10px;
        gap: 6px;
    }

    .service-dots .dot {
        width: 8px;
        height: 8px;
    }
}

@media (min-width: 769px) {
    .logo-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }

    .header-inner {
        max-width: 100%;
        padding: 0 15px;
    }

    .global-nav {
        width: 250px;
        padding: 80px 20px;
    }

    .logo-image {
        height: 50px;
    }

    .global-nav li:not(.logo) {
        flex: 0 0 50%;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .global-nav a {
        font-size: 12px;
    }

    .news {
        padding: 60px 20px;
    }

    .news h2,
    .works h2,
    .flow h2,
    .company h2,
    .contact h2,
    .services h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .news h2::after,
    .works h2::after,
    .flow h2::after,
    .company h2::after,
    .contact h2::after,
    .services h2::after {
        width: 80%;
    }

    .service-item h3 {
        font-size: 18px;
        padding: 10px 15px 8px;
    }

    .service-item p {
        font-size: 14px;
        padding: 0 15px 10px;
    }

    .service-item p:last-child {
        font-size: 16px;
        padding: 5px 15px 12px;
    }

    .works::before {
        width: 15%;
    }

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

    .work-content p {
        font-size: 14px;
    }

    .flow-item {
        margin-bottom: 40px;
    }

    .flow-number {
        font-size: 16px;
        padding: 10px 20px;
    }

    .flow-content {
        padding: 15px;
        gap: 15px;
    }

    .flow-image {
        height: 180px;
    }

    .flow-content p {
        font-size: 13px;
    }

    .flow-arrow {
        bottom: -25px;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
        border-top: 12px solid #254678;
    }

    .footer-nav {
        margin-bottom: 20px;
    }

    .footer-nav ul {
        gap: 8px;
        max-width: 300px;
        padding: 0 10px;
    }

    .footer-nav li {
        width: calc(33.33% - 8px);
        min-width: auto;
    }

    .footer-nav li:nth-last-child(-n+3) {
        width: calc(33.33% - 8px);
    }

    .footer-nav a {
        font-size: 11px;
        padding: 3px 2px;
        letter-spacing: -0.5px;
    }

    .copyright {
        font-size: 11px;
    }

    .contact-content {
        padding: 20px 15px;
    }
}

/* Company Section */
.company {
    padding: 120px 20px;
    background-color: #fff;
}

.company-info {
    max-width: 1030px;
    margin: 0 auto 60px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.company-table {
    width: 1030px;
    border-collapse: collapse;
    border-left: 1px solid #254678;
    border-right: 1px solid #254678;
}

.company-table tr {
    border-top: 1px solid #254678;
    border-bottom: 1px solid #254678;
}

.company-table th {
    width: 25%;
    padding: 25px 30px;
    text-align: left;
    font-weight: normal;
    color: #333;
    vertical-align: top;
    border-right: 1px solid #254678;
}

.company-table td {
    width: 75%;
    padding: 25px 30px;
    color: #333;
}

.company-maps {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1030px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.company iframe {
    display: block;
    width: 500px;
    height: 400px;
}

@media (max-width: 1200px) {
    .company-info,
    .company-maps {
        padding: 0 15px;
    }

    .company-table {
        width: 100%;
    }

    .company iframe {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .company {
        padding: 80px 20px;
    }

    .company-info {
        margin-bottom: 40px;
    }

    .company-table th {
        width: 30%;
        padding: 20px;
    }

    .company-table td {
        width: 70%;
        padding: 20px;
    }

    .company-maps {
        flex-direction: column;
        gap: 15px;
    }

    .company iframe {
        width: 100%;
        height: 350px;
    }
}

@media (max-width: 480px) {
    .company-info {
        margin-bottom: 30px;
    }

    .company-table th,
    .company-table td {
        padding: 15px;
        font-size: 14px;
    }

    .company iframe {
        height: 300px;
    }
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    text-align: center;
}

.contact-text {
    font-size: 18px;
    color: #254678;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.contact-phone {
    font-size: 36px;
    color: #254678;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.contact-hours {
    font-size: 16px;
    color: #666;
    margin: 0;
    white-space: nowrap;
}

.contact-instagram {
    display: block;
}

.contact-instagram img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Footer */
.footer {
    background-color: #254678;
    padding: 40px 20px;
    color: #fff;
}

.footer-nav {
    max-width: 800px;
    margin: 0 auto 30px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav li {
    flex: 0 1 auto;
    text-align: center;
    min-width: 90px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    display: block;
    padding: 5px 8px;
    white-space: nowrap;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 20px;
    }

    .contact-content {
        padding: 30px 20px;
    }

    .contact-text {
        font-size: 16px;
    }

    .contact-info {
        gap: 30px;
    }

    .contact-details {
        gap: 3px;
    }

    .contact-phone {
        font-size: 32px;
    }

    .contact-hours {
        font-size: 14px;
    }

    .contact-instagram img {
        width: 120px;
        height: 120px;
    }

    .footer-nav ul {
        gap: 15px;
        justify-content: center;
        max-width: 600px;
    }

    .footer-nav li {
        min-width: 80px;
    }

    .footer-nav a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 40px 15px;
    }

    .contact-content {
        padding: 20px 15px;
    }

    .contact-text {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .contact-details {
        gap: 2px;
    }

    .contact-phone {
        font-size: 24px;
    }

    .contact-hours {
        font-size: 13px;
    }

    .contact-instagram img {
        width: 300px;
        height: 300px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-nav {
        margin-bottom: 20px;
    }

    .footer-nav ul {
        gap: 8px;
        max-width: 300px;
        padding: 0 10px;
    }

    .footer-nav li {
        width: calc(33.33% - 8px);
        min-width: auto;
    }

    .footer-nav li:nth-last-child(-n+3) {
        width: calc(33.33% - 8px);
    }

    .footer-nav a {
        font-size: 11px;
        padding: 3px 2px;
        letter-spacing: -0.5px;
    }

    .copyright {
        font-size: 11px;
    }
}

/* TOPへ戻るボタン */
#to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #254678;
    color: #fff;
    border: 0.1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    transform: rotate(-90deg);
    padding: 0;
    line-height: 1;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

#to-top.visible {
    opacity: 1;
    visibility: visible;
}

#to-top:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    #to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
} 

.new-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF6B00;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 5px 18px;
    border-radius: 20px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    letter-spacing: 2px;
    display: inline-block;
}

@media (max-width: 768px) {
  .new-badge {
    font-size: 13px;
    padding: 3px 12px;
    top: 8px;
    left: 8px;
  }
}

.service-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.service-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    transition: background 0.3s;
    display: inline-block;
}

.service-dots .dot.active {
    background: #fff;
}

.image-container .new-badge {
    z-index: 50;
    position: absolute;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    z-index: 10;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.service-arrow.left {
    left: 20px;
}

.service-arrow.right {
    right: 20px;
}

.service-arrow:hover {
    background: rgba(255, 255, 255, 0.8);
}

.image-container .service-arrow,
.image-container .service-dots {
    z-index: 30;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    transition: background 0.3s;
    display: inline-block;
}

.service-dot.active {
    background: #fff;
}

/* insta対応追記 */
#sb_instagram {
    width: 40% !important;
  }