/*!
Theme Name: ONE DESIGN
Theme URI: https://onedesign-re.jp/
Author: Shinya Miyata
Author URI: https://onedesign-re.jp/
Version: 1.0
Text Domain: onedesign-re
*/
/* 基本スタイリングと背景画像 */
body {
    background-color: #fafafa;
    /* font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "Osaka", sans-serif; */
    font-family: "メイリオ", "Meiryo", "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", sans-serif;
    font-size: 14px;
}
/* メディアクエリでスマホビューのスタイルを調整 */
@media screen and (max-width: 425px) {
    body {
        font-size: 12px;
    }
    .is-size-3 {
        font-size: 1.5rem !important;
    }
    .is-size-4 {
        font-size: 1.2rem !important;
    }
    .is-size-5 {
        font-size: 1.1rem !important;
    }
}
@media screen and (min-width: 426px) and (max-width: 768px) {
    body {
        font-size: 13px;
    }
    .is-size-3 {
        font-size: 1.75rem !important;
    }
}

/* #top {
    background-image: url('../onedesign-re/images/top/top_background.jpeg');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    width: 100vw;
} */
#top {
    position: relative; /* 子要素の位置を制御するための設定 */
    /* height: 100vh; */
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
}
#top::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* ここで不透明度を調整 */
}

#top video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; /* 動画を背景としてフィットさせる */
    z-index: 0; /* コンテンツの背面に配置 */
}

/* Hero内のコンテンツを動画の上に表示 */
#top .hero-body {
    position: relative;
    z-index: 1; /* 動画の上に表示されるようにする */
    color: white; /* コンテンツの文字色を白に設定 */
    text-align: center;
    /* background-color: #000; */
}

/* ナビゲーションバー */
.footer {
    background-color: #0000FF; /* ナビゲーションバーとフッターの背景色 */
    color: #363636;
}

/* ナビゲーションバーのアニメーション設定 */
.navbar {
    background-color: #fff; /* ナビゲーションバーとフッターの背景色 */
    position: fixed;
    width: 100%;
    transition: transform 0.5s ease, opacity 0.5s ease; /* アニメーションの追加 */
    transform: translateY(-100%);
    opacity: 0;
}

.navbar__other {
    background-color: #fff; /* ナビゲーションバーとフッターの背景色 */
    position: fixed;
    width: 100%;
    z-index: 30;
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.3);
}

.navber__color {
    background-color: #fff;
}

.navbar.is-active {
    transform: translateY(0);
    opacity: 1;
}

.navbar-item {
    color: black;
    font-weight: bold;
}

.footer a {
    color: white;
    font-weight: bold;
}

a.navbar-item:hover, a.navbar-item:focus {
    background-color: #f5f5f5;
    color: #0000FF;
}

.navbar-menu-bar-color {
    color: #292929;
}

/* トップセクション部分 */
.hero-body {
    position: relative;
    /* max-height: 100vh; */
    max-height: 100%;
}
/* .hero.is-fullheight {
    min-height: 100%;
} */

.top-images {
    max-height: 100%;
}

.top-logo {
    /* height: 40vh; */
    height: 40%;
    width: auto;
    object-fit: contain;
}

.top-logo.soft-appear-center {
    opacity: 0;
    animation: softAppear 1.5s ease-out forwards;
}

@keyframes softAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.scroll {
    position: absolute;
    right: 3em;
    bottom: 2em;
    width: 3em;
    height: 3em;
    border: 1px solid #F5F5F5;
    border-radius: 50%;
    cursor: pointer;
}
.scroll:hover::before {
    background: rgba(255, 230, 64, 0.2);
    animation-play-state: paused;
}
.scroll::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3em;
    height: 3em;
    box-shadow: 0 0 0 0 rgba(255, 230, 64, 0.2);
    border-radius: 50%;
    opacity: 0;
    animation: ripple1 3s infinite;
}
.scroll span {
    width: 1em;
    height: 1em;
    position: absolute;
    top: 25%;
    left: 33%;
    transform: rotate(-45deg);
    border-left: 1px solid #F5F5F5;
    border-bottom: 1px solid #F5F5F5;
    z-index: 2;
}

