@charset "UTF-8";

/*
Theme Name: funscompany
Description: funscompany original theme
Version: 1.0
Author: Takuro Maruyama
*/

/*
root
================================================ */
:root {
    --text-brown: #664630;
    --text-black: #484848;
    --white: #fff;
    --light-beige: #F9F6F1;
    --light-beige2: #EDE7E0;
    --beige: #DCD5B3;
    --light-grey: #E0E0E0;
    --light-blue: #F2F8FB;
    --logo-blue: #0062A9;
    --blue: #6AA7E1;
    --orange: #F5A623;
    --yellow: #FABD02;
    --red: #CF5F58;
}

/*
FONTS
================================================ */
@font-face {
    font-family: 'HuiFontP';
    src: url('./assets/fonts/HuiFontP.woff2') format('woff2'),
        url('./assets/fonts/HuiFontP.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GN-KMBFont-UB-OldstyleKana';
    src: url('./assets/fonts/GN-KMBFont-UB-OldstyleKana.woff2') format('woff2'),
        url('./assets/fonts/GN-KMBFont-UB-OldstyleKana.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'GN-KMBFont-UB-NewstyleKanaA';
    src: url('./assets/fonts/GN-KMBFont-UB-NewstyleKanaA.woff2') format('woff2'),
		url('./assets/fonts/GN-KMBFont-UB-NewstyleKanaA.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GN-KMBFont-UB-NewstyleKanaB';
    src: url('./assets/fonts/GN-KMBFont-UB-NewstyleKanaB.woff2') format('woff2'),
		url('./assets/fonts/GN-KMBFont-UB-NewstyleKanaB.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KFhimaji';
    src: url('./assets/fonts/KFhimaji.woff2') format('woff2'),
        url('./assets/fonts/KFhimaji.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/*
GENERAL STYLING
================================================ */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
    margin-top: 0 !important;
}

body {
    color: var(--text-brown);
    background: var(--light-beige);
    font-size: 1.6rem;
    /* 16px */
    font-family: "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック", "Yu Gothic", sans-serif;
    line-height: 1.6;
    letter-spacing: .04em;
}

img {
    display: block;
    width: 100%;
}

.page-title {
    font-family: 'Kiwi Maru', 'Meiryo', sans-serif;
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.page-title-en {
    font-family: 'KFhimaji', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-left: 40px;
    color: var(--logo-blue);
}

.sec-title {
	font-family: 'GN-KMBFont-UB-NewstyleKanaA', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 0.12em;
	margin-bottom: 8px;
}

.sec-title span {
    font-size: 3.2rem;
    color: var(--blue);
}

.sec-title-bar {
    width: 64px;
    height: 4px;
}

/* sec-titleブロック */
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    gap: 16px;
}

.section-heading div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    white-space: nowrap;
}

.town-line {
    width: 100%;
    flex-grow: 1;
    object-fit: contain;
}

.sec-title2 {
    font-family: 'Kiwi Maru', 'Meiryo', sans-serif;
    font-size: clamp(2rem, calc(2rem + (24 - 20) * ((100vw - 1022px) / (1440 - 1022))), 2.4rem);

}

.sec-title2 span {
    color: var(--red);
    font-size: clamp(2.8rem, calc(2.8rem + (36 - 28) * ((100vw - 1022px) / (1440 - 1022))), 3.6rem);
}

.sub-title {
    font-family: 'Meiryo', sans-serif;
    font-size: 1.8rem;
    border-left: 8px solid var(--text-brown);
    font-weight: bold;
    background-color: var(--light-beige2);
    padding-left: 12px;
    margin-bottom: 16px;
}

.sub-title span {
    font-size: 2.4rem;
    color: var(--logo-blue);
}

.sidebar-title {
    font-family: 'KFhimaji', sans-serif;
    font-size: 1.8rem;
    color: var(--logo-blue);
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 8px;
}

.sidebar-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 10px;
    background: url('/wp-content/themes/funscompany/assets/images/common/sidebar_underline.png') no-repeat center;
    background-size: contain;
    margin-left: -8px;
}

.sp-on {
    display: none;
}

@media screen and (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .page-title-en {
        font-size: 1.6rem;
        margin-left: 16px;
    }

    .section-heading {
        margin-bottom: 24px;
        flex-direction: column;
        align-items: initial;
        gap: 0;
    }

    .sec-title {
        font-size: clamp(1.8rem, calc(1.8rem + (22 - 18) * ((100vw - 390px) / (768 - 390))), 2.2rem);
    }

    .sec-title span {
        font-size: clamp(2.4rem, calc(2.4rem + (32 - 24) * ((100vw - 390px) / (768 - 390))), 3.2rem);
    }

    .sec-title2 {
        font-size: clamp(1.6rem, calc(1.6rem + (24 - 16) * ((100vw - 390px) / (768 - 390))), 2.4rem);

    }

    .sec-title2 span {
        font-size: clamp(2.4rem, calc(2.4rem + (32 - 24) * ((100vw - 390px) / (768 - 390))), 3.2rem);
    }

    .sub-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    .sub-title span {
        font-size: 2rem;
    }

    .sp-on {
        display: initial;
    }

}

/* ========== Header ========== */
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5% 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo img {
    max-height: 64px;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* SNSアイコン */
.sns {
    display: flex;
    gap: 16px;
}

.sns a i {
    font-size: 3.6rem;
	display: block;
}

/* 電話番号 */
.tel {
    font-family: 'Kiwi Maru', 'Meiryo', sans-serif;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tel a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tel a i {
    font-size: 2.8rem;
}

.tel span {
    display: block;
    font-size: 1.4rem;
}

/* お問い合わせボタン */
.header-btn a {
    font-family: 'Kiwi Maru', 'Meiryo', sans-serif;
    font-size: 2rem;
    background: var(--yellow);
    color: var(--white);
    padding: 24px 24px 8px 24px;
    border-radius: 0 0 8px 8px;
    box-shadow:
        inset 0 1px 0 0 transparent,
        inset 0 -4px 0 0 var(--orange),
        inset 4px 0 0 0 var(--orange),
        inset -4px 0 0 0 var(--orange);
    transition: background 0.3s ease;
}

.header-btn a:hover {
    background: var(--orange);
}

/* タブレット以下で表示 */
.header-sp-menu i {
    font-size: 2.4rem;
	display: flex;
}

.tel-sp, .header-btn-sp {
	border-right: 1px solid var(--beige);
	padding: 4px 16px;
}

/* ハンバーガー */
.header-sp-menu {
    display: none;
}

.hamburger {
	padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-brown);
    display: block;
    transition: .3s;
}

/* ========== グローバルナビ ========== */
.global-nav-pc {
    border-top: 2px solid var(--text-brown);
    border-bottom: 2px solid var(--text-brown);
}

.global-nav {
    display: none;
}

.nav-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list li {
    border-right: 3px dotted var(--text-brown);
    display: flex;
    padding: 0 36px;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-list li:last-child {
    border-right: none;
}

.nav-list li a {
    font-family: 'Kiwi Maru', 'Meiryo', sans-serif;
}

/* ========== Responsive ========== */
@media screen and (max-width: 1023px) {
    .logo img {
        max-height: 44px;
    }

    .header-contact {
        display: none;
    }

    .header-sp-menu {
        display: flex;
        align-items: center;
    }

    .global-nav-pc {
        display: none;
    }

    .global-nav {
        display: block;
        position: fixed;
        top: 52px;
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        /* 初期は右に隠す */
        transition: transform 0.3s ease-in-out;
        z-index: 9999;
        padding: 40px 24px 24px;
    }

    .global-nav.active {
        transform: translateX(0);
        /* 表示状態 */
    }

    .nav-list {
        flex-direction: column;
        padding: 16px;
    }

    .global-nav .sns {
        gap: 16px;
        flex-direction: column;
        padding-top: 40px;
        padding-left: 5%;
        font-family: 'Kiwi Maru', 'Meiryo', sans-serif;
        font-size: 1.4rem;
    }
	
	.global-nav .sns a{
		display: flex;
	}
	
    .global-nav .sns a i {
        font-size: 2.4rem;
        padding-right: 8px;
    }

    .nav-list li {
        border-right: none;
        border-bottom: 1px dotted var(--text-brown);
        padding: 24px 0;
        width: 100%;
    }

    .hamburger.active span:nth-child(1) {
		transform: translateY(10px) rotate(-45deg);
	}

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(45deg);
    }
}
@media screen and (max-width: 767px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background-color: var(--light-beige);
  }
	main {
		padding-top: 52px; /* ヘッダー高さ分余白を取る（調整要） */
  }
}



/* ========== Footer ========== */
/* CTA セクション */
.footer-cta {
    padding: 128px 5% 40px;
    text-align: center;
}

.footer-cta-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto;
}

.footer-cta-text {
    text-align: left;
}

.footer-cta-text h2 {
    position: relative;
    display: inline-block;
    font-family: 'HuiFontP', sans-serif;
    font-size: clamp(3.6rem, calc(3.6rem + (40 - 36) * ((100vw - 1024px) / (1440 - 1024))), 4rem);
    color: var(--red);
    margin-bottom: 24px;
}

.footer-cta-text h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: url('/wp-content/themes/funscompany/assets/images/common/footer_underline.png') no-repeat center;
    background-size: contain;
}

.footer-cta-text p {
    text-align: left;
}

.footer-cta-contact {
    font-family: 'Kiwi Maru', 'Meiryo', sans-serif;
    border: 1px solid var(--text-brown);
    display: flex;
    padding: 16px 24px;
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

.footer-cta-contact::before {
    content: "";
    position: absolute;
    top: -117px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120px;
    background: url('/wp-content/themes/funscompany/assets/images/common/footer_cta.png') no-repeat center;
    background-size: contain;
    z-index: 1;
}

.footer-cta-contact .cta-tel {
    font-size: 3.6rem;
}

.footer-cta-contact .cta-number {
    font-weight: bold;
}

.cta-hours {
    display: block;
    font-size: 1.4rem;
}

.cta-button a {
    background: var(--yellow);
    padding: 8px 24px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-button a i {
    font-size: 2.2rem;
    margin-right: 4px;
}

.footer-border {
    overflow: hidden;
}

.footer-border img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* フッター下部 */
.footer-bottom {
    background: var(--logo-blue);
    color: var(--white);
    padding: 32px 5% 8px;
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    column-gap: 80px;
    flex: 1;
}

.footer-nav ul {
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: var(--white);
    font-size: 14px;
}

.footer-info {
    max-width: 300px;
    color: var(--white);
    font-size: 14px;
}

.footer-info h3 {
    font-size: 2.4rem;
    font-weight: bold;
}

.footer-info img {
    display: inline-block;
    max-width: 160px;
    margin-bottom: 8px;
    background: var(--white);
    padding: 16px 24px;

}

.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--white);
    margin-top: 32px;
}

/* レスポンシブ */
@media screen and (max-width: 1023px) {
    .footer-cta {
        padding: 40px 5% 40px;
    }

    .footer-cta-inner {
        flex-direction: column;
        align-items: center;
        gap: 120px;
    }

    .footer-cta-text {
        text-align: center;
    }

    .footer-cta-contact {
        width: 100%;
        max-width: 480px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-info {
        text-align: center;
    }
}

@media screen and (max-width: 767px) {
    .footer-cta-text {
        font-size: 1.4rem;
    }

    .footer-cta-contact .cta-tel {
        font-size: 2.4rem;
    }

    .cta-button a {
        font-size: 1.4rem;
        min-width: 310px;
    }

    .footer-border img {
        width: 160%;
    }

    .footer-inner {
        gap: 24px;
        text-align: center;
    }

    .footer-cta-text h2 {
        font-size: 2.4rem;
    }

    .footer-nav {
        flex-direction: column;
    }
}

/* ========== Loading ========== */
/* Loading背景画面設定　*/
#splash {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: var(--light-beige);
	background: #FCF1E4;
    text-align: center;
}

/* Loading画像中央配置　*/
#splash_text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}
#splash_logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);	
}

/* Loading アイコンの大きさ設定　*/
#splash_text img {
    width: 400px;
}
#splash_logo img {
    width: 240px;
}
@media screen and (max-width: 767px) {
	#splash_text img {
		width: 300px;
	}
	#splash_logo img {
    	width: 160px;
	}
}

/* fadeUp */
.fadeUp {
    animation-name: fadeUpAnime;
	animation-duration: 0.3s;
    animation-fill-mode: forwards;
}
@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.fadeOut {
    animation-name: fadeOutAnime;
	animation-duration: 0.4s;
    animation-fill-mode: forwards;
}
@keyframes fadeOutAnime {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.bounceIn {
  animation: bounceIn 1.0s ease-out forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(-180px);
  }
  30% {
    opacity: 1;
    transform: translateY(40px);
  }
  50% {
    transform: translateY(-40px);
  }
  70% {
    transform: translateY(20px);
  }
  85% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes slideUpAnime {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.slideUp {
  animation: slideUpAnime 0.6s ease-in-out forwards;
}

