@charset "UTF-8";

/* =============================================================================
   グローバルスタイル — 全ページ共通

   ページ固有のCSSは以下のファイルで管理しています:
     css/page-top.css        トップページ
     css/page-news.css       ニュース / 旧NEWS
     css/page-company.css    会社紹介
     css/page-culture.css    文化復興事業
     css/page-form.css       お問い合わせ / 入力内容確認
   ============================================================================= */


/* =============================================================================
   ベース / レイアウト
   ============================================================================= */

body {
    background-color: #ffffff;
    font-family: "Roboto", "Noto Sans JP", sans-serif;
    font-size: 1rem;
}

.l-content {
    margin-bottom: 0;
}

/* 固定ページのタイトルエリア非表示 */
.l-topTitleArea {
    display: none;
}


/* =============================================================================
   ボタン
   ============================================================================= */

.contact_btn {
    display: grid !important;
    place-items: center;
}

/* スライドアニメーションボタン */
.btn_frame_anime a {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    outline: none;
    color: #ffffff;
    background-color: #3BA6D7;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.5s ease;
}

.btn_frame_anime.btn_frame_anime_blue a {
    background-color: #126CB1;
}

.btn_frame_anime a:hover {
    color: #3BA6D7;
}

.btn_frame_anime.btn_frame_anime_blue a:hover {
    color: #126CB1;
}

/* スライド背景（::before 疑似要素） */
.btn_frame_anime a::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn_frame_anime.btn_frame_anime_white a::before {
    background-color: #CFE9F5;
}

.btn_frame_anime a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

@media screen and (max-width: 959px) {
    .btn_frame_anime a {
        transition: color 0.1s ease;
    }

    .p-spMenu__bottom .btn_frame_anime a:hover {
        color: #3B93CA !important;
    }

    .btn_frame_anime.btn_frame_anime_blue a:active {
        color: #126CB1;
    }

    .btn_frame_anime a:active::before {
        transform: scaleX(1);
        transform-origin: left;
    }
}


/* =============================================================================
   ヘッダー / グローバルナビ
   ============================================================================= */

.l-header {
    background-color: #fff;
    position: absolute;
}

.l-header__inner {
    height: 48px;
}

.l-header__inner .c-gnav .sub-menu a {
    font-size: 12px;
}

.l-header__gnav li.menu-item a:hover {
    color: #3b93ca;
}

.l-header__gnav li.menu-item:hover a {
    background-color: #ffffff;
}

.l-header__gnav li.menu-item.-current > a {
    background-color: #ffffff;
    color: #126cb1;
}

.fa-brands {
    color: #777777;
}

/* サブメニュー（メニュー項目 ID:483） */
.c-gnav > .menu-item-483 > .sub-menu {
    transform: translatex(0);
    font-size: 0.6rem;
    border-radius: 0;
    top: 75%;
}

.c-gnav > .menu-item-483 > .sub-menu a::before {
    content: none;
}

@media (min-width: 960px) {
    .l-header__inner {
        justify-content: space-around;
        align-items: center;
        margin-top: 24px !important;
        width: calc(100% - 350px);
        max-width: 750px;
        transform: translatex(-100px);
        margin: 0 auto;
        background-color: #ffffff;
        padding: 8px 16px;
        border-radius: 5px;
        position: relative;
    }

    .l-header__logo {
        transform: translatey(-4px);
    }

    .c-gnav {
        justify-content: space-between;
    }

    .-series .l-header__inner .l-header__logo {
        padding: 0;
    }

    .w-header {
        position: absolute;
        top: 0;
        right: -166px;
    }
}


/* =============================================================================
   モバイルメニュー（ハンバーガー）
   ============================================================================= */

div.p-spMenu__body {
    overflow: visible;
}

/* SPメニューロゴ */
.p-spMenu__body .c-widget__title.-spmenu {
    font-size: 0;
    height: 35px;
    width: 150px;
    background-color: #ffffff;
    background-image: url("https://rocksss.xsrv.jp/kani/wp-content/uploads/2025/10/ligo.svg");
    background-repeat: no-repeat;
    position: absolute;
    top: -75px;
    left: 12px;
    z-index: 10;
}

