@charset "UTF-8";

/* ============================================================
  Font Awesome
============================================================ */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

/* ============================================================
  Base
============================================================ */
:root {
  --site-title-en: "The Pseudomonas Aeruginosa･Gram-Negative Bacterial Infection Society";
  --site-title-ja: "緑膿菌・グラム陰性菌感染症研究会 講演記録";
  --site-copyright: "©緑膿菌・グラム陰性菌感染症研究会";

  --color-main: #3f8f00;
  --color-main-dark: #2f6f00;
  --color-text: #222;
  --color-muted: #666;
  --color-border: #c9c9c9;
  --color-heading-bg: #eeeeeb;
  --color-panel-bg: #f7f7f4;
  --color-link: #1d37a6;

  /* サブカラー */
  --color-sub: #f3efe4;
  --color-sub-dark: #d8c9a8;
  --color-sub-text: #4a3d25;

  --content-width: 1100px;
  --content-padding: clamp(20px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Meiryo",
    sans-serif;
  line-height: 1.7;
  background: #fff;
}

a {
  color: var(--color-link);
  text-decoration: underline;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
  Header
  ※表示文字はHTMLに書かず、CSSのcontentで管理
============================================================ */
.site-header {
  width: 100%;
  margin: 0;
  padding: 34px 0 28px;
  background:
    linear-gradient(
      to bottom,
      var(--color-main) 0,
      var(--color-main) 10px,
      transparent 10px,
      transparent 100%
    );
}

.site-header::before,
.site-header::after {
  display: block;
  width: min(100%, var(--content-width));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--content-padding);
  padding-left: var(--content-padding);
}

.site-header::before {
  content: var(--site-title-en);
  margin-bottom: 0.15em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.site-header::after {
  content: var(--site-title-ja);
  font-size: clamp(1.25rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ============================================================
  Main
============================================================ */
.site-main {
  flex: 1 0 auto;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 0 var(--content-padding) 48px;
}

.login-panel,
.password-reset,
.record-index {
  margin-top: 16px;
}

.section-title {
  position: relative;
  margin: 0 0 28px;
  padding: 0 0 12px 18px;
  color: var(--color-text);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  background: transparent;
  border-bottom: 3px solid var(--color-heading-bg);
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0.15em;
  left: 0;
  width: 6px;
  height: 1.15em;
  background: var(--color-main);
  border-radius: 999px;
}

.login-box {
  width: 100%;
}

.login-lead {
  display: flex;
  align-items: flex-start;
  gap: 0.65em;
  margin: 0 0 16px;
  padding: 13px 16px;
  color: var(--color-sub-text);
  font-weight: 700;
  background: var(--color-sub);
  border: 1px solid var(--color-sub-dark);
  border-radius: 4px;
}

.login-lead::before {
  content: "\f05a";
  margin-top: 0.1em;
  color: var(--color-main);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.login-form {
  margin: 0;
}

.form-table {
  width: 100%;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 32% 1fr;
}

.form-label,
.form-field {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.form-label {
  display: flex;
  align-items: center;
  font-weight: 700;
  background: #f2f2f2;
}

.form-field {
  background: #fff;
}

.form-input {
  width: min(100%, 460px);
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #bfbfbf;
  border-radius: 2px;
  background: #fff;
}

.form-input:focus {
  outline: 2px solid rgba(63, 143, 0, 0.28);
  border-color: var(--color-main);
}

.form-field--password {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.password-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #333;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
}

.password-toggle input {
  width: 1em;
  height: 1em;
  margin: 0;
}

.password-toggle span::before {
  content: "\f06e";
  margin-right: 0.3em;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-muted);
}

.form-actions {
  margin-top: 10px;
}

.login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 42px;
  padding: 6px 18px;
  color: #111;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(#fff, #ececec);
  border: 1px solid #999;
  border-radius: 2px;
  cursor: pointer;
}

.login-button::before {
  content: "\f090";
  margin-right: 0.45em;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9em;
}

.login-button:hover,
.login-button:focus-visible {
  background: linear-gradient(#fff, #e0e0e0);
  border-color: var(--color-main-dark);
}

.login-button--reset::before {
  content: "\f00c";
}

.forgot-password,
.back-login {
  margin: 18px 0 0;
}

.forgot-password a,
.back-login a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 9px 14px;
  color: var(--color-link);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-sub-dark);
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.forgot-password a::before {
  content: "\f059";
  color: var(--color-main);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.back-login a::before {
  content: "\f053";
  color: var(--color-main);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.forgot-password a:hover,
.forgot-password a:focus-visible,
.back-login a:hover,
.back-login a:focus-visible {
  color: var(--color-main-dark);
  background: var(--color-sub);
  border-color: var(--color-main);
}


/* invalid 最小（CSSでマーク） */
.form-input:invalid {
  border: 1px solid #ff3b30;
  background: rgba(255, 59, 48, 0.06);
}

.form-input:invalid:focus {
  outline: 2px solid rgba(255, 59, 48, 0.22);
  border-color: #ff3b30;
}


/* ============================================================
  Footer
  ※表示文字はHTMLに書かず、CSSのcontentで管理
============================================================ */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin: 0 0 32px;
  padding: 0;
  background: var(--color-main);
}

.site-footer::before {
  content: var(--site-copyright);
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--content-width));
  min-height: 44px;
  margin: 0 auto;
  padding: 8px var(--content-padding);
  color: #fff;
  font-size: 0.875rem;
}

/* ============================================================
  Responsive
============================================================ */
@media (max-width: 640px) {
  .site-header {
    padding-top: 26px;
    padding-bottom: 22px;
    background:
      linear-gradient(
        to bottom,
        var(--color-main) 0,
        var(--color-main) 8px,
        transparent 8px,
        transparent 100%
      );
  }

  .site-header::before {
    letter-spacing: 0.04em;
  }

  .site-header::after {
    letter-spacing: 0.04em;
  }

  .section-title {
    margin-bottom: 20px;
    padding-left: 16px;
  }

  .login-lead {
    padding: 12px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-label {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .form-field {
    padding-top: 4px;
  }

  .form-input {
    width: 100%;
    min-height: 40px;
  }

  .form-field--password {
    display: block;
  }

  .password-toggle {
    margin-top: 8px;
  }

  .login-button {
    width: 100%;
  }

  .forgot-password a,
  .back-login a {
    width: 100%;
    justify-content: center;
    border-radius: 4px;
  }

  .site-footer {
    margin-bottom: 24px;
  }
}




/* ============================================================
  講演記録一覧
============================================================ */
.record-index {
  margin-top: 16px;
}

.record-list-box {
  padding: clamp(18px, 3vw, 28px);
  background: var(--color-panel-bg);
  border: 1px solid #dfdfdb;
  border-radius: 6px;
}

.record-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 42px 12px 16px;
  color: var(--color-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

.record-list a::after {
  content: "\f105";
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--color-main);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transform: translateY(-50%);
}

.record-list a:hover,
.record-list a:focus-visible {
  color: var(--color-main-dark);
  border-color: var(--color-main);
  background: var(--color-sub);
}



/* ============================================================
  第60回 講演記録詳細
  カテゴリ見出し＋講演カード型リスト
============================================================ */
.record-detail {
  margin-top: 16px;
}

/* カテゴリごとのまとまり */
.record-section {
  margin-top: 30px;
}

.record-section:first-of-type {
  margin-top: 0;
}

/* カテゴリ見出し */
.record-section__title {
  margin: 0 0 14px;
  padding: 10px 14px;
  color: var(--color-text);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5;
  background: var(--color-heading-bg);
  border-left: 5px solid var(--color-main);
}

/* 講演リスト */
.record-list-detail {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 講演カード */
.record-item {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

/* PDFリンク */
.record-item__link {
  position: relative;
  display: block;
  padding-left: 1.75em;
  color: var(--color-link);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  text-align-last: left;
  text-decoration: none;
  word-break: normal;
  overflow-wrap: anywhere;
}

.record-item__link::before {
  content: "\f1c1";
  position: absolute;
  top: 0.12em;
  left: 0;
  color: var(--color-main);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.record-item__link:hover,
.record-item__link:focus-visible {
  color: var(--color-main-dark);
  text-decoration: underline;
}

/* 講演者名 */
.record-item__speaker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.6em;
  margin: 8px 0 0;
  color: var(--color-text);
  font-size: 0.94rem;
  line-height: 1.6;
}

.record-item__speaker-body {
  min-width: 0;
}

.record-item__speaker-body sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
}

/* 「講演者」ラベル */
.record-item__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5em;
  padding: 0.15em 0.55em;
  color: var(--color-sub-text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  background: var(--color-sub);
  border: 1px solid var(--color-sub-dark);
  border-radius: 999px;
}

/* 全ページPDFなど、単独リンク用 */
.record-download {
  margin-top: 28px;
}

.record-download .record-item {
  background: var(--color-panel-bg);
}

/* ============================================================
  Responsive
============================================================ */
@media (max-width: 640px) {
  .record-section {
    margin-top: 24px;
  }

  .record-section__title {
    padding: 9px 12px;
    border-left-width: 4px;
  }

  .record-item {
    padding: 13px 14px;
  }

  .record-item__speaker {
    display: block;
  }

  .record-item__label {
    margin: 0 0 4px;
  }

  .record-item__speaker-body {
    display: block;
  }

  .record-item__label {
    margin: 0 0 4px;
  }
}


/* ============================================================
  ページ上部へ戻るリンク
  ※HTMLを入れたページだけに表示
============================================================ */
html {
  scroll-behavior: smooth;
}

.page-top-link {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
}

.page-top-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #fff;
  text-decoration: none;
  background: var(--color-main);
  border: 1px solid var(--color-main-dark);
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.page-top-link a::before {
  content: "\f062";
  font-family: "Font Awesome 6 Free";
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.page-top-link a:hover,
.page-top-link a:focus-visible {
  background: var(--color-main-dark);
}

/* なめらかにスクロール */
html {
  scroll-behavior: smooth;
}

@media (max-width: 640px) {
  .page-top-link {
    right: 16px;
    bottom: 16px;
  }

  .page-top-link a {
    width: 42px;
    height: 42px;
  }
}



/* 一覧に戻るリンク */
.record-back {
  display: flex;
  justify-content: flex-end;
  margin: -14px 0 24px;
}

.record-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--color-link);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.record-back a::after {
  content: "\f105";
  color: var(--color-main);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.record-back a:hover,
.record-back a:focus-visible {
  color: var(--color-main-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .record-back {
    margin: -8px 0 20px;
  }
}