/* ==========================================================
   Front page
========================================================== */

:root {
    --karoyaka-base: #faf7f2;
    --karoyaka-paper: #fffdf9;
    --karoyaka-text: #33302e;
    --karoyaka-red: #b94b42;
    --karoyaka-red-dark: #923c36;
    --karoyaka-sage: #7f927d;
    --karoyaka-beige: #eee2d2;
    --karoyaka-line: #d8ccbc;
}

.home-top,
.home-top * {
    box-sizing: border-box;
}

.home-top {
    color: var(--karoyaka-text);
    background: var(--karoyaka-base);
}

.home-container {
    width: min(1180px, calc(100% - 80px));
    margin-inline: auto;
}

/* ==========================================================
   First view
========================================================== */

.home-fv {
    position: relative;
    min-height: clamp(650px, calc(100svh - 76px), 820px);
    overflow: hidden;
    background:
        radial-gradient(circle at 77% 28%, rgba(255, 255, 255, 0.75) 0 9%, transparent 30%),
        linear-gradient(135deg, #faf7f2 0%, #f8f2e9 54%, #f0e4d4 100%);
}

.home-fv__texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

.home-fv__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
    align-items: center;
    gap: clamp(26px, 5vw, 76px);
    min-height: inherit;
    padding-block: 78px 96px;
}

.home-fv__content {
    position: relative;
    z-index: 2;
}

.home-fv__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.home-fv__eyebrow span {
    display: block;
    width: 42px;
    height: 1px;
    background: var(--karoyaka-red);
}

.home-fv__title {
    margin: 0;
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: clamp(44px, 4.2vw, 62px);
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: 0.035em;
}

.home-fv__title em {
    position: relative;
    display: inline-block;
    color: var(--karoyaka-red);
    font-style: normal;
}

.home-fv__title em::after {
    position: absolute;
    left: 0.03em;
    bottom: -0.04em;
    width: 98%;
    height: 8px;
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6C80 1 126 9 205 5C275 2 326 7 398 3' fill='none' stroke='%23b94b42' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.home-fv__lead {
    margin: 30px 0 0;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 2;
    letter-spacing: 0.06em;
}

.home-fv__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 38px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-width: 218px;
    padding: 16px 20px 16px 24px;
    border: 1px solid var(--karoyaka-red);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.home-button span {
    font-size: 18px;
    line-height: 1;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button--primary {
    color: #fff;
    background: var(--karoyaka-red);
}

.home-button--primary:hover {
    color: #fff;
    background: var(--karoyaka-red-dark);
}

.home-button--secondary {
    color: var(--karoyaka-red);
    background: rgba(255, 253, 249, 0.55);
}

.home-button--secondary:hover {
    color: #fff;
    background: var(--karoyaka-red);
}

.home-fv__visual {
    position: relative;
    align-self: stretch;
    min-height: 520px;
}

.home-fv__sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(38vw, 500px);
    aspect-ratio: 1;
    transform: translate(-47%, -52%);
    border-radius: 50%;
    background: linear-gradient(145deg, #fff3dc, #ead3af);
    box-shadow: 0 30px 90px rgba(112, 79, 44, 0.12);
}

.home-fv__sun::after {
    position: absolute;
    inset: 18px;
    content: "";
    border: 1px solid rgba(185, 75, 66, 0.17);
    border-radius: inherit;
}

.home-fv__route {
    position: absolute;
    inset: 1% -4% 0 -2%;
    z-index: 1;
    width: 106%;
    height: 90%;
    overflow: visible;
}

.home-fv__route path {
    fill: none;
    stroke: rgba(127, 146, 125, 0.8);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 9;
}

.home-fv__route circle {
    fill: var(--karoyaka-red);
    stroke: var(--karoyaka-base);
    stroke-width: 5;
}

.home-fv__car {
    position: absolute;
    left: 50%;
    bottom: 10%;
    z-index: 2;
    display: block;
    width: min(48vw, 630px);
    height: auto;
    transform: translateX(-51%);
    filter: drop-shadow(0 24px 18px rgba(70, 48, 35, 0.2));
}

.home-fv__from {
    position: absolute;
    top: 14%;
    right: 1%;
    z-index: 2;
    margin: 0;
    color: var(--karoyaka-red);
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: clamp(24px, 2.1vw, 33px);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.1;
    transform: rotate(4deg);
}

.home-fv__from small {
    display: block;
    margin-bottom: 6px;
    color: var(--karoyaka-text);
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: 9px;
    letter-spacing: 0.22em;
}

.home-fv__caption {
    position: absolute;
    right: 4%;
    bottom: 6%;
    z-index: 2;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.home-fv__scroll {
    position: absolute;
    right: max(24px, calc((100vw - 1320px) / 2));
    bottom: 25px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--karoyaka-text);
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-decoration: none;
    writing-mode: vertical-rl;
}

.home-fv__scroll i {
    position: relative;
    display: block;
    width: 1px;
    height: 55px;
    overflow: hidden;
    background: var(--karoyaka-line);
}

.home-fv__scroll i::after {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    background: var(--karoyaka-red);
    animation: home-scroll-line 2.2s ease-in-out infinite;
}

@keyframes home-scroll-line {
    0% {
        transform: translateY(0);
    }

    70%,
    100% {
        transform: translateY(200%);
    }
}

/* ==========================================================
   Start here
========================================================== */

.home-start {
    position: relative;
    padding-block: clamp(88px, 10vw, 150px);
    background: var(--karoyaka-paper);
}

.home-start__heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: center;
    gap: 60px;
    max-width: 880px;
    margin: 0 auto 58px;
}

