@charset "UTF-8";
/*
Theme Name: ENHAL Theme
Theme URI: https://enhal.jp/
Author: ENHAL Inc.
Description: 株式会社エンハル（ENHAL Inc.）学術・技術系国際会議運営サポートサイト用オリジナルテーマ
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: enhal-theme
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================================================
 * WordPress Theme Specific Adjustments
 * ========================================================================== */

/* 管理バー表示時の固定ヘッダー位置補正 */
body.admin-bar .l-header,
body.admin-bar .l-header--overlay {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .l-header,
  body.admin-bar .l-header--overlay {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  body.admin-bar .l-header--overlay.is-scrolled {
    top: 0;
  }
}

/* モバイルナビ開閉時は全面ドロワーを優先 */
body.admin-bar.is-nav-open .l-header,
body.admin-bar.is-nav-open .l-header--overlay {
  top: 0;
}

/* 管理者向け設定案内枠（コンタクトフォーム未設定時のみ管理者に表示） */
.p-wp-admin-note {
  margin-bottom: 28px;
  padding: 18px 22px;
  background-color: #f3f7fc;
  border: 1px solid #c5d6e8;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sharp);
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.75;
}

.p-wp-admin-note__title {
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.p-wp-admin-note a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

.p-wp-admin-note code {
  display: inline-block;
  padding: 1px 6px;
  background-color: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 0.8125rem;
}

/* 汎用固定ページ本文（page.php / index.php 用） */
.p-wp-content {
  font-size: 0.96875rem;
  color: var(--ink-secondary);
  line-height: 1.9;
}

.p-wp-content > * + * {
  margin-top: 1.25em;
}

.p-wp-content h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.p-wp-content h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.p-wp-content ul,
.p-wp-content ol {
  padding-left: 1.5em;
}

.p-wp-content ul {
  list-style: disc;
}

.p-wp-content ol {
  list-style: decimal;
}

.p-wp-content a {
  color: var(--accent);
  text-decoration: underline;
}

.p-wp-content a:hover {
  color: var(--accent-hover);
}

/* 404ページ用レイアウト調整 */
.p-not-found {
  text-align: center;
  padding-block: 24px;
}

.p-not-found__code {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.p-not-found__title {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 600;
  color: var(--ink-primary);
  margin-bottom: 16px;
}

.p-not-found__text {
  font-size: 0.9375rem;
  color: var(--ink-secondary);
  line-height: 1.85;
  margin-bottom: 32px;
}