@keyframes ripple1 {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    60% {
        box-shadow: 0 0 0 2em rgba(255, 230, 64, 0.2);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* セクションの背景色を交互に設定 */
.section:nth-child(even) {
    background-color: #f9f9f9;
}

.section:nth-child(odd) {
    background-color: #ffffff;
}

/* セクションタイトルとテキスト */
.title, .subtitle, p {
    color: #363636; /* テキストの色 */
}

.section-image {
    max-width: 100%;
    max-height: 100%;
    position: relative;
}

.section-image img {
    object-fit: contain;
    top: 50%!important;           /* 上辺を親要素の中心に合わせる */
    left: 50%!important;          /* 左辺を親要素の中心に合わせる */
    transform: translate(-50%, -50%);
}

/* レスポンシブ地図のスタイリング */
.map-responsive {
    overflow:hidden;
    padding-bottom:56.25%;
    position:relative;
    height:0;
}

.map-responsive iframe {
    left:0;
    top:0;
    height:100%;
    width:100%;
    position:absolute;
}

/* メディアクエリでスマホビューのスタイルを調整 */
@media screen and (max-width: 425px) {
    .scroll {
        position: absolute;
        left: calc(50% - 1.5em);
        bottom: 2em;
        width: 3em;
        height: 3em;
        border: 1px solid #F5F5F5;
        border-radius: 50%;
        cursor: pointer;
    }
}
@media screen and (min-width: 426px) and (max-width: 768px) {
    .navbar-burger {
        display: block;
    }

    .navbar-menu {
        display: none;
    }

    .navbar-burger.is-active + .navbar-menu {
        display: block;
    }

    /* .navbar, .footer {
        background-color: #A9C4B8;
    } */

    .top-logo {
        max-width: 60%;
    }

    .scroll {
        position: absolute;
        right: 3em;
        bottom: 3em;
        width: 3em;
        height: 3em;
        border: 1px solid #F5F5F5;
        border-radius: 50%;
        cursor: pointer;
    }

    .section-image {
        width: 100%;
        padding-top: 65%!important;
        overflow: hidden;
    }

    .section-image img {
        height: unset!important;
        object-fit: contain;
    }
}

/* 大画面制御 */
@media screen and (min-width: 1216px) {
    .top-logo {
        max-width: 35%;
    }
}

/* サブタイトル */
.subtitle {
    display: inline-block;
    position: relative;
}

.subtitle:before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -20px; /*下線の上下位置調整*/
    display: inline-block;
    width: 50px; /*下線の幅*/
    height: 2px; /*下線の太さ*/
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translate(-50%); /*位置調整*/
    background-color: #0000FF; /*下線の色*/
}

/* 代表あいさつメッセージ */
#about .message-text {
    font-family: '游明朝', 'Yu Mincho', 'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', 'MS PMincho', 'SimSun', serif;
}
#about .message-title {
    padding: 0rem 0.5rem;
    border-left: 8px solid #0000FF;
    font-size: 1.1rem !important;
    margin-top: 24px;
    margin-bottom: 8px;
}
#about .message-title:first-child {
    margin-top: 0;
}

/* 新着情報 */
.topics li {
    margin-bottom: 5px;
    padding: 1rem;
    border-bottom: #a9a9a9 solid 0.8px;
}

/* 事業内容 */
.list-count2 li{
    counter-increment: mycounter;
}
.list-count2 li:before {
    content: counter(mycounter, decimal-leading-zero);
}

/* 事例紹介 */
.list-cases img {
    width: 90%;
    height: 400px;
    object-fit: cover;
    margin: auto;
    margin-top: 16px;
    /* box-shadow: 0 0 5px #999; */
    border: 5px solid #fff;
    box-shadow: 0 0 5px #999;
}

.list-cases .p-2 {
    background-color: #fafafa;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
}
/* 
.list-cases .p-2:nth-child(odd) {
    background-color: #fafafa;
}
.list-cases .p-2:nth-child(even) {
    background-color: #fafafa;
}
*/