.p-spMenu__body .btn_frame_anime a {
    border-radius: 0px;
    width: 100%;
    background-color: #3B93CA;
}

/* オーバーレイ背景 */
.p-spMenu__inner::before {
    background-color: #ffffff;
}

.p-spMenu__nav {
    margin-top: 40px;
}

.p-spMenu__nav ul li a:hover,
.p-spMenu__nav ul li a:active {
    background-color: #ffffff;
    color: #126cb1;
}

/* ナビ内ウィジェットタイトル非表示 */
.p-spMenu__nav .c-widget__title.-spmenu {
    display: none;
}

.p-spMenu__nav .c-gnav .sub-menu a::before,
.c-listMenu a::before {
    content: "";
}

/* サブメニューの開閉ボタン（+ / − アイコン） */
.p-spMenu__nav .hb_nav_parent a {
    position: relative;
}

.p-spMenu__nav .hb_nav_parent > a::after,
.p-spMenu__nav .hb_nav_parent > a::before {
    all: unset;
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 12px;
    height: 2px;
    background-color: #3B93CA;
    transition: transform 0.3s;
}

.p-spMenu__nav .hb_nav_parent > a::after {
    transform: rotate(90deg) translateY(0.5px);
}

.p-spMenu__nav .hb_nav_parent > a.active::after {
    transform: translateY(0px) rotate(0deg);
}

/* サブメニュー アコーディオン */
.p-spMenu__nav .sub-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.p-spMenu__nav .c-listMenu .sub-menu li a {
    padding-left: 4.5rem;
}

.p-spMenu__nav .c-listMenu .sub-menu li a::before {
    content: "→";
    color: #ffffff;
    background-color: #3B93CA;
    border-radius: 50%;
    left: 2.5rem;
    padding: 0.3rem;
}

/* SNSアイコン */
.sns_icons {
    text-align: center;
}

.sns_icons i {
    font-size: 18px;
    margin: 0 16px;
}


/* =============================================================================
   メインビジュアル / ヒーロー
   ============================================================================= */

