/*
 * ohtix 新デザイン用レイアウト定義
 * bootstrap.min.css / style.css の後に読み込むこと。
 * .oh-page スコープ配下にのみ影響するため既存ページには無影響。
 * 仕様: git_ignore/20260815_ohtix_画面デザイン変更_仕様書.md
 *
 * ページ全体が通常通り縦スクロールする構成（ページ内に別途スクロール領域は作らない）。
 * フッター（コンタクト）を画面全体の横幅にするため、左側の画像は position:sticky で
 * ビューポートに追従させ、右側コンテンツと一緒に自然に流れて footer が最後に来る。
 *
 * 左側（画像）の表示領域確保ロジック:
 *   H = ウィンドウの表示領域の高さ（ビューポート高さ - ヘッダー30px）
 *   1. 左右分割時: 一辺 = min(H, 全体幅-500px) の正方形。ビューポートに対して上下中央に固定表示。
 *      右側が500px未満にならない範囲でのみ左右分割を維持する。
 *   2. 上下表示時（左右分割を維持できない場合）: 上側の縦幅・画像の一辺 = H/2、左右中央寄せ。
 *      下側（コンテンツ）は残りの縦幅を使う。
 */

:root {
	--oh-min-col: 500px;
	--oh-header-h: 30px;
	--oh-h: calc(100vh - var(--oh-header-h));
}

.oh-page,
.oh-page *,
.oh-page *::before,
.oh-page *::after {
	box-sizing: border-box;
}

.oh-page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: #fff;
}

/* ロゴ帯: 通常のブロック要素。sticky/fixedにしない。下スクロールで画面外へ流れる */
.oh-logobar {
	width: 100%;
	height: var(--oh-header-h);
	flex: 0 0 auto;
	background: #000;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	padding-inline: 12px;
}

.oh-logobar-brand {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
}

.oh-logobar-brand:hover,
.oh-logobar-brand:focus {
	color: #fff;
	text-decoration: underline;
}

.oh-logobar-logo {
	height: 24px;
	width: auto;
	display: block;
}

.oh-logobar-lang {
	color: #fff;
	text-decoration: underline;
	font-size: 13px;
	white-space: nowrap;
}

.oh-logobar-lang:hover,
.oh-logobar-lang:focus {
	color: #fff;
	text-decoration: underline;
}

/* デフォルト（モバイルファースト、および PC で幅/高さが足りない場合）: 上下スタック。
   上側＝画像（一辺 H/2、左右中央寄せ）、下側＝コンテンツ（自然な高さで下にフッターへ続く） */
.oh-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: calc(var(--oh-h) / 2) auto;
	grid-template-areas: "image" "content";
}

.oh-image {
	grid-area: image;
	overflow: hidden;
	background: #f2f2f2;
	width: min(calc(var(--oh-h) / 2), 100%);
	height: min(calc(var(--oh-h) / 2), 100%);
	max-width: 100%;
	justify-self: center;
}

/* 別担当者のインタラクティブJSアニメーションのマウント先。
   width:100%; height:100% を維持し、サイズ変化への追従は担当者側の実装責務とする */
.oh-image > #oh-image-canvas {
	width: 100%;
	height: 100%;
}

.oh-content {
	grid-area: content;
	display: flex;
	flex-direction: column;
}

/* PC 左右分割: 幅1000pxより広く、かつ高さ530pxより高い場合（＝正方形の一辺が500pxを下回らない範囲）。
   左側は min(H, 全体幅-500px) を一辺とする正方形をビューポートに対して上下中央に sticky 表示。
   右側は残りの横幅をすべて使い、ページ本来の縦スクロールにまかせる（フッターは左右分割の外に続く）。 */
@media (min-width: 1001px) and (min-height: 531px) {
	.oh-layout {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
	}

	.oh-image {
		--oh-img-size: min(var(--oh-h), calc(100vw - var(--oh-min-col)));
		flex: 0 0 auto;
		width: var(--oh-img-size);
		height: var(--oh-img-size);
		aspect-ratio: 1 / 1;
		position: sticky;
		top: calc(50vh - (var(--oh-img-size) / 2));
		bottom: auto;
		margin-block: 0;
	}

	.oh-content {
		flex: 1 1 auto;
		min-width: var(--oh-min-col);
	}
}

