Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <footer id="footer">
  <div class="container-xl">

    <div class="breadcrumb">
      <ul>
        <li><a href="#">ホーム</a></li>
        <li><a href="#">◯◯◯◯</a></li>
      </ul>
    </div>

    <!-- XXXXXXXXXXXXXXXXXXXXXXX-->

    <div class="footer-navi">
      <div id="accordion_id-footer-navi">
        <div class="footer-info">
          <img src="https://dl.dropbox.com/s/5kwzjpzxy7yo4n9/logo_w.svg?dl=0" alt="">
          <p>
            ここには、会社の説明、サービスの説明、サイトの説明などを簡単に書きます。ここには、会社の説明、サービスの説明、サイトの説明などを簡単に書きます。
          </p>
        </div>
        <dl>
          <dt>
            <a href="#" data-bs-toggle="collapse" aria-expanded="false" data-bs-target="#collapse_id-service" class="collapsed">
              <i class="icon-plus-minus">
                <span class="icon-plus-minus__bg">
                  <span class="icon-plus-minus__object"></span>
                </span>
              </i>
              Service
            </a>
          </dt>
          <dd class="collapse" id="collapse_id-service" aria-expanded="false" data-parent="#accordion_id-footer-navi">
            <ul>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
            </ul>
          </dd>
        </dl>

        <dl>
          <dt>
            <a href="#" data-bs-toggle="collapse" aria-expanded="false" data-bs-target="#collapse_id-price" class="collapsed">
              <i class="icon-plus-minus">
                <span class="icon-plus-minus__bg">
                  <span class="icon-plus-minus__object"></span>
                </span>
              </i>
              Price
            </a>
          </dt>
          <dd class="collapse" id="collapse_id-price" aria-expanded="false" data-parent="#accordion_id-footer-navi">
            <ul>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
            </ul>
          </dd>
        </dl>

        <dl>
          <dt>
            <a href="#" data-bs-toggle="collapse" aria-expanded="false" data-bs-target="#collapse_id-help" class="collapsed">
              <i class="icon-plus-minus">
                <span class="icon-plus-minus__bg">
                  <span class="icon-plus-minus__object"></span>
                </span>
              </i>
              Help
            </a>
          </dt>
          <dd class="collapse" id="collapse_id-help" aria-expanded="false" data-parent="#accordion_id-footer-navi">
            <ul>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
            </ul>
          </dd>
        </dl>

        <dl>
          <dt>
            <a href="#" data-bs-toggle="collapse" aria-expanded="false" data-bs-target="#collapse_id-company" class="collapsed">
              <i class="icon-plus-minus">
                <span class="icon-plus-minus__bg">
                  <span class="icon-plus-minus__object"></span>
                </span>
              </i>
              Company
            </a>
          </dt>
          <dd class="collapse" id="collapse_id-company" aria-expanded="false" data-parent="#accordion_id-footer-navi">
            <ul>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
              <li><a href="#">◯◯◯◯◯◯◯◯◯◯</a></li>
            </ul>
          </dd>
        </dl>
      </div>
    </div>

    <!-- XXXXXXXXXXXXXXXXXXXXXXX-->

    <div class="utility">

      <div class="dropdown language">
        <a href="#" class="dropdown-toggle" role="button" id="dropdownMenuLanguage" data-bs-toggle="dropdown" aria-expanded="false">
          <span class="icon-lang">Japanese</span>
        </a>
        <div class="dropdown-menu" aria-labelledby="dropdownMenuLanguage">
          <ul class="language">
            <li><a href="#">English</a></li>
            <li><a href="#">Japanese</a></li>
          </ul>
        </div>
      </div>

      <ul class="social">
        <li class=""><a href="https://www.youtube.com/channel/UCjPl15UJ0-WVfPkmSsORJrw" target="_blank" class="icon-youtube"></a></li>
        <li class=""><a href="#" target="_blank" class="icon-twitter"></a></li>
        <li class=""><a href="#" target="_blank" class="icon-facebook"></a></li>
      </ul>

      <ul class="policy-navi">
        <li class=""><a href="#">サイトポリシー</a></li>
        <li class=""><a href="#">プライバシー</a></li>
        <li class=""><a href="#">利用規約</a></li>
      </ul>
      <ul class="copyright">
        <li class=""><span>&copy; Sample Inc. All Rights Reserved.</span></li>
      </ul>
    </div>

    
  </div>
</footer>

              
            
!

CSS

              
                @charset 'utf-8';

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1p:wght@100;300;400;500;700;800;900&display=swap');