.p-mainVisual__imgLayer {
    background: linear-gradient(to bottom, #EAF1F5 0%, #ffffff 100%);
    width: 100%;
    height: auto;
    min-width: 300px;
    min-height: 540px;
    padding-bottom: 100px;
}

.c-filterLayer:after,
.c-filterLayer:before,
.c-filterLayer__img {
    position: relative;
    display: block;
}

.p-mainVisual__imgLayer img {
    animation: fadeIn-awa 0.4s 0.2s ease forwards;
    opacity: 0;
    width: 100% !important;
    height: auto !important;
}

.-height-auto .p-mainVisual__textLayer {
    position: absolute;
    left: 50%;
    transform: translatex(-50%);
    width: 99vw;
}

.p-mainVisual__textLayer .wp-block-image figure {
    width: 100%;
}

.p-mainVisual__textLayer .fv_pc_earth {
    position: absolute;
    left: -5vw;
    top: 75%;
    z-index: 1;
}

.p-mainVisual__textLayer .fv_pc_earth .wp-block-column img {
    width: 12vw !important;
    height: auto;
    min-width: 118px;
    max-width: 300px;
}

.p-mainVisual__textLayer .fv_text {
    width: 28vw;
    height: auto;
    margin-left: auto !important;
}

.p-mainVisual__textLayer .fv_text img {
    width: 100%;
    height: auto;
    text-align: center;
}

.p-mainVisual__textLayer .fv_right {
    width: 46vw;
    height: auto;
    margin: 0 auto !important;
}

.p-mainVisual__textLayer .fv_right img {
    width: 100%;
    height: auto;
    text-align: center;
}

@keyframes fadeIn-awa {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media screen and (min-width: 960px) {
    .p-mainVisual__textLayer .p-blogParts {
        padding-top: 60px;
        transform: none;
    }
}

@media screen and (max-width: 959px) {
    .p-mainVisual__textLayer img {
        animation: none;
    }

    .-height-auto .p-mainVisual__textLayer {
        padding-bottom: 0;
    }

    .p-mainVisual__imgLayer {
        padding-bottom: 30px;
    }
}

/* SP専用メインビジュアル */
.fv_sp {
    height: 100vh;
}

.fv_sp .swell-block-fullWide__inner {
    position: relative;
    height: 100%;
}

.fv_sp .swell-block-fullWide__inner > * {
    display: block;
    margin: 0 auto;
}

.fv_sp .swell-block-fullWide__inner img {
    width: 100%;
    height: auto;
}

.fv_earth_sp {
    width: 28vw;
    object-fit: contain;
    position: absolute;
    top: 120vw;
    left: 6vw;
}


/* =============================================================================
   タイポグラフィ
   ============================================================================= */

.small {
    color: #333;
    font-size: 1rem;
    font-weight: normal;
    margin-left: 0.4rem;
}

/* セクション見出し h2（英語大文字 + 日本語サブタイトル） */
.post_content .is-style-section_ttl.h2_fadein,
.h2_fadein {
    text-align: left;
    font-size: 56px;
    color: #126CB1;
    font-weight: bold;
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 1em;
}

.post_content .is-style-section_ttl.h2_fadein::before,
.h2_fadein::before {
    display: block;
    font-size: 16px;
    color: #333333;
    font-weight: normal;
    position: absolute;
    top: 40px;
    height: fit-content;
}

.post_content .is-style-section_ttl.h2_fadein.h2_news::before,
.h2_fadein.h2_news::before {
    left: 180px;
    width: 80px;
}

.post_content .is-style-section_ttl.h2_fadein.h2_service::before {
    left: 250px;
    width: 80px;
}

.post_content .is-style-section_ttl.h2_fadein.h2_contact {
    text-align: center;
}

.post_content .is-style-section_ttl.h2_fadein.h2_contact::before {
    left: 590px;
    width: 100px;
}

@media screen and (max-width: 959px) {
    .h2_fadein.h2_news::before    { transform: translateX(0px); }
    .h2_fadein.h2_service::before { transform: translateX(0px); }
    .h2_fadein.h2_contact::before { transform: translateX(-10px); }
}


/* =============================================================================
   投稿リスト
   ============================================================================= */

/* アイコン非表示 */
.icon-posted::before,
.icon-folder::before {
    content: "";
    display: none;
}

/* カテゴリバッジ */
.p-postList__cat {
    background-color: #3BA6D7;
    color: #ffffff;
    width: 134px;
    padding: 4px;
    text-align: center;
    opacity: 1;
}

.p-postList__cat.u-thin.icon-folder {
    color: #fff;
    padding: 0.2rem 0.6rem;
    width: 134px;
    text-align: center;
}

/* 本文エリアのフレックス順序：メタ → タイトル → 抜粋 */
.p-postList__body {
    display: flex;
    flex-direction: column;
}

.p-postList__meta {
    order: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.p-postList__title   { order: 2; }
.p-postList__excerpt { order: 3; }

.p-postList__meta .p-postList__cat   { order: 1; }
.p-postList__meta .p-postList__times { order: 2; }

/* リストタイプ */
.-type-list .p-postList__link,
.-type-list2 .p-postList__link {
    align-items: center;
}


/* =============================================================================
   タブ（swell-block-tab）
   ============================================================================= */

.is-style-default > .c-tabList .c-tabList__button:hover,
.is-style-default > .c-tabList .c-tabList__button[aria-selected=true] {
    background-color: #CFE9F5;
    color: #000000;
}

.is-style-default > .c-tabList .c-tabList__button {
    border: 1px solid #CFE9F5;
}

.is-style-default .c-tabBody {
    border: 0;
}


/* =============================================================================
   お問い合わせ / コンタクトセクション（共通）
   トップページ・会社紹介ページ両方に表示されるため global.css で管理
   ============================================================================= */

.lp_contact {
    padding-bottom: 0 !important;
}

.tel_link {
    text-decoration: none;
}

.tel_link a {
    color: #333333;
}

/* 左側（電話エリア） */
.top_contact_left {
    background-color: #EBF6FC;
    height: 325px;
}

.top_contact_left::before {
    content: "";
    height: 325px;
    position: absolute;
    width: 1000px;
    background-color: #EBF6FC;
    left: -900px;
    z-index: -1;
}

/* 右側（フォームエリア） */
.top_contact_right {
    background-color: #F0F0F0;
    position: relative;
    height: 325px;
}

.top_contact_right::before {
    content: "";
    position: absolute;
    width: 1000px;
    height: 325px;
    background-color: #F0F0F0;
    left: 100%;
}

.top_contact_right p:last-of-type {
    margin-bottom: 28px !important;
}

.top_contact .wp-block-buttons a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact_eng span {
    font-family: "Roboto", serif;
}

.contact_head_text {
    letter-spacing: 0.12em;
}

@media screen and (max-width: 959px) {
    .post_content .is-style-section_ttl.h2_contact {
        margin: 0 auto 40px;
        width: fit-content;
        font-size: 40px;
    }

    .post_content .is-style-section_ttl.h2_contact::before {
        left: auto !important;
        right: 16px;
        top: 24px;
        height: 16px;
        width: fit-content;
    }

    .top_contact {
        margin-top: 0 !important;
        padding-bottom: 15px !important;
    }

    .top_contact .top_contact_tel_sp {
        margin-bottom: 0;
    }

    .top_contact_left,
    .top_contact_right {
        height: 414px;
    }

    .top_contact .swell-block-fullWide__inner p.contact_head_text {
        padding: 48px 0 0;
        font-size: 20px;
        letter-spacing: 0;
    }

    .top_contact .swell-block-fullWide__inner p.contact_head_text strong {
        font-weight: normal;
    }

    .top_contact .swell-block-fullWide__inner p.contact_head_text span {
        font-size: 20px !important;
    }

    .top_contact .company_line_btn_wrapper  { padding-top: 5px;  padding-bottom: 15px; }
    .top_contact .company_form_btn_wrapper  { padding-top: 5px;  padding-bottom: 40px; }
    .top_contact .toilet_line_btn_wrapper   { padding-top: 10px; padding-bottom: 36px; }

    .top_contact .wp-block-buttons a {
        width: 254px !important;
        padding: 7px 16px;
        font-size: 15px;
    }
}


/* =============================================================================
   Contact Form 7
   ============================================================================= */

/* フォーム行の下余白 */
.wpcf7-form p {
    margin-bottom: 30px;
}

/* 入力フィールド */
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea {
    width: 100%;
    background-color: #fff;
    margin-top: 5px;
}

/* ラジオボタン */
.wpcf7-radio span {
    margin-left: 0;
}

/* 送信ボタン / 戻るボタン */
.wpcf7-submit,
.wpcf7-previous {
    display: inline-block;
    width: 240px;
    padding: 1.2em 1em;
    border-radius: 50px;
    background: #3BA6D7;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1;
    color: #fff !important;
}

.submit-btn .send {
    margin-left: 32px;
}

.submit-btn > p {
    display: flex;
}

.back {
    background: #fff;
    border: 1px solid #3BA6D7 !important;
    color: #3BA6D7 !important;
}

/* 必須マーク */
.required {
    color: #fff !important;
    background: #3BA6D7 !important;
    font-size: 0.8em !important;
    padding: 0.2em 0.5em !important;
    border-radius: 0.3em !important;
    margin-right: 0.4em !important;
}


/* =============================================================================
   フッター
   ============================================================================= */

.w-beforeFooter {
    margin: 15px auto 0;
}

.footer_before .footer_before_right .swell-block-columns__inner {
    justify-content: flex-end;
}

.footer_before .footer_before_right .swell-block-column {
    width: fit-content;
}

@media screen and (max-width: 959px) {
    .w-beforeFooter {
        margin-top: 50px;
    }

    .w-beforeFooter .swell-block-columns {
        margin-bottom: 26px;
    }

    .w-beforeFooter .swell-block-columns .swell-block-column {
        width: fit-content;
    }

    .w-beforeFooter .swell-block-columns.sp_only p {
        width: fit-content;
        margin-bottom: 16px;
    }

    .w-beforeFooter .swell-block-columns:last-child p {
        font-size: 0.8em;
        padding-bottom: 14px;
    }
}
