/*Basic*/
html {
    font-size: 16px;
}

body {
    font-family: 'Kosugi Maru', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    color: #333;
    background: #fff;
}

p {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 400;
    color: #666;
}

*:active,
*:focus {
    outline: none;
}

/*Parts*/
.btn {
    display: inline-block;
    padding: 0.5em 1em;
    margin-top: 0.5em;
    background: #fff;
    color: #ff90c2;
    text-decoration: none;
    border-style: solid;
    border-color: #ff90c2;
    border-radius: 6px;
    font-weight: bold;
}

.btn:hover {
    color: #fff;
    background: #ff90c2;
}

.highlight-box {
    position: relative;
    margin: 3em auto;
    width: max(300px, 80%);
    background: #ffffff;
    border-radius: 2px;
    padding: 2em;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.section-title {
    position: absolute;
    top: -1em;
    left: 1em;
    margin-top: -0.1rem;
    background-image: url('/assets/img/section_title.png');
    background-repeat: no-repeat;
    background-position: center;
    width: 400px;
    padding: 0.5rem 1rem 0.5rem;
    font-family: 'RockoUltraFLF';
    font-style: normal;
    color: #fff;
}

.section-title .dot {
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 0.5em;
    transform: translateY(-0.2em);
    /* 微調整で中央揃え */
}

.section-background-label {
    position: absolute;
    top: 0%;
    right: 5%;
    transform: rotate(-8deg);
    font-size: 8rem;
    color: rgba(240, 30, 30, 0.05);
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
    font-weight: 900;
    user-select: none;
}

/* Scroll */
.scroll-row {
    display: flex;
    overflow-x: auto;
    gap: 1em;
    padding-bottom: 1em;
    scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
    height: 8px;
}

.scroll-row::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/*coming-soon*/
.coming-soon {
    background: #ffecf5;
    color: #cc007a;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    margin-top: 0.5em;
}

/*BackGround*/
#background-effects {
    position: fixed;
    background-attachment: fixed;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -10;
}

.plant {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 800px;
    z-index: -10;
    opacity: 0.3;
    pointer-events: none;
}

.floating-circle {
    position: fixed;
    left: -60px;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.5);
    animation: float-across 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.delay1 {
    animation-delay: 0s;
}

.delay2 {
    animation-delay: 5s;
}

.delay3 {
    animation-delay: 10s;
}

.delay4 {
    animation-delay: 15s;
}

.delay5 {
    animation-delay: 20s;
}

.size-xs {
    width: 20px;
    height: 20px;
}

.size-sm {
    width: 30px;
    height: 30px;
}

.size-md {
    width: 40px;
    height: 40px;
}

.size-lg {
    width: 60px;
    height: 60px;
}

.pos-top {
    top: 10vh;
    bottom: auto;
}

.pos-mid {
    top: 40vh;
    bottom: auto;
}

.pos-low {
    top: 70vh;
    bottom: auto;
}

@keyframes float-across {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-100px) translateX(50vw) scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: translateY(-200px) translateX(100vw) scale(1);
        opacity: 0;
    }
}

/*effect*/
.fade-in {
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* header/footer */
.site-header {
    background: #fff;
    border-bottom: 2px solid #ffc6dd;
    position: relative;
    padding-top: 1em;
    text-align: center;
}

.header-logo img {
    max-height: 100px;
    margin-bottom: 0.5em;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 2em;
    list-style: none;
    padding: 0;
    margin: 0 auto 1em;
}

.header-nav a {
    text-decoration: none;
    font-weight: bold;
    color: #ff4081;
    font-size: 1.2em;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff90c2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.header-nav a:hover::after {
    transform: scaleX(1);
}

/* 右上アイコン用スペース */
.header-side.right-corner {
    position: absolute;
    top: 0;
    right: 1em;
    height: 32px;
    width: 32px;
}

.site-footer {
    background: #ffe5f1;
    color: #555;
    text-align: center;
    padding: 2em 1em;
    font-size: 0.9em;
    border-top: 2px solid #ffc6dd;
}

.site-footer a {
    color: inherit;
    font-weight: normal;
}

.site-footer a:hover {
    color: #964545;
}

/* バナー関連 */
.banner {
    background-image: url('/assets/img/banner.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    color: white;
    display: flex;
}

.banner-overlay img {
    max-height: 20%;
}

/*contents*/
.contents-grid {
    display: flex;
    gap: 1em;
}

.contents-grid img {
    max-width: 300px;
    height: 200px;
    flex: 0 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.contents-grid img:hover {
    transform: scale(1.03);
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 2rem 0;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/*goods*/
.goods-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.goods-item:hover {
    transform: scale(1.03);
}

.goods-item img {
    width: 180px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.goods-item p {
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.goods-btn-right {
    text-align: right;
    margin-top: 1em;
}

.goods-box {
    display: flex;
    gap: 1em;
    align-items: center;
    margin-top: 1em;
}

.goods-image img {
    width: 150px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.goods-image img:hover {
    transform: scale(1.03);
}

.goods-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}


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

.project-card {
    background: #fff;
    border-radius: 12px;
    max-width: 40%;
    padding: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-card img {
    aspect-ratio: 2 / 1;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5em;
}

.project-card h3 {
    margin: 0.5em 0 0.2em;
}



/*link*/
.external-links {
    display: flex;
    gap: 0.2rem;
}

.link-btn {
    display: flex;
    flex-shrink: 0;
    color: white;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    text-align: center;
    height: 20px;
    width: 80px;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.2s;
}

.link-btn:hover {
    transform: scale(1.05);
}

/* サービス別色（将来的にロゴも追加可能） */
.link-btn.pixiv {
    background: #0096fa;
}

.link-btn.fanbox {
    background: #00bfa5;
}

.link-btn.twitter {
    background: #444;
}

.link-btn.bluesky {
    background: #0066cc;
}

.link-btn.youtube {
    background: #ff0000;
}

.link-btn.soundcloud {
    background: #ff5500;
}

.link-btn.booth {
    background: #b83a3a;
}

.section-thumb {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sketch-section {
    margin-bottom: 3rem;
}