@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700,700i&display=swap');

$ja       : 'M PLUS 1p', sans-serif;
$en       : 'Roboto Condensed', sans-serif;


#footer{

  padding: 0 calc( 12rem / 16 ) 0;
  margin : 0 0 0 0;
  background-color: #0E222C;

  a,span,p,li{
    color: #fff;
    color: #8D98A0;
    font-size: calc( 13rem / 16);
    text-decoration: none;
  }

  a:hover,
  a:focus{
    color: #b7cad6;
  }

  ul{
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    list-style: none;
  }

  .disabled{
    opacity: 0.4;
  }

  //==================================================
  // パンくず
  //==================================================

  .breadcrumb{
    background: none;
    border-radius: 0;
    padding: 1.6rem 0 1.6rem 0;
    margin : 0 0 0 0;
    display: flex;

    ul{
      display: flex;
      flex-direction: row;
      li{
        line-height: 1.6;
        &::before{
          content: "\203a";
          font-weight: 400;
          color: #8D98A0;
          padding-left : .8em;
          padding-right: .9em;
        }

      }
      li:nth-of-type(1)::before{
        content: "\f015";
        font-family: FontAwesome;
        font-weight: 900;
        font-size: 0.85em;
        padding-left: 0em;
        padding-right: .5em;
        color: #8D98A0;
      }
    }
  }


  //==================================================
  // フッター情報
  //==================================================

  .footer-info{
    border-top: 1px solid #2A3840;
    padding: calc( 20rem / 16 ) 0;
    img{
      width: 70px;
    }
    p{
      font-size: calc( 11rem / 16 );
      margin: calc( 10rem / 16 ) 0 0 0;
    }
    //改行
    span.pc-only{
      display: none;
    }

  }


  //==================================================
  //  フッターナビ
  //==================================================

  .footer-navi{
    width: 100%;
    display: block;
    margin:  0 0 0 0;
    padding: 0 0 0 0;

    dl{
      border-top: 1px solid #2A3840;
      margin: 0 0 0 0;
      padding: 20px 0 20px 0;

      dt{

        //🔸クリックされた状態(開く)
        a{
          color: #ffffff;
          pointer-events  : auto;/* desktop=none */
          display         : flex  !important;
          flex-direction  : row;
          justify-content : flex-start;
          align-items     : center;
          font-family     : $en ;
          font-weight     : 500 ;
          font-size       : calc( 14rem / 16 ) ;

          .icon-plus-minus{
            padding     : 0 0 0 0;
            margin      : 0 8px 0 0;
            width       : 10px;
            height      : 10px;
            transform   : rotate(360deg); //回転
            background  : none;
            position    : relative;
            display     : inline-block;

            transition  : transform 400ms ease;
            will-change : transform;
          }

          .icon-plus-minus__bg{
            padding     : 0 0 0 0;
            margin      : 0 0 0 0;
            width       : 10px;
            height      : 10px;
            display          : flex;
            align-items      : center;
            justify-content  : center;
            background-color : none;
          }

          //縦棒
          .icon-plus-minus__object{
            padding     : 0 0 0 0;
            margin      : 0 0 0 0;
            position    : relative;
            width       : 10px;
            height      : 2px;
            background-color : #fff;
            //横棒
            .icon-plus-minus__object::before {
              opacity     : 0; //棒を1本非表示にしてマイナスを表現
            }
          }

        }

        //🔸クリックされてない状態(閉じる)
        a.collapsed{
          transform   : none;
          transition  : all 5551s !important;

          .icon-plus-minus {
            transform: rotate(0);

            //横棒
            .icon-plus-minus__object::before {
              content          : '';
              position         : absolute;
              z-index          : 2;
              top              : 50%;
              left             : 50%;
              transform        : translate3d(-50%, -50%, 0);
              width            : 2px;
              height           : 10px;
              background-color : #fff;
              opacity          : 1;
              will-change      : opacity;
            }
          }
        }

      }//dt


      dd{
        margin: 0 0 0 0 ;
        ul{
          margin: 20px 28px 10px 28px;
          li{
            margin: 15px 0;
            a{
              font-size: 0.8rem;
              display: block;
            }
          }
        }
      }//dd


    }
  }



  //==================================================
  // utility 
  //==================================================

  .utility{

    border-top: 1px solid #2A3840;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0 20px 0;
    margin: 0 0 0 0;


    /* 言語設定のドロップダウン */
    .language{
      padding: calc( 10rem / 16 ) 0;
      margin-right: calc( 30rem / 16 );
      .dropdown-toggle::after{
        content: none;
      }
      .dropdown-menu{
        background: #000;
        padding: 0px calc( 15rem / 16 ) 0px calc( 15rem / 16 );
        border: calc( 2rem / 16 ) solid #5c5c5c;
        ul{
          margin: 0;
          padding: 0;
          li{
            margin : 0px;
            padding: 15px 5px;
            border-top: 1px dashed rgba(#ccc,0.3);
            &:nth-of-type(1){
              border-top: none;
            }
            a{
              margin: 0;
              padding: 0;
              display: block;
            }
          }
        }
      }
    }

    /* アイコン:言語切り替え */
    .icon-lang{
      font-family: 'Roboto Condensed', sans-serif;
      font-weight: 400;
      &::before{
        content       : "\f0ac";//地球儀アイコン
        font-size     : calc( 13rem / 16 );
        font-family   : FontAwesome;
        font-weight   : 900;
        padding-right : calc( 5rem / 16 );
      }
    }



    /* ソーシャルボタン */
    ul.social{
      margin-right: auto;
      display: flex;
      padding: calc( 10rem / 16 ) 0;
      li{
        margin-right: calc( 30rem / 16 );
        a::before{
          font-size: 1.1rem;
          font-family: FontAwesome;
          font-weight: 900;
          padding-right: calc( 5rem / 16 );
        }
      }
    }

    /* アイコン:YouTube */
    .icon-youtube{
      &::before{
        content: "\f167";
      }
    }

    /* アイコン:Twitter */
    .icon-twitter{
      &::before{
        content: "\f099";
      }
    }

    /* アイコン:Facebook */
    .icon-facebook{
      &::before{
        content: "\f39e";
      }
    }


    /* ポリシーリンク */
    ul.policy-navi{
      padding: 10px 0;
      display: flex;
      // margin-left: auto;
      li{
        display: inline-block;
        &::after{
          content: "/";
          font-size: calc( 12rem / 16 );
          font-weight: 400;
          padding: 0 calc( 10rem / 16 );
        }
        a{
          font-size: calc( 12rem / 16 );
        }
      }
    }


    /* コピーライト */
    ul.copyright{
      padding: calc( 10rem / 16 ) 0;
      li{
        span{
          font-family: $en;
          font-size: calc( 12rem / 16 );
          font-weight: 400;
        }
      }
      &::after{
        content: none;
      }
    }

  }



}










