@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

* {
  font-family: 'Noto Sans JP', sans-serif;
}

@media (max-width: 780px) {


  .header-back {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 100vw;
    z-index: 10000; /* 他の要素よりも前面に表示 */
    height: 30px; /* 高さを60pxに設定 */
    background-color: black; /* 背景色を白に設定 */
    box-sizing: border-box;
    overflow: visible;
  }

  .header-wrap {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 100vw;
    z-index: 10000; /* 他の要素よりも前面に表示 */
    height: 30px; /* 高さを60pxに設定 */
    box-sizing: border-box;
    overflow: visible;
  }

  .logo {
    position: relative;
    left: 0%;
    width: Auto;
    height: 30px;
  }

  .logo img {
    position: relative;
    left: 0%;
    width: Auto;
    height: 100%;
  }

  .logout-button {
    background: none;
    border: none;
    color: white;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline; /* 必要に応じて追加 */
    display: block;
    margin: 0 auto;
    text-align: center;
  }
  
  .logout-button:hover {
    text-decoration: none; /* 必要に応じて追加 */
    color: white;
  }

  .header-user-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #333;
    margin-top: 6px;
  }

  .header-nav-sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 16px;
    padding: 6px 0;
    text-align: center;
    user-select: none;
  }

  .header-user-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }

  .header-logout-form {
    margin: 0;
    display: inline-block;
  }

  .header-logout-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 8px 16px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
  }

  .header-logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 55%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    flex-direction: column; /* 縦並びにする */
    z-index: 10001;
  }

  .menu-toggle span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 3px;
  }

  #nav-menu {
    display: none;
    flex-direction: column;
    background: #000;
    position: absolute;
    top: 30px;
    right: 0;
    width: 150px;
    padding: 10px;
    z-index: 10001;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  #nav-menu.nav-open {
    display: flex !important;
  }

  #nav-menu a {
    color: #fff;
    padding: 10px;
    display: block;
    text-align: center;
    font-size: 16px;
    
  }

  #nav-menu a:hover {
    background: #444;
  }

  .content-wrapper {
    height: 0;

  }

  






}


@media (min-width: 781px) {

 
  .header-back {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000; /* 他の要素よりも前面に表示 */
    height: 50px; /* 高さを60pxに設定 */
    background-color: black; /* 背景色を白に設定 */
    
  }

  .header-wrap {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 1000; /* 他の要素よりも前面に表示 */
    height: 50px; /* 高さを60pxに設定 */
  }

  .logo {
    position: relative;
    left: 0%;
    width: Auto;
    height: 50px;
  }

  .logo img {
    position: relative;
    left: 0%;
    width: Auto;
    height: 100%;
  }

  .header-back {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1000;
    height: 50px;
    background-color: black;
  }
  
  .header-wrap {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 1000;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    position: relative;
    left: 0%;
    width: auto;
    height: 50px;
  }
  
  .logo img {
    position: relative;
    left: 0%;
    width: auto;
    height: 100%;
  }

  .logout-button {
    background: none;
    border: none;
    color: white;
    font: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    display: block;
    margin: 0 auto;
    text-align: center;
  }
  
  .logout-button:hover {
    color: white;
  }
  
  .menu-toggle {
    display: none;
  }
  
  #nav-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    background: none;
    position: static;
    width: auto;
    padding: 0;
    gap: 0;
  }
  
  #nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
    text-align: center; /* テキストを中央揃え */
    font-size: 18px;
  }
  
  #nav-menu a:hover {
    background: none;
  }

  .header-user-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .header-nav-sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 18px;
    padding: 0 8px;
    user-select: none;
  }

  .header-user-name {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-logout-form {
    margin: 0;
    display: inline-block;
  }

  .header-logout-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
  }

  .header-logout-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .content-wrapper {
    height: 0;

  }




  
 
}

.privacy-policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.privacy-policy-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-policy-content h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

