@charset "UTF-8";

/* =========================================
 * SERVICE HUB
 * サービスの比較と選択に役割を絞った一覧ページ。
 * ========================================= */

.service-hub {
    --service-ink: #111111;
    --service-muted: #111111;
    --service-line: #d7d7d2;
    --service-soft: #ffffff;
    --service-accent: #18accb;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #ffffff;
    color: var(--service-ink);
}

.service-hub a:focus-visible {
    outline: 2px solid var(--service-accent);
    outline-offset: 4px;
}

.service-hub-eyebrow,
.service-catalog__head,
.service-flow > li::before {
    font-family: var(--font-eng);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Hero */
.service-hub-hero {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

.service-hub-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: min(620px, calc(100vh - var(--header-height)));
    padding-top: clamp(72px, 9vw, 124px);
    padding-bottom: clamp(72px, 9vw, 124px);
}

.service-hub-eyebrow {
    margin-bottom: 24px;
    color: var(--service-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.service-hub-title {
    max-width: 980px;
    margin: 0;
}

.service-hub-title__en {
    display: flex;
    width: fit-content;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    font-family: var(--font-eng);
    font-size: clamp(3.8rem, 7.2vw, 7.1rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 0.94;
    white-space: nowrap;
    animation: service-title-in 640ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

.service-hub-title__accent {
    position: relative;
    z-index: 0;
    isolation: isolate;
    display: inline-block;
    margin-top: 0.06em;
    margin-left: 0.08em;
    padding: 0.02em 0.12em 0.12em;
    font-family: "Playwrite IS", cursive;
    font-size: 1.06em;
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.service-hub-title__ring {
    position: absolute;
    z-index: -1;
    inset: -0.12em -0.16em -0.08em -0.14em;
    transform: rotate(-4deg) translate(1.5%, 2%);
    width: calc(100% + 0.3em);
    height: calc(100% + 0.2em);
    overflow: visible;
    pointer-events: none;
}

.service-hub-title__ring path {
    fill: none;
    stroke: var(--service-accent);
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.service-hub-title__ja {
    display: block;
    margin-top: clamp(28px, 3vw, 42px);
    font-family: var(--font-main);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.6;
    white-space: nowrap;
}

.service-hub-title__ja-a11y {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.service-hub-title__ja-visual {
    display: inline-block;
}

.service-hub-title__ja-char {
    display: inline-block;
}

.service-hub-title__ja-visual.is-reveal-ready .service-hub-title__ja-char {
    opacity: 0.06;
    transition: opacity 320ms ease;
}

.service-hub-title__ja-visual.is-revealed .service-hub-title__ja-char {
    opacity: 1;
    transition-delay: var(--service-ja-reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    .service-hub-title__ja-visual.is-reveal-ready .service-hub-title__ja-char {
        opacity: 1;
        transition: none;
    }
}

/* Hero drawing pen */
.service-drawing-pen {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 74px;
    height: 162px;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(110vw, -180px, 0) rotate(-8deg);
    transform-origin: 50% 98%;
    transition: opacity 180ms ease;
    will-change: transform;
}

.service-drawing-pen.is-visible {
    opacity: 1;
}

.service-drawing-pen__figure {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(3px 4px 0 rgba(17, 17, 17, 0.12));
}

.service-drawing-pen__cap,
.service-drawing-pen__grip {
    fill: #111111;
    stroke: #111111;
    stroke-width: 1.5;
}

.service-drawing-pen__cap-band,
.service-drawing-pen__barrel,
.service-drawing-pen__nib {
    fill: #ffffff;
    stroke: #111111;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.service-drawing-pen__facet {
    fill: #d9d9d5;
    stroke: #111111;
    stroke-width: 1.3;
}

.service-drawing-pen__clip,
.service-drawing-pen__mark,
.service-drawing-pen__nib-line {
    fill: none;
    stroke: #111111;
    stroke-width: 2;
    stroke-linecap: round;
}

.service-drawing-pen__breather {
    fill: #ffffff;
    stroke: #111111;
    stroke-width: 1.4;
}

.service-drawing-pen__tip {
    fill: #111111;
}

.service-drawing-pen.is-moving .service-drawing-pen__figure,
.service-drawing-pen.is-parking .service-drawing-pen__figure {
    animation: service-pen-float 520ms ease-in-out infinite alternate;
}

.service-drawing-pen.is-drawing .service-drawing-pen__figure {
    animation: service-pen-pressure 260ms ease-in-out infinite alternate;
}

.service-drawing-pen.is-finished .service-drawing-pen__figure {
    animation: service-pen-lift 540ms cubic-bezier(0.22, 1, 0.36, 1) 1;
}

.service-drawing-pen.is-parked .service-drawing-pen__figure {
    animation: service-pen-settle 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes service-title-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes service-pen-float {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

@keyframes service-pen-pressure {
    from { transform: translateY(-1px); }
    to { transform: translateY(1px); }
}

@keyframes service-pen-lift {
    0% { transform: translateY(0); }
    45% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes service-pen-settle {
    from { transform: translateY(-5px) rotate(-2deg); }
    to { transform: translateY(0) rotate(0); }
}

/* Shared section heading */
.service-hub-section {
    padding: clamp(90px, 10vw, 150px) 0;
}

.service-hub-section__header {
    display: block;
    position: static;
    top: auto;
    z-index: auto;
    height: auto;
    padding: 0;
    margin-bottom: 60px;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    text-align: center;
}

.service-hub-section__title-mask {
    overflow: hidden;
    margin-bottom: 24px;
}

.service-hub-section__header > p {
    max-width: 680px;
    margin: 24px auto 0;
    color: var(--service-muted);
    font-size: 1rem;
    line-height: 1.9;
}

.service-hub.service-section-motion .service-section-reveal .section-divider {
    opacity: 0;
    transition: opacity 520ms ease 220ms;
}

.service-hub.service-section-motion .service-section-reveal .section-divider::after {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 320ms;
}

.service-hub.service-section-motion .service-section-reveal h2 {
    opacity: 0;
    transform: translateY(108%);
    transition: opacity 100ms linear 100ms, transform 760ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
}

.service-hub.service-section-motion .service-section-reveal > p {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms ease 420ms, transform 620ms cubic-bezier(0.22, 1, 0.36, 1) 420ms;
}

.service-hub.service-section-motion .service-section-reveal.is-visible .section-divider {
    opacity: 1;
}

.service-hub.service-section-motion .service-section-reveal.is-visible .section-divider::after {
    transform: scaleX(1);
}

.service-hub.service-section-motion .service-section-reveal.is-visible h2,
.service-hub.service-section-motion .service-section-reveal.is-visible > p {
    opacity: 1;
    transform: translateY(0);
}

.website-plans > .fade-up:nth-child(2),
.service-flow > .fade-up:nth-child(2) {
    transition-delay: 100ms;
}

.service-catalog > .fade-up:nth-child(2) { transition-delay: 70ms; }
.service-catalog > .fade-up:nth-child(3) { transition-delay: 140ms; }
.service-catalog > .fade-up:nth-child(4) { transition-delay: 70ms; }
.service-catalog > .fade-up:nth-child(5) { transition-delay: 140ms; }
.service-catalog > .fade-up:nth-child(6) { transition-delay: 210ms; }

.service-flow > .fade-up:nth-child(3) { transition-delay: 200ms; }
.service-flow > .fade-up:nth-child(4) { transition-delay: 300ms; }

/* Website choices */
.service-hub-section--website {
    background: transparent;
}

.website-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.website-plan {
    display: flex;
    min-height: 610px;
    flex-direction: column;
    padding: clamp(30px, 4vw, 54px);
    border: 1px solid var(--service-ink);
}

.website-plan--honakore {
    background: #ffffff;
    color: var(--service-ink);
}

.website-plan--custom {
    background: #ffffff;
}

.website-plan h3 {
    margin-top: 0;
    font-family: var(--font-eng);
    font-size: clamp(2.7rem, 5vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.02;
}

.website-plan--custom h3 {
    font-family: var(--font-main);
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.website-plan__catch {
    margin-top: 34px;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.65;
}

.website-plan__description {
    margin-top: 22px;
    color: inherit;
    font-size: 1rem;
    line-height: 1.95;
    opacity: 1;
}

.website-plan__facts {
    margin: auto 0 0;
    padding-top: 50px;
}

.website-plan__facts > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid currentColor;
}

.website-plan__facts > div:last-child {
    border-bottom: 1px solid currentColor;
}

.website-plan__facts dt {
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.website-plan__facts dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
}

.website-plan__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    margin-top: 28px;
    padding: 14px 18px;
    border: 1px solid currentColor;
    font-size: 0.95rem;
    font-weight: 600;
}

.website-plan--honakore .website-plan__link {
    background: #ffffff;
    color: var(--service-ink);
}

.website-plan__link:hover {
    opacity: 1;
    background: #ffffff;
    color: var(--service-ink);
}

/* Other services */
.service-hub-section--other {
    background: transparent;
}

.service-catalog {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--service-ink);
    border-left: 1px solid var(--service-ink);
}

.service-catalog__item {
    min-height: 300px;
    padding: 26px;
    border-right: 1px solid var(--service-ink);
    border-bottom: 1px solid var(--service-ink);
}

.service-catalog__head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    color: var(--service-muted);
    font-size: 0.76rem;
    line-height: 1.3;
    text-align: right;
}

.service-catalog__item h3 {
    margin-top: 52px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.45;
}

.service-catalog__item > p {
    margin-top: 18px;
    color: var(--service-muted);
    font-size: 0.95rem;
    line-height: 1.85;
}

.service-catalog__item:nth-child(5) {
    background: #ffffff;
}

.service-catalog__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid var(--service-line);
}

.service-catalog__cta p {
    color: var(--service-muted);
    font-size: 0.95rem;
}

.service-hub-text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--service-ink);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Generic flow */
.service-hub-section--flow {
    border-top: 1px solid var(--service-line);
    background: transparent;
}

.service-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--service-ink);
    border-left: 1px solid var(--service-ink);
    list-style: none;
}

.service-flow > li {
    min-height: 260px;
    padding: 26px;
    border-right: 1px solid var(--service-ink);
    border-bottom: 1px solid var(--service-ink);
}

.service-flow > li::before {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--service-accent);
    content: '';
    transform: rotate(45deg);
}

.service-flow h3 {
    margin-top: 50px;
    font-size: 1.12rem;
    font-weight: 700;
}

.service-flow li p {
    margin-top: 15px;
    color: var(--service-muted);
    font-size: 0.92rem;
    line-height: 1.75;
}

.service-flow__note {
    margin-top: 28px;
    color: var(--service-muted);
    font-size: 0.92rem;
    text-align: right;
}

.service-flow__note a {
    border-bottom: 1px solid currentColor;
    color: var(--service-ink);
}

/* Contact */
.service-hub-contact {
    padding: clamp(90px, 12vw, 170px) 0;
    background: transparent;
    color: var(--service-ink);
}

.service-hub-contact__header {
    margin-bottom: clamp(30px, 4vw, 48px);
}

.service-hub-contact__header .service-hub-contact__lead {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.65;
}

.service-hub-contact__body {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(260px, 0.62fr);
    gap: clamp(32px, 6vw, 92px);
    align-items: center;
    margin-left: 0;
}

.service-hub-contact__body > p {
    color: var(--service-ink);
    font-size: 1rem;
    line-height: 1.9;
}

.service-hub-contact__body > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 62px;
    padding: 16px 20px;
    border: 1px solid var(--service-ink);
    font-size: 1rem;
    font-weight: 600;
}

.service-hub-contact__body > a:hover {
    opacity: 1;
    background: #ffffff;
    color: var(--service-ink);
}

.service-hub + footer,
.service-hub ~ footer {
    border-top: 0;
}

.service-hub .breadcrumb {
    margin: 0;
    padding-top: 40px;
    padding-bottom: 40px;
}

@media screen and (max-width: 900px) {
    .service-hub-hero__inner {
        min-height: auto;
    }

    .service-hub-title__en {
        font-size: clamp(3.4rem, 9vw, 5.2rem);
    }

    .service-drawing-pen {
        width: 64px;
        height: 140px;
    }

    .website-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-plan {
        min-height: 0;
    }

    .service-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 700px) {
    .service-hub-hero {
        background: #ffffff;
    }

    .service-hub-hero__inner {
        padding-top: 52px;
        padding-bottom: 56px;
    }

    .service-hub-eyebrow {
        margin-bottom: 18px;
    }

    .service-hub-title__en {
        font-size: clamp(1.9rem, 10vw, 3.2rem);
        line-height: 0.98;
    }

    .service-hub-title__accent {
        margin-top: 0.12em;
        margin-left: 0.04em;
        font-size: clamp(0.85em, 10vw, 1em);
    }

    .service-hub-title__ja {
        margin-top: 24px;
        font-size: clamp(1.05rem, 4.8vw, 1.25rem);
        letter-spacing: 0.025em;
    }

    .service-drawing-pen {
        width: 54px;
        height: 118px;
    }

    .service-hub-section {
        padding: 76px 0;
    }

    .service-hub-section__title-mask {
        margin-bottom: 20px;
    }

    .service-hub-section__header > p {
        margin-top: 20px;
    }

    .website-plan {
        padding: 28px 22px;
    }

    .website-plan h3 {
        font-size: clamp(2.8rem, 15vw, 4.4rem);
    }

    .website-plan--custom h3 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .website-plan__facts > div {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .service-catalog,
    .service-flow {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-catalog__item,
    .service-flow > li {
        min-height: 0;
    }

    .service-catalog__item h3,
    .service-flow h3 {
        margin-top: 42px;
    }

    .service-catalog__cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-flow__note {
        text-align: left;
    }

    .service-hub-contact__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-left: 0;
    }
}

@media screen and (max-width: 480px) {
    .service-drawing-pen {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-hub *,
    .service-hub *::before,
    .service-hub *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .service-hub-title__en {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .service-hub-title__ring path {
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
    }

    .service-drawing-pen {
        display: none !important;
    }
}
