
/* ========================================
   RYU PORTFOLIO
======================================== */

:root {
    --navy: #101a30;
    --navy-light: #192744;
    --blue: #477cff;
    --white: #ffffff;
    --off-white: #f5f7fb;
    --text: #18233a;
    --muted: #6e788a;
    --line: #e1e6ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "DM Sans", "Noto Sans JP", sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--blue);
    color: white;
}

.accent {
    color: var(--blue);
}

/* HEADER */

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.logo,
.footer-logo {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.07em;
}

.logo span,
.footer-logo span {
    color: var(--blue);
}

.nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    transition: color .25s;
}

.nav a:hover {
    color: var(--blue);
}

.nav .nav-contact {
    padding: 15px 23px;
    color: white;
    background: var(--navy);
}

.nav .nav-contact:hover {
    color: white;
    background: var(--blue);
}

.menu-toggle {
    display: none;
}

/* HERO */

.hero {
    min-height: 100svh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    color: white;
}

.hero-inner {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 150px 10% 100px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    color: #bac7e0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ba0ff;
    box-shadow: 0 0 0 5px rgba(71,124,255,.16);
}

.hero h1 {
    margin: 45px 0 35px;
    font-size: clamp(52px, 7vw, 112px);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.07em;
}

.hero h1 span {
    color: #83a7ff;
}

.hero-description {
    color: #c2ccdd;
    font-size: 15px;
    line-height: 2.3;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 45px;
}

.button {
    min-height: 58px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 600;
    transition: transform .25s, background .25s;
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    background: var(--blue);
    color: white;
}

.button-primary:hover {
    background: #3166e8;
}

.button-outline {
    border: 1px solid #7887a4;
    color: white;
}

.button-outline:hover {
    background: rgba(255,255,255,.1);
}

.hero-bottom {
    margin-top: 105px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #8c9bb5;
    font-size: 10px;
    letter-spacing: .17em;
}

.hero-decoration {
    position: absolute;
    right: -4%;
    bottom: -16%;
    font-size: clamp(350px, 45vw, 750px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.1em;
    color: rgba(255,255,255,.035);
    pointer-events: none;
    user-select: none;
}

/* SHARED */

.section {
    padding: 130px 10%;
}

.section-heading {
    margin-bottom: 65px;
}

.section-label,
.eyebrow {
    display: block;
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
}

.section-heading h2 {
    margin-top: 23px;
    font-size: clamp(36px, 4.5vw, 66px);
    line-height: 1.5;
    letter-spacing: -.06em;
}

.section-heading h2 em {
    font-style: normal;
    color: var(--blue);
}

.section-heading > p {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9%;
    align-items: center;
}

.about-visual {
    min-height: 440px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--navy);
    color: white;
    overflow: hidden;
    position: relative;
}

.about-visual::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -130px;
    bottom: -130px;
    border: 60px solid rgba(71,124,255,.2);
    border-radius: 50%;
}

.about-visual > span {
    font-size: clamp(65px, 7vw, 110px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -.08em;
    position: relative;
    z-index: 1;
}

.about-visual small {
    color: #aebbd1;
    letter-spacing: .2em;
    font-size: 10px;
    position: relative;
    z-index: 1;
}

.about-content h3 {
    margin: 22px 0;
    font-size: clamp(24px, 2.6vw, 37px);
    line-height: 1.65;
}

.about-content p {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2.3;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 30px;
}

.skills span {
    padding: 10px 14px;
    background: var(--off-white);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
}

/* WORKS */

.works-section {
    background: var(--off-white);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}

.work-card {
    min-width: 0;
}

.work-image {
    height: 360px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .3s;
}

.work-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s;
}

.work-image:hover::before {
    transform: scale(1.06);
}

.cafe-image {
    background: #b9a18a;
}

.cafe-image::before {
    background-image:
        linear-gradient(rgba(45,31,21,.22), rgba(45,31,21,.22)),
        url("images/cafe.png");
}

.salon-image {
    background: #292929;
}

.salon-image::before {
    background-image:
        linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)),
        url("images/salon.png");
}

.work-image-title {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 3px 20px rgba(0,0,0,.3);
}

.cafe-title {
    font-family: Georgia, serif;
    font-size: clamp(35px, 4vw, 65px);
    letter-spacing: .08em;
}

.salon-title {
    font-size: clamp(45px, 5vw, 75px);
    font-weight: 700;
    letter-spacing: -.07em;
}