.home-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    color: var(--karoyaka-red);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.home-section-label::before {
    display: block;
    width: 34px;
    height: 1px;
    content: "";
    background: currentColor;
}

.home-start__copy h2 {
    margin: 0;
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.055em;
}

.home-start__copy>p:last-child {
    margin: 24px 0 0;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 0.04em;
}

.home-start__icon {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 22px rgba(70, 48, 35, 0.1));
}

.home-start__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-start-card {
    position: relative;
    display: flex;
    min-height: 310px;
    padding: 30px 28px 27px;
    overflow: hidden;
    color: var(--karoyaka-text);
    border: 1px solid var(--karoyaka-line);
    border-radius: 18px;
    background: var(--karoyaka-base);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-start-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: var(--karoyaka-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.home-start-card:nth-child(2)::before {
    background: var(--karoyaka-sage);
}

.home-start-card:nth-child(3)::before {
    background: #c38a58;
}

.home-start-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 18px 45px rgba(70, 48, 35, 0.11);
}

.home-start-card:hover::before {
    transform: scaleX(1);
}

.home-start-card__number {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(185, 75, 66, 0.12);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 68px;
    font-weight: 700;
    line-height: 1;
}

.home-start-card__body {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    padding-right: 42px;
}

.home-start-card__eyebrow {
    margin: 0 0 13px;
    color: var(--karoyaka-red);
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.home-start-card h3 {
    margin: 0;
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.home-start-card__body>p:last-child {
    margin: 15px 0 0;
    font-size: 13px;
    line-height: 1.85;
}

.home-start-card__arrow {
    position: absolute;
    right: 25px;
    bottom: 24px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #fff;
    border-radius: 50%;
    background: var(--karoyaka-red);
    font-size: 17px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.home-start-card:hover .home-start-card__arrow {
    transform: translateX(4px);
}

/* ==========================================================
   Latest journeys
========================================================== */

.home-latest {
    padding-block: clamp(88px, 10vw, 150px);
    border-top: 1px solid rgba(216, 204, 188, 0.6);
    background: var(--karoyaka-base);
}

.home-latest__heading {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.7fr);
    align-items: end;
    justify-content: space-between;
    gap: clamp(40px, 8vw, 110px);
    margin-bottom: 52px;
}

.home-latest__heading h2 {
    margin: 0;
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.055em;
}

.home-latest__heading>p {
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 2;
    letter-spacing: 0.035em;
}

.home-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.home-latest-card {
    overflow: hidden;
    border: 1px solid var(--karoyaka-line);
    border-radius: 18px;
    background: var(--karoyaka-paper);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-latest-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 18px 45px rgba(70, 48, 35, 0.11);
}

.home-latest-card__image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #f7eee2, #eee0ce);
}

.home-latest-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-latest-card__image .home-latest-card__placeholder {
    padding: 12%;
    object-fit: contain;
}

.home-latest-card:hover .home-latest-card__image img {
    transform: scale(1.035);
}

.home-latest-card__content {
    padding: 25px 25px 27px;
}

.home-latest-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 14px;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.home-latest-card__meta span {
    color: var(--karoyaka-red);
}

.home-latest-card__meta time {
    color: rgba(51, 48, 46, 0.55);
}

.home-latest-card h3 {
    margin: 0;
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0.025em;
}

.home-latest-card h3 a {
    text-decoration: none;
}

.home-latest-card__excerpt {
    display: -webkit-box;
    margin: 14px 0 0;
    overflow: hidden;
    color: rgba(51, 48, 46, 0.76);
    font-size: 13px;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.home-latest-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding-top: 15px;
    border-top: 1px solid rgba(216, 204, 188, 0.72);
    color: var(--karoyaka-red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.home-latest-card__link span {
    font-size: 17px;
    transition: transform 0.25s ease;
}

.home-latest-card:hover .home-latest-card__link span {
    transform: translateX(4px);
}

.home-latest__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 5vw, 58px);
    min-height: 250px;
    padding: 38px;
    border: 1px dashed var(--karoyaka-line);
    border-radius: 22px;
    background: rgba(255, 253, 249, 0.72);
}

.home-latest__empty img {
    width: min(31vw, 175px);
    filter: drop-shadow(0 14px 20px rgba(70, 48, 35, 0.1));
}

.home-latest__empty-label {
    margin: 0 0 9px;
    color: var(--karoyaka-red);
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.home-latest__empty h3 {
    margin: 0;
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.5;
}

.home-latest__empty div>p:last-child {
    margin: 13px 0 0;
    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================================
   Responsive
========================================================== */

@media (max-width: 960px) {
    .home-container {
        width: min(100% - 48px, 720px);
    }

    .home-fv {
        min-height: auto;
    }

    .home-fv__inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-block: 70px 85px;
    }

    .home-fv__content {
        max-width: 660px;
    }

    .home-fv__visual {
        min-height: 490px;
    }

    .home-fv__sun {
        width: min(72vw, 500px);
    }

    .home-fv__car {
        width: min(82vw, 620px);
    }

    .home-fv__route {
        inset: 0 5% 0 7%;
        width: 88%;
    }

    .home-fv__from {
        right: 8%;
    }

    .home-fv__caption {
        right: 9%;
    }

    .home-fv__scroll {
        display: none;
    }

    .home-start__grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin-inline: auto;
    }

    .home-start-card {
        min-height: 230px;
    }

    .home-latest__heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

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

@media (max-width: 640px) {
    .home-container {
        width: calc(100% - 40px);
    }

    .home-fv__inner {
        padding-block: 55px 68px;
    }

    .home-fv__eyebrow {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .home-fv__title {
        font-size: clamp(30px, 8.6vw, 40px);
        line-height: 1.42;
        letter-spacing: 0.02em;
    }

    .home-fv__title em {
        white-space: nowrap;
    }

    .home-fv__lead {
        margin-top: 25px;
        font-size: 14px;
        line-height: 1.85;
    }

    .home-fv__actions {
        gap: 10px;
        margin-top: 30px;
    }

    .home-button {
        width: 100%;
        min-width: 0;
        padding-block: 14px;
    }

    .home-fv__visual {
        min-height: 330px;
    }

    .home-fv__sun {
        top: 48%;
        width: min(88vw, 400px);
    }

    .home-fv__car {
        bottom: 9%;
        width: min(103vw, 520px);
    }

    .home-fv__route {
        inset: -5% 0 0 1%;
        width: 98%;
    }

    .home-fv__from {
        top: 7%;
        right: 2%;
        font-size: 22px;
    }

    .home-fv__caption {
        right: 2%;
        bottom: 1%;
        font-size: 8px;
    }

    .home-start__heading {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 42px;
    }

    .home-start__copy h2 {
        font-size: clamp(25px, 7.2vw, 31px);
        line-height: 1.6;
        letter-spacing: 0.02em;
        overflow-wrap: normal;
        word-break: keep-all;
    }

    .home-start__copy>p:last-child {
        font-size: 14px;
    }

    .home-start__icon {
        width: 110px;
        margin: -12px 0 0 auto;
    }

    .home-start-card {
        min-height: 235px;
        padding: 26px 24px 24px;
    }

    .home-start-card__number {
        font-size: 58px;
    }

    .home-latest__heading {
        margin-bottom: 36px;
    }

    .home-latest__heading>p {
        font-size: 13px;
    }

    .home-latest__heading>p br {
        display: none;
    }

    .home-latest__grid {
        grid-template-columns: 1fr;
    }

    .home-latest-card__content {
        padding: 23px 22px 25px;
    }

    .home-latest__empty {
        flex-direction: column;
        padding: 32px 24px;
        text-align: center;
    }

    .home-latest__empty img {
        width: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-fv__scroll i::after {
        animation: none;
    }

    .home-button,
    .home-start-card,
    .home-start-card::before,
    .home-start-card__arrow,
    .home-latest-card,
    .home-latest-card__image img,
    .home-latest-card__link span {
        transition: none;
    }
}

/* FVのアクセントに「花とちょうちょ」 */
.home-fv__title em {
  display: inline-block;
  font-family: "hanatotyoutyo", "Zen Maru Gothic", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.98em;
  letter-spacing: 0.03em;
  white-space: nowrap;
}