/* 問い合わせボタン */
a.inquiry {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	position: relative;
	width: 480px;
	margin: auto;
	padding: 1rem 4rem;
	font-weight: bold;
	color: #0000FF;
	background: #e1e1ff;
	transition: 0.3s ease-in-out;
}
a.inquiry::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 2px solid #0000FF;
    transition: 0.2s;
}
a.inquiry:hover {
	background: #0000FF;
	color: #fff;
}
a.inquiry:hover::before {
    top: 0;
    left: 0;
}

a.inquiry-touch {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	position: relative;
	width: 100%;
	margin: auto;
	padding: 1rem 4rem;
	font-weight: bold;
	color: #0000FF;
	background: #e1e1ff;
	transition: 0.3s ease-in-out;
}
a.inquiry-touch::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 2px solid #0000FF;
    transition: 0.2s;
}
a.inquiry-touch:hover {
	background: #0000FF;
	color: #fff;
}
a.inquiry-touch:hover::before {
    top: 0;
    left: 0;
}
#inquiry p, #inquiry-middle p {
    font-size: 0.7rem;
}

/* 問い合わせ送信ボタン */
input[type=submit].inquiry {
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    position: relative;
    width: 480px;
    margin: auto;
    padding: 1rem 4rem;
    font-weight: bold;
    color: #0000FF;
    border: 2px solid #0000FF;
    background: #e1e1ff;
    transition: 0.3s ease-in-out;
}
/* input[type=submit].inquiry::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 2px solid #0000FF;
    transition: 0.2s;
} */
input[type=submit].inquiry.is-active:hover {
    background: #0000FF;
    color: #fff;
}
/* input[type=submit].inquiry:hover::before {
    top: 0;
    left: 0;
} */

input[type=submit].inquiry-touch {
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    position: relative;
    width: 100%;
    margin: auto;
    padding: 1rem 4rem;
    font-weight: bold;
    color: #0000FF;
    border: 2px solid #0000FF;
    background: #e1e1ff;
    transition: 0.3s ease-in-out;
}
/* input[type=submit].inquiry-touch::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: 2px solid #0000FF;
    transition: 0.2s;
} */
input[type=submit].inquiry-touch.is-active:hover {
    background: #0000FF;
    color: #fff;
}
/* input[type=submit].inquiry-touch:hover::before {
    top: 0;
    left: 0;
} */

/* コンテンツ量が少ないページのフッター位置を最下部に固定 */
.footer-fixed-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.footer-fixed-wrapper .footer {
    margin-top: auto;
}

/* チェックボックス */
input[type="checkbox"] {
    transform: scale(1.5); /* サイズを1.5倍に拡大 */
    margin: 10px; /* マージンで位置を調整 */
}

/* スライダー */
.visual {
    background-color: #f9f9f9;
    margin-bottom: 60px;
}



/**
 * utility.css
 */
ul {
    list-style: none;
}

.u-content-top-margin {
    margin-top: 3rem;
}

.u-relative {
    position: relative;
}

.u-absolute {
position: absolute;
    top: 0;
    left: 0;
}

.u-full-width {
    width: 100%;
}

.u-required:after {
    content: "*";
    color: red;
}

/* 文字カラー */
.u-str-color {
    color: #0000FF;
}

/* メディアクエリでスマホビューのスタイルを調整 */
@media screen and (max-width: 425px) {
    .u-content-top-margin {
        margin-top: 1rem;
    }
}

/* メディアクエリでタブレットビューのスタイルを調整 */
@media screen and (min-width: 426px) and (max-width: 1024px) {
    .u-content-top-margin {
        margin-top: 2rem;
    }
}

/* タブレット以上 */
@media screen and (min-width: 426px) {
    .u-absolute__tablet {
        position: absolute;
        top: 0;
        left: 0;
    }
}

/* bulmaヘッダーナビ */
@media screen and (min-width: 1024px) {
    .navbar-menu {
        /* flex-grow: 1; */
        flex-grow: 0;
        flex-shrink: 0;
    }
}
@media screen and (min-width: 1024px) {
    .container>.navbar .navbar-menu, .navbar>.container .navbar-menu {
        /* margin-right: -.75rem; */
        margin: auto;
    }
}