/* Basic Styles */
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Noto+Sans+JP:wght@100..900&display=swap');

.site-detail {
    font-family: 'Josefin Sans', Arial, sans-serif;
    margin: 0;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    flex: 1;
}

a {
    color: #fff;
    text-decoration: none;
}

img {
    width: 100%;
    vertical-align: bottom;
}

/* Header */
header {
    padding: 40px 60px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}
.header-width{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}
.logo p {
    margin: 0;
    line-height: 1.2;
    font-weight: bold;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
.mobile-nav ul li{
    flex: 1;
}
.mobile-nav ul li a{
    display: block; /* 追加：クリックエリアを広げる */
    text-align: center; /* 追加：文字を中央に */
    color: #fff;
    /* background-color: #000; */
    padding: 10px 30px;
    text-decoration: none; /* 下線を消す場合 */
    position: relative; /* liから移動：アニメーションの基準点 */
    z-index: 1; /* 追加：文字を前面に */
    overflow: hidden; /* はみ出し防止 */
}
.mobile-nav ul li a::before{
    content: '';
    display: block;
    position: absolute;
    top: 0; /* 追加：位置の固定 */
    left: 0;
    width: 0;
    height: 100%;
    background-color: #a94064;
    mix-blend-mode: difference;
    transition: 0.3s;
    z-index: -1; /* 追加：背景として配置 */
}
.mobile-nav ul li a:hover::before{
    width: 100%;
}


/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
    position: relative;
    padding-right: 15px;
    padding-left: 15px;
}
.hero-title {
    padding-top: 100px;
}
.hero-logo {
    max-width: 1020px; /* Adjust as needed */
    height: auto;
}

/* Sections */
section {
    padding: 60px;
    text-align: center;
}

section h2 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 40px;
}

/* About Section */
#about .about-content,.article-content {
    max-width: 960px;
    margin: 0 auto;
}
.about-detail,.works-detail,.article-detail{
    margin-top: 80px;
}

#about h3 , .about-detail h3,.article-detail h3{
    font-size: 2rem;
    margin-bottom: 20px;
}

#about p , .about-detail p{
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    max-width: 960px;
    margin: 0 auto 40px;
}

.work-item {
    text-align: left;
    padding-bottom: 10px;
}

.work-item-thum{
    border-radius: 4px;
    overflow: hidden;
}
.work-item-thum img{
    width: 100%;
}
.work-item-tab{
    padding-top: 12px;
}

.effect-brightness{
    transition: filter 0.3s ease;
    filter: brightness(0.8);
}
.effect-brightness:hover{
    transition: filter 0.3s ease;
    filter: brightness(1);
}

.work-item-txtarea{
    padding-top: 8px;
    line-height: 1.3;
}

.view-more {
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    background: #a94064;
    padding: 0.8rem 2rem;
    color: #fff;
    border: 1px solid transparent; /* 0000を修正 */
    border-radius: 4px;
    position: relative;
    z-index: 1;
    text-decoration: none; /* aタグのアンダーライン消去 */
    transition: color 0.3s; /* 文字色の変化をスムーズに */
}
.view-more_object {
    content: '';
    position: absolute;
    display: inline-block;
    left: var(--x, 50%);
    top: var(--y, 50%);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0); /* 中央配置でサイズ0 */
    will-change: transform;
    z-index: -1;
    transition: transform 0.6s ease; /* ここにアニメーション速度を指定 */
}
.view-more_object:before {
    content: '';
    display: block;
    height: 500px;
    width: 500px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.view-more:hover {
    color: #a94064; /* ホバー時に文字色を背景色と同じにする */
}

.view-more:hover .view-more_object {
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%) scale(1);
}

/* article */
.article_wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}
.article_description{
    flex: 1;
    min-width: 50%;
    line-height: 1.8;
    text-align: left;
    /* padding-bottom: 20px; */
}
.article-img_wrapper{
    width: max(40%, 380px);
}
.article-img img{
    padding-bottom: 10px;
}
.article-img_title{
    padding-bottom: 20px;
}
.article-button{
    display: flex;
    margin: 10px 0;
    width: 150px;
    overflow: hidden;
    align-items: center;
    color: #E58A37;
    position: relative;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
    padding-left: 0; /* 初期状態の余白 */
    transition: padding-left 0.3s; /* テキストの移動を滑らかに */
}
.article-button:before{
    position: absolute;
    content: '';
    width: 16px;  /* 矢印のサイズに合わせて調整 */
    height: 16px; /* 矢印のサイズに合わせて調整 */
    background-image: url(../img/arrow-right-solid-full.svg);
    background-color: #E58A37;
    background-size: contain;
    background-repeat: no-repeat;
    /* 初期状態：左側に隠す */
    left: -20px;
    top: 4px;
    opacity: 0;
    transition: 0.3s; /* アニメーション速度 */
}
/* ホバー時の挙動 */
.article-button:hover:before {
    left: 0; /* 指定の位置までスライド */
    opacity: 1;
}
.article-button:hover {
    padding-left: 25px; /* 矢印が入るスペース分、テキストを右に寄せる */
}

.article-button_return{
    padding: 0.8rem 2rem;
    font-weight: bold;
    /* 文字色は透明にして背景が見えるようにする */
    color: transparent;

  /* オレンジと黒が50%の位置で切り替わるグラデーション */
    background: linear-gradient(to right, #a94064 50%, #fff 50%) 100%;
  /* 背景をテキストで切り抜く */
    background-clip: text;

  /* 横幅は200%にしてグラデーションの青部分は見えないようにする */
    background-size: 200% 100%;
    transition: background-position 0.3s;
}
.article-button_return:hover {
  /* グラデーションの位置を移動して、オレンジ部分を見せる */
    background-position: 0 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 80px 20px 20px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
    z-index: 15;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    width: 60px;
    height: 60px;
    text-align: center;
    line-height: 60px;
    display: none; /* Hidden by default */
    z-index: 100;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #fff;
    box-sizing: border-box;
    transition: background-color 0.3s, border 0.3s;
}
.back-to-top.show {
    display: block;
}
.back-to-top:hover{
    background-color: #a94064;
    border: 1px solid transparent;
}


/* Tablet Styles */
@media (max-width: 1023px) {
    header {
        padding: 30px 40px;
    }
    section {
        padding: 80px 40px;
    }

    section h2 {
        font-size: 3rem;
    }

}

/* Smartphone Styles */
@media (max-width: 767px) {
    header {
        padding: 20px;
        width: 100%;
    }

    nav ul {
        display: none; /* Hide nav for hamburger menu */
    }

    .hamburger-menu {
        display: block;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 1.0);
        z-index: 10;
    }

    .mobile-nav.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav ul {
        display: block;
        text-align: center;
        width: 100%;
    }
    .mobile-nav ul li a{
        padding: 30px;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
    padding-right: 0;
    padding-left: 0;
    }

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .hero-title {
        padding-top: 80px;
    }

    /* Works Section */
    .works-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 20px;
    }

}


@media (max-width: 440px){
    #about p,#about h3,.about-detail p,.about-detail h3,.article-detail p{
        text-align: left;
    }
    .works-grid {
    grid-template-columns: inherit;
}
}

