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


body {
    font-family: 'M PLUS 1p', sans-serif;
    letter-spacing: 0.05em;
    background-color: #FFFCF1;
    color:#492b19;
    padding: 0;
    margin: 0;
}

header img{
    width:100%;
}

main {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
a:hover{
    opacity: 0.6;
}

.about{
    margin-bottom: 100px;
    text-align: center;
}
.about img{
    width:50%;
}
.about p{
    text-align: left;
}

.title-en{
    font-size: 6.5vw; /* ビューポートの幅に応じてサイズを調整 */
    white-space: nowrap; /* テキストを折り返さない */
    overflow: hidden; /* はみ出したテキストを非表示に */
    font-weight: 800;
    font-style: italic;
    color: #FFEFCA;
    margin:10px 0 0;
}

.right-aligned-link, .link-list a {
    display: block;
    transition: all 0.3s ease;
    text-decoration: none;
    float: right;
}
.right-aligned-link{
    color: #888;
    font-weight: 300;
}
.right-aligned-link:hover, .link-list a:hover {
    transform: translateX(10px);
}
.right{
    position: absolute;
    right: 0;
    color: #888;
    font-size: 0.8em;
}


/*アイコン*/
.dli-home {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  position: relative;
  width: 1em;
  height: 0.75em;
  border: 0.1em solid currentColor;
  border-top: 0;
  box-sizing: border-box;
  margin-right: 10px;
}

.dli-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0.70711em;
  height: 0.70711em;
  border: 0.1em solid currentColor;
  border-right: 0;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translate(-50%, -46%) rotate(45deg) skew(-10deg, -10deg);
}

.dli-home::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.1em;
  width: 45%;
  height: 75%;
  background: #fff;
  border: 0.1em solid currentColor;
  border-bottom: 0;
  box-sizing: border-box;
  transform: translateX(-50%);
}


/*角丸タイトル*/
.rounded-title {
    width: 70%;
    background-color: #492b19;
    color: #FFFFFF;
    text-align: center;
    border-radius: 50px;
    padding: 3px 1px;
    margin: 2em auto 1.5em;
}


/*商品一覧*/
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product {
    widows: 33.3333%;
    margin-bottom: 8%;
}

.product-name{
    height: 3em; /* 商品名の高さを指定 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 1行で表示し、はみ出したテキストを省略 */
    position: relative;
    margin:5px auto 1px;
}
.product-name span{
    vertical-align: bottom;
    position: absolute;
    bottom: 0;
}
.product img {
    width: 100%; /* 幅はコンテナに合わせる */
    height: 300px; /* 画像の高さを固定 */
    max-width: 225px;
    object-fit: cover; /* 画像のアスペクト比を維持しつつ、領域に合わせてトリミング */
}

/*商品画像二枚以上に場合はスライドショー*/
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
}

.mySlides {
  display: none;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}



/*リンクリスト*/

.link-list {
    display: flex;
    align-items: center;
    list-style: none; /* デフォルトのリストスタイルを削除 */
}

.link-list a{
    color: #333;
}

.link-list .link-icon {
    width: 10px; /* アイコンの幅 */
    height: 10px; /* アイコンの高さ */
    position: relative; /* 疑似要素の基準点 */
    margin-right: 10px;
}

.link-icon {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  position: relative;
  width: 1em;
  height: 1em;
  transform: translateX(-25%) rotate(45deg);
}

.link-icon::before, .link-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 0.1em;
}

.link-icon::before {
  top: 0;
  left: 0;
  right: 0;
  height: 0.1em;
}

.link-icon::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 0.1em;
}
.link-background {
    background-color: #EBEBEB;
    border-radius: 50px;
    padding: 5px 10px;
    margin-right: 10px;
}
/*フッター*/
.footer-2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 25px 10px 15px;
    background-color: #a1a1a1;
    margin:100px 0 0;
}

.footer-2__logo {
    width: 130px;
    margin-bottom: 30px;
}

.footer-2__list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 1.5em;
    list-style-type: none;
    margin: 0 0 .5em;
    padding: .5em;
}

.footer-2__sns-icon {
    width: 21px;
    height: 21px;
}

.footer-2__copyright {
    margin: 0;
    color: #ffffffb3;
    font-weight: 200;
    font-size: .8em;
}
@media (max-width: 1200px) {
    
    .title-en{
    font-size: 9vw; /* ビューポートの幅に応じてサイズを調整 */
    }
    
}


@media (max-width: 768px) {
    main {
    max-width: 90%;
}
    .product {
        flex-direction: column;
        flex-basis: calc(50% - 10px); /* 2つの場合、幅を50%に設定 */
        margin:2% auto 0;
    }
    
    .product img {
        height: 350px; /* 画面が小さいときの画像の高さ */
        max-width: 100%;
    }
    
    .title-en{
    font-size: 12vw; /* ビューポートの幅に応じてサイズを調整 */
    }
    
}

@media (max-width: 414px) {
    h1{
        margin-top: 0;
    }
    
    .about img{
    width:80%;
    }
    h2{
        font-size: 1.1em;
    }
    .product {
        flex-basis: 100%; /* 1つの場合、幅を100%に設定 */
        margin:auto auto 15%;
    }
    
    .product img {
        height: 400px; /* さらに小さい画面での画像の高さ */
    }
    .rounded-title {
    width: 100%;
    }
}

