@charset "UTF-8";

/* -------------------- 変数 -------------------- */
:root {
  --main-side: 36px;
  --light-color: #fff;
  --dark-color: #432;
  --accent-color: #0bd;
  --accent-dark-color: #0090aa;
}

/* -------------------- 共通部分 -------------------- */
html {
  font-size: 16px;
}

body {
  font-family: "Yu Gothic Medium";
  line-height: 1.7rem;
  color: var(--dark-color);
}

img {
  max-width: 100%;
}

.wrapper {
  max-width: 1100px;
  /* 真ん中にコンテンツが来るようにする */
  margin: 0 auto;
  padding: 0 var(--main-side);
}

/* 見出し */
.page-title {
  font-size: 5rem;
  line-height: 5rem;
  font-family: "Philosopher", serif;
  font-weight: normal;
  margin: 20px 0;
}

/* ボタン */
.button {
  font-size: 1.375rem;
  background: var(--accent-color);
  color: var(--light-color);
  border-radius: 12px;
  padding: 18px 32px;
}

.button:hover {
  background: var(--accent-dark-color);
}

/* 背景画像 */
.big-bg {
  background-image: url(../images/main-bg.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* -------------------- header -------------------- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  width: 210px;
}

.main-nav {
  display: flex;
  font-size: 1.25rem;
  /* テキストを大文字にする */
  text-transform: uppercase;
}

.main-nav li {
  margin: 0 18px;
}

.main-nav a:hover {
  color: var(--accent-color);
}

/* -------------------- footer -------------------- */
footer {
  background: var(--dark-color);
  text-align: center;
  padding: 26px 0;
}

footer p {
  color: var(--light-color);
  font-size: 0.875rem;
}

/* -------------------- home -------------------- */
.home-content {
  text-align: center;
  margin-top: 25vh;
}

.home-content p {
  font-size: 1.125rem;
  margin-top: 10px;
  margin-bottom: 42px;
}

/* -------------------- News -------------------- */
.news {
  background-image: url(../images/news-bg.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: 50px;
  margin-bottom: 40px;
}

.news .page-title {
  text-align: center;
}

.news-contents {
  display: flex;
  margin-bottom: 50px;
}

/* 記事 */
article {
  width: 74%;
  order: 2;
}

.post-info {
  position: relative;
  padding-top: 4px;
  margin-bottom: 40px;
}

.post-date {
  background: var(--accent-color);
  border-radius: 50%;
  color: var(--light-color);
  width: 100px;
  height: 100px;
  font-size: 1.5rem;
  line-height: 2.7rem;
  text-align: center;
  position: absolute;
  top: 0;
  padding-top: 10px;
}

.post-year {
  font-size: 1rem;
  border-top: 1px rgb(255, 255, 255, 0.5) solid;
  display: block;
  width: 60%;
  margin: 0px auto 0 auto;
}

.post-title {
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: 2rem;
  line-height: 3rem;
  font-weight: normal;
}

.post-title,
.post-category {
  margin-left: 120px;
}

article img {
  margin-bottom: 20px;
}

article p {
  margin-bottom: 1rem;
}

/* サイドバー */
aside {
  width: 22%;
  margin: 0 20px;
  order: 3;
}

aside p {
  padding: 12px 10px;
}

.sub-title {
  font-size: 1.375rem;
  padding: 8px;
  border-bottom: 2px var(--accent-color) solid;
  font-weight: normal;
}

.sub-menu {
  padding: 0 8px;
  margin-bottom: 60px;
}

.sub-menu li {
  padding: 10px;
  border-bottom: 1px #ddd solid;
}

.sub-menu a {
  color: var(--dark-color);
  display: block;
}

/* 広告 */
.ad {
  order: 1;
  margin: 20px;
}

/* -------------------- MENU -------------------- */
.menu {
  background-image: url(../images/menu-bg.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: 50px;
}

.menu-contents {
  max-width: 560px;
  margin-top: 40px;
}

.menu-contents .page-title {
  text-align: center;
}

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 6%;
  margin-bottom: 50px;
}

.big-box {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.big-box img {
  height: 94%;
  width: 100%;
  object-fit: cover;
}

/* -------------------- contact -------------------- */
.contact {
  background-image: url(../images/contact-bg.jpg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: 50px;
}

/* ---------- フォーム ---------- */
form div {
  margin-bottom: 14px;
}

label {
  font-size: 1.125rem;
  margin-bottom: 10px;
  display: block;
}

input[type="text"],
input[type="email"],
textarea {
  background: rgba(255, 255, 255, 0.5);
  border: 1px #fff solid;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 240px;
}

textarea {
  width: 100%;
  max-width: 480px;
  height: 6rem;
}

input[type="submit"] {
  border: none;
  cursor: pointer;
  line-height: 1;
  margin-top: 10px;
}

/* 店舗情報・地図 */
.location {
  padding: 4% 0;
}

.location .wrapper {
  display: flex;
  justify-content: space-between;
}

.location-info {
  width: 22%;
}

.location-info p {
  padding: 12px 10px;
}

.location-map {
  width: 74%;
}

iframe {
  width: 100%;
}

/* SNS */
.sns {
  background: #faf7f0;
  padding: 4% 0;
}

.sns .wrapper {
  display: flex;
  justify-content: space-between;
}

.sns .sub-title {
  margin-bottom: 30px;
}

.sns-box {
  width: 30%;
}

/* -------------------- モバイル版 -------------------- */
@media (max-width: 600px) {
  .page-title {
    font-size: 2.5rem;
  }

  /* header */
  .main-nav {
    font-size: 1rem;
    margin-top: 20px;
  }

  .page-header {
    flex-direction: column;
    align-items: center;
  }

  /* home */
  .home-content {
    margin-top: 15vh;
  }

  /* news */
  .news-contents {
    flex-direction: column;
    align-items: center;
  }

  aside {
    margin-top: 60px;
  }

  article,
  aside {
    width: 100%;
  }

  .post-date {
    width: 70px;
    height: 70px;
    font-size: 1rem;
    line-height: 1.7rem;
  }

  .post-date span {
    font-size: 0.875rem;
  }

  .post-title {
    font-size: 1.375rem;
    line-height: 2rem;
  }

  .post-category {
    font-size: 0.875rem;
    margin-top: 10px;
  }

  .post-title,
  .post-category {
    margin-left: 85px;
  }

  /* menu */
  .big-box {
    grid-column: auto;
    grid-row: auto;
    margin-bottom: 26px;
  }

  .big-box img {
    height: 100%;
  }

  /* contact */
  /* フォーム */
  input[type="text"],
  input[type="email"],
  textarea {
    max-width: 100%;
  }

  /* 店舗情報・地図 / SNS */
  .location .wrapper,
  .sns .wrapper {
    flex-direction: column;
  }

  .location-info,
  .location-map,
  .sns-box {
    width: 100%;
  }

  .sns-box {
    margin-bottom: 30px;
  }
}
