@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Qwitcher+Grypen&display=swap');

/* =========================
   基本
========================= */
body, h1, h2, h3, h4, h5, h6, p, ul, dl {
	font-family: 游明朝, YuMincho, "Hiragino Mincho ProN W3", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", HG明朝E, "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif　!important;
}
.home #container-head {
	background: rgba(0, 0, 0, 0.9) !important;
    border: none !important;
}
/* ヘッダーの変化をふわっとさせる */
.home #container-head {
    transition:
	background-color 1.5s ease-in,
	box-shadow 1.5s ease-in,
	opacity 1.5s ease-in;
}

/* 透明ヘッダー */
.home #container-head.header_transparent {
    background-color: transparent;
    box-shadow: none;
}
.header_transparent,
.vegas-slide,
#btn_scroll {
    display: none;
}

.home .dropmenu > li a, .home .dropmenu > li a:link {
	background: none !important;
    color: #fff !important;
}

.home #bg_mv,
#mv_area {
	background: #fff !important;
    z-index: 3;
}
.home #bg_mv {
	position: relative;
}
#mv_area:after {
    display: none !important;
}

/* =========================
   MVエリア
========================= */

#mv_area .content-typer {
    position: relative;
    top: 0 !important;
    z-index: 3 !important;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* コピーの親 */
#mv_area .content-typer > div {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* コピー全体を左へ移動 */
#mv_area .content-typer > div.is-complete {
    left: 0;
    transform: translate3d(-40vw, 0, 0);
}

/* MV見出し */
#mv_area .content-typer h2 {
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: 0 !important;
    padding: 0;
    color: #000 !important;
    font-size: 26px !important;
    line-height: 1.8em;
    letter-spacing: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    visibility: hidden;
}

#mv_area h2.is-active {
    visibility: visible;
}

/* 各行 */
#mv_area h2 > span {
    display: inline-block;
    opacity: 0;
    white-space: nowrap;
}

#mv_area h2 > span.is-show {
    animation: mvFadeIn 1s ease forwards;
}

@keyframes mvFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 句読点 */
span.comma {
    display: inline-block !important;
    letter-spacing: -0.5em;
	transform: translateY(-0.15em);
	margin-top: 0 !important;
}

/* =========================
   MV画像
========================= */

#mv_img {
    opacity: 0;
    visibility: hidden;
}

#mv_img.is-visible {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    color: #000;
    visibility: visible;
    animation: mvImageFadeIn 2.5s ease forwards;
}

@keyframes mvImageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================
   MVバナー
========================= */

#mv_bnr {
    width: 40% !important;
    margin-bottom: 0;
    border: 1px solid #ccc;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

#mv_bnr h2 {
    font-size: 19px;
}

#mv_bnr.is-visible {
    opacity: 1;
    visibility: visible;
}

/* =========================
   Karakara Factory
========================= */

#factory_logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 96vw;
    max-width: 1400px;
    color: rgba(0, 0, 0, 0.25);
    font-family: "Qwitcher Grypen", cursive;
    font-weight: 400;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

#factory_logo.is-drawing {
    opacity: 1;
    visibility: visible;
}

.factory-word {
    display: flex;
    width: max-content;
    font-family: "Qwitcher Grypen", cursive;
    font-size: clamp(96px, 16vw, 200px);
    font-weight: 400;
    line-height: 0.75;
    white-space: nowrap;
    transform: rotate(-13deg);
}

.factory-karakara {
    margin-left: -15%;
}

.factory-factory {
    margin-top: 8px;
    margin-left: 15%;
}

.factory-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
}

#factory_logo.is-drawing .factory-word span {
    animation: factoryLetter 0.65s ease-out forwards;
    animation-delay: calc(var(--i) * 0.16s);
}

@keyframes factoryLetter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================
   セクション共通
========================= */

.text-3,
.text-4,
.text-16,
.text-17 {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    padding: 6em 0 !important;
    background: #fff;
}

