/* =========================================
   FUKUOKA 30th CSS - Full Version
   ========================================= */

.fukuoka30th {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #333333;
  background-color: #f7f3ec;
  line-height: 1.8;
  overflow-x: hidden;
}

.fukuoka30th img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* フォントファミリー設定（明朝体） */
.fukuoka30th .fv-title,
.fukuoka30th .fv-date,
.fukuoka30th .title-double,
.fukuoka30th .sub-ja-title,
.fukuoka30th .greet-text p,
.fukuoka30th .council-box p,
.fukuoka30th .agenda-num-text .num,
.fukuoka30th .agenda-num-text .sub,
.fukuoka30th .agenda-num-text-body .sub,
.fukuoka30th .agenda-num-text-body .num,
.fukuoka30th .agenda-title,
.fukuoka30th .agenda-name,
.fukuoka30th .agenda-body,
.fukuoka30th .agenda-name-sub,
.fukuoka30th .memorial-text,
.fukuoka30th .column-name,
.fukuoka30th .to-everyone-content,
.fukuoka30th .committee-section {
  font-family: "Noto Serif JP", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif !important;
}

/* 筆記体フォント設定 */
.fukuoka30th .title-double {
  font-family: 'Great Vibes', "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif !important;
}

/* ゴシック体設定 */
.fukuoka30th .agenda-meta {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif !important;
}

/* インナー幅設定 */
.greet-inner,
.council-inner,
.agenda-inner,
.memorial-inner,
.column-inner,
.memories-inner,
.to-everyone-inner {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

/* メインビジュアル */
.fv {
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 600px;
  width: 100%;
}

.fv-bg {
  width: 100%;
  height: 100%;
}

.fv-bg img {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(100%);
  object-fit: cover;
  object-position: center;
}

.fv-diamond {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(340px, 41vw, 800px);
  transform: translate(-50%, -50%);
  z-index: 20;
}

.fv-diamond img {
  width: 100%;
  height: auto;
}

.fv-diamond-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  text-align: center;
  width: 100%;
}

.fv-title {
  font-weight: 800;
  line-height: 1.35;
  color: #0d3a2b;
  font-size: clamp(24px, 3.0vw, 56px);
  margin-bottom: clamp(16px, 2.2vw, 48px);
}

.fv-date {
  line-height: 1.45;
  color: #0d3a2b;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: clamp(20px, 3.5vw, 70px);
  font-size: clamp(14px, 1.8vw, 22px);
}

