/* style.cssの一部 */
html, body {
  height: 100%; /* htmlとbodyの高さを100%に設定 */
  margin: 0;
  font-family: sans-serif;
}

body {
  display: flex;
  flex-direction: column; /* コンテンツを縦方向に並べる */
}

@font-face {
  font-family: "LINE Seed JP";
  src: local("LINE Seed JP"),
      local("LINESeedJP_OTF_Rg"),
      local("LINESeedJP_OTF_Eb"),
      local("LINESeedJP_OTF_Bd"),
      local("LINESeedJP_OTF_Th")
}

.site-header {
  position: fixed;              /* スクロールしても固定 */
  top: 0;
  left: 0;
  width: 100%;
  background-color: #252525; /* 半透明でもOK */
  color: white;
  z-index: 1000;                /* 前面に出す */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo{
  color: #fff;
}

.content{
  margin-top: 0px;
}

h1{
  font-size: 2.5em;
  border-bottom:#252525 dotted 5px;
  padding: 0.3em;
  width: fit-content;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 800;
  margin: 0.8em auto;
}

p{
  padding: 0.8em;
  font-size: 1.2em;
  font-family: "LINE Seed JP";
  line-height: 1.5em;
}

h2 {
  color: #00b894;
  text-align: center;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: 1.5em;
  width: fit-content;
  padding: 0.25em;
  margin: 0.8em auto;
  border-top: solid 2px #00b894;
  border-bottom: solid 2px #00b894;
  background: -webkit-repeating-linear-gradient(-45deg, #f0fffc, #f0fffc 3px,#e9ffeb 3px, #e9ffeb 7px);
  background: repeating-linear-gradient(-45deg, #f0fffc, #f0fffc 3px,#e9ffeb 3px, #e9ffeb 7px);
}

.zen-kaku-gothic-antique-regular {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #252525;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-menu a{
  color: #fff;
}

.nav-menu:hover{
  color: #00b894;
}

.nav-menu.active{
  color: aliceblue;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000; /* デフォルトの色を黒に */
}

/* スマホサイズでメニューを非表示にし、ハンバーガー表示 */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    color: #fff; /* スマホ表示では白に */
    z-index: 1002; /* メニューより手前に */
    position: relative; /* z-indexを有効にするため */
  }

  .nav-menu {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(37, 37, 37, 0.95);
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
    border: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .nav-menu.active {
    visibility: visible;
    opacity: 1;
    display: flex;
  }

  .nav-menu a {
    color: #fff;
    font-size: 2rem;
    text-decoration: underline;
  }
}

  

  

.cover {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
  background-color: #252525;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: object-position 0.3s, width 0.3s;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
  .cover {
    height: auto;
  }
  .cover img {
    height: auto;
  }
}


@keyframes blinkCursor {
  50% {
    border-color: transparent;
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: none;
}

.profile {
  text-align: center;
  padding: 3rem 1rem;
}

.profile-img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
}

.profile-block{
  width: 98%;
  border-radius: 25px;
  background-color: aliceblue;
  border: dotted #00b894 4px;
  margin: 0.8em auto;
}

.zen-antique-regular {
  font-family: "Zen Antique", serif;
  font-weight: 400;
  font-style: normal;
}

.center-box{
  text-align: center;
}

.pin-list {
  list-style: none;
  padding: 0.8em;
  margin: 0;
}

.pin-list li {
  margin: 0.8em;
  font-weight: 500;
}

.pin-list i {
  font-family: "Font Awesome 5 Free";
  color: #e74c3c; /* 赤いピン色 */
  content: '\f164';
  margin-right: 0.5em;
}

.pin-list li:before{
  font-family: "Font Awesome 5 Free";
  color: #e74c3c; /* 赤いピン色 */
  content: '\f164';
  font-weight: 400;
  margin-right: 0.5em;
}

#service {
  margin-bottom: 80px; /* フッターとの間に余白を設ける */
}



/* カーソルを重ねる要素 */
.tooltip {
position: relative; /* ツールチップの位置の基準に */
cursor: pointer; /* カーソルを当てたときにポインターに */
}

/* ツールチップのテキスト */
.tooltip-text {
opacity: 0; /* はじめは隠しておく */
visibility: hidden; /* はじめは隠しておく */
position: absolute; /* 絶対配置 */
left: 50%; /* 親に対して中央配置 */
transform: translateX(-50%); /* 親に対して中央配置 */
bottom: -30px; /* 親要素下からの位置 */
display: inline-block;
padding: 5px; /* 余白 */
white-space: nowrap; /* テキストを折り返さない */
font-size: 0.8rem; /* フォントサイズ */
line-height: 1.3; /* 行間 */
background: #333; /* 背景色 */
color: #fff; /* 文字色 */
border-radius: 3px; /* 角丸 */
transition: 0.3s ease-in; /* アニメーション */
}

/* ホバー時にツールチップの非表示を解除 */
.tooltip:hover .tooltip-text {
opacity: 1;
visibility: visible;
}

.tooltip-text:before {
content: '';
position: absolute;
top: -13px;
left: 50%;
margin-left: -7px;
border: 7px solid transparent;
border-bottom: 7px solid #333;
}

.rss-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.rss-entry {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rss-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.rss-entry h3 {
  margin: 0;
  font-size: 18px;
}

.rss-entry .pubdate {
  font-size: 12px;
  color: #777;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 25px;
}
.contact-form h2 {
  margin-bottom: 15px;
}
.form-group {
  margin-bottom: 15px;
}
label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 3px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.submit-button, input[type="submit"] {
  background-color: #007bff; /* Primary blue for submit button */
  color: white;
  border: none;
  padding: 12px 25px; /* More padding */
  border-radius: 25px; /* より丸く */
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto; /* Auto width for buttons */
  display: inline-block; /* Allow side-by-side with other buttons */
  margin: 0 10px; /* Space between buttons */
}

.submit-button:hover, input[type="submit"]:hover {
  background-color: #0056b3; /* Darker blue on hover */
  transform: translateY(-1px); /* Slight lift on hover */
}

input[type="button"] {
  background-color: #6c757d; /* Gray for correction button */
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto;
  display: inline-block;
  margin: 0 10px;
}

input[type="button"]:hover {
  background-color: #5a6268; /* Darker gray on hover */
  transform: translateY(-1px);
}

.red-button {
  background-color: #dc3545; /* Red for correction button */
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto;
  display: inline-block;
  margin: 0 10px;
}

.red-button:hover {
  background-color: #c82333; /* Darker red on hover */
  transform: translateY(-1px);
}

.error-messages {
  list-style: none;
  padding: 15px;
  margin: 0 0 20px 0;
  background-color: #ffebeb; /* Light red background */
  border: 1px solid #e74c3c; /* Red border */
  border-radius: 6px;
  color: #e74c3c;
  font-size: 0.95em;
}

.error-messages li {
  margin-bottom: 5px;
}

.error-messages li:last-child {
  margin-bottom: 0;
}

/* Confirmation page specific styles */
.container {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 700px; /* Slightly wider container */
  margin: 60px auto; /* Center with top margin */
}

.container h1 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  border-bottom: none;
}

.confirm-item {
  margin-bottom: 20px;
}

.confirm-item label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 1.1em;
}

