@charset "UTF-8";

/* Template & Designed by Towako. */
/* https://ninawas.me */

/* ウェブフォントの読み込み */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display+SC');

@font-face {
    font-family: "Rock Salt"/'IPA 明朝'/;
    font-display: swap; /* テキストが読み込まれてからフォントを適用する */
    src: url('https://cdn.leafscape.be/IPAfont/ipam_web.woff2') format("woff2");
}

/*-------------------------------------------------
このフォントはIPAフォントライセンスv1.0の下で提供されています。
 
http://ipafont.ipa.go.jp/ipa_font_license_v1.html
 
-------------------------------------------------*/
/* フォントここまで */

/* 全体に適用する */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-weight: normal;
    font-family: "Helvetica", 游明朝, 'Yu Mincho', YuMincho, 'Hiragino Mincho ProN', 'IPA 明朝', serif;
}


/* 基本設定 */
html {
    scroll-behavior: smooth;
}

body {
    text-align: justify;
    word-break: break-all;
    line-height: 1.7;
    letter-spacing: 0.1em;
    background-color: #ffffff;
    font-size: 13px;
    color: #000;
}

/* リンク */
a {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

/* ホバー */
a:hover {
    border-bottom: thin solid #000;
}

/* ヘッダー */
header {
    position: relative;
    margin: 5em auto 6em;
    height: 200px;
    width: 200px;
    /box-shadow: 1px 1px 10px #c0c0c0;/
    font-family: "Helvetica", 'Playfair Display SC', 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", 'IPA 明朝', serif;
    background-image: url("../image/ヘッダーロゴあり.png");
    /background-size: cover;/
    background-position: center;
    background-repeat: no-repeat;
}

/* 見出し */
header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5em;
}

/* サブタイトル */
header p {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.3em;
    text-indent: 0.3em;
}

/* セクション＆アーティクル */
section,
article {
    margin: 3em auto;
    padding: 0 1.5em;
    width: 80%;
    max-width: 500px;
}

/* セクションのボーダーを奇数偶数で変える */
section:nth-of-type(odd) {
    border-left: 10px solid #000000;
}

section:nth-of-type(even) {
    text-align: right;
    border-right: 10px solid #000000;
}

/* 見出し */
section h2,
article h2 {
    margin-bottom: 0.5em;
    font-family: "Helvetica", 'Playfair Display SC', 游明朝, "Yu Mincho", YuMincho, "Hiragino Mincho ProN", 'IPA 明朝', serif;
}

/* 余白 */
section p,
section dl,
section ul,
footer {
    margin: 0.5em auto 1.5em;
}

 /* リスト系 */
section dd {
    margin: 0 0 1em 1em;
}

section ul,
article ul {
    list-style-type: none;
}

/* 横並びリスト */
.float li {
    display: inline-block;
}

.float li a {
    margin-right: 1em;
}
/* リストここまで */

/* アーティクル */
article {
    padding: 2em 1.5em;
    background-color: #fff;
}

article p {
    margin: 1em auto 1.5em;
}

/* フッター */
footer {
    text-align: center;
}

/* 中央揃え */
.center {
    margin: 0 auto;
    text-align: center;
}

/*左寄せ*/
.left {
    text-align: left;
}

/*右寄せ*/
.right {
    text-align: right;
}

/* 太字 */
.strong {
    font-weight: bold;
}

/* 枠線リンク */
.link {
    margin: 0.2em auto;
    padding: 0.1em 0.4em;
    border: thin solid #000;
}

/* フォーム系 */
textarea,
input[type] {
    -webkit-appearance: none;
    margin: 0.5em auto;
    padding: 0.1em 0.5em;
    background-color: #f5f5f5;
    border: 5px solid #fff;
    border-radius: 0;
}

textarea {
    width: 200px;
    height: 70px;
}

input[type=text] {
    width: 80px;
}

input[type=submit] {
    width: auto;
}

/* 横幅768px以上はフォントサイズ14px */
@media screen and (min-width:768px) {
    body {
        font-size: 14px;
    }
}


.gallerylist {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 40px 0;
}

.gallerylist__item {
  width: calc((100% - 80px) / 3);
  height: auto;
}
@media screen and (max-width: 1180px) {
  .gallerylist__item {
    width: calc((100% - 60px) / 4);
  }
}
@media screen and (max-width: 767px) {
  .gallerylist__item {
    width: calc((100% - 40px) / 3);
  }
}
@media screen and (max-width: 520px) {
  .gallerylist__item {
    width: calc((100% - 20px) / 2);
  }
}
.gallerylist__item a {
  position: relative;
  width: 100%;
  display: block;
}
.gallerylist__item a::before {
  content: "";
  display: block;
  padding-top: 100%;
  /*100%=親要素の横幅*/
}
.gallerylist__item a img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

 @media screen and (max-width: 480px) {
img{
  text-align: center;
}
}

.menuimg {

}

 @media screen and (max-width: 480px) {
  .menuimg{
  max-width: 95%;
  height: auto;
}
}