/* スマホ: タッチデバイス かつ 926px以下は、回転しても常に縦積みを強制する */
@media (hover: none) and (pointer: coarse) and (max-width: 926px) {
	.oh-layout {
		display: grid !important;
		grid-template-columns: 1fr !important;
		grid-template-rows: calc(var(--oh-h) / 2) auto !important;
		grid-template-areas: "image" "content" !important;
	}

	.oh-image {
		position: static !important;
		width: calc(var(--oh-h) / 2) !important;
		height: calc(var(--oh-h) / 2) !important;
		justify-self: center !important;
	}
}

/* --- 既存セクションの見た目調整（Bootstrapグリッドから移行した箇所） --- */

.oh-content section {
	padding: 20px;
}

#panel-session-overview {
	background-color: #f0ebf0;
	margin: 0 5px;
}

.oh-footer {
	width: 100%;
	padding: 20px;
	text-align: center;
}

/* #registration（ルート）/ #registration-sony（sony） 内のBootstrapグリッド
   （.col-md-6 / .col-xs-6）はビューポート幅基準のブレークポイントで切り替わるため、
   コンテンツ幅が500px前後まで狭くなる本デザインでは横にはみ出す。
   コンテナ幅に応じて確実に収まるFlexレイアウトに置き換える。 */
#registration > .row,
#registration-sony > .row {
	display: block;
	margin-left: 0;
	margin-right: 0;
}

#registration > .row > .col-md-6,
#registration-sony > .row > .col-md-6 {
	float: none;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* Bootstrap の .input-group は display:table のため、内容量に応じて親幅を
   無視して広がってしまう。狭幅の本デザインでは block に戻して確実に収める。 */
#registration .input-group.radio,
#registration-sony .input-group.radio {
	display: block;
	width: 100%;
	margin-bottom: 15px;
}

#registration .input-group.radio > .row,
#registration-sony .input-group.radio > .row {
	display: flex;
	flex-wrap: wrap;
	margin-left: 0;
	margin-right: 0;
}

#registration .input-group.radio > .row > .col-xs-6,
#registration-sony .input-group.radio > .row > .col-xs-6 {
	float: none;
	width: 50%;
	padding-left: 8px;
	padding-right: 8px;
	box-sizing: border-box;
}

/* デモ枠の時間帯ラジオ（.col-xs-6 内、padding-left:8px）とインデントを揃えるため、
   「不参加」やパネルセッションのラジオ（.input-group.radio の直下の label）にも
   同じ8pxを付ける */
#registration .input-group.radio > label,
#registration-sony .input-group.radio > label {
	padding-left: 28px;
}

/* デモ枠: 「午前の部」「午後の部」の前にバランスよく余白を入れる */
#registration .input-group.radio .col-xs-6 strong,
#registration-sony .input-group.radio .col-xs-6 strong {
	display: block;
	margin-bottom: 4px;
}

#registration .input-group.radio .col-xs-6 em,
#registration-sony .input-group.radio .col-xs-6 em {
	display: block;
	margin-top: 14px;
	margin-bottom: 4px;
}

/* .invite-only（招待制バッジ）は元々黒背景前提のスタイル（白いボーダー）のため、
   白背景の oh-content 内では見えなくなる。ここで白背景向けの配色に上書きする。 */
.oh-content .invite-only {
	display: inline-block;
	border: none;
	color: #36454F;
	font-size: 18px;
}

.oh-content section.oh-invite-badge {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-top: 10px;
	padding-bottom: 0;
}

.oh-invite-badge + .oh-message {
	padding-top: 10px;
}

.oh-invite-badge + .oh-message h2:first-child {
	margin-top: 0;
}

/* oh-message と #venue の間の余白を通常の section 間隔（40px）の2/3程度に詰める */
.oh-message {
	padding-bottom: 13px;
}

.oh-message + #venue {
	padding-top: 13px;
}

#venue h2,
#demo-overview h2,
#panel-session-overview h2 {
	margin-top: 10px;
}

#demo-overview h2 {
	margin-bottom: 0;
	padding-bottom: 8px;
}

.oh-invite-badge-col {
	flex: 1 1 50%;
	text-align: center;
}

.oh-invite-badge .invite-apply-link {
	color: #d00;
	font-weight: bold;
	text-decoration: none;
}