.work-image-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 25px;
    background: rgba(0,0,0,.15);
    opacity: 0;
    transition: opacity .3s;
}

.work-image:hover .work-image-overlay {
    opacity: 1;
}

.work-image-overlay span {
    padding: 13px 18px;
    background: white;
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.work-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 24px;
}

.work-category {
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
}

.work-info h3 {
    margin: 9px 0;
    font-size: clamp(19px, 2vw, 25px);
}

.work-info p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.work-arrow {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 22px;
    transition: background .25s, color .25s;
}

.work-arrow:hover {
    background: var(--blue);
    color: white;
}

.demo-label {
    display: inline-block;
    margin-top: 16px;
    color: var(--muted);
    font-size: 10px;
}

/* SERVICE */

.service-list {
    border-top: 1px solid var(--line);
}

.service-item {
    display: grid;
    grid-template-columns: 65px 1fr 40px;
    align-items: center;
    gap: 30px;
    padding: 40px 15px;
    border-bottom: 1px solid var(--line);
    transition: background .3s;
}

.service-item:hover {
    background: var(--off-white);
}

.service-number {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.service-item h3 {
    font-size: clamp(20px, 2.2vw, 30px);
    margin-bottom: 12px;
}

.service-item p {
    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

.service-icon {
    color: var(--blue);
    font-size: 28px;
}

/* PROCESS */

.process-section {
    background: var(--off-white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.process-card {
    min-height: 240px;
    padding: 30px 24px;
    background: white;
    border: 1px solid var(--line);
}

.process-card > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.process-card h3 {
    margin: 38px 0 14px;
    font-size: 19px;
}

.process-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 2;
}

/* CONTACT */

.contact-section {
    padding: 135px 10%;
    background: var(--navy);
    color: white;
    text-align: center;
}

.contact-section .section-label {
    color: #83a7ff;
}

.contact-inner h2 {
    margin: 35px 0;
    font-size: clamp(35px, 5vw, 72px);
    line-height: 1.5;
    letter-spacing: -.06em;
}

.contact-inner h2 em {
    color: #83a7ff;
    font-style: normal;
}

.contact-inner > p {
    color: #c1ccdd;
    font-size: 14px;
}

.contact-placeholder {
    display: inline-block;
    margin: 42px 0 20px;
    padding: 20px 30px;
    border: 1px solid #65748e;
    font-size: 11px;
    letter-spacing: .12em;
}

.contact-inner small {
    display: block;
    color: #93a0b8;
    font-size: 11px;
}

/* FOOTER */

.footer {
    padding: 60px 10% 30px;
    background: #0b1324;
    color: white;
}

.footer-top p {
    margin-top: 10px;
    color: #91a0ba;
    font-size: 10px;
    letter-spacing: .18em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #34405a;
    color: #91a0ba;
    font-size: 10px;
    letter-spacing: .1em;
}

/* ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .75s ease, transform .75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 1000px) {
    .section {
        padding: 100px 7%;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .works-grid {
        gap: 20px;
    }

    .work-image {
        height: 290px;
    }
}

/* MOBILE */

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .header {
        height: 70px;
        padding: 0 6%;
    }

    .logo {
        font-size: 27px;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        z-index: 1002;
        width: 42px;
        height: 42px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border: 0;
        background: none;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 27px;
        height: 2px;
        background: var(--navy);
        transition: transform .3s;
    }

    .menu-toggle.active span:first-child {
        transform: translateY(4.5px) rotate(45deg);
    }

    .menu-toggle.active span:last-child {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    .nav {
        position: fixed;
        z-index: 1001;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 35px;
        background: white;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        font-size: 20px;
    }

    .nav .nav-contact {
        font-size: 14px;
    }

    .hero-inner {
        padding: 130px 7% 55px;
    }

    .hero-label {
        font-size: 9px;
        letter-spacing: .13em;
    }

    .hero h1 {
        margin: 36px 0 28px;
        font-size: clamp(36px, 8.5vw, 65px);
        line-height: 1.5;
    }

    .hero-description {
        font-size: 12px;
        line-height: 2.2;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 35px;
    }

    .button {
        min-height: 55px;
        justify-content: space-between;
    }

    .hero-bottom {
        margin-top: 75px;
        font-size: 8px;
        letter-spacing: .05em;
    }

    .hero-decoration {
        font-size: 360px;
        right: -20%;
        bottom: 0;
    }

    .section {
        padding: 80px 7%;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: clamp(33px, 8vw, 48px);
    }

    .about-grid,
    .works-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        min-height: 330px;
        padding: 30px;
    }

    .about-visual > span {
        font-size: clamp(65px, 15vw, 95px);
    }

    .work-image {
        height: 300px;
    }

    .service-item {
        grid-template-columns: 30px 1fr 20px;
        gap: 12px;
        padding: 30px 0;
    }

    .service-item h3 {
        font-size: 20px;
    }

    .service-item p {
        font-size: 12px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process-card {
        min-height: 170px;
    }

    .process-card h3 {
        margin-top: 25px;
    }

    .contact-section {
        padding: 90px 7%;
    }

    .contact-inner h2 {
        font-size: clamp(32px, 7.5vw, 48px);
    }

    .contact-placeholder {
        font-size: 10px;
        padding: 18px;
        max-width: 100%;
    }

    .footer {
        padding: 55px 7% 30px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* 制作実績：スクリーンショットをそのまま見せる */
.work-image-title {
    display: none;
}

.work-image::before {
    background-size: cover;
    background-position: center;
}


/* 制作実績のスクリーンショットを全体表示 */
.work-image::before {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cafe-image {
    background-color: #d6cec6;
}

.salon-image {
    background-color: #202020;
}


/* スマホメニューの表示修正 */
@media (max-width: 768px) {
    .header {
        position: fixed;
        z-index: 1000;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100dvh - 70px);
        padding: 35px 7%;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        overflow-y: auto;
        z-index: 1001;
    }

    .menu-toggle {
        z-index: 1002;
    }
}


/* ==============================
   SERVICE - PRICE & FLOW
============================== */

.service-extra {
    margin-top: 110px;
}

.service-extra-heading {
    margin-bottom: 42px;
}

.service-extra-heading h3 {
    margin: 16px 0 14px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: #172238;
}

.service-extra-heading p {
    color: #64718a;
    line-height: 1.9;
}

.price-card {
    border: 1px solid #dce3ee;
    background: #f8faff;
    padding: clamp(24px, 4vw, 56px);
}

.price-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    padding-bottom: 38px;
    border-bottom: 1px solid #dce3ee;
}

.price-tag {
    display: inline-block;
    margin-bottom: 18px;
    color: #4075ed;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.price-card h4 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    color: #172238;
}

.price-card-top p {
    color: #64718a;
    line-height: 1.8;
}

.price-amount {
    text-align: right;
    flex-shrink: 0;
}

.price-amount strong {
    display: block;
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.2;
    color: #172238;
}

.price-amount strong span {
    font-size: 0.5em;
}

.price-amount small {
    display: block;
    margin-top: 8px;
    color: #64718a;
    font-size: 12px;
}

.price-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin: 28px 0;
}

.price-details div {
    padding: 18px 0;
    border-bottom: 1px solid #dce3ee;
    font-size: 15px;
    color: #172238;
}

.price-details span {
    margin-right: 14px;
    color: #4075ed;
    font-size: 12px;
    font-weight: 700;
}

.price-note {
    margin-top: 28px;
    font-size: 12px;
    line-height: 1.9;
    color: #64718a;
}

.flow-list {
    border-top: 1px solid #dce3ee;
}

.flow-item {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    padding: 30px 0;
    border-bottom: 1px solid #dce3ee;
}

.flow-item > span {
    padding-top: 5px;
    color: #4075ed;
    font-weight: 700;
    font-size: 14px;
}

.flow-item h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #172238;
}

.flow-item p {
    margin: 0;
    color: #64718a;
    line-height: 1.8;
}

.service-cta {
    margin-top: 48px;
    padding: 40px;
    background: #172238;
    text-align: center;
}

.service-cta p {
    margin: 0 0 24px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.service-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 17px 26px;
    background: #4075ed;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease;
}

.service-cta-button:hover {
    background: #285bd0;
}

@media (max-width: 768px) {
    .service-extra {
        margin-top: 75px;
    }

    .price-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

    .price-amount {
        text-align: left;
    }

    .price-details {
        grid-template-columns: 1fr;
    }

    .flow-item {
        gap: 20px;
    }

    .flow-item h4 {
        font-size: 18px;
    }

    .service-cta {
        padding: 32px 20px;
    }

    .service-cta p {
        font-size: 17px;
    }
}
