:root {
    --c-text: #383838;
    --c-subtext: #898787;
    --c-accent: #4e7276;
    --c-main1: #f1fff9; /* ライトターコイズ */
    --c-main2: #d6eaef; /* ライトアジュール */
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Josefin Sans", "Noto Sans JP", sans-serif;
    color: var(--c-text);
    background: var(--c-main1);
}

a {
    color: var(--c-accent);
    text-decoration: none;
}

a:hover {
    color: #0391CE;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
}

.container {
    max-width: 1140px;
    padding-bottom: 60px;
}

.container-sm {
    max-width: 760px;
    padding-bottom: 60px;
}

section {
    padding: 0 10vw;
    box-sizing: border-box;
}

.fade {
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 768px) {
    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* ============================================================================
  TOP
============================================================================ */
.home section {
    position: relative;
    min-height: 100vh;
    padding: 10vh 10vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.home h2 {
    font-size: 5rem;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 3rem;
    z-index: 10;
}

.home h3 {
    font-size: 1.2rem;
    color: var(--c-accent);
}

.home h2 {
    opacity: 0;
    transform: translateX(30px);
}

/* 背景ロゴ */
.bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: auto;
    opacity: 0.2;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}

@media (max-width: 768px) {
    .home h2 {
        font-size: 4rem;
    }

    .bg-logo {
        left: 80%;
        width: 200%;
    }
}

/* 左端ナビ */
.sidenav {
    position: fixed;
    top: 50%;
    left: 0.7rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    color: var(--c-subtext);
    z-index: 999;
}

.sidenav a {
    color: var(--c-subtext);
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.sidenav i {
    font-size: 1.4rem;
    margin-top: 1rem;
    transition: 0.3s;
}

.sidenav a:hover,
.sidenav i:hover {
    color: #0391CE;
}

.sidenav a.active {
    color: #0391CE;
    font-weight: 600;
}

/* HERO */
#hero {
    overflow: visible;
    position: relative;
    background: #f1fff9;
    align-items: center;
    text-align: center;
}

#hero img.hero-logo {
    width: 200px;
    max-width: 60%;
    height: auto;
    position: relative;
}

.hero-text .role {
    margin-top: 1rem;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--c-accent);
}

.hero-text .subtitle {
    margin-top: 1rem;
    font-family: "Josefin Sans", sans-serif;
    letter-spacing: 0.08em;
    position: relative;
    font-size: 0.9rem;
}

/* INTRO */
#intro img.intro-img {
    max-width: 350px;
    margin-top: 2rem;
}

/* ABOUT */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.about-item {
    position: relative;
    z-index: 1;
    padding: 1rem;
    border-right: 2px solid #b4dbcd;
    border-bottom: 2px solid #b4dbcd;
}

.about-number {
    font-size: 4rem;
    font-weight: 800;
    opacity: 0.2;
    position: absolute;
    bottom: -0.2rem;
    left: 1rem;
}

.about-sub {
    font-size: 1.2rem;
    color: var(--c-subtext);
    margin-top: 3rem;
}

/* WHAT I DO */
.item-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.plan {
    border: 1px solid var(--c-subtext);
    padding: 2rem;
    z-index: 1;
    position: relative;
}