.text-3 h1:after,
.text-4 h1:after,
.text-16 h1:after,
.text-17 h1:after,
.text-18 h1:after {
    display: none !important;
}

.text-18 .container-widget .content-widget h1 {
    text-align: center !important;
}

.text-3 .row,
.text-4 .row,
.text-16 .row,
.text-17 .row {
    float: none !important;
    width: 100% !important;
}

section.group.text-3,
section.group.text-4,
section.group.text-16,
section.group.text-17 {
    background-image: none !important;
}

/* =========================
   縦書き
========================= */

#greeting,
#happiness,
#family,
#future {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.text-3 h1,
.text-4 h1,
.text-16 h1,
.text-17 h1 {
    color: #333 !important;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* =========================
   カラム配置
========================= */

.text-3 .col-3-3,
.text-4 .col-3-3,
.text-16 .col-3-3,
.text-17 .col-3-3 {
    display: flex !important;
    flex-direction: row-reverse !important;
}

/* =========================
   オーバーフロー
========================= */

.text-3 .content-widget,
.text-3 .col-3-3,
.text-3 .row,
.text-4 .content-widget,
.text-4 .col-3-3,
.text-4 .row,
.text-16 .content-widget,
.text-16 .col-3-3,
.text-16 .row,
.text-17 .content-widget,
.text-17 .col-3-3,
.text-17 .row,
.text-18 .content-widget,
.text-18 .col-3-3,
.text-18 .row {
    overflow: visible;
}

/* =========================
   段落の基本表示
========================= */

#greeting p,
#happiness p,
#family p,
#future p,
#hope p {
    display: block;
    margin: 0.25em 1em;
    color: #333 !important;
    font-size: 18px !important;
    line-height: 1.8em !important;
    letter-spacing: 10px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease;
}

#hope p {
    text-align: center;
}

/* 表示状態 */

#greeting p.is-show,
#happiness p.is-show,
#family p.is-show,
#future p.is-show,
#hope p.is-show {
    opacity: 1;
    visibility: visible;
}

/* =========================
   背景画像コンテナ
========================= */

#linear_greeting_container,
#linear_happiness_container,
#linear_family_container,
#linear_future_container {
    position: absolute;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.35;
}

#linear_hope_container {
    opacity: 0.35;
}

#linear_greeting_container img {
    display: block;
    width: 100%;
    height: auto;
}

#linear_happiness_container img,
#linear_future_container img {
    display: block;
    width: 720px;
    max-width: 720px;
    height: auto;
}

#linear_hope_container img {
    display: block;
    max-width: 640px;
    margin: 0 auto;
}

#linear_happiness_container,
#linear_future_container {
    left: 800px;
}

/* =========================
   text-4・text-17
========================= */

.text-4 .content-widget,
.text-17 .content-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-4 .content-widget .row,
.text-17 .content-widget .row {
    display: flex !important;
    flex-direction: row-reverse !important;
    width: fit-content !important;
}

/* 見出しと本文を縦書き */

.text-4 h1,
.text-4 .textwidget {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* 見出し */

.text-4 h1 {
    align-self: flex-start;
    margin: 0 0 2em 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease;
}

/* 本文 */

.text-4 .textwidget p {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease;
}

/* 表示状態 */

.text-4 h1.is-show,
.text-4 .textwidget p.is-show {
    opacity: 1;
    visibility: visible;
}

/* =========================
   text-16
========================= */

#family:after {
    position: absolute;
    top: 10%;
    left: -30%;
    z-index: -1;
    display: block;
    width: 65%;
    height: 40%;
    background: rgba(0, 0, 0, 0.035);
    content: '';
}

/* =========================
   text-17
========================= */

#future:after {
    position: absolute;
    top: -20%;
    right: -100%;
    z-index: -1;
    display: block;
    width: 65%;
    height: 85%;
    background: rgba(0, 0, 0, 0.035);
    content: '';
}

/* =========================
   text-18
========================= */

.text-18 {
    z-index: -1;
    margin: 90px auto 30px auto;
    overflow: hidden;
}

