/* 共通 */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
   margin: 0; color: #444;
    line-height: 1.6; 
    font-family: "Noto Serif JP", serif; background: #f5f2eb;
   }

img { max-width: 100%; height: auto; }

p { line-height: 1.8; }

a { color: #232323; }

h2, h3, footer {
   font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
   }

h2 { 
  color: #3a4f66; font-size: 1.75rem;
   border-left: 10px solid #3a4f66;
    padding: 5px 15px; margin: 0 0 15px;
   }

h3 { 
  color: #3a4f66; 
  font-size: 1.5rem;
   margin: 0 0 10px;
   }

#container {
   width: 100%; max-width: 1024px; margin: 0 auto;
   }

.site-header { padding: 16px 0; }

.site-logo { margin: 0; }

.site-logo img { display: block; max-width: 100%; }

.menu-button { display: none; }

.site-nav ul {
   display: flex; padding: 0;
   margin: 0;
   list-style: none; 
  }

.site-nav li {
   width: 25%;
  border-right: 1px solid #f5f2eb; 
  text-align: center; 
}

.site-nav li:last-child { border-right: 0; }

.site-nav a {
   display: block;
    background: #3a4f66;
   color: #f5f2eb;
    text-decoration: none;
     padding: 8px 4px;
      box-shadow: inset 0 0 10px #232323;
     }

.site-nav a:hover { background: #4f6e92; }

.site-nav li:first-child a { border-radius: 10px 0 0 0; }

.site-nav li:last-child a { border-radius: 0 10px 0 0; }

.flexslider { margin: 0; border: 0; }

.flexslider .slides img { display: block; width: 100%; }

.content-layout { display: flex; align-items: flex-start; }

main {
   width: 66.6667%;
    min-width: 0;
     padding: 0 20px 20px;
     }

#news {
   width: 33.3333%;
    min-width: 0;
     padding: 0 20px;
     }

main > section { margin-top: 20px; }

#concept::after {
   content: "";
    display: block;
     clear: both;
     }

.concept-photo {
   float: left;
    width: 180px;
     max-width: 42%;
      margin: 0 16px 12px 0;
       border-radius: 50%;
       }

#concept p { margin: 0 0 12px; }

.services-grid {
   display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 12px 20px;
     }

.service {
   min-width: 0;
    background: #ddd9d0; 
    padding: 16px; border-radius: 10px; 
    box-shadow: 1px 1px 7px #9a9a9a; 
  }

.service p { margin: 0 0 10px; }

.service .links {
   margin-top: auto; 
   text-align: right; 
  }

.service-photo { display: none; }

#shop table {
   width: 100%; 
   border: 2px solid #444; 
   border-collapse: collapse; 
   margin-top: 24px; 
  }

#shop th, #shop td {
   border: 1px solid #444; 
   padding: 6px 4px; 
   width: 25%; 
   text-align: center; 
  }

#shop th { font-weight: bold; }

#news dl {
   margin: 0; 
  padding: 0 8px;
 }

#news dt {
   font-weight: bold;
    padding: 10px 0 4px;
   }

#news dd {
   margin: 0;
    padding: 0 0 10px; 
    border-bottom: 1px dashed #444;
   }

footer {
   background: #3a4f66; 
   padding: 8px;
   }

footer p {
   margin: 0; 
   color: #f5f2eb; 
   text-align: center;
   }

footer small { font-size: 1rem; }

#ptop { 
  position: fixed; 
  z-index: 20; 
  right: 30px; 
  bottom: -120px; 
  width: 54px; 
  transition: bottom .5s;
 }

 #ptop.is-visible { bottom: 30px; }

 #ptop img { display: block; }

