@charset "utf-8"; $black: #3a3a3a; $green1: #547F47; $green2: #7FA742; $bg: #FAF9F7; @mixin position-center { position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); } // タブレットサイズ @media screen and (max-width: 840px) { main { margin: 100px; } .article { padding: 120px 0px; margin: 0 80px; .article-title { margin-left: 20px; } .article-text-wrapper { .article-text { margin: 0 20px; &:last-of-type { margin: 40px 0 0 0; } } } } .salon-about { .flex-box { .about-left { .salon-img { width: 700px; max-width: 150%; } } .about-right { height: auto; dt { margin: 0 0 20px 0; } dd { font-size: 1.4rem; position: static; transform: none; } } } } .knowledge { .grid { display: block; .grid-item1 { width: 100%; } } } } // スマホサイズ @media screen and (max-width: 480px) { main { margin: 0 40px; } section { padding: 180px 0 100px 0; } .section-title { font-size: 2.4rem; margin-bottom: 50px; } .flex-box { display: block; } .tag-wrapper { left: 30px; .explain-tag { font-size: 1.4rem; letter-spacing: 0.5em; } .tag-img { margin-bottom: 0; } } .fv-wrapper { height: 100%; .fv { display: flex; align-items: center; justify-content: center; height: 100vh; } .top-address { left: 25px; display: none; dt { font-size: 2rem; margin-bottom: 20px; } } .scroll-arrow { height: 70px; bottom: 50px; &:hover { bottom: 0; } } } .article { padding: 120px 40px; .article-title { margin-left: 60px; } .article-text-wrapper { .article-text { margin: 0 20px; &:last-of-type { margin: 40px 0 0 0; } } } } .salon-about { .flex-box { position: relative; .about-left { .about-img { width: 100%; } } .about-right { width: 100%; height: auto; margin-left: 0; margin-top: -80px; padding: 30px; margin-left: auto; position: absolute; bottom: -50px; right: -30px; dt { margin-bottom: 20px; margin-top: 0; } dd { width: 100%; position: static; transform: none; font-size: 1.4rem; margin: 0; } } } } .menu { .tab-btn-wrapper { margin: 50px 0; .flex-box { display: flex; justify-content: space-between; li { margin: 20px 0 0 0; padding: 5px 20px; width: 48%; border-radius: 5px; } } } .grid { display: block; figure { margin-bottom: 80px; width: 100%; img { width: 100%; height: 100%; max-width: initial; } } } } .knowledge { .grid { display: block; .grid-item { width: 100%; position: relative; } .grid-item1 { &::after { content: "お茶の効能"; position: absolute; @include position-center; color: #fff; writing-mode: vertical-rl; font-size: 2rem; letter-spacing: 10px; height: 150px; font-weight: bold; } } .grid-item2 { &::after { content: "茶道について"; position: absolute; @include position-center; color: #fff; writing-mode: vertical-rl; font-size: 2rem; letter-spacing: 10px; height: 200px; font-weight: bold; } } .grid-item3 { &::after { content: "お茶の効能"; position: absolute; @include position-center; color: #fff; writing-mode: vertical-rl; font-size: 2rem; letter-spacing: 10px; height: 150px; font-weight: bold; } } .tag-wrapper { display: none; .explain-tag { padding: 10px 5px; } .tag-img { margin-bottom: 10px; } } } } .info { padding: 0px 0 150px; } footer { text-align: center; } }