.confirm-item p {
  background-color: #f0f0f0; /* Lighter background for confirmed text */
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  line-height: 1.6;
  word-wrap: break-word; /* Ensure long words break */
}

.form-actions {
  display: flex;
  justify-content: center; /* Center buttons */
  gap: 20px; /* Space between buttons */
  margin-top: 40px;
}

/* Instagram Feed Styles */
.instagram-feed-container {
    max-width: 960px; /* Adjust as needed */
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 columns, responsive */
    gap: 20px;
    justify-content: center;
}

.instagram-post {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.instagram-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.instagram-post img {
    width: 100%;
    height: 280px; /* Fixed height for images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}

.modal.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    border-radius: 5px;
}

.modal-content p {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 15px;
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
}

.modal-content a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 25px; /* 丸っこいボタン */
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.modal-content a:hover {
    background-color: #0056b3;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Error message for Instagram feed */
.instagram-feed-container .error-message {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    border: 1px solid #e74c3c;
    background-color: #ffebeb;
    border-radius: 8px;
    margin-top: 20px;
}

/* Note Feed Styles */
.note-feed-container {
    max-width: 960px; /* Adjust as needed */
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.note-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 columns, responsive */
    gap: 20px;
    justify-content: center;
}

.note-post {
    display: flex; /* Changed to flex for thumbnail and content layout */
    flex-direction: column; /* Stack thumbnail and content vertically */
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Inherit text color */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; /* Ensure rounded corners apply to children */
}

.note-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.note-thumbnail {
    width: 100%;
    height: 180px; /* Fixed height for thumbnails */
    overflow: hidden;
}

.note-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distortion */
    display: block;
}

.note-content {
    padding: 15px;
}

.note-post h3 {
    font-size: 1.4em; /* タイトルを大きく */
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3; /* 行間を調整 */
}

.note-post .note-date {
    font-size: 0.85em; /* 日付を小さく */
    color: #777;
    margin-bottom: 10px;
    border-bottom: dotted 2px #777;
}

.note-post p {
    font-size: 0.5em; /* 本文を調整 */
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.note-more-button-container {
    text-align: center;
    margin-top: 30px;
}

.note-more-button {
    background-color: #252525; /* 背景色を#252525に */
    color: white; /* 文字色を白に */
    padding: 12px 25px; /* パディングを追加 */
    border-radius: 25px; /* 角丸に */
    text-decoration: none; /* 下線をなくす */
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.note-more-button:hover {
    background-color: #1a1a1a; /* ホバー時の色を少し濃く */
    transform: translateY(-1px); /* 少し浮き上がる */
}

.instagram-link-container {
    text-align: center; /* 中央寄せ */
    margin: 40px auto; /* 上下の余白と中央寄せ */
}

.instagram-button {
    display: inline-flex; /* アイコンとテキストを横並びにする */
    align-items: center; /* 垂直方向の中央寄せ */
    background-color: #252525; /* 指定された色 */
    color: white;
    padding: 10px 20px;
    border-radius: 25px; /* 角丸 */
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.instagram-button:hover {
    background-color: #1a1a1a; /* ホバー時の色を少し濃く */
    transform: translateY(-2px); /* 少し浮き上がる */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.instagram-icon {
    width: 24px; /* アイコンのサイズ */
    height: 24px;
    margin-right: 10px; /* アイコンとテキストの間の余白 */
}

.note-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #007bff; /* リンクの青色 */
    text-decoration: underline dotted; /* 点線の下線 */
    font-size: 0.9em;
}

.note-read-more:hover {
    color: #0056b3;
}

.site-footer {
  background-color: #252525;
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: auto; /* コンテンツの下にフッターを配置 */
  width: 100%; /* 幅を100%に設定 */
}

.site-footer p {
  margin: 0;
  font-size: 0.9em;
}

/* SNS Icons Section */
.sns-icons-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.sns-icons {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px; /* Adjust gap between buttons */
  flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
}

.sns-box {
  background-color: #f0f8ff;
  border-radius: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sns-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.sns-box a, .sns-box img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
}

/* Smartphone Styles */
@media (max-width: 768px) {
  .sns-icons {
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Adjust gap for vertical layout */
  }

  .sns-box {
    width: 80vw; /* Use viewport width for responsiveness */
    max-width: 400px; /* Max width for the buttons */
    height: auto; /* Auto height */
    padding: 10px 0; /* Adjust padding */
  }

  .sns-box a {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content within the link */
    width: 100%;
    height: 80px; /* Give a fixed height for consistency */
    text-decoration: none;
    color: inherit;
  }

  .sns-box img {
    width: 60px; /* Adjust image size for mobile */
    height: 60px;
  }
}