.text-18 .content-widget {
    width: 100%;
    max-width: 100%;
}

.text-18 h1 {
	color: #333;
}
.text-18 h1 span {
    color: #da131a;
}

#hope {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

#hope .img_model_house img {
    display: block;
    max-width: 360px;
    margin: 30px auto 0 auto;
}

#hope .img_model_house p small {
	display: block;
	font-size: 12px;
    color: #555;
    line-height: 1.75em;
    margin-top: 15px;
    letter-spacing: 5px;
}


/* =========================
   背景：History
========================= */

#bg_history {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 8%,
        rgba(0, 0, 0, 0.15) 22%,
        #000 38%,
        #000 62%,
        rgba(0, 0, 0, 0.15) 82%,
        transparent 96%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 8%,
        rgba(0, 0, 0, 0.15) 22%,
        #000 38%,
        #000 62%,
        rgba(0, 0, 0, 0.15) 82%,
        transparent 96%,
        transparent 100%
    );
}

#bg_history ul {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

#bg_history li {
    position: absolute;
    bottom: -30%;
    left: var(--history-x, 50%);
    width: var(--history-width, 180px);
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

#bg_history li.is-visible {
    visibility: visible;
    animation: history-float
        var(--history-duration, 30s)
        var(--history-delay, 0s)
        linear infinite;
}

#bg_history li img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    filter: saturate(0.75);
    border-radius: 2px;
}

@keyframes history-float {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    8% {
        opacity: 0;
    }

    22% {
        opacity: 1;
    }

    65% {
        opacity: 0.85;
    }

    100% {
        transform: translate3d(0, -140vh, 0);
        opacity: 0;
    }
}

.btn_center, #post ul li .btn_center {
	box-sizing: border-box;
}

/* =========================
   段落のフェードアニメーション
========================= */

/* 表示前 */

.text-3 .textwidget p,
.text-4 .textwidget p,
.text-16 .textwidget p,
.text-17 .textwidget p,
.text-18 .textwidget p {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

/* 表示時 */

.text-3 .textwidget p.is-show,
.text-4 .textwidget p.is-show,
.text-16 .textwidget p.is-show,
.text-17 .textwidget p.is-show,
.text-18 .textwidget p.is-show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* =========================
   動きを減らす設定
========================= */

@media (prefers-reduced-motion: reduce) {
    .text-3 .textwidget p,
    .text-4 .textwidget p,
    .text-16 .textwidget p,
    .text-17 .textwidget p,
    .text-18 .textwidget p {
        opacity: 1;
        transform: none;
        transition: none;
    }

    #bg_history li {
        display: none;
        animation: none;
    }
}


/* =========================
   タブレット以下
========================= */

@media (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    #mv_img img {
        max-width: 640px;
    }

    #mv_bnr {
        width: 50% !important;
    }
}

/* =========================
   スマートフォン
========================= */

