@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: WindSong-Regular;
    src: url(../fonts/WindSong-Regular.ttf);
}

@font-face {
    font-family: NotoSansJP-Regular;
    src: url(../fonts/NotoSansJP-Regular.ttf);
}

/* メモ帳 */
.toggle-btn {
  position: fixed;
  top: 4vw;
  left: 0; /* 最初は画面の左端にくっつける */
  z-index: 11;
  padding: 2% 3%;
  background: #E83929;
  color: #fff;
  font-size: 6vw;
  border: none;
  cursor: pointer;
  border-radius: 0 5px 5px 0; /* 右側だけ丸みをつける */
  
  /* ボタンもスッと動かすための設定 */
  transition: left 0.3s ease;
}

/* メモが開いたとき、ボタンを右に移動させる */
.toggle-btn.active {
  left: 80%; /* サイドバーの横幅（300px）と同じ分だけ右にずらす */
}

/* サイドバーの基本スタイル */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%; /* メモ帳の横幅 */
  height: 100vh;
  background: #f7f7f7;
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  z-index: 10;
  padding: 3vw 2vw 2vw 2vw; /* ボタンと被らないよう上を少しあける */
  box-sizing: border-box;

  overflow-y: auto;       /* 縦方向にはみ出したら自動でスクロールバーを出す */
  overflow-x: hidden;     /* 横方向のはみ出しは隠して、横スクロールを防ぐ */
  
  /* 最初は左側に隠す */
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

/* このクラスがつくと左から出てくる */
.sidebar.open {
  transform: translateX(0);
}

.memo-content div {
    margin-bottom: 10%;
}

.memo-content div h3 {
    margin-bottom: 2%;
    padding: 1%;
    font-size: 6vw;
    color: #fff;
    border: 1px;
    border-radius: 2vw;
    background-color: rgba(232, 57, 41, 0.6);
}

.memo-content div p {
    font-size: 4vw;
    margin-left: 1em;
    line-height: 1.7;
    white-space: pre-wrap;
    color: #202020;
}

.works-card_concept {
    list-style-type: none;
}

.works-card_concept li {
    margin-bottom: 4%;
}

.works-card_concept li p {
    font-size: 4vw;
    margin-left: 1em;
    line-height: 1.7;
    color: #202020;
}

.works-card_concept li p::before {
    content: "・";
    color: #202020;
}
/* メモ帳終了 */

body {
    font-family: NotoSansJP-Regular;
}

/* ヘッダー */
header {
    background-color: #F4EFEA;
}

.header-flex-1 {
    display: flex;
    width: 80%;
    padding-top: 3%;
    padding-bottom: 3%;
    margin-left: auto;
    margin-right: auto;
}

.header-flex-1 h1 {
    width: 60%;
    margin-right: auto;
    margin-left: auto;
}

.header-flex-1 h1 a img {
    display: block;
    width: 100%;
    vertical-align: bottom;
}

.header-flex-1 nav {
    display: none;
    width: 50%;
    margin-left: auto;
}

.header-flex-1 nav ul {
    display: flex;
    list-style-type: none;
}

.header-flex-1 nav ul li {
    width: calc( 100% / 5 );
}

.header-flex-1 nav ul li a {
    display: block;
    text-align: center;
    text-decoration: none;
    line-height: 2.8;
    font-size: 1.4vw;
    color: #1E3A5F;
}

.title_menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50vw;
    background-image: url(../images/smart_title-background_menu.png);
    background-size: cover;
    font-size: 10vw;
    letter-spacing: 0.5vw;
    color: #F4EFEA;
    text-shadow: 1px 1px 20px rgba( 30, 58, 95, 0.8);
}
/* ヘッダー */

/* メイン */
html {
    scroll-behavior: smooth;
}
/* ページ内リンクをスムーズに移動 */

main {
    background-color: #F4EFEA;
}

section {
    padding-bottom: 20%;
}

section h3 {
    text-align: center;
    letter-spacing: 0.5vw;
    text-indent: -1vw;
    font-size: 6vw;
    margin-bottom: 3%;
    color: #1E3A5F;
}

.btn-container a {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 7%;
    padding-top: 2%;
    padding-left: 10%;
    padding-right: 10%;
    padding-bottom: 2%;
    font-size: 3.5vw;
    border: 1px;
    border-radius: 5vw;
    text-decoration: none;
    color: #F4EFEA;
    background-color: #1E3A5F;
}

/* デコレーション */
.decoration-1 {
    width:50vw;
    margin-left: auto;
    margin-right: auto;
}

section:nth-of-type(1) .decoration-1 {
    padding-top: 10%;
}

.decoration-1 img {
    width: 100%;
    vertical-align: bottom;
}
/* デコレーション */

/* メイン */

.menu-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    width: 76%;
    margin-left: auto;
    margin-right: auto;
    padding: 2%;
    background-color: rgba( 30, 58, 95, 0.2);
}

.menu-list div {
    background-color: #fff;
}

.menu-flex {
    display: flex;
    flex-direction: column;
}

.menu-flex div:first-of-type {
    width: fit-content;
    padding: 7%;
}

.menu-flex div:first-of-type img {
    width: 100%;
    vertical-align: bottom;
}

.menu-flex div:nth-of-type(2) {
    position: relative;
    width: 86%;
    height: 45vw;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 5%;
}

.menu-flex div:nth-of-type(2) h4 {
    margin-top: 0;
    margin-bottom: 4%;
    font-size: 3.5vw;
    text-align: center;
    color: #1E3A5F;
}

.menu-flex div:nth-of-type(2) p {
    line-height: 1.7;
    font-size: 3vw;
    text-align: justify;
    color: #202020;
}

.menu-flex div:nth-of-type(2) p:nth-of-type(2) {
    position: absolute;
    bottom: 4%;
    right: 4%;
    letter-spacing: 0.3em;
    font-size: 3.5vw;
}

/* フッター */
footer {
    position: relative;
    width: 100%;
    height: 60vw;
    background-image: url(../images/footer_background.jpg);
    background-size: cover;
}

.footer_back-ground {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    width: 100%;
    height: 60vw;
    background-color: rgba(244, 239, 234, 0.3);
}

.footer-flex-box {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.footer-flex-box div:first-of-type {
    width: 50%;
    margin-right: auto;
    margin-left: auto;
}

.footer-flex-box div:first-of-type img {
    width: 100%;
    margin-bottom: 5%;
    vertical-align: bottom;
}

.footer-flex-box div:nth-of-type(2) {
    display: flex;
    width: 100%;
    background-color: rgba( 30, 58, 95, 0.8);
}

.footer-flex-box div:nth-of-type(2) ul {
    width: 50%;
    list-style-type: none;
}

.footer-flex-box div:nth-of-type(2) ul:first-of-type {
    border-right: 1px solid #F4EFEA;
}

.footer-flex-box div:nth-of-type(2) ul li {
    margin: 1%;
}

.footer-flex-box div:nth-of-type(2) ul li a {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-decoration: none;
    line-height: 2;
    font-size: 3.5vw;
    color: #F4EFEA;
    
}

.footer_back-ground p {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    line-height: 3;
    font-size: 2vw;
    background-color: #1E3A5F;
    color: #F4EFEA;
}
/* フッター */