.plan img {
    width: 100%;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .item-wrapper {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* MY WORK */
.works-scroll {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
    z-index: 10;
}

.work-item {
    scroll-snap-align: start;
    height: 100%;
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: rgb(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.work-cate {
    font-size: .875em;
    color: rgba(33, 37, 41, 0.75);
}

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

.work-item:hover::after {
    content: "VIEW  >";
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    color: #0391CE;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.work-body {
    padding: 1rem;
}

.scroll-hint {
    position: absolute;
    top: 50%;
    right: 2%;
    text-align: center;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: bold;
    color: #0391CE;
    animation: moveRight 1s infinite alternate ease-in-out;
    z-index: 20;
}

.scroll-hint span {
    font-size: 0.7rem;
}

@keyframes moveRight {
    from {
        transform: translateY(-50%) translateX(0);
    }

    to {
        transform: translateY(-50%) translateX(10px);
    }
}

/* contact */
#contact {
    background: #d6eaef url('../images/top/bg_contact.jpg') center/cover no-repeat fixed;
    transition: background 0.8s ease-out;
}

form .form-control {
    border-radius: 0;
    border-color: #ccc;
}

::placeholder {
    color: #ccc !important;
}

.btn-main {
    color: #fff;
    background-color: var(--c-text);
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    padding: 0.7rem 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background: var(--c-main1);
    color: var(--c-text);
    border: 1px solid var(--c-text);
}

.btn-main i {
    transition: transform 0.3s ease;
}

.btn-main:hover i {
    transform: translateX(5px);
}

/* CF7スピナーを完全に消す（幅・高さもゼロに）*/
.wpcf7-spinner {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer {
    position: fixed;
    bottom: 0;
    right: 5%;
    padding: 1rem 0;
    font-size: 0.7rem;
    color: var(--c-subtext);
    z-index: 20;
}

@media (max-width: 768px) {
    #contact .text-center {
        display: flex;
        justify-content: center;
    }
}

/* ============================================================================
  下層
============================================================================ */
header{
    position: absolute;
    z-index: 10;
    width: 100%;
    top: 18px;
    left: 0.7rem;
}
.head-logo {
    margin: 0 auto;
}
.head-logo img{
    height: 50px;
}

.page-mv {
    height: 50px;
}

/* ============================================================================
  Works
============================================================================ */
.page-heading {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-heading h2 {
    font-size: 48px;
    letter-spacing: 0.12em;
    color: var(--c-accent);
    margin-top: 60px;
}

/* 2. タイトル */
.ws-title-area {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

h1.ws-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--c-accent);
}

.ws-category {
    font-size: 16px;
    margin-top: 8px;
    color: var(--c-subtext);
}

/* 3. メインイメージ */
.ws-main-image {
    margin-bottom: 80px;
}

.ws-main-image img.main-visual {
    width: 100%;
    height: auto !important;
    border-radius: 8px;
}

/* 4. 情報エリア */
.ws-info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: flex-start;
    padding: 10px 0;
    position: relative;
}

.ws-info-row dt {
    font-weight: 500;
    color: var(--c-accent);
    position: relative;
    padding-left: 18px;
}

.ws-info-row dt::before {
    content: "";
    display: block;
    position: absolute;
    width: 10px;
    height: 1px;
    background-color: var(--c-accent);
    top: 50%;
    left: 0;
}

/* 5. ギャラリー（PC 2列 / SP 1列） */
.ws-content {
    background: #fff;
    padding: 80px 0;
}

.ws-content h2 {
    font-size: 20px !important;
    font-weight: 500 !important;
    margin-bottom: 20px;
}

.ws-content-content {
    column-count: 2;
    column-gap: 48px;
}

.ws-content-content img {
    width: 100%;
    margin-bottom: 24px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    h1.ws-title {
        font-size: 1.5rem;
    }

    .ws-content-content {
        column-count: 1;
    }
}

.ws-prev-next {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    font-size: 14px;
    background-color: #fff;
    width: 100%;
}
.ws-prev-next .prev a,
.ws-prev-next .next a {
    color: var(--c-text);
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: opacity .3s;
}

.ws-prev-next a:hover {
    opacity: .6;
}

/* 6. CTA（背景画像） */
.ws-contact {
    padding: 140px 0;
    position: relative;
    text-align: center;
}

.ws-contact-bg {
    background-image: url('../images/top/bg_contact.jpg');
    background-size: cover;
    background-position: center;
    opacity: .35;
    position: absolute;
    inset: 0;
}

.ws-contact-inner {
    position: relative;
    z-index: 2;
}

.ws-contact h2 {
    font-size: 32px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.ws-contact p {
    font-size: 16px;
    margin-bottom: 40px;
}

.ws-contact-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--c-accent);
    border-radius: 40px;
    color: var(--c-accent);
    text-decoration: none;
    transition: .3s;
}

.ws-contact-btn:hover {
    background: var(--c-accent);
    color: #fff;
}

/* 7. TJN風の淡いスクロールアニメーション */
.fadein,
.fadein-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
}

.fadein.visible,
.fadein-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .ws-container {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }
}
/* ============================================================================
  ブロックエディタ用
============================================================================ */
h2.wp-block-heading{
    opacity: 1;
    font-size: 1.5rem;
    color: var(--c-accent);
    font-weight: 500;
    margin-bottom: 2rem;
}
h3.wp-block-heading {
    opacity: 1;
    font-size: 1.5rem;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}
h4.wp-block-heading {
    font-size: 1.25rem;
    color: var(--c-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

ul.wp-block-list li {
    list-style-type: disc;
    margin-left: 1rem;
}

hr.wp-block-separator{
    margin: 3rem 0;
}

/* ============================================================================
  お問い合わせ
============================================================================ */
.req {
    color: #0391CE;
    margin-left: 4px;
}

.wpcf7-not-valid-tip {
    color: #0391CE !important;
}