@media (max-width: 767px) {
    /* MVコピーの移動 */
    #mv_area .content-typer > div.is-complete {
        transform: translate3d(-30vw, 0, 0);
    }

    #mv_area .content-typer h2,
    .container-widget .content-widget h1 {
        font-size: 24px !important;
    }

    #greeting p,
    #happiness p,
    #family p,
    #future p,
    #hope p {
        font-size: 15px !important;
    }

    #mv_img img {
        max-width: 480px;
    }

    #factory_logo {
        left: 65%;
    }

    #mv_bnr {
        width: 65% !important;
        margin-bottom: 3em;
    }

    .textwidget p.is-show br {
        display: block !important;
    }

    /* カラム配置 */
    .text-3 .content-widget {
        width: 90% !important;
        max-width: 90% !important;
        min-width: 90% !important;
    }

    .text-3 .col-3-3,
    .text-4 .col-3-3,
    .text-16 .col-3-3,
    .text-17 .col-3-3 {
        display: flex !important;
        flex-direction: row-reverse !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 8px;
        min-width: 0;
    }

    /* 見出し */
    .text-3 .container-widget .content-widget h1,
    .text-4 .container-widget .content-widget h1,
    .text-16 .container-widget .content-widget h1,
    .text-17 .container-widget .content-widget h1 {
        writing-mode: vertical-rl;
        flex: 0 0 auto !important;
        width: auto;
        min-width: 0;
    }

    /* 本文 */
    .text-3 .container-widget .content-widget .textwidget,
    .text-4 .container-widget .content-widget .textwidget,
    .text-16 .container-widget .content-widget .textwidget,
    .text-17 .container-widget .content-widget .textwidget {
        writing-mode: vertical-rl;
        flex: 0 1 auto !important;
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    /* 背景画像位置 */
    #linear_greeting_container,
    #linear_happiness_container,
    #linear_family_container,
    #linear_future_container {
        top: 10em;
        left: 0;
    }

    .container-widget {
        overflow: visible !important;
    }

    .content-widget {
        width: 90% !important;
        padding-bottom: 10em !important;
    }

    .home #wrapper section:nth-child(3).text-4 .container-widget .content-widget h1,
    .home #wrapper section:nth-child(3).text-4 .content-widget .textwidget p {
        color: #333 !important;
    }

    #linear_happiness_container,
    #linear_future_container {
        right: -125%;
    }

    #linear_future_container {
        left: auto;
    }

    #linear_happiness_container img,
    #linear_future_container img {
        width: 640px;
        max-width: 640px;
    }

    .text-4 .content-widget,
    .text-17 .content-widget {
        padding: 0 !important;
    }

    #linear_hope_container img {
        max-width: 480px;
    }

    #hope .img_model_house img {
        max-width: 240px;
    }
}

/* =========================
   小型スマートフォン
========================= */

@media (max-width: 480px) {
    body,
    #wrapper {
        overflow-x: hidden !important;
    }

    /* MVコピーの移動 */
    #mv_area .content-typer > div.is-complete {
        transform: translate3d(-30vw, 0, 0);
    }

    #mv_area .content-typer h2 {
        top: -4em;
        font-size: 16px !important;
        letter-spacing: 8px;
    }

    #mv_bnr h2 {
        font-size: 14px !important;
        letter-spacing: 1px;
    }

    .factory-word {
        font-size: clamp(84px, 16vw, 200px);
    }

    #mv_img img {
        max-width: 320px;
    }

    #mv_bnr {
        width: 80% !important;
        margin-bottom: 3em;
        padding: 15px 20px;
    }

    .text-3 .col-3-3,
    .text-4 .col-3-3,
    .text-16 .col-3-3,
    .text-17 .col-3-3 {
        max-width: 100%;
    }

    .text-3 .container-widget .content-widget h1,
    .text-4 .container-widget .content-widget h1,
    .text-16 .container-widget .content-widget h1,
    .text-17 .container-widget .content-widget h1,
    .text-18 .container-widget .content-widget h1 {
        width: auto;
        font-size: 18px !important;
    }

    section.group.text-3,
    section.group.text-4,
    section.group.text-16,
    section.group.text-17,
    section.group.text-18 {
        padding: 4em 0 !important;
    }

    .content-widget {
        padding-bottom: 0 !important;
    }

    #hope .img_model_house img {
        max-width: 240px;
    }

    #greeting p.is-show,
    #happiness p.is-show,
    #family p.is-show,
    #future p.is-show,
    #hope p.is-show {
        font-size: 13px !important;
    }

    #hope p {
        letter-spacing: 3px;
    }

    #linear_happiness_container {
		right: -50%;
		top: 15em;
    }

    #linear_future_container {
        right: -90%;
    }

    #linear_family_container img,
    #linear_happiness_container img,
    #linear_future_container img {
        width: 420px;
        max-width: 420px;
    }

    #linear_hope_container img {
        max-width: 320px;
    }

    .btn_center,
    #post ul li .btn_center {
        box-sizing: border-box;
	}
	
	#hope .img_model_house p small {
		font-size: 10px;
	}
}