.oh-invite-badge .invite-apply-link:hover,
.oh-invite-badge .invite-apply-link:focus {
	color: #d00;
	text-decoration: underline;
}

.oh-content section.oh-notices {
	padding: 20px;
	padding-top: 50px;
}

.oh-notice-item + .oh-notice-item {
	margin-top: 1em;
}

.oh-notice-title {
	margin: 0;
	font-weight: bold;
}

.oh-notice-body {
	margin: 0;
	padding-left: 1em;
}

.oh-note-plain {
	font-weight: normal;
	padding-top: 10px;
	padding-bottom: 10px;
}

.oh-note-title-line {
	margin: 0;
}

.oh-note-body-line {
	margin: 0;
	padding-left: 1.5em;
}

.oh-attend-buttons {
	text-align: center;
	margin-top: 30px;
}

.reg-qr-note {
	margin-top: 30px;
	margin-bottom: 30px;
}

.reg-qr-code {
	display: block;
	width: 160px;
	height: 160px;
	margin: 12px auto;
}

.oh-map-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	margin-top: 12px;
}

.oh-map-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

section.demonstration-floor {
	padding-top: 0px;
}

#demonstration_list .demonstration-items {
  list-style: disc;
    margin: 0;
    padding-left: 1.25em;
}


#demonstration_list .demonstration-title,
  #demonstration_list .demonstration-author {
    display: inline;
  }

  #demonstration_list .demonstration-body {
    margin: 2px 0 6px;
    color: #444;
    line-height: 1.4;
  }

    #demonstration_list .demonstration-heading {
    display: block;
  }

  #demonstration_list .demonstration-item {
    display: inline;
    padding: 0;
    text-align: left;
    white-space: normal;
  }

    #demonstration_list .demonstration-author,
  #demonstration_list .demonstration-more {
    color: #555;
    font-size: 0.9em;
    font-style: italic;
  }

  #demonstration_list .demonstration-author {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #demonstration_list .demonstration-more {
    white-space: nowrap;
  }

  #demonstration_list .demonstration-author {
    margin-left: 0.5em;
  }

  #demonstration_list .demonstration-more {
    margin-left: 0.35em;
    text-decoration: underline;
  }

.oh-tablist {
    position: sticky;
    top: 0;
    z-index: 20;
    display: block;
    background: #fff;
    border-bottom: 1px solid #000;
    padding: 5px 5px;
  }

  .oh-tablist .nav-tabs {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .oh-tablist .nav-tabs::before,
  .oh-tablist .nav-tabs::after {
    display: none;
  }

  .oh-tablist .nav-tabs > li {
    display: flex;
    float: none;
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
    margin: 0;
  }

  .oh-tablist .nav-tabs > li > .oh-tab {
    display: flex;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    color: #111;
    font-weight: 700;
    text-align: center;
    white-space: normal;
  }

.oh-tablist .nav-tabs > li > .oh-tab:hover,
  .oh-tablist .nav-tabs > li > .oh-tab:focus {
    color: #111;
    background: #eee;
    outline: 2px solid #111;
    outline-offset: -2px;
  }



   @media (max-width: 1000px), (max-height: 530px),
    (hover: none) and (pointer: coarse) and (max-width: 926px) {
    /* 二重スクロールバー対策: .oh-content 内で個別にスクロールさせず、
       ページ全体（1本のスクロールバー）で縦移動できるようにする。
       そのため .oh-layout の高さ固定 + overflow:hidden と、
       .oh-content の overflow-y:auto は使わない。 */
    .oh-layout {
      --oh-image-h: calc(var(--oh-h) / 2);

	  height: var(--oh-h);
	  overflow: hidden;
      grid-template-rows:
        var(--oh-image-h)
        minmax(0, calc(var(--oh-h) - var(--oh-image-h))) !important;
    }

    .oh-image {
      position: relative !important;
      width: 100% !important;
      height: var(--oh-image-h) !important;
      justify-self: stretch !important;
    }

	.oh-content {
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
    .oh-page.is-registration-active .oh-layout {
    grid-template-areas: "content" !important;
    grid-template-rows: auto !important;
  }

  .oh-page.is-registration-active .oh-image {
    display: none;
  }
  .oh-tablist {
    padding: 0px 5px 5px 5px;
  }
  }

  @font-face {
    font-family: "OpenHouse";
    src:
      url("../fonts/lamaison_openhouse.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
  }