.privacy-policy-content h2 {
  font-size: 20px;
  margin: 30px 0 15px;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.privacy-policy-content p {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
}

.privacy-policy-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.privacy-policy-content li {
  line-height: 1.8;
  margin-bottom: 8px;
  color: #555;
}

.contact-link {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

/* ===== Board (掲示板) ===== */
/* 掲示板 AdSense（レスポンシブ表示用） */
.board-ad-wrap {
  max-width: 728px;
  margin: 0 auto 1rem;
  min-height: 90px;
  text-align: center;
}

.board-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 16px 40px;
}

.board-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.board-title {
  margin: 0;
  font-size: 26px;
  color: #111;
}

.board-subtitle {
  margin-top: 6px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.board-subtitle--flush {
  margin-top: 0;
  margin-bottom: 12px;
}

.board-breadcrumb {
  color: #666;
  font-size: 13px;
  margin-bottom: 6px;
}

.board-breadcrumb-sep {
  margin: 0 6px;
  color: #bbb;
}

.board-dot {
  margin: 0 6px;
  color: #bbb;
}

.board-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

.board-card-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* カテゴリ一覧: ブロック／パネルグリッド */
.board-list--category-panels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.board-list--category-panels .board-category-block,
.board-list--category-panels .board-category-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.board-list--category-panels .board-category-block:hover,
.board-list--category-panels .board-category-details:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.board-list--category-panels .board-list-item--category {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  margin: 0;
  padding: 16px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.board-list--category-panels .board-list-item--category .board-list-main {
  flex: 1 1 160px;
  min-width: 0;
}

.board-list--category-panels .board-list-item--category .board-list-meta {
  flex: 1 1 100%;
  text-align: left;
  min-width: 0;
  margin-left: 0;
}

.board-list--category-panels .board-category-summary .board-list-meta {
  margin-left: 26px;
}

.board-list--category-panels .board-list-nested {
  margin: 0;
  padding: 0 16px 16px;
  border: none;
  border-top: 1px solid #eee;
  margin-left: 0;
}

.board-list--category-panels .board-list-item--thread {
  background: #f9f9f9;
}

.board-list--category-panels > .board-list-sub:only-child {
  grid-column: 1 / -1;
  padding: 12px;
  text-align: center;
  color: #666;
}

.board-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #f2f2f2;
  background: #fafafa;
}

.board-list-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.board-list-sub {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.board-list-meta {
  text-align: right;
  min-width: 110px;
  color: #777;
  font-size: 12px;
}

.board-meta-row {
  margin-bottom: 4px;
}

.board-link {
  color: #0b66ff;
  text-decoration: none;
}

.board-link:hover {
  text-decoration: underline;
}

.board-btn,
.board-btn-secondary {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.board-btn {
  background: #0b66ff;
  color: #fff;
}

.board-btn:hover {
  opacity: 0.92;
}

.board-btn-secondary {
  background: #fff;
  border-color: #ddd;
  color: #222;
}

.board-btn-secondary:hover {
  background: #f6f6f6;
}

.board-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.board-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.board-search-fields {
  flex: 1 1 220px;
  min-width: 0;
}

.board-search-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.board-input--search {
  max-width: none;
  width: 100%;
}

.board-category-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.board-category-details {
  margin: 0;
}

.board-category-details > summary {
  list-style: none;
  cursor: pointer;
}

.board-category-details > summary::-webkit-details-marker {
  display: none;
}

.board-category-summary {
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.board-list-item--category .board-list-main {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.board-list-item--category .board-list-title {
  text-align: left;
}

.board-expand-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  margin-right: 4px;
  position: relative;
  align-self: flex-start;
}

.board-expand-icon::after {
  content: "▼";
  position: absolute;
  left: 3px;
  top: 4px;
  font-size: 9px;
  line-height: 1;
  color: #555;
  transition: transform 0.15s ease;
}

.board-category-details:not([open]) .board-expand-icon::after {
  transform: rotate(-90deg);
}

.board-list-nested {
  margin: 0 0 10px 0;
  margin-left: 10px;
  padding-left: 16px;
  border-left: 3px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.board-list-item--thread {
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  border-color: #eaeaea;
}

.board-list-title--thread {
  font-weight: 600;
  font-size: 14px;
}

.board-search-clear {
  text-decoration: none;
}

/* 掲示板トップ: スレッドタイル（全カテゴリ最新20件 / 検索結果） */
.board-thread-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.board-thread-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
  text-decoration: none;
  color: inherit;
  min-height: 148px;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.board-thread-tile:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.board-thread-tile__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0b66ff;
  line-height: 1.3;
}

.board-thread-tile__title {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-thread-tile__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.board-thread-tile__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  font-size: 11px;
  color: #888;
  margin-top: auto;
  padding-top: 4px;
}

.board-thread-tile__author {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-thread-tile__time {
  flex-shrink: 0;
}

.board-input,
.board-textarea {
  width: 100%;
  max-width: 520px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.board-textarea {
  max-width: 780px;
  resize: vertical;
}

.board-field {
  margin-bottom: 12px;
}

.board-label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}

.board-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.board-alert {
  border: 1px solid #ffd0d0;
  background: #fff5f5;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.board-alert-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.board-tags {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.board-thread-body {
  line-height: 1.9;
  color: #222;
}

.board-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.board-post {
  border: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
}

.board-post-meta {
  color: #777;
  font-size: 12px;
  margin-bottom: 6px;
}

.board-post-author {
  font-weight: 700;
  color: #222;
}

.board-post-body {
  line-height: 1.9;
  color: #222;
}

.board-pagination {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

/* Kaminari（掲示板ほか共通） */
.board-paginator {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
}

.board-paginator__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.board-paginator__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
}

.board-paginator__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.board-paginator__btn:hover {
  background: #f4f8ff;
  border-color: #c8d9ff;
  color: #0b66ff;
  text-decoration: none;
}

.board-paginator__btn--edge {
  font-size: 12px;
  padding: 0 10px;
  color: #555;
}

.board-paginator__btn--disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #eee;
  color: #999;
  background: #fafafa;
}

.board-paginator__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: #fff;
  color: #0b66ff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.board-paginator__num:hover {
  background: #f4f8ff;
  border-color: #b8cffc;
  text-decoration: none;
  transform: translateY(-1px);
}

.board-paginator__num--current {
  background: linear-gradient(145deg, #0b66ff 0%, #0954d4 100%);
  border-color: #0748b8;
  color: #fff;
  box-shadow: 0 2px 8px rgba(11, 102, 255, 0.35);
  cursor: default;
  transform: none;
}

.board-paginator__num--current:hover {
  background: linear-gradient(145deg, #0b66ff 0%, #0954d4 100%);
  color: #fff;
  transform: none;
}

.board-paginator__gap {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 28px;
  height: 40px;
  color: #aaa;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  user-select: none;
}

@media (max-width: 520px) {
  .board-paginator {
    flex-direction: column;
  }

  .board-paginator__controls {
    width: 100%;
    justify-content: center;
  }

  .board-paginator__btn--edge {
    display: none;
  }
}

.board-muted {
  color: #666;
  line-height: 1.8;
}