.parallax-bg {
  background-image: url("../img/bg.jpeg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.title-double {
  position: relative;
  display: inline-block;

  background: linear-gradient(180deg, #A78F46 0%, #F2E6C2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  line-height: 0.9 !important;
  font-size: 120px !important;
  
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 15px;
  z-index: 1;

  padding-top: 1.0em;
  padding-bottom: 0.8em;

  margin-top: -0.8em;
  margin-bottom: -0.8em;

  background-origin: border-box;
  box-sizing: border-box;
}

.title-double::before {
  display: none;
}
/* ▲▲▲ タイトルスタイル終了 ▲▲▲ */


.sub-ja-title {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding-bottom: 12px;
  position: relative;
  z-index: 2;
  color: #fff;
  margin-top: -16px;
}

.sub-ja-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: #BF953F;
}

.greet .sub-ja-title::after,
.council .sub-ja-title::after {
  background-color: #5F602F;
}

.agenda-header-area .sub-ja-title {
  color: #333;
}

.memorial-header .sub-ja-title {
  color: #333;
}

.memorial-header .sub-ja-title::after {
  background-color: #e3d2af;
}

.memories-header .sub-ja-title {
  color: #333333;
}

.greet {
  position: relative;
  padding: 96px 0;
  color: #ffffff;
}

.greet-body {
  display: flex;
  align-items: unset;
  justify-content: center;
  gap: clamp(40px, 10vw, 180px);
}

.greet-text {
  text-align: center;
  font-size: 24px;
  max-width: 510px;
}

.greet-sign {
  font-size: 28px;
  margin-top: 130px;
}

.greet-photo img {
  width: min(500px, 100%);
  height: 600px;
  object-fit: cover;
}

.council {
  position: relative;
  padding: 96px 0;
  color: #ffffff;
}

.council-box {
  background-color: #fff;
  border: 3px solid #BF953F;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 85px) clamp(20px, 4vw, 70px);
  font-size: clamp(14px, 1.6vw, 16px);
  color: #333;
  line-height: 1.9;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.agenda {
  padding: 0;
  background-color: transparent;
}

.agenda-header-area {
  background-color: #f7f3ec;
  text-align: center;
  padding: 96px 0 0;
}

.agenda-nav {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.agenda-nav-item {
  width: 20%;
  position: relative;
  overflow: hidden;
  display: block;
}

.agenda-nav-item img {
  width: 100%;
  height: auto;
  display: block;
}

.agenda-nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.agenda-nav-item:hover::after {
  background-color: rgba(0, 0, 0, 0);
}

.agenda-num-text {
  position: absolute;
  top: 15px;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  line-height: 1;
}

.agenda-num-text .num {
  font-size: 40px;
  color: #fff;
  font-weight: 400;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: -0.05em;
}

.agenda-num-text .sub {
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.15em;
  opacity: 0.9;
  font-weight: 500;
  margin: 0;
  writing-mode: vertical-rl;
  margin-top: 4px;
}

.agenda-parallax-separator {
  width: 100%;
  height: 50px;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.agenda-body-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 96px;
  position: relative;
  z-index: 2;
}

.agenda-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 50px;
  position: relative;
  width: 100%;
}

.agenda-item:last-child {
  margin-bottom: 0;
}

.agenda-txt-area {
  flex: 1;
  position: relative;
  z-index: 1;
}

.agenda-txt-card {
  background: transparent;
  padding: 10px 30px 30px;
  position: relative;
  z-index: 1;
  min-height: 563px;
}

.agenda-txt-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: #F7F3EC;
  z-index: -1;
  width: 200vw;
  pointer-events: none;
}

.agenda-item--odd .agenda-txt-card::before {
  left: 0;
}

.agenda-item--even .agenda-txt-card::before {
  right: 0;
}

.agenda-photo-area {
position: absolute;
  top: 40px;
  z-index: 2;
}

.agenda-photo-area img {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.agenda-num-text-body {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.agenda-num-text-body .sub {
  font-size: 20px;
  font-weight: 600;
  color: #DAD5C7;
  position: relative;
  top: 8px;
}

.agenda-num-text-body .num {
  font-size: 46px;
  font-weight: 600;
  color: #DAD5C7;
  position: relative;
  top: 8px;
}

.agenda-item--odd {
  flex-direction: row;
}

.agenda-item--odd .agenda-photo-area {
  left: 0;
  transform: translateX(-24%);
}

.agenda-item--odd .agenda-txt-card {
  padding-left: 400px;
}

.agenda-item--even {
  flex-direction: row-reverse;
}

.agenda-item--even .agenda-photo-area {
  right: 0;
  transform: translateX(24%);
}

.agenda-item--even .agenda-txt-card {
  padding-right: 400px;
}

.agenda-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 15px;
}

.agenda-meta {
  font-size: 16px;
  color: #997732;
}

.agenda-name {
  font-size: 20px;
  font-weight: 500;
  color: #333;
}

.agenda-line {
  width: 100%;
  height: 2px;
  margin: 15px 0;
  border: none;
  background: linear-gradient(to right, #C7A86A 0%, #C7A86A 12%, #E7E2D8 12%, #E7E2D8 100%);
}

.agenda-body {
  font-size: 16px;
}

.memorial {
  padding: 0;
  color: #333;
  position: relative;
}

.memorial-section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.memorial-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 82vw;
  height: 100%;
  background: #F7F3EC;
  z-index: 1;
}

.memorial-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.memorial-header {
  text-align: center;
  margin-bottom: 40px;
}

.memorial-box {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 0 80px 95px;
}

.memorial-text {
  width: calc(100% - 340px);
  line-height: 2.1;
  font-size: 20px;
}

.memorial-name {
  margin-top: 60px;
  font-size: 24px;
}

.memorial-note {
  margin-top: 10px;
  font-size: 12px;
  opacity: .7;
}

.memorial-photo {
  position: absolute;
  right: clamp(-120px, -14vw, -260px);
  top: 10px;
  width: clamp(420px, 22vw, 520px);
  z-index: 2;
}

@media (min-width: 1920px) {
  .memorial-photo {
    right: -260px !important;
    width: 520px !important;
  }
}

.column {
  position: relative;
  background-color: #003300;
  background-image: url("../img/bg.jpeg");
  background-size: cover;
  padding: 96px 0;
  color: #ffffff;
}

.column-body {
  background-color: #fff;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 60px;
  font-size: 16px;
  line-height: 2.2;
  text-align: justify;
  letter-spacing: 0;
  border: 3px solid #BF953F;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.column-body p {
  margin-bottom: 2em;
  text-indent: 1em;
}

.column-body p:last-child {
  margin-bottom: 0;
}

.column-name {
  font-size: 20px;
  text-align: right;
}

.memories {
  position: relative;
  padding: 0;
  color: #333;
  overflow: hidden;
  background: transparent;
}

.memories::before {
  display: none;
}

.memories-upper-layer {
  background-color: #F7F3EC;
  padding-top: 96px;
  position: relative;
  width: 100%;
}

.memories-bottom-layer {
  width: 100%;
  position: relative;
  background: linear-gradient(to bottom, #F7F3EC 50%, transparent 50%);
}

.memories-inner {
  position: relative;
  z-index: 2;
}

.memories-bg-text {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Great Vibes', cursive;
  font-size: clamp(192px, 20vw, 292px);
  color: rgba(0, 0, 0, 0.02);
  pointer-events: none;
  z-index: 1;
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.memories-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.memories-grid img:hover {
  transform: scale(1.03);
}

.memories-group-photo {
  position: relative;
  z-index: 2;
  line-height: 0;
}

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

.to-everyone {
  padding: 0 0 96px;
  color: #ffffff;
  text-align: center;
}

.to-everyone-inner {
  padding-top: 96px;
}

.to-everyone-content {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2.2;
  letter-spacing: 0.1px;
}

@media (max-width: 860px) {
  .to-everyone {
    padding-top: 0 !important;
  }
  .to-everyone-inner {
    padding-top: 96px !important;
  }
  .memories {
    padding-top: 0 !important;
  }
}

.committee-section {
  margin-top: 60px;
  width: 100%;
  text-align: center;
}

.committee-group {
  margin-bottom: 50px;
}

.committee-group:last-child {
  margin-bottom: 0;
}

.committee-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}

.committee-title img {
  width: 14px;
  height: 14px;
  display: block;
}

.committee-name-single {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.committee-members-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.committee-list dd {
  font-weight: 500;
}

.footer-wide-image-wrapper {
  width: 100%;
  line-height: 0;
}

.footer-wide-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 960px) {
  .agenda-photo-area img {
    max-width: 280px;
  }
  .agenda-item--odd .agenda-txt-card {
    padding-left: 240px;
  }
  .agenda-item--even .agenda-txt-card {
    padding-right: 240px;
  }
  .agenda-txt-card {
    padding-top: 10px;
    padding-bottom: 40px;
    padding-right: 20px;
  }
  .agenda-item--even .agenda-txt-card {
    padding-left: 20px;
  }
}

@media (max-width: 860px) {
  .greet,
  .council,
  .memorial-section,
  .column,
  .to-everyone {
    padding-top: 96px;
    padding-bottom: 96px;
  }
  .greet-body {
    gap: 40px;
  }
  .greet-photo img {
    width: 350px;
    height: auto;
  }
  .sub-ja-title {
    margin-top: -32px;
  }
}

/* フッター画像 SP版高さ調整（768px以下） */
@media (max-width: 768px) {
/* 1. 画像を入れる枠の高さを160pxに固定する */
  .footer-wide-image-wrapper {
    height: 160px !important;
  }

  /* 2. 画像自体の表示ルールを変更する */
  .footer-wide-image-wrapper img {
    width: 100%;           /* 幅は枠に合わせる */
    height: 100%;          /* 高さも枠(160px)に強制的に合わせる */
    object-fit: cover;     /* ★重要：比率を保ったまま枠を埋め、はみ出た部分はカットする */
    object-position: center; /* 画像の中心を表示する（左右を均等にカット） */
  }
}

/* SPレイアウト（640px以下） */
@media (max-width: 640px) {
  .greet,
  .council,
  .memorial-section,
  .column,
  .to-everyone {
    padding-top: 60px;
    padding-bottom: 96px;
  }
  
.title-double {
    white-space: normal !important;
    font-size: 80px !important; 
    line-height: 0.9 !important;
    
    padding-top: 0.2em;
    padding-bottom: 0.2em;
    margin-top: -0.2em;
    margin-bottom: 10px !important;

    width: 100%;
    box-sizing: border-box;
  }
  .title-double::before {
    display: none;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  .greet-body {
    flex-direction: column-reverse;
    gap: 30px;
  }
  .greet-photo {
    text-align: center;
    margin: 0 auto;
  }
  .greet-photo img {
    width: 100%;
    max-width: 300px;
  }
  .greet-text {
    font-size: 20px;
    line-height: 2;
  }
  .greet-sign {
    font-size: 24px;
    margin-top: 35px;
  }
  .greet-text .greet-sign {
    text-align: center;
  }
  .greet-text p {
    margin-bottom: 20px;
  }
  .council-box {
    padding: 30px 20px;
    font-size: 14px;
    line-height: 1.8;
  }
  .agenda-nav {
    padding: 0 20px 96px !important;
    gap: 10px !important;
  }
  .agenda-nav-item {
    width: calc(50% - 5px) !important;
  }
  .agenda-num-text {
    top: 8px;
    left: 8px;
    gap: 4px;
  }
  .agenda-num-text .num {
    font-size: 30px;
  }
  .agenda-num-text .sub {
    font-size: 10px;
    margin-top: 2px;
  }
  .agenda-item {
    padding: 40px 20px;
  }
  
  .agenda-title {
    font-size: 20px !important;
    margin-bottom: 10px;
  }
  .agenda-name {
    font-size: 18px !important;
  }
  .committee-name-single {
    font-size: 16px !important;
  }
  .committee-members-list {
    font-size: 16px !important;
  }
  .memorial-name {
    font-size: 20px !important;
  }
  .column-name {
    font-size: 18px;
  }
  .memorial-bg {
    width: 100%;
    left: 0;
    transform: none;
  }
  .memorial-box {
    flex-direction: column;
    padding: 50px 30px;
    align-items: center;
    text-align: center;
  }
  .memorial-text {
    width: 100%;
    font-size: 16px;
    margin-bottom: 40px;
    text-align: justify;
  }
  .memorial-photo {
    position: relative;
    right: auto;
    top: 0;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
  .memorial-box {
    padding: 0 20px;
  }
  .memorial-text {
    font-size: 15px;
  }
  .memorial-photo {
    max-width: 350px;
  }
  .column-body {
    padding: 40px 20px;
    font-size: 16px;
  }
  .memories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .memories-grid img {
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .committee-members-list {
    flex-direction: row;
    justify-content: center;
    gap: 10px 20px;
  }

  .committee-title {
    font-size: 18px;
  }

  .agenda-item {
    flex-direction: column-reverse !important;
    align-items: center;
    margin-bottom: 40px;
    gap: 15px;
    background-color: #F7F3EC;
    padding: 0 20px 30px;
    box-shadow: 0 0 6px rgba(0,0,0,0.05);
  }
  .agenda-nav-item::after {
    background-color: transparent !important;
  }
  .agenda-nav-item:hover::after {
    background-color: transparent !important;
  }
  .agenda-item--odd .agenda-photo-area,
  .agenda-item--even .agenda-photo-area {
    position: relative;
    top: 0;
    left: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto !important;
    text-align: center;
  }
  .agenda-body {
    font-size: 16px;
    text-align: justify;
  }
  .agenda-txt-card {
    padding: 10px 0 0 0 !important;
    background: transparent;
  }
  .agenda-txt-card::before {
    display: none;
  }
  .agenda-photo-area img {
    display: inline-block;
    max-width: 450px;
    width: 100%;
  }
  .sub-ja-title {
    margin-top: -46px;
  }
  .memories-bg-text {
    font-size: min(28vw, 120px);
    top: -22px;
  }

}