@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 > a > 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 > a > 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 > a > 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;

  }




  
 
}

/* 公開 PORT（/port）・管理 PORT（/admins/port）: 固定ヘッダー直下にコンテンツが潜まないようにする */
.content-wrapper.port-fixed-header-offset {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  padding-top: 44px;
}
@media (min-width: 781px) {
  .content-wrapper.port-fixed-header-offset {
    padding-top: 62px;
  }
}

/* お問い合わせ: .content-wrapper 既定の height:0 によりフッターがヘッダ直下へ回り込むのを防ぐ */
.content-wrapper.contact-layout {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  padding-top: 44px;
}
@media (min-width: 781px) {
  .content-wrapper.contact-layout {
    padding-top: 62px;
  }
}

/* お問い合わせ: 親の min-height / flex 伸長でドキュメント高が不必要に伸びないようにする */
.content-wrapper.contact-layout [data-controller="notification"] {
  display: block;
  min-height: 0 !important;
  height: auto !important;
}

.content-wrapper.contact-layout main.contact-embed-page {
  display: block;
  min-height: 0 !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.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;
}

/* PORT 記事一覧・記事詳細・プレビュー共通: カテゴリタブ */
.port-category-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%);
  border: 1px solid #d7e6f4;
  overflow: hidden;
}

/* ヒーロー画像とカテゴリタブを1セクションにまとめ、間隔を固定する */
.port-hero-nav-cluster {
  display: grid;
  gap: 10px;
}

.port-category-btn {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #cadcf0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 7px 6px;
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 700;
  color: #274a6b;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  word-break: keep-all;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.port-category-btn:hover {
  border-color: #7aa6d2;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(17, 64, 106, 0.1);
}

.port-category-btn.is-active {
  background: linear-gradient(135deg, #0e477b 0%, #1f6ea8 100%);
  border-color: #0e477b;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(14, 71, 123, 0.2);
  z-index: 1;
}

.port-category-btn.is-active::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.port-category-btn.cat-natural-phenomena { border-color: #95c3de; color: #1d6078; }
.port-category-btn.cat-vessels { border-color: #8b9dc4; color: #1e3a5f; }
.port-category-btn.cat-materials { border-color: #a8b0bc; color: #4a5568; }
.port-category-btn.cat-marine-facilities { border-color: #8fb4db; color: #1f4c78; }
.port-category-btn.cat-survey { border-color: #e5b57b; color: #875621; }
.port-category-btn.cat-environment { border-color: #90c89e; color: #2f6e3f; }
.port-category-btn.cat-column { border-color: #b5a6da; color: #58448b; }

/* ヘッダー: PORT 公開ページで mog-log 隣にワードマーク */
.header-brand-cluster {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-width: 0;
}

.header-brand-cluster #header-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  flex-shrink: 0;
  text-decoration: none;
}

/* 魚アイコン＋MOGLOG ワードマークは常に一塊で折り返さない */
.header-moglog-bundle {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  height: 100%;
  flex-shrink: 0;
}

.logo .header-moglog-bundle .header-moglog-fish-icon__img {
  display: block;
  width: auto;
  height: 26px;
  flex-shrink: 0;
  object-fit: contain;
}

.logo .header-moglog-bundle .header-moglog-wordmark__img {
  display: block;
  width: auto;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.header-port-wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  line-height: 0;
}

.header-port-wordmark__img {
  display: block;
  width: auto;
  height: 26px;
}

@media (min-width: 781px) {
  .logo .header-moglog-bundle .header-moglog-fish-icon__img {
    height: 40px;
  }

  .logo .header-moglog-bundle .header-moglog-wordmark__img {
    height: 42px;
  }

  .header-port-wordmark__img {
    height: 42px;
  }
}

/* LP フッター（トップ LP・/port 公開ページで共有） */
.lp-footer {
  background: #010711;
  text-align: center;
  padding: 48px 24px 40px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.lp-footer .social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
}

.lp-footer .social-links a {
  line-height: 0;
}

.lp-footer .social-links img {
  width: 26px;
  height: 26px;
  opacity: 0.85;
  display: block;
}

.lp-footer p {
  margin: 0;
}

@media (max-width: 780px) {
  .lp-footer {
    padding: 48px 16px 40px;
  }

  .lp-footer .social-links,
  .lp-footer p {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .lp-footer .social-links {
    margin-bottom: 16px;
  }
}

/* PORT ヒーロー（完成ビジュアルの単一画像） */
.port-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 10px 0 0;
  aspect-ratio: 21 / 8;
  border: 1px solid #dbe6f2;
  box-shadow: 0 14px 34px rgba(9, 34, 61, 0.16);
}

.port-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

/* PORT 記事一覧・記事詳細 共通ページ幅 */
.port-top,
.port-container {
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 72px;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

@media (max-width: 1020px) {
  .port-hero {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 680px) {
  .port-category-nav {
    gap: 4px;
    padding: 8px 8px;
    margin-bottom: 14px;
  }

  .port-category-btn {
    padding: 6px 4px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .port-top,
  .port-container {
    padding: 0 14px 56px;
  }

  .port-hero {
    margin-top: 8px;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    background: #0b233b;
  }

  .port-hero-nav-cluster {
    gap: 8px;
  }

  .port-hero-bg {
    object-fit: contain;
    object-position: center center;
  }

}
