// ブレイクポイントの初期設定 $breakpoints: ( 'xs': 'screen and (min-width: 480px)', 'sm': 'screen and (min-width: 600px)', 'md': 'screen and (min-width: 768px)', 'lg': 'screen and (min-width: 1024px)', 'xl': 'screen and (min-width: 1200px)', 'xxl': 'screen and (min-width: 1400px)', 'wd': 'screen and (min-width: 1600px)', ) !default; @mixin mq($breakpoint: md) { @media #{map-get($breakpoints, $breakpoint)} { @content; } } // minxin設定 @mixin wrapper($inner:1200px) { width: 100%; max-width: $inner; margin: 0 auto; } // flex @mixin flex($alin:center, $justyfy:space-between) { display: flex; align-items: $alin; justify-content: $justyfy; } //グラデーション @mixin bg-gradient($color1: #959595, $color2: #a3a3a3) { background: linear-gradient(-45deg, $color1 0 10%, $color2 50% 100%); } // 変数の設定 $white: #fff; $black: #333; $gray: #eeeeee; $main: #75726F; $sub: #CAB24D; $color1: #A9A194; $color2: #4B4B4B; $color3: #DCD8AF; $shadow: rgba(0, 0, 0, 0.3) 0px 2px 3px -5px, rgba(0, 0, 0, 0.2) 0px 2px 2px -1px; /*基本設定 --------------------------------------*/ html { font-size: 62.5%; } body { font-family: 'Noto Sans JP', sans-serif; margin: 0px; overflow-x: hidden; color: #333; line-height: 1.6; font-size: 1.4rem; letter-spacing: 1.2px; @include mq('xs') { font-size: 1.6rem; line-height: 2; } } p { line-height: 1.6; @include mq() { line-height: 2; } } a { display: inline-block; color: $black; text-decoration: none; transition: all.3s ease-out; } a:hover { opacity: .7; transition: all.3s ease-in-out; } img { width: 100%; object-fit: cover; object-position: top; } h2,h3,h4 { line-height: 1.2; @include mq('md') { line-height: 1.3; } @include mq('lg') { line-height: 1.4; } } iframe { display: block; width: 100%; } .box + .box { margin-top: 4rem; @include mq('lg') { margin-top: 6rem; } } .mt-6 { margin-top: 6rem; } // ラインマーカー .yellow_line.active { background-position: -100% 120%; } .yellow_line { background-image: -webkit-linear-gradient(left, transparent 50%, #fcff1e 50%); background-image: -moz-linear-gradient(left, transparent 50%, #fcff1e 50%); background-image: -ms-linear-gradient(left, transparent 50%, #fcff1e 50%); background-image: -o-linear-gradient(left, transparent 50%, #fcff1e 50%); background-image: linear-gradient(left, transparent 50%, #fcff1e 50%); background-repeat: repeat-x; background-size: 200% 50%; background-position: 0 0.5em; transition: all 2s ease; font-weight: bold; } /*----------メインカラ一括変更▼----------*/ .sidebarPost-wrapper h4, //サイドバーのタイトル .list-btn, //一覧用のボタン .genrePost .tag li, //3選詳細のタグ .burgerBtn, //ハンバーガーボタン .menu-content, //ハンバーガーボタンが開いた時の背景 .burger-musk, //ハンバーガーボタンが開いた時の全画面背景 .postList .contentsMain ul .text h3:before, //関連記事一覧のタイトル .page-numbers.current { //ページャー background-color: $main; } // カラー変更 .menu-content #menu-header-menu .menu li:after { color: $main; } /*----------メインカラ一括変更▲----------*/ /*----------3軸テーマカラ一括変更▼----------*/ // 背景色 .bg-01 { //メインカラー01 background-color: $color1; } .bg-02 { //メインカラー02 background-color: $color2; } .bg-03 { //メインカラー03 background-color: $color3; } .bg-gray { background-color: $gray; } /*------TOPの各軸のレイアウト--------*/ // 1軸目 .genre01 { .section-title .title::after, .contents-title .title::after { background-color: $color1; } .genreBox{ h3:before { background-color: $color1; } } } // 2軸目 .genre02 { .section-title .title::after, .contents-title .title::after { background-color: $color2; } .genreBox { h3:before { //会社名 background-color: $color2; } } } // 3軸目 .genre03 { .section-title .title::after, .contents-title .title::after { background-color: $color3; } .genreBox { h3:before { //会社名 background-color: $color3; } } } // 3選記事の下層エリアのタイトル .genreBottom ul li .title01::before { background-color: $color1; } .genreBottom ul li .title02::before { background-color: $color2; } .genreBottom ul li .title03::before { background-color: $color3; } //3軸一覧のボタンの色を変更する .postList .contents-wrapper .contentsMain { .postColor-01 { &::before { background-color: $color1; } } .postColor-02 { &::before { background-color: $color2; } } .postColor-03 { &::before { background-color: $color3; } } } // 各軸のパーマリンクがid名です。(3軸記事詳細ページ) // 1軸目 #chiikimicchaku { //各見出しの背景色 .post-bg { background-image: url(img/pc/genre-01_fv.jpg); } .genrePost { .time { //公開日と更新日 margin-bottom: 3rem; transform: translateY(3px); span { i { //アイコン color: $color1; margin-right: .5rem; } } @include mq() { background: $color1; span { i { color: $white; } } } } .genreBox .caption h3 .title-wrap { border-color: $color1; &:before { border-color: $color1; } .number { background-color: $color1; } } .contents-title .title::after { background-color: $color1; } } .tag li { //タグのレイアウト background-color: $color1; } .table.genre tbody tr th:first-child { //テーブルの見出し background-color: $color1; } .contentsMain .point ul li { //強み border-color: $color1; &::before { border-color: $color1; } h4 { border-color: $color1; background: none; color: $black; } } .review ul li .title { border-color: $color1; i { color: $color1; } } .genrePost .contentsMain .btn-wrapper { //ボタンカラー .btn:nth-of-type(1){ background-color: $color1; } } } // 2軸目 #support { .post-bg { background-image: url(img/pc/genre-02_fv.jpg); } .genrePost { .time { //公開日と更新日 margin-bottom: 1rem; transform: translateY(3px); span { i { //アイコン color: $color2; } } @include mq() { background: $color2; margin-bottom: 0; span { i { color: $white; } } } } .contents-title .title::after { background-color: $color2; } h3 { border-color: $color2; } .genreBox .caption h3 .title-wrap { border-color: $color2; &:before { border-color: $color2; } .number { background-color: $color2; } } } .tag li { //タグのレイアウト background-color: $color2; } .table.genre tbody tr th:first-child { //テーブルの見出し background-color: $color2; } .point-title { background-color: $color2; } .contentsMain .point ul li { //強み border-color: $color2; &::before { border-color: $color2; } h4 { border-color: $color2; background: none; color: $black; } } .review ul li .title { border-color: $color2; i { color: $color2; } } .genrePost .contentsMain .btn-wrapper { //ボタンカラー .btn:nth-of-type(1) { background-color: $color2; } } } // 3軸目 #ote { //各見出しの背景色 .post-bg { background-image: url(img/pc/genre-03_fv.jpg); } .genrePost { .time { //公開日と更新日 margin-bottom: 1rem; transform: translateY(3px); span { i { //アイコン color: $color3; } } @include mq() { background: $color3; margin-bottom: 0; span { i { color: $white; } } } } .genreBox .caption h3 .title-wrap { border-color: $color3; &:before { border-color: $color3; } .number { background-color: $color3; } } .contents-title .title::after { background-color: $color3; } } .tag li { //タグのレイアウト background-color: $color3; } .table.genre tbody tr th:first-child { //テーブルの見出し background-color: $color3; } .contentsMain .point ul li { //強み border-color: $color3; &::before { border-color: $color3; } h4 { border-color: $color3; background: none; color: $black; } } .review ul li .title { border-color: $color3; i { color: $color3; } } .genrePost .contentsMain .btn-wrapper { //ボタンカラー .btn:nth-of-type(1) { background-color: $color3; } } } /*----------3軸テーマカラ一括変更▲----------*/ /*共通設定 --------------------------------------*/ .section-wrapper { padding: 6rem 0; @include mq('md') { padding: 8rem 0; } } .content { margin: 0 auto; padding: 0 4vw; max-width: 650px; margin: 0 auto; @include mq('md') { max-width: 1200px; padding: 0 3rem; } } // サムネイルがない時の画像指定 .noImg { @include flex(center, center); background-color: #ccc; width: 100%; height: 100%; i { font-size: 5rem; color: $white; @include mq('xs') { font-size: 8rem; } @include mq('md') { font-size: 7rem; } } } // 関連記事の高さ指定 .related { .company-list { li { .relatedPost_thumbnail { margin-bottom: 2rem; .noImg { height: 250px; @include mq('sm') { height: 250px; } @include mq('md') { height: 300px; } @include mq('lg') { height: 250px; } } } } } } // 一覧表示の指定 .contentsMain { .thumbnail img { .noImg { height: 250px; margin-bottom: 2rem; @include mq('md') { width: 280px; margin-bottom: 0; } } } } // TOPページのイメージ画像 .genreMid { .noImg { i { font-size: 5em; @include mq('xs') { font-size: 10rem; } @include mq('md') { font-size: 12rem; } } } } /*タイトル --------------------------------------*/ .section-title { img { display: block; margin: 0 auto .5rem; width: auto; height: 50px; object-fit: contain; @include mq() { height: 55px; } } .title { font-size: 2rem; text-align: center; margin-bottom: 1.5rem; line-height: 1.6; &::after { content: ''; display: block; background-color: $sub; width: 50px; height: 1.5px; margin: .5rem auto 0; } @include mq('xs') { font-size: 2.4rem; padding: 0.3rem; } @include mq() { font-size: 3rem; margin-bottom: 30px; } } } .section-title.main img { height: 70px; @include mq() { height: 100px; } } .contents-title { margin-bottom: 2rem; @include mq() { margin-bottom: 3rem; } img { display: block; margin: 0 auto; width: 50px; } .title{ font-size: 1.8rem; font-weight: 400; text-align: center; margin-bottom: 1.5rem; line-height: 1.6; &::after { content: ''; display: block; background-color: $sub; width: 50px; height: 1px; margin: .5rem auto 0; } @include mq('xs') { font-size: 2.2rem; padding: 0.3rem; } @include mq() { font-size: 2.7rem; margin-bottom: 3rem; } } } /*ボタン --------------------------------------*/ .btn-wrapper { @include mq() { @include flex(center, center); } } .btn-wrapper.three, .btn-wrapper.double { justify-content: space-between; .btn + .btn { @include mq('lg') { margin-left: 3rem; } } } .btn + .btn { margin-top: 2rem; @include mq() { margin: 0 0 0 2rem; } } .btn, //ボタン .btn_official, .btn_official_2, .btn_pickup { //公式ボタン display: block; width: 100%; font-size: 1.6rem; color: $white; text-align: center; padding: 1.5rem; box-shadow: $shadow; transition: all.3s; position: relative; @include mq() { font-size: 1.8rem; } @include mq('xl') { max-width: 365px; } &::after { content: ''; background-size: contain; background-position: center center; width: 15px; height: 15px; position: absolute; transition: all.3s ease-in-out; @include mq() { width: 18px; height: 18px; } } } .btn_pickup, .btn_home { background-color: $main; max-width: 100%; } .btn_home { max-width: 500px; margin: 0 auto; } .btn, .btn_pickup { &::after { //ボタンのアイコン background-image: url(img/icon/icon_arrow.png); bottom: 10px; right: 10px; } } .btn_official, .btn_official_2 { //公式ボタンのアイコン &::after { background-image: url(img/icon/icon_official.png); top: 50%; right: 20px; transform: translateY(-40%); } } .tablepress .btn { background-color: $main; } .btn_official { background-color: $sub; } .btn_official_2 { background-color: $main; } /*記事一覧・関連記事・関連企業のボタン --------------------------------------*/ .list-btn { display: block; width: 180px; border-radius: 50px; box-shadow: $shadow; text-align: center; padding: .5rem; margin-left: auto; margin-top: 3rem; color: $white; position: relative; transition: all.3s ease-in-out; @include mq('md') { width: 200px; position: absolute; bottom: 0; right: 0; } @include mq('lg') { width: 230px; } &:after { content: '\f054'; display: block; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 1.5rem; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); transition: all.3s ease-in-out; } &:hover::after { right: 10px; transition: all.3s ease-in-out; } } .clr-wh{ color: $white; } .bg-gray { background-color: $gray; } // 画像サイズ .thumbnail img, .noImg { height: 250px; @include mq('xs') { height: 300px; } @include mq() { height: 400px; } @include mq('lg') { height: 500px; } } .article .thumbnail img, .genreMid .thumbnail img { height: auto; } // 3選記事の画像 .genrePost .thumbnail { position: relative; img { height: 250px; @include mq('md') { height: 300px; } @include mq('xl') { margin-bottom: 3rem; height: 400px; } } .noImg { height: 250px; @include mq('md') { height: 300px; } @include mq('xl') { margin-bottom: 3rem; height: 400px; } } } .time, .genrePost .time { display: block; font-size: 1.4rem; font-weight: normal; margin-bottom: 1rem; text-align: right; span { display: block; } @include mq() { @include flex(center,end ); } } .time { span { i { color: $main; } &:last-child { @include mq() { padding-left: 1rem; } } } } .genrePost .time { @include mq() { @include flex(center, ); color: $white; text-align: center; background-color: $main; margin-left: auto; max-width: 380px; border-radius: 5px 5px 0 0; padding: .5rem 1rem; } } /* パンくず --------------------------------------*/ .pankuz { .inner { font-size: 1.2rem; padding: 1rem 4vw; @include mq() { font-size: 1.4rem; padding: 1rem 6rem; } } } /* HEADER --------------------------------------*/ .header { display: flex; align-items: center; width: 100%; height: 80px; background: $white; @include mq() { height: 100px; } } .header-inner { width: 100%; margin: 0 auto; padding: 0 4vw; @include mq('md') { padding: 0 6rem; } a { display: block; text-align: left; .header-title { @include flex(center, normal); img { width: 40px; } .text-box { padding-left: 1rem; transform: translateY(5px); line-height: 1.5; span { display: block; &:nth-child(2) { color: $sub; span { display: inline-block; color: $black; } } } } } } } // パンくず .pankuz { background-color: $gray; } /* FOOTER --------------------------------------*/ .footer { padding-top: 6rem; .bg { background-color: $sub; @include mq() { background-color: $main; } } .bg_inner { max-width: 1200px; margin: 0 auto; padding: 0 0 3rem ; box-sizing: border-box; @include mq() { padding: 6rem 3rem; } ul li a i { display: inline-block; margin-right: .5rem; } } a { color: $white; } } #menu-footer-menu { background-color: $main; @include mq() { @include flex(); background-color: $sub; } li { width: 100%; padding: 1rem; border-top: 2px solid $white; text-align: center; &:last-child { border-bottom: 2px solid $white; } @include mq() { border-top: 2px solid $white; border-bottom: 2px solid $white; border-right: 2px solid $white; padding: 1.5rem; } a { display: block; width: 100%; color: $white; font-size: 1.6rem; @include mq('md') { font-size: 2rem; } span { display: block; margin-top: -.5rem; &::after { display: block; color: $white; font-size: 1.2rem; @include mq('md') { font-size: 1.4rem; } } } } } } // JSでspanタグをその擬似要素として文字を挿入 #menu-footer-menu li:nth-child(1) a span::after{ content: "ホーム"; } #menu-footer-menu li:nth-child(2) a span::after{ content: "コラム"; } #menu-footer-menu li:nth-child(3) a span::after{ content: "運営者情報"; } #menu-footer-menu li:nth-child(4) a span::after{ content: "お問い合わせ"; } #menu-footer-menu li:nth-child(5) a span::after{ content: "記事一覧"; } // 各記事エリア .selections, .recommend, .list, .colum { h3 { font-size: 1.6rem; color: $white; margin-bottom: 2rem; @include mq() { font-size: 2rem; margin-bottom: 2rem; } } ul { @include flex(center, normal); flex-wrap: wrap; li { padding: 1rem; @include mq('md') { padding: 1rem; } } } } .selections.close, .recommend.close, .list.close, .colum.close { border-bottom: 2px solid $white; h3 { padding: 1.5rem 1rem; margin-bottom: 0; } ul { background-color: $gray; margin-bottom: 0; li a { color: $black; } } } // 3選記事のみブロック要素に .selections { li { display: block; width: 100%; } } // 免責事項 .disclaimer { font-size: 1.4rem; margin: 6rem 0 0; padding: 0 2rem; h4 { font-size: 1.4; font-weight: bold; background-color: $white; padding: .5rem; width: 100%; border-radius: 5px; max-width: 250px; text-align: center; margin: 0 auto; font-size: 2rem; position: absolute; left: 50%; transform: translate(-50%,-50%); z-index: 2; } p { position: relative; color: $white; padding: 3rem 1.5rem 1.5rem; box-sizing: border-box; border: 4px solid $white; border-radius: 5px; } } .footerBtm{ background-color: $main; padding: 1rem; box-sizing: border-box; text-align: center; @include mq() { padding: 3rem 1rem; } a { color: $white; font-weight: 700; } } // コピーライト .Copyright { background: $main; color: $white; text-align: center; font-size: 1.2rem; a { text-align: center; color: $white; } } // 固定バナー .footer-banner { position: fixed; bottom: 0; left: 0; padding: 4px 0; width: 100%; background: rgb(10 10 10 / 70%); display: -webkit-flex; display: -moz-flex; display: -ms-flex; display: -o-flex; display: flex; justify-content: center; -ms-align-items: center; align-items: center; -webkit-flex-wrap: wrap; -moz-flex-wrap: wrap; -ms-flex-wrap: wrap; -o-flex-wrap: wrap; flex-wrap: wrap; z-index: 99; } .footer-banner-txt{ display: block; max-width: 1200px; width: 95%; font-size: 15px; justify-content: space-between; -ms-align-items: center; align-items: center; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; line-height: 1.4; text-align: center; @include mq('md') { width: 85%; } } .btn-wrap { margin: 22px 0 14px; } a.btn-f { font-size: 1.6rem; padding: .5rem 2rem 1rem; color: $white; background: #c52929; -webkit-box-shadow: 0 5px 0 #880e0e; box-shadow: 0 5px 0 #880e0e; width: 100%; position: relative; @include mq('md') { font-size: 2.2rem; padding: 1.5rem 2.5rem; width: 100%; } @include mq('xl') { font-size: 2.2rem; padding: 1.5rem 2.5rem; width: 70%; } span { font-size: 1.4rem; font-weight: bold; position: absolute; top: -15px; left: calc(50% - 38%); display: block; width: 77%; padding: .5rem; color: #c52929; border: 2px solid #c52929; border-radius: 0.5rem; background: $white; -webkit-box-shadow: 0 3px 3px rgb(0 0 0 / 20%); box-shadow: 0 3px 3px rgb(0 0 0 / 20%); @include mq('md') { top: -11px; padding: 1rem; } } i { position: absolute; bottom: 15px; right: 3%; transition: all.3s ease-in-out; } } #wpfront-scroll-top-container { background-color: $sub; color: $white !important; display: block; font-size: 20px; width: 40px; height: 40px; line-height: 2; position: fixed; bottom: 25% !important; right: 0 !important; text-align: center; z-index: 9999; @include mq('md') { font-size: 30px; width: 60px; height: 60px; } @include mq('lg') { bottom: 0 !important; } } /* メインビジュアル --------------------------------------*/ .mv { background-position: 0 60%; background-repeat: no-repeat; background-size: cover; width: 100%; height: 450px; position: relative; z-index: -2; @include mq('xs') { height: 500px; } @include mq('md') { height: 700px; background-position: 50% 60%; } &::after { content: ''; display: block; width: 100%; height: 100%; background-color: $black; opacity: .6; z-index: -1; } &-box { width: 100%; max-width: 350px; @include flex(flex-end, center); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; img { width: 100px; height: 100%; object-fit: contain; display: block; margin-right: 2rem; } .mv-title { color: $white; line-height: 1.5; span { display: block; } span + span { margin-top: 1rem; } .en { font-size: 2.5rem; margin-bottom: .5rem; span { display: inline-block; &:last-child { margin-left: 1rem; } &::after { display: block; font-size: 1.4rem; text-align: left; color: $white; margin-top: -.8rem; } &:nth-child(1)::after { content: 'リノベーション'; } &:nth-child(2)::after { content: 'ナビ'; } } } .jp { font-size: 2.7rem; background-color: $white; display: inline-block; padding: .5rem 1rem; box-sizing: border-box; color: $sub; span { display: inline-block; padding: 0 1rem; color: $black; } } } } } .catList-bg , .archive-bg, .post-bg, .page-bg, .search-bg { background-position: 50% 71%; height: 400px; .mv-inner { .mv-box { padding: 0 1rem; flex-direction: column; @include mq() { flex-direction: row; } align-items: center; max-width: 100%; img { display: block; height: 80px; margin-right: 2rem; @include mq() { height: 100px; } } .mv-title { font-size: 2rem; transform: translateY(8px); @include mq() { font-size: 2.4rem; } @include mq('lg') { font-size: 3rem; } } } } } .top-bg { //TOPのメインビジュアル background-image: url(img/pc/fv.jpg); } .catList-bg { //カテゴリ一覧ページのメインビジュアル background-image: url(img/pc/fv.jpg); } .archive-bg { //アーカイブページのメインビジュアル background-image: url(img/pc/fv.jpg); } .post-bg { //投稿ページのメインビジュアル background-image: url(img/pc/fv.jpg); } .page-bg { //固定ページのメインビジュアル background-image: url(img/pc/fv.jpg); } .search-bg { //検索画面のメインビジュアル position: relative; z-index: 1; &::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: $black; opacity: .7; z-index: 2; } } #chiikimicchaku .post-bg { background-image: url(img/pc/genre-01_fv.jpg); } .genre02-bg { background-image: url(img/pc/genre-02_fv.jpg); } .genre03-bg { background-image: url(img/pc/genre-03_fv.jpg); } /* 基本情報の共通設定 --------------------------------------*/ table.table, table.table tbody, table.table tbody tr th, table.table tbody tr td{ display: block; width: 100%; } .table { tbody { tr + tr { @include mq() { margin-top: 2rem; } } tr { display: block; width: 100%; @include mq('md') { @include flex(center, normal); box-shadow: $shadow; } th { font-size: 1.6rem; width: 100%; color: $white; font-weight: 500; padding: .7rem; text-align: center; background-color: $main; box-shadow: $shadow; @include mq('md') { font-size: 1.8rem; max-width: 150px; min-width: 150px; padding: .5rem; } } td { padding: 1rem; @include mq('md') { padding: 0 0 0 2rem; } } } } } .table.top { //TOPページの基本情報 tbody { tr { th { max-width: 100%; @include mq() { max-width: 250px; } } td { padding: .7rem; } } } } .table.list { margin: 0; tbody tr { th { font-size: 1.6rem; max-width: 120px; min-width: 120px; } td { text-align: left; padding-left: 1rem; font-size: 1.4rem; } } } /* TOPページ --------------------------------------*/ .main { .read { // 導入文 background-color: $white; box-shadow: $shadow; padding: 2rem; box-sizing: border-box; @include mq() { padding: 3rem; } p + p { margin-top: 3rem } } } // TOP3軸レイアウト .genre3Top { @include bg-gradient(); .section-title { color: $white; } ul { display: block; @include mq('lg') { @include flex(normal,); } li { width: 100%; max-width: 100%; margin-bottom: 2rem; height: 100%; height: 250px; position: relative; transition: all.3s; &:last-child { margin-bottom: 0; } @include mq('md') { margin-bottom: 3rem; height: 350px; } @include mq('lg') { max-width: 380px; height: 250px; margin-bottom: 0; margin-right: 2rem; &:last-child { margin-right: 0; } } a { background-repeat: no-repeat; background-position: center; height: 100%; width: 100%; &::before { content: ''; display: block; background-color: $black; width: 100%; height: 100%; opacity: .6; } &::after { content: ''; display: block; border: 2px solid $white; width: 95%; height: 88%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); @include mq('lg') { width: 90%; height: 90%; } } } p { width: 70%; text-align: center; color: $white; font-size: 1.8rem; line-height: 1.4; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; @include mq() { font-size: 2rem; width: 77%; } } } } } // ボトムコンテンツとの共通設定 .genre3Top ul .bg-01 a, .genreBottom ul .bg-01 a { background-image: url(./img/pc/genre-01.png); @include mq('xs') { background-image: url(./img/pc/genre-01_pc.png); } } .genre3Top ul .bg-01 a { @include mq('lg') { background-image: url(./img/pc/genre-01.png); } } .genre3Top ul .bg-02 a, .genreBottom ul .bg-02 a { background-image: url(./img/pc/genre-02.png); @include mq('xs') { background-image: url(./img/pc/genre-02_pc.png); } } .genre3Top ul .bg-02 a { @include mq('lg') { background-image: url(./img/pc/genre-02.png); } } .genre3Top ul .bg-03 a, .genreBottom ul .bg-03 a { background-image: url(./img/pc/genre-03.png); background-position: 70% 50%; @include mq('xs') { background-image: url(./img/pc/genre-03_pc.png); } } .genre3Top ul .bg-03 a { @include mq('lg') { background-image: url(./img/pc/genre-03.png); } } // 3軸各3社紹介エリア .genreMid { .section-title { .title { //軸のタイトル font-size: 2rem; margin-bottom: 2rem; text-align: center; @include mq('xs') { font-size: 2.4rem; } @include mq() { font-size: 3rem; margin-bottom: 3rem; } } } .genreBox + .genreBox { margin-top: 6rem; @include mq('md') { margin-top: 10rem; } } .genreBox { //各社の大枠 background-color: $white; box-sizing: border-box; h3 { margin-bottom: 2rem; @include mq() { margin-bottom: 3rem; } } .title-wrap { .number { font-size: 2rem; @include mq() { font-size: 2.4rem; } } .title { font-size: 2rem; @include mq() { font-size: 2.4rem; } } } .fullsize{ height: 250px; @include mq('md') { height: 350px; } @include mq('xl') { height: 500px; } } .review ul{ @include mq('lg') { @include flex(normal, ); } li { @include mq('lg') { width: 49%; margin-bottom: 0 } } } } .btn-wrapper { //ボタンレイアウト flex-direction: column; @include mq('lg') { flex-direction: row; } .btn { max-width: 500px; @include mq('lg') { max-width: 370px; } } .btn + .btn { margin-top: 2rem; @include mq('lg') { margin: 0 0 0 3rem; } } } } .genreMid.genre01 { .genreBox h3 { .title-wrap, .title-wrap::before { border-color: $color1; } .title-wrap .number { background-color: $color1; } } .table tbody tr th { //軸1のテーブル見出し background-color: $color1; } .review ul li .title { border-color: $color1; i { color: $color1; } } } .genreMid.genre02 { .genreBox h3 { .title-wrap, .title-wrap::before { border-color: $color2; } .title-wrap .number { background-color: $color2; } } .table tbody tr th { //軸2のテーブル見出し background-color: $color2; } .review ul li .title { border-color: $color2; i { color: $color2; } } } .genreMid.genre03 { .genreBox h3 { .title-wrap, .title-wrap::before { border-color: $color3; } .title-wrap .number { background-color: $color3; } } .section-title img { @include mq() { height: 100px; } } .table tbody tr th { //軸3のテーブル見出し background-color: $color3; } .review ul li .title { border-color: $color3; i { color: $color3; } } } // 下層ページのコンテンツ .section-wrapper.sentence h2, .contentsMain .sentence h3 { background-color: $main; box-shadow: $shadow; color: $white; padding: 1rem 1.5rem; font-size: 1.8rem; margin-bottom: 1.5rem; @include mq() { font-size: 2rem; margin-bottom: 2rem; } } .section-wrapper.sentence h3, .contentsMain .sentence h4 { font-size: 1.6rem; margin-bottom: 1rem; &::after { content: ''; display: block; background-color: $sub; width: 100%; height: 2px; margin-top: .7rem; } @include mq() { font-size: 1.8rem; margin-bottom: 1rem; } } .sentence { img { display: block; margin: 0 auto 2rem; object-fit: cover; } p,ul { margin-bottom: 2rem; &:last-child { margin-bottom: 0; } @include mq() { margin-bottom: 3rem; } } picture { display: block; margin-bottom: 3rem; @include mq('md') { margin-bottom: 6rem; } } .btn-wrapper { margin-bottom: 3rem; @include mq() { margin-bottom: 6rem } } } /* その他リスト --------------------------------------*/ .otherList { h2 { @extend .section-title; } .content { max-width: 1200px; margin: 0 auto; padding: 0 4vw 3rem; @include mq('sm') { padding: 3rem 3rem 6rem; } } //アコーディオンパネル .ac-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); grid-gap: 2rem; margin: 0 auto; @include mq('sm') { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); grid-gap: 3rem; } } .ac-item { @include flex(center, flex-start); width: 100%; max-width: 560px; height: 70px; border-bottom: 2px dashed $main; position: relative; @include mq('sm') { height: 80px; max-width: 100%; } .ac-title { line-height: 1.4; width: 90%; font-weight: normal; cursor: pointer; @include mq('sm') { font-size: 1.8rem; } @include mq('lg') { font-size: 2rem; } span { position: absolute; top: 50%; right: 20px; z-index: 1; transform: translateY(-50%) rotate(0deg); transition: all.3s; } } .ac-contents { display: none; background-color: $gray; position: absolute; top: 100%; left: 0; width: 100%; padding: 2rem 1.5rem ; box-sizing: border-box; text-align: center; z-index: 9; &Inner { p { text-align: left; } } .btn-wrapper { // margin-top: 3rem; .btn { font-size: 1.6rem; background-color: $main; padding: 1rem; margin: 0 auto; max-width: 250px; } } } } .ac-title.open { transition: all.3s; span { transform: translateY(-8px) rotate(-180deg); transition: all.3s; } } } /* 3選記事ボトムコンテンツ --------------------------------------*/ .genreBottom { .content { max-width: 100%; padding: 0; } ul { li + li { @include mq() { margin-top: 6rem; } } li { width: 100%; max-width: 1000px; height: 100%; height: 250px; position: relative; transition: all.3s; &:nth-child(odd) { @include mq() { margin-right: auto; } } &:nth-child(even) { @include mq() { margin-left: auto; } } @include mq('sm') { height: 350px; } @include mq() { height: 400px; } a { background-repeat: no-repeat; background-position: center; height: 100%; width: 100%; &::before { content: ''; display: block; background-color: $black; width: 100%; height: 100%; opacity: .6; } &::after { content: ''; display: block; border: 2px solid $white; width: 95%; height: 88%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } } p { width: 70%; text-align: center; color: $white; font-size: 1.8rem; line-height: 1.4; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1; @include mq() { font-size: 3rem; width: 77%; } } } } } /* 2カラムレイアウト --------------------------------------*/ .contents-wrapper { @include mq('xl') { @include flex(normal, ); } } .contentsMain { //記事本文 width: 100%; max-width: 100%; @include mq('xl') { max-width: 750px; } } /* カテゴリー覧 --------------------------------------*/ .postList { .contentsMain { //記事本文 ul { li { margin-bottom: 3rem; @include mq('sm') { margin-bottom: 6rem; } @include mq('md') { @include flex(normal,start ); margin-bottom: 6rem; } .thumbnail img { height: 250px; @include mq('lg') { width: 300px; } } .noImg { max-width: 300px; height: 250px; } .text { //記事のテキスト部分 width: 90%; padding: 2rem; box-sizing: border-box; transform: translateY(-35px); margin: 0 auto; background-color: $white; box-shadow: $shadow; @include mq('md') { box-shadow: none; position: relative; padding: 3rem 0 3rem 3rem; transform: translateY(0); } h3 { //記事のタイトル font-size: 1.6rem; line-height: 1.4; margin-bottom: 2rem; text-align: center; @include mq('md') { text-align: left; line-height: 1.5; font-size: 2rem; } &::after { content: ''; display: block; background-color: #CAB24D; width: 50px; height: 2px; margin: 0.5rem auto 0; @include mq() { margin: 0.5rem 0 0 0; } } } .list-btn { margin-right: auto; } } } } } } .contentsSidebar { // サイドバー display: none; visibility: hidden; @include mq('xl') { display: block; visibility: visible; width: 100%; max-width: 350px; margin: 0 0 0 3rem; } } .sidebarPost-wrapper { h4 { color: $white; padding: 1rem; position: relative; i { margin-right: 1rem; } span { display: inline-block; padding-right: 3rem; } } ul { li { border-bottom: 2px dashed $gray; padding: 0.7rem 1rem 0.5rem; a { display: block; position: relative; i { font-size: 10px; display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); } } } } } .ac-list { margin: 0 0 2rem ; } .ac-list.close { display: none; height: 0; visibility: hidden; } .ac-wrapper.close { .ac-title { position: relative; i:last-child { font-size: 1rem; position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); margin: 0; } } } .ac-wrapper .ac-title.open i:last-child::before{ content: '\f077'; font-size: 1rem; font-weight: bold; font-family: 'Font Awesome 6 Free'; } /* 3選記事詳細の共通設定 --------------------------------------*/ .genrePost { .contentsMain h4 { font-size: 1.6rem; margin-bottom: 1rem; @include mq('md') { font-size: 2rem; } } .read { padding: 2rem; box-sizing: border-box; margin-bottom: 3rem; @include mq('xs') { margin-bottom: 6rem; } @include mq('md') { padding: 3rem; } p { margin-bottom: 0 } } p { margin-bottom: 2rem; } .tag { display: block; width: 100%; @include mq('xl') { @include flex(normal, ); margin-bottom: 0; position: absolute; bottom: 0; } li { width: 100%; @include flex(center, center); vertical-align: middle; font-size: 1.4rem; color: $white; line-height: 1.3; padding: .5rem; text-align: center; border-bottom: 2px solid $white; @include mq('xl') { padding: 1rem; max-width: 350px; border-bottom: 0px; border-right: 2px solid $white; } &:last-child { border-right: 0; } } } .genreBox { &.box +.box { margin-top: 6rem; @include mq() { margin-top: 12rem; } } .caption { //特徴と会社名 text-align: center; margin-bottom: 3rem; } } } .genreBox { //特徴と会社名 h3 { span { display: inline-block; &::before,&::after { content: ''; display: inline-block; background-color: $black; width: 1px; height: 20px; vertical-align: -9%; } &::before { transform: rotate(-15deg); margin-right: 2rem; } &::after { transform: rotate(15deg); margin-left: 2rem; } } .title-wrap { border: 1px solid $black; margin-top: 1.5rem; @include flex(center, normal); position: relative; &::before { content: ''; display: block; border: 1px solid $black; width: 100%; height: 100%; position: absolute; top: 5px; left: 7px; } .number { background-color: $black; color: $white; padding: 1.2rem; font-size: 2rem; box-sizing: border-box; font-family: 'Josefin Sans', sans-serif; font-weight: 200; } .title { font-size: 1.8rem; padding: 1rem; box-sizing: border-box; background-color: $white; } } } } /* 3選記事・おすすめ企業の共通設定- --------------------------------------*/ .point ul, .review ul { li + li { margin-top: 3rem; } li { padding: 1.5rem; box-sizing: border-box; @include mq('md') { padding: 4rem; } p { margin-bottom: 0; } h4 { border-color: $sub; i { color: $sub; } } .comment { margin-top: 5rem; &-title { font-size: 1.6rem; display: inline-block; background-color: $sub; border-radius: 2px; padding: .5rem 1rem; box-sizing: border-box; color: $white; transform: translateY(-15px) rotate(-3deg); @include mq('md') { font-size: 2rem; } i { margin-right: .7rem; @include mq('md') { margin-right: 1rem; } } } } } } .point { .contents-title { margin-bottom: 6rem; } ul { li + li { margin: 10rem 0 0; } li { padding: 3rem 1.5rem 1.5rem; @include mq() { padding: 4rem; } background-color: $gray; border: 1px solid $main; box-sizing: border-box; counter-increment: number; position: relative; &::before { content: ''; background-color: $gray; width: 60px; height: 60px; border-radius: 50%; border: 1px solid ; position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); @include mq() { width: 80px; height: 80px; } } &::after { content: '0' counter(number); font-size: 3rem; color: $main; text-align: center; font-family: 'Josefin Sans', sans-serif; display: block; position: absolute; top: 4px; left: 50%; transform: translate(-50%,-50%); @include mq() { font-size: 4rem; } } h4 { @include flex(center, normal); position: relative; img { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: block; width: 30px; height: 30px; @include mq() { width: 50px; height: 50px; } } } } } } .genreMid .review ul li + li { margin-top: 3rem; @include mq() { margin: 0 0 0 3rem; } } .point ul li .title , .review ul li .title { font-size: 1.8rem; border-bottom: 2px dashed; margin-bottom: 1.5rem; padding: 0 0 .5rem 3rem; position: relative; @include mq('md') { font-size: 2rem; margin-bottom: 2rem; padding: 0 0 1rem 3rem; } i { position: absolute; top: 5px; left: 0; } } .point ul li .title { padding-left: 3.8rem; padding-bottom: 0; @include mq() { padding-left: 5rem; } } .quote { display: block; margin-top: 3rem; text-align: right; a { color: blue; text-decoration: underline; } } .map iframe { height: 200px; @include mq() { height: 320px; } } // 口コミ .review { .single { display: block; li { width: 100% !important; } } ul { li { .box { h4 { small { display: inline-block; font-size: 1.2rem; margin-left: .5rem; } } } } } } /* 記事の詳細ページ共通設定 --------------------------------------*/ .article { p { margin-bottom: 2rem; } .sentence { h3 { background-color: $main; box-shadow: $shadow; color: $white; padding: 1rem 1.5rem; font-size: 1.8rem; margin-bottom: 1.5rem; @include mq() { font-size: 2rem; margin-bottom: 2rem; } &::after { width: 0; height: 0; background-color: transparent; } } h4 { font-size: 1.6rem; font-weight: 600; margin-bottom: 1.5rem; @include mq() { font-size: 2rem; } &::after { content: ''; display: block; background-color: $sub; width: 100%; height: 2px; margin-top: .7rem; } } } } /* 関連記事 --------------------------------------*/ .related { h2 { @extend .section-title; } .grid { .grid-item { margin-bottom: 3rem; @include mq() { display: flex; justify-content: space-between; height: 250px; } .relatedPost_thumbnail { margin-bottom: 2rem; @include mq() { max-width: 400px; width: 40%; } img { height: 200px; @include mq() { height: 250px; } } .noImg { height: 200px; @include mq() { height: 250px; } } } .relatedPost_text { width: 100%; @include mq() { position: relative; padding-left: 3rem; width: 65%; } } } } } .company-list { display: grid; grid-gap: 6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); li { position: relative; img { height: 250px; margin-bottom: 2rem; @include mq('md') { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); height: 300px; } } h3 { font-size: 2rem; } p { @include mq() { min-height: 180px ; } } } } /* articleページ ----------------------------------------------------------*/ .pager { margin: 0 auto; text-align: center; .page-numbers { margin-right: 1.5rem; &:last-child { margin-right: 0; } } .page-numbers.current { color: $white; padding: 1rem 1.5rem; } .next, .prev { font-size: 30px; vertical-align: -9%; } } /* 個別ページ ----------------------------------------------------------*/ .page { .contentsMain h3 { font-size: 1.6rem; margin-bottom: 1rem; &::after { content: ''; display: block; background-color: $sub; width: 100px; height: 2px; margin-top: .7rem; } @include mq() { font-size: 1.8rem; margin-bottom: 1rem; } } p { margin-bottom: 3rem; } } /* サイトマップ ----------------------------------------------------------*/ #sitemap_list { li { &:before { font-family: 'Font Awesome 5 Free'; font-size: 20px; font-weight: 900; display: inline-block; margin-right: .5rem; } } .home-item:before { content: '\f015'; } .cat-item { a { border-bottom: 2px solid $black; margin-left: 3rem; &:before { content: '\f303'; font-family: 'Font Awesome 5 Free'; font-size: 20px; font-weight: 900; display: inline-block; margin-right: .5rem; } } } .post-item { margin-left: 3rem; a { &:before { content: '\f105'; } } } .page_item { &:before { content: '\f15b' ; } a { border-bottom: 2px solid $black; } } } /* 問合せページ ----------------------------------------------------------*/ .wpcf7-form p { margin-bottom: 2rem; &:last-child { margin-bottom: 0; } } input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required { width: 100% !important; padding: .5rem; box-sizing: border-box; border: solid 1px #CCC; } input.wpcf7-form-control.wpcf7-text.wpcf7-email.wpcf7-validates-as-required.wpcf7-validates-as-email { width: 100% !important; padding: .5rem; box-sizing: border-box; border: solid 1px #CCC; } input.wpcf7-form-control.wpcf7-text { width: 100% !important; padding: .5rem; box-sizing: border-box; border: solid 1px #CCC; } textarea.wpcf7-form-control.wpcf7-textarea { width: 100% !important; border: solid 1px #CCC; } input.wpcf7-form-control.wpcf7-submit { display: block; margin: 0 auto; letter-spacing: 2; border: 1px solid $main; width: 199px; height: 50px; background-color: $main; color: $white; text-align: center; margin-top: 3rem; transition: all.3s ease-in-out; @include mq('md') { margin-top: 6rem; } &:hover { background-color: $white; color: $black; transition: all.3s ease-in-out; } } .searchandfilter input[type="checkbox"], input[type="radio"], input[type="text"], select, .meta-range, .chosen-container { margin-left: 0px !important; } .wpcf7-form label::before { content: ''; display: inline-block; width: 3px; height: 16px; background-color: $main; vertical-align: -9%; margin-right: .5rem; } /* 404ページ ----------------------------------------------------------*/ .notFound { text-align: center; h3 { font-size: 2rem; margin-bottom: 4rem; } p { span { display: block; margin-bottom: 3rem; &:last-child { text-align: left; margin-bottom: 0; } } } } /* ハンバーガーメニュー ---------------------------------*/ .burgerBtn_wrapper { position: fixed; right: 1.5rem; z-index: 9999; } .burgerBtn{ position: relative;/*ボタン内側の基点となるためrelativeを指定*/ width: 50px; height:50px; cursor: pointer; } /*ボタン内側*/ .burgerBtn { span{ display: inline-block; transition: all .4s;/*アニメーションの設定*/ position: absolute; left: 14px; height: 2px; border-radius: 2px; background: $white; &:nth-of-type(1) { top:15px; width: 45%; } &:nth-of-type(2) { top:23px; width: 35%; } &:nth-of-type(3) { top:31px; width: 20%; } } &.active span:nth-of-type(1) { top: 18px; left: 18px; transform: translateY(6px) rotate(-135deg); width: 30%; } &.active span:nth-of-type(2) { opacity: 0; } &.active span:nth-of-type(3){ top: 30px; left: 18px; transform: translateY(-6px) rotate(135deg); width: 30%; } } .menu-content { width: 87vw; height: 100vh; position: fixed; top: 0%; left:-150%; z-index: 998; transition: all.2s ease-in-out; @include mq() { width: 56vw; } &.active { left: 0; transition: all.2s ease-in-out; } #menu-header-menu{ margin: 0 auto; padding: 12rem 6vw 0; width: 100%; max-width: 800px; position: relative; li { text-align: left; margin-bottom: 2rem; position: relative; &:before { content: ''; color: $white; background: $gray; display: inline-block; width: 30px; height: 30px; text-align: center; vertical-align: -21%; margin-right: 1rem; border-radius: 50%; @include mq() { font-size: 18px; margin-right: 3rem; width: 40px; height: 40px; border-radius: 50%; vertical-align: -9%; color: #333 !important; } } &:after { font-family: 'Font Awesome 5 Free'; font-size: 15px; font-weight: 900; display: inline-block; position: absolute; top: 15px; left: 15px; transform: translate(-50%,-50%); @include mq('xs') { font-size: 18px; top: 20px; left: 15px; } @include mq() { left: 20px; } } a { color: $white; vertical-align: 20%; &::after { content: ''; display: block; color: $black; height: 1px; background-color: $white; width: 15px; transition: all.2s ease-in-out; } &:hover::after { width: 100%; transition: all.2s ease-in-out; } } } } } .burger-musk { width: 0; height: 0; position: fixed; opacity: .7; top: 0%; z-index: 997; &.active { width: 100vw; height: 100vh; } } // 各項目ごとのアイコン #menu-header-menu li{ &:nth-child(1)::after { content: '\f015'; } &:nth-child(2)::after { content: '\f304'; } &:nth-child(3)::after { content: '\f518'; } &:nth-child(4)::after { content: '\f0a6'; } &:nth-child(5)::after { content: '\f1ad'; } &:nth-child(6)::after { content: '\f500'; } &:nth-child(7)::after { content: '\f3c5'; } &:nth-child(8)::after { content: '\f51c'; } } /* 目次のレイアウト */ .sentence #toc_container { margin: 0 auto; margin: 3rem auto; @include mq() { margin: 6rem auto; max-width: 100%; } } #toc_container { width: 100% !important; background-color: $gray; padding: 1.5rem; box-sizing: border-box; margin: 0 auto; box-shadow: $shadow; @include mq() { padding: 3rem ; max-width: 880px; } .contents-subheading { font-size: 1.6rem; margin-bottom: 1.5rem; counter-increment: number; position: relative; @include flex(center,normal ); z-index: 2; @include mq('md') { font-size: 2rem; } a { line-height: 1.4; z-index: 2; } &::before { content: '0' counter(number); background-color: $main; color: $white; width: 40px; min-width: 40px; height: 100%; min-height: 40px; font-size: 1.6rem; @include flex(center, center); text-align: center; margin-right: 1rem; z-index: 2; @include mq('md') { font-size: 2.4rem; width: 50px; min-width: 50px; min-height: 50px; } } &::after { content: ''; background-color: $main; width: 0; height: 100%; transform: scaleX(0); transform-origin: left; position: absolute; top: 0; left: 0; z-index: 1; transition: all .1s ease-out; } &:hover::after { transform: scaleX(1); width: 100%; transition: all .5s ease-out; } &:hover a{ opacity: 1 !important; color: $white; } } } #toc_container .toc_title { font-size: 3rem; font-weight: bold; font-family: 'Josefin Sans', sans-serif; text-align: center; text-transform: uppercase; margin-bottom: 0; margin:0; margin-bottom: 2rem; @include mq('md') { font-size: 3rem; } } #toc_container .toc_title::before { content: '\f0ca'; font-size: 2.4rem; font-family: 'Font Awesome 5 Free'; color: $main; margin-right: .5rem; font-weight: 900; vertical-align: -3%; @include mq('md') { font-size: 3rem; margin-right: 1rem; } } #toc_container .toc_toggle { display: block; font-size: 14px; background: $sub; padding: .3rem 0; width: 165px; border: 2px solid $sub; margin: 1rem auto 0; border-radius: 30px; color: $white; cursor: pointer; transition: all .3s ease-out; transform: translateY(-3px); @include mq() { transform: translateY(-10px); } a { color: $white; &:hover { color: $sub; transition: all .3s ease-out; } } &:hover { background-color: $white; color: $sub; transition: all .3s ease-out; } } #toc_container .toc_list { margin: 0 auto; width: 80%; } #toc_container .toc_list ul { padding-left: 8vw; @include mq('md') { padding-left: 7rem; } } #toc_container .toc_list ul li, #toc_container .toc_list li { margin-bottom: 1rem; position: relative; @include mq('md') { margin-bottom: 1.5rem; } } #toc_container .toc_list ul li:before, #toc_container .toc_list li:before { content: ''; display: inline-block; width: 3px; height: 3px; background-color: $black; border-radius: 50%; position: absolute; top: 50%; transform: translateY(-50%); left: -15px; @include mq('md') { width: 5px; height: 5px; left: -20px; } } #toc_container .toc_list ul li a { font-size: 1.4rem; line-height: 1.4; @include mq('md') { font-size: 1.6rem; } } #toc_container .toc_list ul li a:hover { opacity: .7; text-decoration: underline ; transition: all.3s; } // スライドコンテンツ .slideArea .content { position: relative; } .slideArea { overflow: hidden; .swiper { margin-left: auto; margin-right: auto; // position: relative; // overflow: visible; overflow: hidden; list-style: none; padding: 0; z-index: 1; } .swiper-wrapper { display: flex; width: 100%; height: 100%; position: relative; z-index: 1; transition-property: transform; box-sizing: content-box; // @include mq('xxl') { // display: grid; // grid-template-columns: repeat(4, 1fr); // grid-row-gap: 30px; // } } .swiper-slide { flex-shrink: 0; width: 100%; height: 100%; position: relative; transition-property: transform; transition: all.3s ease; .slide { overflow: hidden; border-radius: 4px; min-height: 320px; width: 100%; transition: all.3s ease; .slide-media, .slideWrapper { overflow: hidden; position: relative; padding-top: 62.5%; img, span { position: absolute; top: 0; left: 0; width: 100%; height: 100% ; object-fit: cover; transition: all.3s ease; z-index: -1; } } .slideWrapper {//アイキャッチがない場合の設定 z-index: -1; &:before { content: ''; background-image: url(img/icon_noImg.png); background-repeat: no-repeat; background-size: contain; background-position: center; display: block; width: 55px; height: 55px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 3; font-size: 5rem; color: $white; @include mq('xs') { width: 8rem; height: 8rem; } @include mq('md') { width: 7rem; height: 7rem; } } } .slide-content{ //スライドのテキスト部分 width: 95%; padding: 2rem; box-sizing: border-box; transform: translateY(-35px); margin: 0 auto; background-color: $white; box-shadow: $shadow; z-index: 5; .slide-title { font-size: 1.6rem; line-height: 1.4; margin-bottom: 2rem; text-align: center; @include mq('md') { text-align: left; line-height: 1.5; font-size: 1.8rem; } &::after { content: ''; display: block; background-color: #CAB24D; width: 50px; height: 2px; margin: 0.5rem auto 0; @include mq() { margin: 0.5rem 0 0 0; } } } .slide-text { line-height: 1.4; } .list-btn { position: relative; margin-right: auto; margin-top: 1.5rem; } } } } } // prev,nextボタン .slideArea .swiper-button-prev, .slideArea .swiper-button-next { display: grid; place-content: center; width: 6rem; height: 6rem; cursor: pointer; top: 55%; z-index: 10; &::before { content: ''; background-color: rgba(0, 0, 0, 0.3); position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; } &::after { content: ''; width: 1.2rem; height: 1.2rem; border-color: $white; border: solid $white; border-width: 3px 0 0 3px; } } .slideArea .swiper-button-prev { left: -1rem; &::after { transform: rotate(-45deg); } } .slideArea .swiper-button-next { right: -1rem; &::after { transform: rotate(135deg); } } // ページネーション .slideArea .swiper-pagination { display: none; visibility: hidden; bottom: -30px !important; @include mq('xl') { bottom: -50px !important; } } .slideArea .swiper-pagination-bullet { width: 1.6rem; height: 3px; background-color: rgb(158, 158, 158); border-radius: 0; transition: all.3s ease; @include mq('md') { width: 1.8rem; } } .slideArea .swiper-pagination-bullet-active { width: 4rem; background-color: #0bd; transition: all.3s ease; } // ホバーアクション // .slideArea .slide:hover { // transform: translateY(-16px); // transition: all.3s ease; // } // .slideArea .slide:hover .slide-media img { // transform: translateY(0); // transition: all.3s ease; // } .slideArea { /* スライダーではない時のレイアウト指定*/ .swiper:not(.swiper-initialized) { //swiperに()内のクラスが付与されていない場合=スライダーではない場合のレイアウト padding: 0; .swiper-button-prev, .swiper-button-next, .swiper-pagination{ //prev,next,ページネーションの非表示 display: none; } .swiper-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; @media only screen and (max-width: 1024px) and (min-width: 600px) { grid-template-columns: repeat(2, 1fr); gap: 24px; } @media only screen and (max-width: 599px) { grid-template-columns: repeat(1, 1fr); } } } } /*-------------------------------- TOP用FAQ --------------------------------*/ // 共通指定 .faq_1, .faq_2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); grid-gap: 2rem; margin: 0 auto; @include mq('sm') { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); grid-gap: 3rem; } } // パターン1 .faq_1 { .faq_item { width: 100%; } .faq_item:last-child { margin-bottom: 0; } .faq_title { cursor: pointer; padding: 1rem 4.6rem ; background-color: #FFF; box-shadow: $shadow; min-height: 80px; display: flex; align-items: center; position: relative; line-height: 1.2; @include mq('md') { line-height: 1.4; padding: 1rem 6rem ; } } .faq_title::before { //アイコン[Q] color: #4EBFE4; content: "Q"; font-size: 28px; font-family: 'Noto Sans JP', sans-serif; position: absolute; top: 50%; left: 1.5rem; transform: translateY(-50%); @include mq('md') { left: 2rem; } } .faq_title::after { //アイコン[矢印] content:" \f078"; color: #737373; font-family:"FontAwesome"; font-size: 1.6rem; position: absolute; top: 50%; right: 2rem; transform: translateY(-50%) rotate(0); transition: all.2.8s; } .faq_item.active .faq_title::after { //矢印アイコンの回転 top: 55%; transform: translateY(-50%) rotate(180deg); transition: all.3s; } .faq_contents { //スライドするコンテンツ display: none; background-color: #fff; padding: 2rem; margin-top: -1rem; box-sizing: border-box; box-shadow: $shadow; position: relative; } .faq_title.show .faq_contents { display: block; } .faq_contents p { line-height: 1.4; padding-left: 2.5rem; @include mq('md') { line-height: 1.6; padding-left: 4rem; } } .faq_contents::before { //アイコン[A] color: #FBA337; content: "A"; font-size: 28px; font-family: 'Noto Sans JP', sans-serif; font-weight: bold; position: absolute; top: .8rem; left: 1.5rem; @include mq('md') { top: .4rem; left: 2rem; } } } // faqパターン2 .faq_2 { .faq_item { cursor: pointer; transition: all .3s; } .faq_title { position: relative; padding: 20px 85px 10px; font-size: 1.8rem; line-height: 1.4; font-weight: 500; background-color: transparent; min-height: 80px; } .circle { position: relative; } .circle::before { content: 'Q'; background-color: #54B568; border-radius: 0% 100% 100% 0% / 0% 0% 100% 100% ; width: 75px; height: 100%; position: absolute; top: 0; left: 0; padding: 2rem; color: #fff; font-size: 2rem; font-weight: 500; } .faq_title::after { content: '\2b'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #54B568; font-weight: 900; font-size: 4rem; } .faq_contents { display: none; padding: 20px 20px 15px 85px; background-color: transparent; position: relative; } .faq_contents::before { content: 'A'; width: 75px; height: 100%; border-radius: 0% 100% 100% 0% / 0% 100% 0% 100%; background-color: #54B568; position: absolute; top: 0; left: 0; padding: 2rem; color: #fff; font-size: 2rem; font-weight: 500; } // クリック(active)後のレイアウト .faq_item.active { background-color: #B5E9B3; transition: all .3s; .faq_title::after { content: '\f068'; font-family: 'Font Awesome 6 Free'; font-size: 2.7rem; } } } // タブでの切り替え .tab-list { max-width: 1400px; padding: 0 30px; margin: 0 auto; .tab-item { display: inline-block; margin-right: 2rem; border: 2px solid ; padding: 1rem; border-radius: 5px 0 0 0; transition: all .3s ease-out; cursor: pointer; } .tab-01 { border-color: $color1; &.active { background-color: $color1; color: #fff; } } .tab-02 { border-color: $color2; &.active { background-color: $color2; color: #fff; } } .tab-03 { border-color: $color3; &.active { background-color: $color3; color: #fff; } } } .tab-container { width: 100%; .tab-content { @include flex(); display: none; &.active { display: block; } } } // TOPコンテンツバナー一覧 #banner { ul { display: grid; grid-template-columns: repeat(auto-fit,minmax(340px,3fr)); grid-gap: 2rem; margin: 0 auto; max-width: 400px; width: 100%; @include mq('sm') { grid-template-columns: repeat(auto-fit,minmax(400px,1fr)); max-width: 800px; width: 70%; } @include mq() { width: 100%; grid-template-columns: repeat(auto-fit,minmax(350px,3fr)); } @include mq('lg') { max-width: 875px; grid-template-columns: repeat(auto-fit,minmax(360px,3fr)); } @include mq('xl') { max-width: 100%; } li { a { height: 100%; img { margin: 0; height: 100%; } } } .no-link { position: relative; cursor: none; &::before { content: ''; display: block; width: 100%; height: 100%; background-color: $black; opacity: .75; position: absolute; top: 0; left: 0; z-index: 1; } &::after { content: '現在準備中'; display: block; font-size: 2.4rem; color: $white; text-align: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 10; opacity: 0; transition: opacity .3s ease-out; } &:hover::after { opacity: 1; transition: opacity .3s ease-out; } } } } .text-link { display: block; text-align: right; color: blue; text-decoration: underline; margin-bottom: 3rem; }