/* スマートフォン: 767px以下 */
@media (max-width: 767px) {

  body { background-color: #f5f2eb; }

  #container {
    max-width: 600px; 
    position: relative; 
    overflow: hidden; }

  .site-header { padding: 0; }

  .site-logo {
    position: absolute; 
    z-index: 3; top: 0; left: 0; 
    width: 100%; 
    padding: 15px; 
    background: linear-gradient(rgba(0,36,68,.78), rgba(0,37,68,0)); 
    pointer-events: none; 
   }

  .site-logo img { filter: drop-shadow(0 3px 3px #858585); }

  .menu-button {
    display: block; 
    border: 0; 
    background: transparent; 
    color: #f5f2eb; 
    cursor: pointer; 
    font-size: 28px; 
    line-height: 1; 
    padding: 4px 8px; 
   }

  #openBtn {
    position: absolute; 
    z-index: 4; top: 15px; right: 15px; 
   }

  .site-nav {
    position: absolute; 
    z-index: 10; top: 0; right: 0; width: min(300px, 85%); 
    padding: 15px; 
    background: #547192; 
    transform: translateX(100%); 
    visibility: hidden; 
    transition: transform .35s ease, visibility .35s; 
   }
  .site-nav.open {
    transform: translateX(0); 
    visibility: visible; 
   }

  .close-button { 
   margin-left: auto; 
   margin-bottom: 8px; 
}

.site-nav ul {
    display: block; 
    border-top: 1px dashed #fbf8f3; 
   }

  .site-nav li {
    width: 100%; 
    border-right: 0; 
    border-bottom: 1px dashed #fbf8f3; 
    text-align: left; 
   }

  .site-nav a {
    padding: 10px 16px; 
    color: #fbf8f3; 
    background: transparent; 
    box-shadow: none; 
    border-radius: 0 !important; 
   }

  .site-nav a:hover { background: #3a4f66; }

  .content-layout {
    display: flex; 
    flex-direction: column; 
    background: #fbf8f3; 
   }

  main {display: contents; }

  main > section, #news {
    width: 100%; 
    padding: 15px 30px; 
    margin: 0 0 15px; 
   }

  #concept {
    order: 1; 
    background: #3a4f66; 
    padding: 15px 30px; 
   }

  #concept h2 {
    color: #fbf8f3; 
    border-color: #fbf8f3; 
   }

  #concept p { color: #fbf8f3; }

  .concept-photo { display: none; }
  
  #services { order: 2; }
  
  .services-grid {
    grid-template-columns: 1fr; 
    gap: 15px; 
   }

  .service { box-shadow: none; }

  .service h3 { border-bottom: 1px solid #444; }

  .service-photo {
    display: block; 
    width: 100%; 
    margin-bottom: 12px; 
   }

  #news { order: 3; }
  
  #news dt:first-of-type { border-top: 1px dashed #444; }
  
  #shop { order: 4; }

.shop-description {
  display: block;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

footer { padding: 15px; }
  
  #ptop {
   right: 16px; 
   width: 48px; 
}

  #ptop.is-visible { bottom: 20px; }
}

/* FlexSlider初期化失敗時の表示対策 */
.flexslider:not(:has(.flex-viewport)) .slides > li {
    display: none;
}

.flexslider:not(:has(.flex-viewport)) .slides > li:first-child {
    display: block;
}

.flexslider .slides img {
    display: block;
    width: 100%;
    height: auto;
}

/* PC版：「詳しく見る」を各ボックスの右下に揃える */
@media screen and (min-width: 768px) {

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

  .service .links {
    margin-top: auto;
    text-align: right;
  }

}



/* PC版：Conceptを基準にServicesを配置 */
@media screen and (min-width: 768px) {

  .content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto auto;
    align-items: start;
    padding-bottom: 20px;
  }

  .content-layout main {
    display: contents;
  }

  #concept {
    grid-column: 1;
    grid-row: 1;
    margin: 20px 20px 0;
  }

  #news {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    height: auto;
    padding: 20px 20px 0;
  }

  #services {
    grid-column: 1;
    grid-row: 2;
    margin: 20px 20px 0;
  }

  #shop {
    grid-column: 1;
    grid-row: 3;
    margin: 20px 20px 0;
  }

}

/* PC版：ロゴのサイズを調整 */
@media screen and (min-width: 768px) {

  .site-logo img {
    width: 33.333%;
    height: auto;
  }

}

/* テーブル内の文字をゴシック体に変更 */
#shop table {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* テーブルの文字を控えめにする */
#shop table {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
}

#shop th {
  font-weight: 500;
}

/* PC版：縦方向の余白をゆったりさせる */
@media screen and (min-width: 768px) {

  /* セクション間の余白 */
  #concept {
    margin-bottom: 15px;
  }

  #services {
    margin-bottom: 15px;
  }

  /* 見出しと本文の間隔 */
  h2 {
    margin-bottom: 20px;
  }

  /* 本文の行間 */
  #concept p,
  .service p,
  #shop p,
  #news dd {
    line-height: 1.7;
  }

  /* Servicesのボックス内の余白 */
  .service {
    padding: 22px;
  }

  /* Servicesのボックス同士の縦間隔 */
  .services-grid {
    row-gap: 20px;
  }

  /* Newsの各記事の間隔 */
  #news dt {
    padding-top: 16px;
  }

  #news dd {
    padding-bottom: 16px;
  }

}

