@SPSize: 768px; @PCSize: 1140px; @import "mobile.less"; @font-face { font-family: ryo-gothic-plusn; font-weight: 200; src: url('./fonts/SourceHanSansJP-Normal.otf') format('opentype'); } html { scroll-behavior: smooth;} body { padding: 0; margin: 0; font-size: 14px; color: #433B3B; line-height: 1.5em; font-family: ryo-gothic-plusn, sans-serif; font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN','メイリオ',Meiryo,'MS Pゴシック', sans-serif; background: #F3F1E8; } section, footer, header, p { display: block; margin: 0; padding: 0; } ul, ol { margin: 0; padding: 0; list-style-type: none; } ul li, ol li { list-style: none; } .icon { display: inline-block; background-position: center; background-size: contain; background-repeat: no-repeat; } a, button, input { -webkit-tap-highlight-color: rgba(255, 0, 0, 0); } .fade-enter-active, .fade-leave-active { transition: all 0.2s ease; } .fade-enter, .fade-leave-to { opacity: 0; } .fade-enter-active { animation: fade-in 0.2s; } .fade-leave-active { animation: fade-in 0.2s reverse; } @keyframes fade-in { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } } body.frozen{ overflow:hidden; } .for-pc{ display: block !important; } .for-sp{ display: none!important; } @media screen and (max-width: @SPSize){ .for-pc{ display: none!important; } .for-sp{ display: block!important; } } #app { max-width: 100%; margin: 0 auto; padding-top: 20px; position: relative; } .header{ width: 1084px; margin: 0 auto; .logo { margin-left: 56px; //margin-top: 41px; //margin-bottom: 10px; margin-top: 20px; margin-bottom: 20px; } } .body{ .top-banner { width: 1048px; height: 87px; background-color: white; margin: 0 auto; position: relative; z-index: 999; .logo-list { padding-left: 20px; padding-top: 10px; vertical-align: middle; img { width: 73px; height: 73px; } a { &:hover { opacity: .8; } } } .share-wrap{ float: right; padding-right: 35px; padding-top: 10px; vertical-align: top; .title { display: inline-block; color: #000; font-weight: 700; letter-spacing: 0.1em; line-height: 67px; font-size: 14px; margin-right: 6px; } a { display: inline-block; font-size: 0; background-image: url(img/header_sns_fb.png); background-size: contain; width: 49px; height: 49px; vertical-align: middle; opacity: 1; transition: all 0.2s ease; margin-left: 5px; &.is { background-image: url(img/header_sns_is.png); } &.tw { background-image: url(img/header_sns_x.png?1); width: 35px; height: 35px; } &:hover { opacity: .8; } } } } .big-banner { position: relative; height: 1173px; z-index: 11; width: 1200px; margin: 0 auto; .title-wrap { position: relative; z-index: 10; padding-top: 31px; .title { padding-top: 31px; text-align: center; span{ font-size: 0px; } .big{ font-size: 0px; } } } .news-wrap { width: 739px; height: 198px; position: absolute; z-index: 11; left: 50%; margin-left: -739px / 2; top: 454px; background: white; border: 2px solid #fff; border-radius: 10px; padding-top: 8px; padding-bottom: 8px; .title { font-size: 20px; line-height: 32px; margin: 20px; margin-left: 23px; font-weight: bold; } ol { position: absolute; top: 0; right: 0; left: 180px; height: 162px; overflow-y: auto; margin-top: 32px; margin-left: -20px; margin-right: 13px; padding-right: 13px; // 整个滚动条--可以设置滚动区背景色 &::-webkit-scrollbar { width: 30px; //纵向滚动条的宽度 background-color: #C2BDBD; border-radius: 10px; } //滚动条滑块 &::-webkit-scrollbar-thumb { border-radius: 10px; background: #fff; transition: 0.3s ease-in-out; border: 4px solid #C2BDBD; } li { list-style: none; font-size: 16px; line-height: 26px; .date { color: #6F6F6F; display: inline-block; font-weight: bold; float: left; width: 120px; } .text { color: #3B4043; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; .news-title { //text-decoration: underline; color: #3B4043; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-left: 0.3em; } } .disc { font-size: 16px; transform: scale(0.5); display: inline-block; float: left; } a { text-decoration: underline; &:hover { opacity: .85; } } } } } .info-wrap { width: 850px; height: 206px; position: absolute; z-index: 11; left: 50%; margin-left: -850px / 2; top: 678px; text-align: center; h2{ font-weight: normal; color: white; text-align: center; font-size: 38px; text-align: center; line-height: 48px; display: inline-block; margin: 15px; } p { color: #433B3B; font-size: 16px; line-height: 30px; text-align: left; span { display: block; text-align: center; font-weight: 700; } } } .e1 { background-image: url(img/pc/banner.png); width: 1433px; height: 1174px; left: -92px; top: -117px; position: absolute; z-index: 9; } } .categories { margin-top: -20px; padding-bottom: 90px; ol { list-style-type: none; text-align: center; li { position: relative; z-index: 10; display: inline-block; margin: 0 10px; opacity: 1; transition: all 0.2s ease; transform: scale(1); cursor: pointer; &:hover { opacity: .8; transform: scale(1.05); } a { display: inline-block; color: white; background-color: #78C7E5; border-radius: 22px; width: 231px; line-height: 81px; position: relative; z-index: 10; text-decoration: none; font-size: 18px; } &::after { content: ''; display: inline-block; background-position: center; background-size: contain; background-repeat: no-repeat; position: absolute; background-image: url(img/pc/oisix_fix_22+_1.png); width: 320px; height: 213px; left: 50%; margin-left: -163px; top: -185px; z-index: 9; } &.s2 { a { background-color: #F4903D; } &::after { background-image: url(img/pc/oisix_fix_21.png); width: 270px; margin-left: -128px; top: -170px; } } &.s3 { a { background-color: #F0CB6E; } &::after { background-image: url(img/pc/oisix_fix_17.png); width: 280px; margin-left: -137px; top: -180px; } } &.s4 { a { background-color: #46B179; } &::after { background-image: url(img/pc/oisix_fix_01+++.png); width: 283px; margin-left: -139px; top: -201px; height: 230px; } } } } } .section { background-color: #9dcde2; margin-top: 403px; position: relative; padding-bottom: 540px; &::before { content: ''; display: inline-block; background-position: top; background-size: cover; background-repeat: no-repeat; position: absolute; background-image: url(img/pc/bg-s-1.png?11); width: 100%; height: 362px; left: 0; top: -362px; z-index: 9; } //&::after { // content: ''; // display: inline-block; // background-position: center; // background-size: contain; // background-repeat: no-repeat; // position: absolute; // background-image: url(img/pc/oisix_fix_22+.png); // width: 614px; // height: 408px; // right: 38px; // top: -407px; // z-index: 9; //} &.s1 { .descript-img-1 { content: ''; display: inline-block; background-position: center; background-size: contain; background-repeat: no-repeat; position: absolute; background-image: url(img/pc/oisix_fix_22+.png?11); width: 492px;; height: 326px; right: 0px; top: -326px; z-index: 9; } } .inner { width: 1106px; margin: 0 auto; background-color: #F4F3F2; border-radius: 19px; position: relative; z-index: 10; padding-bottom: 100px; padding-top: 25px; .descript{ position: absolute; top:-309px; left: 0; h1 { color: #005779; font-size: 58px; font-weight: bold; margin-left: 238px; line-height: 1em; margin-top: 30px; margin-bottom: 31px; } p{ font-size: 14px; line-height: 30px; padding-left: 55px; margin-top: -11px; max-width: 555px; } } .block { text-align: center; margin-bottom: 43px; .title { font-size: 30px; text-align: center; line-height: 48px; font-weight: bold; &>span{ display: inline-block; color: #fff; background-color: #2E210E; margin: 50px auto 0; padding: 6px 44px; border-radius: 16px; min-width: 244px; text-align: center; } &.main{ font-size: 57px; padding-top: 13px; font-weight: bold; padding-bottom: 18px; display: inline-block; margin: 0 auto; padding-left: 0; position: relative; vertical-align: baseline; &::after{ content:''; width: 100%; height: 4px; position: absolute; bottom:-9px; display: block; background-color: #2E210E; } &>span{ background-color: transparent; color: #3B4043; padding: 0; margin:0; font-size: 0.7em; min-width: auto; } } &.sub { font-size: 16px; line-height: 30px; color: #3B4043; font-weight: normal; padding-top: 21px; padding-left: 14px; } } .list { text-align: left; margin-top: 43px; padding: 0 39px; display: flex; flex-wrap: wrap; .item { display: inline-block; width: 272px; min-height: 570px; background-color: white; border-radius: 10px; margin: 0 15px; margin-bottom: 25px; position: relative; vertical-align: top; align-items: stretch; padding: 0 20px; // width: calc((100% - 39px - 39px) / 3); // min-width: calc((100% - 39px- 39px) / 3); // max-width: calc((100% - 39px- 39px) / 3); &:nth-child(3n) { margin-right: 0; } .cover { width: 268px; height: 184px; background-color: #D9D9D9; margin: 22px auto; position: relative; background-position: center center; background-repeat: no-repeat; background-size: cover; .date{ position: absolute; bottom: 0; left: 0; background-color: #B8B8B8; color: #fff; padding: 6px 29px 6px 15px; opacity: .9; } } .title { font-size: 20px; line-height: 33px; background-color: #fff; font-weight: normal; } p { font-size: 16px; line-height: 30px; margin: 0 auto; width: 268px; color: #3B4043; text-align: left; margin-top: 40px; } .link { position: unset; //bottom: 38px; //left: 22px; line-height: 28px; margin: 30px auto; a { //text-decoration: underline; color: #3B4043; text-align: left; font-weight: normal; //line-height: 10px; //display: block; font-size: 14px; br { height: 10px; } } } } } } } &.s2 { margin-top: 0px; background-color: #F3F1E8; .descript-img-2 { content: ''; display: inline-block; background-position: center; background-size: contain; background-repeat: no-repeat; position: absolute; background-image: url(img/pc/oisix_fix_21.png?11); width: 492px;; height: 326px; right: 0px; top: -326px; z-index: 9; } &::before { background-color: transparent; background-image: url(img/pc/bg-2.png); background-size: 100%; top: -410px; height: 410px; } //&::after { // background-image: url(img/pc/oisix_fix_21.png); //} .inner { background-color: #F1A05E; h1 { background-color: transparent; color: #DB8551; margin-left: 175px; } } } &.s3 { margin-top: 0px; background-color: #F7DB95; //padding-bottom: 600px; .descript-img-3 { content: ''; display: inline-block; background-position: center; background-size: contain; background-repeat: no-repeat; position: absolute; background-image: url(img/pc/oisix_fix_-5.png); width: 492px;; height: 326px; right: 0px; top: -326px; z-index: 9; } &::before { background-image: url(img/pc/bg-3.png); height: 410px; top:-410px } //&::after { // background-image: url(img/pc/oisix_fix_-5.png); //} .inner { h1 { background-color: transparent; color: #BEA566; margin-left: 130px; } } } &.s4 { margin-top: 0px; padding-bottom: 128px; background-color: #F3F1E8; .descript-img-4 { content: ''; display: inline-block; background-position: center; background-size: contain; background-repeat: no-repeat; position: absolute; background-image: url(img/pc/oisix_fix_01.png); width: 492px;; height: 326px; right: 0px; top: -326px; z-index: 9; } &::before { background-image: url(img/pc/bg-2.png); height: 410px; top:-410px; } //&::after { // background-image: url(img/pc/oisix_fix_01.png); //} .inner { background-color: #65BB8E; h1 { background-color:transparent; color: #21A177; margin-left: 150px; } } } } } .intro { background-color: #F8F8F8; text-align: center; padding: 120px 14px 220px; position: relative; .title1 { font-size: 20px; line-height: 1em; margin-bottom: 13px; } .list { text-align: left; margin-top: 40px; text-align: center; .item { display: inline-block; width: 315px; min-height: 630px; background-color: white; margin: 0 14px; margin-bottom: 25px; position: relative; vertical-align: top; border-radius: 30px; border: 2px solid #000; .cover { width: 315px; height: 315px; background-color: #D9D9D9; margin: 0px auto; background-size: cover; background-position: center; border-radius: 30px; } h3 { font-size: 18px; line-height: 32px; font-weight: normal; } .title { font-size: 24px; line-height: 32px; margin: 12px 0; font-weight: normal; } p { font-size: 16px; line-height: 30px; margin: 20px auto 0; width: 255px; color: #3B4043; text-align: left; margin-bottom: 6px; min-height: 390px; } .more { //position: absolute; //bottom: 22px; //left: 50%; //margin-left: -230px / 2; position: unset; text-align: center; margin: 30px auto; background-color: #EC853F; } } } } .footer { background-image: url(img/pc/oisix_fix_-7.png); background-repeat: repeat; color: white; text-align: center; min-height: 168px; font-size: 16px; padding-top: 40px; } .more { display: inline-block; color: white; text-decoration: none; background-color: #78C7E5; font-weight: bold; font-size: 20px; line-height: 38px; width: 230px; border-radius: 100px; position: relative; z-index: 9; margin-top: 11px; margin-left: 18px; &::after { content: ''; position: absolute; z-index: 10; background-position: center; background-size: contain; background-repeat: no-repeat; background-image: url(img/pc/arrow-down.png); width: 20px; height: 23px; margin-top: -11px; top: 50%; right: 20px; display: inline-block; } } .more-orange { background-color: #FF7400; } .more-blue { background-color: #78C7E5; } .more-yellow { background-color: #F0CB6E; } .page_top_btn { font-size: 0; @size: 130px; width: @size; height: @size; background-image: url(img/pc/page_top.png); position: absolute; bottom: 70px; left: 50%; z-index: 200; //opacity: .6; cursor: pointer; margin-left: 380px; transition: all .2s ease; } .design-wrap { position: absolute; z-index: 9999; opacity: .6; .design { } } a { &:hover { opacity: .7; } }