@charset "utf-8";
/* グローバルスタイル */
body {
  background-color: #80ff80;
  margin: 0 auto;
  max-width: 1024px;
  font-family: Arial, sans-serif;
  width: 100%;
}

#header{
	margin-bottom: 10px;
}

#main {
  background-color: #ffffff;
  color: #000000;
  padding: 2em;
  margin: 1em;
  border: 1px solid;
}

/* 画像のレスポンシブ対応 */
img {
  max-width: 100%;
  height: auto;
}

/* トップ画像 */
#top-image img {
  max-width: 100px;
}

/* 電話とメールのレイアウト */
#tel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#tel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#tel li {
  margin-bottom: 5px;
}

#tel a {
  text-decoration: none;
  color: black;
}

/* スマホ用レイアウト */
@media (max-width: 768px) {
  #header {
    flex-direction: column; /* 縦に並べる */
    align-items: flex-start; /* 左寄せ */
  }

  #tel {
    align-items: flex-start; /* 左寄せ */
    margin-top: 10px; /* ヘッダーの下に隙間を追加 */
  }
}

/* ヘッダー */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #d8d8d8;
  padding: 0;
  box-sizing: border-box;
}

h1 {
  margin: 0;
  padding: 10px;
  line-height: 1.5;
  word-break: break-word;
}

/* SNSボタン */
.fixed-sns-buttons {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 15px;
}

.fixed-sns-buttons a {
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s, color 0.2s;
}

.fixed-sns-buttons a:hover {
  color: lightgray;
  transform: scale(1.2);
}

/* トップへ戻るボタン */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.back-to-top.show {
    display: block;
    animation: fadeIn 0.3s;
}
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
}

/* ハンバーガーボタン */
#burger-btn {
  display: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  background-color: #333;
  color: white;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

#menu {
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  position: fixed;
  top: 50px;
  right: 10px;
  width: 200px;
  border-radius: 5px;
  z-index: 999;
  transition: all 0.3s ease;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu a {
  display: block;
  color: white;
  padding: 15px;
  text-decoration: none;
}

#menu a:hover {
  background-color: #575757;
}

/* スマホ用スタイル */
@media (max-width: 600px) {
  #top-image {
    position: fixed;
    top: 0;
    left: 5px;
    width: 30px;
    height: 30px;
    z-index: 1000;
  }
	
  #burger-btn {
    display: block;
  }

  #menu.hidden {
    display: none;
  }

  #menu:not(.hidden) {
    display: block;
  }

  h1 {
    text-align: left;
    font-size: 12pt;
	padding-left: 50px;
  }

  #content {
    display: block;        /* 縦並びにする */
  }

  #content img {
    max-width: 100%;       /* 画面幅に合わせる */
    margin-bottom: 10px;   /* テキストとの間に余白 */
  }
}

/* PC用スタイル */
@media (min-width: 601px) {
  h1 {
    font-size: 12pt;
    text-align: left;
    width: 60%;
  }
	
  #menu {
    display: flex;
    justify-content: center;
    background-color: transparent;
    position: static;
    width: 100%;
  }

  #menu ul {
    display: flex;
    gap: 20px;
  }

  #menu a {
    color: black;
    padding: 10px 20px;
  }

  #menu a:hover {
    background-color: lightgray;
  }
	
  #content {
    display: flex;         /* 横並びにする */
    align-items: flex-start; /* 上部で揃える */
    gap: 20px;             /* イメージとテキスト間の間隔 */
    margin: 20px 0;
  }

  #content img {
    max-width: 300px;      /* 画像の最大幅を制限 */
    height: auto;          /* 縦横比を維持 */
    flex-shrink: 0;        /* 画像が縮まないようにする */
  }

  #text {
    flex: 1;               /* テキストが残りの幅を使う */
  }
}
.add-button {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.add-button:hover {
  background-color: #0056b3;
}