/* PC版：Shop infoの上下の余白を調整 */
@media screen and (min-width: 768px) {

  #shop {
    margin-top: 40px;
    margin-bottom: 40px;
  }

}

/* テーブルの見出し行を強調 */
#shop thead th {
  background-color: #eceae5;
  color: #3a4f66;
  font-weight: 400;
  border-bottom: 2px solid #444;
}

/* 下層ページ：メイン画像 */
.subpage-hero {
  width: 100%;
}

.subpage-hero img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* スマートフォン版 */
@media screen and (max-width: 767px) {
  .subpage-hero img {
    height: 220px;
  }
}

/* 下層ページ：メインコンテンツ */
.subpage-main {
  width: 100%;
  padding: 40px 30px 60px;
}

.beans-intro {
  margin-bottom: 40px;
}

.beans-intro p {
  margin: 0;
  line-height: 2;
}

/* スマートフォン版 */
@media screen and (max-width: 767px) {

  .subpage-main {
    padding: 30px 25px 50px;
  }

  .beans-intro {
    margin-bottom: 30px;
  }

}


/* 下層ページ：コーヒー豆一覧 */
.beans-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bean-card {
  background: #ddd9d0;
  border-radius: 10px;
  padding: 30px;
}

.bean-card h3 {
  color: #3a4f66;
  font-size: 1.5rem;
  margin: 0 0 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #aaa49a;
}

.bean-card p {
  margin: 0;
  line-height: 1.9;
}

/* スマートフォン版 */
@media screen and (max-width: 767px) {

  .beans-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bean-card {
    padding: 22px;
  }

  .bean-card h3 {
    font-size: 1.3rem;
  }

}


/* 下層ページ：トップページに戻るボタン */
.subpage-back {
  text-align: center;
  margin-top: 50px;
}

.subpage-back a {
  display: inline-block;
  padding: 12px 35px;
  background: #3a4f66;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.subpage-back a:hover {
  background: #4f6e92;
}

/* スマートフォン版 */
@media screen and (max-width: 767px) {

  .subpage-back {
    margin-top: 35px;
  }

  .subpage-back a {
    padding: 12px 25px;
  }

}

/* SP版：戻るボタンとフッターの間に余白を追加 */
@media screen and (max-width: 767px) {
  .subpage-main {
    padding-bottom: 50px;
  }
}

/* SP版：下層ページのmainを通常表示に戻す */
@media screen and (max-width: 767px) {
  main.subpage-main {
    display: block;
    width: 100%;
    padding-bottom: 50px;
  }
}

/* 下層ページ：紹介文の段落間隔 */
.beans-intro p + p {
  margin-top: 20px;
}


/* 田畑ページ：はざ掛けの写真 */
.tanbo-photo {
  width: 80%;
  margin: 40px auto 0;
}

.tanbo-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* スマートフォン版 */
@media screen and (max-width: 767px) {
  .tanbo-photo {
    width: 90%;
    margin-top: 30px;
  }
}



/* スイーツページ：写真3枚 */
.sweets-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px auto 0;
}

.sweets-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* スマートフォン版 */
@media screen and (max-width: 767px) {

  .sweets-photos {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

}



/* ギャラリーページ：見出し */
.gallery-intro h3 {
  font-size: 1.3rem;
  margin: 35px 0 20px;
}

/* 利用案内ボックス */
.gallery-info {
  background: #ddd9d0;
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
}

.gallery-info h3 {
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #aaa49a;
}

/* 利用料金・営業時間 */
.gallery-info dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 15px 20px;
  margin: 0;
}

.gallery-info dt {
  font-weight: bold;
  color: #3a4f66;
}

.gallery-info dd {
  margin: 0;
  line-height: 1.8;
}

.gallery-info .gallery-note {
  margin-top: 25px;
  font-size: 0.9rem;
  line-height: 1.9;
}

/* その他のサービス */
.gallery-services {
  margin-top: 40px;
}

/* スマートフォン版 */
@media screen and (max-width: 767px) {

  .gallery-intro h3 {
    font-size: 1.15rem;
  }

  .gallery-info {
    padding: 22px;
    margin-top: 30px;
  }

  .gallery-info dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .gallery-info dd {
    margin-bottom: 12px;
  }

  .gallery-services {
    margin-top: 30px;
  }

}
