@charset "UTF-8"; /* mixin var -----------------------------------------------------*/ $colors: ( main: #333333, //テキスト accent01: #FF8A34, //テキスト・ボタン accent02: #F7B123, //ヘッダーボタン light-gray01:#F3F3F3, //背景色 light-gray02:#F8F8F8, //転職サービスの流れ light-gray03:#707070, //見出し light-gray04:#DFDFDF, //線 light-gray05:#838383, //見出し dark-gray:#414141, //ヘッダー・フッター caution:red ); @function colors($key) { @return map-get($colors, $key); } $breakpoints: ( 'sm': '(max-width: 575px)', 'md': '(max-width: 767px)', 'lg': '(max-width: 1023px)', 'xl': '(max-width: 1199px)', 'xxl':' (max-width: 1599px)' ) !default; @mixin mq($breakpoint: md) { @media #{map-get($breakpoints, $breakpoint)} { @content; } } $container-sizes: ( sm:720px, ex:780px, md:960px, lg:1200px, xl:1400px ); @function container-sizes($key) { @return map-get($container-sizes, $key); } @mixin linkColor($color) { color: $color; &:hover, &:active, &:focus { color: lighten($color, 30%); } } @mixin bgColor($color) { background: $color; &:hover, &:active, &:focus { background: lighten($color, 30%); } } /* reset -----------------------------------------------------*/ html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; outline: 0; vertical-align: baseline; background: transparent; } img { vertical-align: top; } h1, h2, h3, h4, h5, h6 { -webkit-font-smoothing: antialiased; } body { line-height: 1; } article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary { display: block; } ul, ol { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } a { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; background: transparent; } del { text-decoration: line-through; } abbr[title], dfn[title] { border-bottom: 1px dotted #000; cursor: help; } table { border-collapse: collapse; border-spacing: 0; } hr { display: block; height: 1px; border: 0; border-top: 1px solid #cccccc; margin: 1em 0; padding: 0; } /* html -----------------------------------------------------*/ html { overflow: auto; font-size: 62.5%; } body { color: #333; font: 1.6rem/1.8 YuGothic, "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; font-weight: 500; overflow-wrap: break-word; word-break: break-word; overflow: hidden; @include mq(md) { font-size: 1.4rem; font-weight: 400; } } /* link -----------------------------------------------------*/ a { @include linkColor(colors(main)); transition: 0.3s linear; } /*flex -----------------------------------------------------*/ $mqlist: ( xl, lg, md, sm ); .flex { display: flex; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { display: flex; } } } } .justify-start { justify-content: start; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { justify-content: start; } } } } .justify-center { justify-content: center; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { justify-content: center; } } } } .justify-between { justify-content: space-between; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { justify-content: space-between; } } } } .justify-around { justify-content: space-around; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { justify-content: space-around; } } } } .justify-end { justify-content: end; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { justify-content: end; } } } } .align-items-start { align-items: flex-start; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { align-items: flex-start; } } } } .align-items-center { align-items: center; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { align-items: center; } } } } .align-items-end { align-items: end; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { align-items: end; } } } } .flex-wrap { flex-wrap: wrap; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { flex-wrap: wrap; } } } } .flex-nowrap { flex-wrap: nowrap; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { flex-wrap: nowrap; } } } } .flex-direction-column-reverse{ flex-direction: column-reverse; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { flex-direction: column-reverse; } } } } /*font-size -----------------------------------------------------*/ $fs-min: 10; $fs-max: 30; @for $i from $fs-min through $fs-max { .fs-#{$i} { font-size: #{calc($i / 10)}rem; } } @each $mq in $mqlist { @include mq($mq) { @for $i from $fs-min through $fs-max { .fs-#{$i}-#{$mq} { font-size: #{calc($i / 10)}rem; } } } } $line-min: 1; $line-max: 6; @for $i from $line-min through $line-max { .lh-#{$i} { line-height: #{calc(1 + $i / 10)}; } } @each $mq in $mqlist { @include mq($mq) { @for $i from $line-min through $line-max { .lh-#{$i}-#{$mq} { line-height: #{calc(1 + $i / 10)}; } } } } /*utility -----------------------------------------------------*/ img { max-width: 100%; height: auto; } ol { padding-left: 1em; // list-style-position: inside; } .float-l { float: left; } .float-r { float: right; } .en { font-family: 'Roboto', sans-serif; text-transform: uppercase; } .mincho { font-family: "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif; } em { font-style: normal; font-weight: bold; } .line { background: rgba(0, 0, 0, 0) linear-gradient(transparent 80%, #fffa73 0%) repeat scroll 0 0; } .indent-list { text-indent: -1em; padding-left: 1em; } .disc-list { list-style: disc; padding-left: 1.5em } .color-main { color: colors(main) !important; } .color-accent01 { color: colors(accent01) !important; } .color-caution { color: colors(caution) !important; } .bold { font-weight: bold; } .normal { font-weight: normal; } .align-l { text-align: left; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { text-align: left; } } } } .align-c { text-align: center; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { text-align: center; } } } } .align-r { text-align: right; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { text-align: right; } } } } .pos-r { position: relative; } .box-shadow { box-shadow: 0 0 40px rgba(0, 0, 0, .1); } .bg-light-blue01 { background: colors(light-blue01); } .bg-blue-pattern01 { background: repeating-linear-gradient(-45deg, #0171bb, #0171bb 10px, #0674bc 0, #0674bc 20px); } .block { display: block; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { display: block; } } } } .none { display: none; @each $mq in $mqlist { @include mq($mq) { &-#{$mq} { display: none; } } } } /* margin padding gap -----------------------------------------------------*/ $spaceamounts: ( 0, 10, 15, 20, 25, 30, 35, 40, 45, 50, 60, 70, 80, 100 ); $sides: ( top, bottom, left, right ); @each $space in $spaceamounts { @each $side in $sides { .m#{str-slice($side, 0, 1)}-#{$space} { margin-#{$side}: #{calc($space / 10)}rem !important; } .p#{str-slice($side, 0, 1)}-#{$space} { padding-#{$side}: #{calc($space / 10)}rem !important; } } } @each $mq in $mqlist { @include mq($mq) { @each $space in $spaceamounts { @each $side in $sides { .m#{str-slice($side, 0, 1)}-#{$space}-#{$mq} { margin-#{$side}: #{calc($space / 10)}rem !important; } .p#{str-slice($side, 0, 1)}-#{$space}-#{$mq} { padding-#{$side}: #{calc($space / 10)}rem !important; } } } } }