//==================================================
// Footer( width : 992px 〜 )⭐️
//==================================================


#footer{
  
  @media (min-width: 992px) {


    //==================================================
    //  パンくず
    //==================================================

    .breadcrumb{
      border-bottom: 1px solid #2A3840;
      margin-bottom: 10px;
    }



    //==================================================
    // フッター情報
    //==================================================

    .footer-info{
      flex-basis: 400px; /* flexアイテムの幅を数値で指定 */
      border: none;
      padding: calc( 20rem / 16 ) 0;
      img{
        width: 60px;
      }
      p{
        font-size: calc( 12rem / 16 );
        line-height: 1.8;
        margin: calc( 15rem / 16 ) 0 0 0;
      }
    }


      
    //==================================================
    //  フッターナビ
    //==================================================

    #accordion_id-footer-navi{
      width: 100%;
      padding-left : calc( 12rem / 16 );
      padding-right: calc( 12rem / 16 );
      display: flex;
      justify-content: flex-start;
    }

    .footer-navi{
      dl{
        border: none !important;
        margin-left : calc( 50rem / 16);
        margin-right: calc( 50rem / 16);
        dt{
          a{
            pointer-events:none; //リンク無効

            //プラス・マイナスのアイコンは非表示
            .icon-plus-minus {
              display: none;
            }

          }
        }

        dd{
          &.collapse{
            display: block; //非表示を解除
          }
          ul{
            margin: 1rem 0 0 0;
          }
        }
      }
    }



    //==================================================
    //  utility
    //==================================================

    .utility{

      /* コピーライト */
      ul.copyright{
        margin-left: calc( 20rem / 16 );
      }

    }



  }
}







//==================================================
// Footer( width : 1200px 〜 )⭐️
//==================================================


#footer{
  @media (min-width: 1200px) {
    padding: 0 0 0 0;


    //==================================================
    // フッター情報
    //==================================================

    .footer-info{
      //改行
      span.pc-only{
        display: block;
      }
    }


      
  }
}
  

              
            
!

JS

              
                
              
            
!
999px

Console