offcanvas

menu

Server Side Includes

今日の日付:2025.12.19 19:51:47 JST


                <!--#include virtual="_ssl.shtml" -->
              

                <!--#config timefmt="%Y.%m.%d %H:%M:%S %Z" -->
                

今日の日付:<!--#echo var="DATE_LOCAL" -->


                Options +Includes
                AddHandler server-parsed .html
              

Root


:root {
  --Artpro-artboards-gutter-x: #{px-rem($sp-artboards-padding)};
  --Artpro-letter-spacing-ja: #{$letter-spacing-ja};
  --Artpro-header-height: #{px-rem($sp-header-height)};
  --Artpro-container-max-width: min(#{math.div($sp-artboards-container-width, $sp-artboards-size) * 100vw}, #{math.div($artboards-container, $artboards-size) * $sm-breakpoint});
  //--Artpro-container-max-width: #{math.div($sp-artboards-container-width, $sp-artboards-size) * 100vw};//@94.87vw = @370px / @390px * 100vw
  --bs-root-font-size: #{$xs-rfs};
  @include media-breakpoint-up(sm) {
    --Artpro-artboards-gutter-x: #{px-rem($artboards-padding)};
    --Artpro-header-height: #{px-rem($dp-header-height)};
    --Artpro-container-max-width: #{px-rem($artboards-container-width)};
    --bs-root-font-size: #{$sm-rfs};
  }
  @include media-breakpoint-up(xxl) {
    --bs-root-font-size: #{$xxl-rfs};
  }
}
            

Layout

.artboards-container

.container

.container__65

.container__95

Fluid width

.w[320]

ああああああああああああああああああああ


//Fluid width
//1px から アートボードサイズまで @1300 5px毎
@for $i from 1 through strip-unit($artboards-size) {
  //5px毎
  @if $i % 5 == 0 {
    .w\[#{$i}\]{
      width: px-rem($i);
    }
  }
}
                  

SM width(PC用)

.w-sm[320]

ああああああああああああああああああああ


//SM width(PC用)
//1px から アートボードサイズまで @1300 5px毎
@include media-breakpoint-up(sm) {
  @for $i from 1 through strip-unit($artboards-size) {
    @if $i % 5 == 0 {
      .w-sm\[#{$i}\]{
        width: px-rem($i);
      }
    }
  }
}
                  

XS width(スマホ用)

.w-xs[200].w[400]

ああああああああああああああああああああああああああああああ

.w-xs[200]

あああああああああああああああああああああああああああああああああ


//XS width(スマホ用)
//1px から スマホサイズまで @390 5px毎
@include media-breakpoint-down(sm) {
  $sp-w: strip-unit($sp-artboards-size);
  @for $i from 1 through strip-unit($sp-w) {
    @if $i % 5 == 0 {
      .w-xs\[#{$i}\]{
        width: px-rem($i) !important;
      }
    }
  }
}
                  

Grid 123 1/3-2

.area_1
.area_2.w-sm[695]
aaaa
aaaa
aaaa
aaaa
.area_3

// grid 123 1/3-2
.grid-area-3 {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: repeat(3, auto);
  .area_1 {
    grid-area: 1 / 1 / 2 / 2;
  }
  .area_2 {
    grid-area: 2 / 1 / 3 / 2;
  }
  .area_3 {
    grid-area: 3 / 1 / 4 / 2;
  }
  @include media-breakpoint-up(sm) {
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    //grid-template-rows: auto 1fr;
    .area_1 {
      grid-area: 1 / 1 / 2 / 2;
    }
    .area_2 {
      grid-area: 1 / 2 / 3 / 3;
      margin-left: auto;
    }
    .area_3 {
      grid-area: 2 / 1 / 3 / 2;
    }
  }
}
                  

Root Font Size


// ****************************************************************
// root-rfs(container-width, breakpoint, $max-fontsize);
// root-rfs(340px ,390px ,20px);
// root-rfs(1110px, 1240px);
// ****************************************************************

@function root-rfs($container-width, $breakpoint, $max-fontsize: false) {
  @if $max-fontsize == false {
    @return calc(((100vw * #{strip-unit($container-width)} / #{strip-unit($breakpoint)})) / ( #{strip-unit($container-width)} / #{strip-unit($font-size-root)}));
  } @else {
    @return min(((100vw * #{strip-unit($container-width)} / #{strip-unit($breakpoint)})) / ( #{strip-unit($container-width)} / #{strip-unit($font-size-root)}), $max-fontsize);
  }
}
              

Header Height Main Padding Top


//Header Height Main Padding Top
//不要な場合 body.main-top-none
main{
  padding-top: var(--Artpro-header-height,0);
  .main-top-none &{
    padding-top: 0;
  }
}
              

Anchor Link 位置

.ac-position--sp-top: 1.5rem;--dp-top: 3rem;


                
                
                <div id="ac-layout" class="ac-position"></div>
                <div id="ac-layout" class="ac-position" style="--sp-top: 1.5rem;--dp-top: 3rem;"></div>
              

                .ac-position{
                  --ac-position-aki: var(--sp-top, 1rem);
                  @include media-breakpoint-up(sm) {
                    --ac-position-aki: var(--dp-top, 2rem);
                  }
                  margin-top: calc((var(--ac-position-aki, 0px) + var(--Artpro-header-height)) * -1);
                  padding-top: calc(var(--ac-position-aki, 0px) + var(--Artpro-header-height));
                }

                .ac-position-none{
                  margin-top: calc(var(--Artpro-header-height) * -1);
                  padding-top: calc(var(--Artpro-header-height) * 1);
                }
              

Typography

font-feature-settings

あああ(あああ)あああ

あああ(あああ)あああ .ffs-palt

Text Justify

ああああああああああああああああああああああああああああああああああああああああ

ああああああああああああああああああああああああああああああああああああああああ.text-justify

Font Family Style(ゴシック・明朝体)

.ff-gothic あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn

.ff-mincyo あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn

Font Style

  • .fst-normal あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fst-italic あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn

Font Weight

  • .fw-light 300 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fw-normal 400 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fw-regular 400 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fw-medium 500 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fw-demibold 600 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fw-semibold 600 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fw-bold 700 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn
  • .fw-black 900 あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn

Font Size .fs-05 〜.fs-50

.fs-50

ああああああああああああああああああああああ

.fs-rs-50 xs:42.36px

ああああああああああああああああああああああ

16px

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

.fs-16 = 1rem

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

.fs-rs-16 xs:14px

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

10px

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

.fs-10

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

.fs-rs-10 xs:9.64px

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

.fs-05

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ

.fs-rs-05 xs:5px

あああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああああ


//Font Size 05...50
$no: "";
@for $i from 5 through 50 {
  // Font Size rem .fs-16 16px = 1rem
  @if $i < 10 {
    $no: "0#{$i}";
  } @else {
    $no: $i;
  }
  .fs-#{$no} {
    font-size: #{px-rem($i)};
  }
}
              

Responsive Font Size SP[10...30] and DP[11...50]

あいうえお 123456789 ABCDEFG abcdefg .fs[20-35]

あいうえお 123456789 ABCDEFG abcdefg .fs[10-20]


//Responsive Font Size SP and DP
// .fs[10-11]...fs[10-50]
// .fs[11-12]...fs[11-50]
// ...
// .fs[29-30]...fs[29-50]
// .fs[30-31]...fs[30-50]
$fontsize-xs-small: 10;
$fontsize-xs-large: 30;
[class^="fs\["],
[class*=" fs\["]{
  font-size: var(--Artpro-fs);
}
@for $fs from $fontsize-xs-small through $fontsize-xs-large {
  [class*="fs\[#{$fs}-"]{
    --Artpro-fs: #{px-rem($fs)};
  }
}
$fontsize-sm-small: 11;
$fontsize-sm-large: 50;
@include media-breakpoint-up(sm) {
  @for $fs from $fontsize-sm-small through $fontsize-sm-large {
    [class*="fs\["][class*="-#{$fs}\]"]{
      --Artpro-fs: #{px-rem($fs)};
    }
  }
}
              

Line Height .lh-none .lh-10 〜 .lh-50

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .lh-none

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .lh-10

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .lh-16

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .lh-20

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .lh-32

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .lh-50

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .lh-season


                .lh-none{
                  line-height: 0;
                }
                // 行間 1...5
                @for $i from 10 through 50 {
                  // .lh-20 line-height: 2
                  .lh-#{$i} {
                    line-height: #{math.div($i, 10)};
                  }
                }
                .lh-season{
                  line-height: calc(1em + #{math.div(10em, $font-size-root-num)});
                }
              

Letter Spacing .ls-none .ls-0010 〜 .ls-0300

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .ls-none

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .ls-0010

あいうえおかきくけこさしすせそ 123456789 ABCDEFGHIJKLMN abcdefghijklmn .ls-0300


                //文字間
                .ls-none{
                  letter-spacing: 0;
                }
                //letter-spacing 0010...0300
                $no: "";
                @for $i from 1 through 30 {
                  //10 毎
                  $i: $i * 10;
                  //ゼロパディング
                  @if $i < 100 {
                    $no: "00#{$i}";
                  } @else if $i < 1000{
                    $no: "0#{$i}";
                  } @else {
                    $no: "#{$i}";
                  }
                  .ls-#{$no}{
                    letter-spacing: #{math.div($i, 1000)}em !important;
                  }
                }
              

Images

.img-fluid

.img-fluid width="1110" height="200"

.img-fluid width="800" height="200"

.img-fluid

.img-fluid width="200" height="100"

.img-fluid.w-xs[100] width="200" height="100"

.img-fluid width="200" height="100"


//Responsive images
//1px から アートボードサイズまで @1300
.img-fluid{
  width: var(--Artpro-img_width, auto);
  @for $i from 1 through strip-unit($artboards-size) {
    &[width="#{$i}"]{
      --Artpro-img_width:#{px-rem($i)};
    }
  }
}

.img-max{
  width: 100%;
  height: auto;
}
                

.img-max

.img-max width="1110" height="100"

Utilities

selection 擬似要素


                ::selection {
                  background-color: mix($default-text, #fff, 70%);
                  color: #fff;
                }
              

js-deviceTel-no

Tel:096-363-3632

                .js-deviceTel-no{
                  a[href^="tel:"] {
                    pointer-events: none;
                  }
                }
              

                function deviceTel(){
                  return (userAgent.indexOf("iPhone") > 0 || userAgent.indexOf("Android") > 0) ? true : false;
                }
                document.addEventListener("DOMContentLoaded", () => {
                  if (deviceTel()){
                    init_body.classList.remove("js-deviceTel-no");
                  } else {
                    init_body.classList.add("js-deviceTel-no");
                  }
                });
              

Empty None

.empty-none
.empty-none

                <div class="d-flex gap-10">
                  <div class="w[100] bg-accent py-20"></div>
                  <div class="w[100] bg-main py-20 empty-none"></div>
                  <div class="w[100] bg-main py-20 empty-none">.empty-none</div>
                </div>
              

                .empty-none:empty{
                  display: none;
                }
              

Line Clamp

.line-clampああああああああああああああああああああああああああああああああああああ

.line-clamp --line-clamp: 2;あああああああああああああああああああああああああああああああああああ

.line-clamp --line-clamp: 3;あああああああああああああああああああああああああああああああああああ


                //style="--line-clamp: 2;" style="--line-clamp: 3;"
                //初期値 1
                .line-clamp{
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  overflow: hidden;
                  -webkit-line-clamp: var(--line-clamp, 1);
                }
              

Text Indent

・あああああああああああああ
ああああああああ
.text-indent

-あああああああああああああ
ああああああああ
.text-indent --text-indent:0.5em;


                //style="--text-indent:0.5em;"
                //初期値 1em
                .text-indent{
                  text-indent: calc(var(--text-indent, 1em) * -1);
                  margin-left: var(--text-indent, 1em);
                  * {
                    text-indent: initial;
                  }
                }
              

Unordered List & Ordered List

  • ああああああああああああ
    あああああ
  • いいい --list-mt:0.5em;
  1. ああああああああああああ
  2. いいい --list-mt:1.5em;
  • ★ああああああああああああああああああああああああああ
  • ★いいいい .list-unstyled.list-indent --list-mt:0.5em;
  • -ああああああああああああああああああああああああああ
  • -いいいい
    .list-unstyled.list-indent --list-indent:0.5em;

                ul,
                ol{
                  --list-mt: 0;
                  li{
                    &:not(:first-child){
                      margin-top: var(--list-mt, 0);
                    }
                  }
                }
                .list-unstyled{
                  &.list-indent{
                    li{
                      //style="--text-indent:0.5em;"
                      //初期値 1em
                      text-indent: calc(var(--list-indent, 1em) * -1);
                      margin-left: var(--list-indent, 1em);
                      * {
                        text-indent: initial;
                      }
                    }
                  }
                }
              

Frequently Asked Questions

Bootstrap


// ****************************************************************
// デザインサイズ(デスクトップ用)
// ****************************************************************
//アートボードサイズ
$artboards-size:        1300px;//def 1300px
//アートボードの両端空き合計(padding)
$artboards-padding: 100px;//@100px = 50px + 50px
//コンテナーサイズ(.container)
$artboards-container:   1110px;//def 1110px
//コンテナー幅
//@1140px                 = @1110px              + @30px
$artboards-container-width: $artboards-container + $artboards-gutter;

// ****************************************************************
// デザインサイズ(スマホ用)
// ****************************************************************
//アートボードサイズ
$sp-artboards-size:     390px;//(iPhone SE @375px)(iPhone 12 @390px)def 390px
//アートボードの両端空き合計(padding)
$sp-artboards-padding:  20px;//@20px = 10px + 10px(アートボードサイズの両端空き)def 20px
//コンテナーサイズ(.container)仮想
//@340px                = @390px             - @30px            - @20px
$sp-artboards-container:  $sp-artboards-size - $artboards-gutter - $sp-artboards-padding;
//コンテナー幅
//@355px                     = @325px                  + @30px
$sp-artboards-container-width: $sp-artboards-container + $artboards-gutter;
              

h1

h2

h3

h4

h5
h6

h1

h1

h1

h1

  • ・あああああああああああああああああああああああああああああああああああ
  • ・ああああああああああああああああああああああああああああああああああああ

Link