/* ========================================
   history.css — 部史ページ専用スタイル
   （style.css に追加で読み込む）
   ======================================== */

/* ---- 辯論部宣明ブロック ---- */
.senmei {
  position: relative;
  margin: 1.5em 0 2.5em;
  padding: 2.8em 3.6em 2.6em;
  background: #faf7f2;
  text-align: center;
  border-radius: 8px;
}

/* 開き二重鉤括弧 */
.senmei::before {
  content: '\300E';
  position: absolute;
  top: 0.05em;
  left: 0.1em;
  font-size: 3em;
  color: #8b0000;
  opacity: 0.35;
  line-height: 1;
}

/* 閉じ二重鉤括弧 */
.senmei::after {
  content: '\300F';
  position: absolute;
  bottom: 0.05em;
  right: 0.1em;
  font-size: 3em;
  color: #8b0000;
  opacity: 0.35;
  line-height: 1;
}

.senmei p {
  margin: 0 auto;
  font-size: 1.05em;
  line-height: 2.2em;
  font-style: italic;
  color: #2c2c2c;
  letter-spacing: 0.06em;
  display: inline-block;
  text-align: left;
}


/* ========================================
   レスポンシブ対応
   style.css の固定幅を上書き
   ======================================== */

/* ---- タブレット (768px〜1024px) ---- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  /* 固定幅コンテナを流動化 */
  header {
    width: 100%;
    box-sizing: border-box;
    padding: 0 24px;
  }

  .content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 24px;
  }

  .main-center {
    width: 100%;
    box-sizing: border-box;
  }

  /* プロフィールレイアウト：幅を割合で調整 */
  #about .profile-txt {
    width: 55%;
  }

  #about .profile-image {
    width: 42% !important;
    height: auto;
  }
}

/* ---- スマートフォン (〜767px) ---- */
@media screen and (max-width: 767px) {

  /* ── コンテナの固定幅を解除 ── */
  header {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px;
  }

  .main-center {
    width: 100%;
    box-sizing: border-box;
  }

  /* ── ヘッダー内部 ── */
  .logo {
    float: none;
    margin-top: 8px;
  }

  .logo img {
    height: 36px;
  }

  nav {
    width: 100%;
  }

  .global-nav {
    float: none;
    margin-top: 8px;
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-start;
  }

  .global-nav li {
    float: none;
    margin: 0;
    font-size: 14px;
  }

  .global-nav li a {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.85em;
  }

  /* ── 見出し ── */
  h1 {
    font-size: 1.6em;
    margin-top: 0.8em;
  }

  h2.icon {
    font-size: 1.15em;
  }

  /* ── プロフィール：フロートを解除して縦並びに ── */
  #about .profile-txt {
    width: 100%;
    float: none;
  }

  #about .profile-image {
    float: none;
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto 4px;
  }

  p.profile-image {
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 1.2em;
  }

  /* clearfix 無効化（フロートがないので不要） */
  .clearfix:after {
    display: none;
  }

  /* ── 本文段落 ── */
  .profile-txt p {
    font-size: 0.95em;
    line-height: 1.85em;
    text-indent: 1em;
  }

  /* ── 宣明ブロック ── */
  .senmei {
    margin: 1.5em 0 2em;
    padding: 2em 1.4em 1.8em;
  }

  .senmei p {
    font-size: 1.02em;
    line-height: 2em;
  }

  /* ── フッター ── */
  footer {
    text-align: center;
    padding: 16px;
    font-size: 0.8em;
  }
}

/* ---- 写真ブロック（PC：右フロート / SP：縦並び） ---- */
.history-images {
  float: right;
  width: 360px;
  margin-left: 20px;
}

.history-images .profile-image {
  width: 100% !important;
  height: auto;
  display: block;
  margin-bottom: 4px;
}

p.profile-image {
  font-size: 0.8em;
  color: #555;
  margin-bottom: 1em;
  text-align: center;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .history-images {
    width: 38%;
  }
}

@media screen and (max-width: 767px) {
  .history-images {
    float: none;
    width: 100%;
    margin: 0 0 1.5em;
  }
}
