@charset "utf-8";
/*=====================================================================
  PHANTASY STAR UNIVERSE 運営公式サイト // コミュニティ > イベント一覧
  ---------------------------------------------------------------------
  Rebuild of /community/event/.
  Sections 01–07 carry over the original stylesheets' values
  (common-tag / common-layout / common-navi / common-class /
  community/layout / community/event), trimmed to rules this page uses.
  Section 08 adds accessibility; 09–10 add responsive tiers.
=====================================================================*/

/*---------------------------------------------------------------------
  01. base (common-tag.css)
---------------------------------------------------------------------*/
html, body {
	margin: 0;
	padding: 0;
	/* Original stack; sans-serif added so non-Japanese systems don't fall back to a serif face. */
	font-family: "ＭＳ Ｐゴシック", "MS PGothic", Osaka, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
}
body {
	background: #EFF7FF url(../image/layout/background_body.gif) repeat-y left top;
	font-size: 12px;
	color: #202020;
	text-align: left;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dt, dd {
	margin: 0;
	padding: 0;
}
ul, ol, li {
	list-style-type: none;
}
img {
	border: 0;
}
p {
	font-size: 12px;
	line-height: 150%;
	margin-bottom: 12px;
}

a:link, a:visited {
	color: #1030FF;
	text-decoration: none;
}
a:hover, a:active {
	color: #FF3333;
	text-decoration: underline;
}

h4 {
	padding-left: 15px;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: bold;
	line-height: 150%;
	color: #2F5891;
	background: url(../image/common/h4_default.gif) no-repeat 0 1px;
}

/* image replacement used throughout the original */
.ir {
	overflow: hidden;
	text-indent: -9999px;
	text-decoration: none;
	font-size: 0;
	line-height: 0;
}

/*---------------------------------------------------------------------
  02. frame (common-layout.css + community/layout.css)
---------------------------------------------------------------------*/
#wrapper {
	width: 990px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: url(../image/community/background_wrapper.jpg) no-repeat top left;
}

#header {
	width: 800px;
	height: 245px;
	margin: 0 auto 0 10px;
	padding: 0;
}
#headerPrimary {
	float: left;
	width: 200px;
	height: 79px;
	/* original: empty headerNav (16px + 5px padding) + 145px margin */
	margin: 166px 0 0;
}
#category {
	width: 175px;
	height: 37px;
	/* 42px stands in for the empty #gNavExtra (36px + 6px margin) */
	margin: 42px 20px 0 5px;
	background: url(../image/community/category.jpg) no-repeat;
}

#container {
	width: 800px;
	margin: 0 auto 0 10px;
}
#container::after {
	content: "";
	display: block;
	clear: both;
}
#containerPrimary {
	float: left;
	width: 200px;
}
#containerSecondly {
	float: right;
	width: 584px;
	padding: 0 8px;
}
#containerBox {
	width: 584px;
	margin: 0 0 10px;
	background: url(../image/layout/background_main.gif) repeat-y;
}
#containerBottom {
	clear: both;
	width: 584px;
	height: 23px;
	padding-top: 12px;
	background: url(../image/layout/background_main_bottom_2.gif) no-repeat 0 12px;
}

/* h2 */
#pageTitle {
	width: 584px;
	height: 42px;
	background: url(../image/community/h2/h2_event.gif) no-repeat;
}

/* breadcrumb */
#topicPath {
	width: 564px;
	margin: 2px 10px 8px;
	text-align: right;
}
#topicPath li {
	display: inline;
	padding: 0 0 0 12px;
	color: #666666;
	font-size: 12px;
	line-height: 15px;
	background: url(../image/common/background_level.gif) no-repeat 0 2px;
}
#topicPath li.home {
	background: none;
}

/* back to top */
#backToTop {
	width: 125px;
	height: 23px;
	margin: 0 8px 0 451px;
}
#backToTop a {
	display: block;
	width: 125px;
	height: 23px;
	background: url(../image/layout/background_main_backtotop.gif) no-repeat;
}
#backToTop a:hover {
	background-position: -125px 0;
}

#contentsMain {
	width: 554px;
	margin: 15px 15px 10px;
}

/*---------------------------------------------------------------------
  03. footer (common-layout.css)
---------------------------------------------------------------------*/
#footer {
	clear: both;
	position: relative;
	width: 800px;
	height: 113px;
	margin: 0 10px;
	padding: 0;
	background: url(../image/layout/background_footer.jpg) no-repeat;
}
#footerNav {
	padding: 12px 10px 10px;
	overflow: hidden;
}
#footerNav li {
	float: left;
	padding-left: 18px;
	font-size: 12px;
	color: #FFFFFF;
	background: url(../image/layout/background_footer_navi.gif) no-repeat 8px 1px;
}
#footerNav li.first {
	padding-left: 0;
	background: none;
}
#footerNav li a:link,
#footerNav li a:visited {
	color: #FFFFFF;
}
#footerNav li a:hover {
	color: #FFFF00;
}

#footerIcon {
	margin: 0 8px;
}
#fIconSega {
	float: right;
	width: 79px;
	height: 38px;
	background: url(../image/layout/footer_sega.gif) no-repeat left top;
}
#fIconSega a {
	display: block;
	width: 79px;
	height: 38px;
}
#fIconSegapc {
	float: right;
	width: 68px;
	height: 38px;
	padding-right: 5px;
	background: url(../image/layout/footer_segapc.gif) no-repeat left top;
}
#fIconPeersec {
	float: right;
	width: 29px;
	height: 38px;
	padding-right: 5px;
	background: url(../image/layout/footer_peersec.gif) no-repeat left top;
}
#fIconCopyright {
	float: left;
	width: 260px;
	height: 38px;
	background: url(../image/layout/footer_copyright.gif) no-repeat left top;
}
#fIconCopyright p {
	margin: 0;
}

/*---------------------------------------------------------------------
  04. left banners (common-navi.css)
---------------------------------------------------------------------*/
#commonNavLeft {
	width: 200px;
	margin: 12px 0;
	overflow: hidden;
}
#commonNavLeft li,
#commonNavLeft a {
	display: block;
	width: 172px;
	height: 50px;
}
#commonNavLeft li {
	margin: 0 8px 6px 14px;
}
#commonNavLeft a {
	background-repeat: no-repeat;
}
#cNavPSBlog a { background-image: url(../image/navi/bnr_psblog.gif); }
#cNavTwitter a { background-image: url(../image/navi/bnr_twitter.gif); }
#cNavPortal a { background-image: url(../image/navi/portal.jpg); }

#commonNavLeft #cNavItemDesignContest,
#commonNavLeft #cNavItemDesignContest a,
#commonNavLeft #cNavItemDesignContest2010,
#commonNavLeft #cNavItemDesignContest2010 a {
	width: 85px;
	height: 65px;
}
#cNavItemDesignContest a { background-image: url(../image/navi/thumb_858.jpg); }
#commonNavLeft #cNavItemDesignContest2010 {
	margin: -71px 8px 6px 101px;
}
#cNavItemDesignContest2010 a { background-image: url(../image/navi/thumb_1164.jpg); }

#commonNavLeft #cNavINY,
#commonNavLeft #cNavINY a,
#commonNavLeft #cNavPSU,
#commonNavLeft #cNavPSU a {
	width: 130px;
	height: 40px;
}
#commonNavLeft #cNavINY,
#commonNavLeft #cNavPSU {
	margin: 0 8px 6px 35px;
}
#cNavINY a { background-image: url(../image/navi/phantasystar_iluminas.jpg); }
#cNavPSU a { background-image: url(../image/navi/phantasystar_universe.jpg); }

/*---------------------------------------------------------------------
  05. right column: banner + quick links (common-navi.css)
---------------------------------------------------------------------*/
#commonNavRight {
	position: absolute;
	left: 820px;
	top: 5px;
	width: 160px;
}

#quickLinkBanner {
	width: 160px;
	height: 245px; /* original value; the 246px banner overhangs by 1px */
	margin-bottom: 8px;
	text-align: center;
}

#beginnerLink {
	width: 160px;
	margin-bottom: 8px;
	background: url(../image/quicklink/beginnerlink_main.gif) repeat-y;
}
#beginnerLink h2 {
	width: 160px;
	height: 26px;
	background: url(../image/quicklink/beginnerlink_top.gif) no-repeat;
}
#beginnerLink dl {
	width: 152px;
	padding: 2px 4px 3px;
	background: url(../image/quicklink/beginnerlink_bottom.gif) no-repeat left bottom;
}
#beginnerLink dt {
	clear: both;
	margin: 2px auto;
	padding: 0 0 0 23px;
	font-size: 12px;
	line-height: 18px;
	background: url(../image/quicklink/a_beginnerlink.gif) no-repeat 4px 2px;
}
#beginnerLink dt a,
#beginnerLink dt a:link,
#beginnerLink dt a:visited {
	color: #00479d;
}
#beginnerLink dt a:hover {
	color: #0066cc;
}
#beginnerLink dd {
	text-align: center;
	/* the original script never marks this dd "last", so its border shows */
	border-bottom: 1px #e4b0bc solid;
}
#beginnerLink dd img,
#quickLink dd img {
	margin: 0 auto 5px;
}

#quickLinkTop,
#quickLinkBottom {
	width: 160px;
	height: 4px;
}
#quickLinkTop {
	background: url(../image/quicklink/background_top.gif) no-repeat;
}
#quickLinkBottom {
	clear: both;
	margin-bottom: 8px;
	background: url(../image/quicklink/background_bottom.gif) no-repeat;
}
#quickLink {
	width: 152px;
	padding: 2px 4px 0;
	overflow: hidden;
	background: url(../image/quicklink/background_main.gif) repeat-y;
}
#quickLink dt {
	clear: both;
	margin: 2px auto;
	padding: 0 0 0 23px;
	font-size: 12px;
	line-height: 18px;
	background: url(../image/quicklink/a_quicklink.gif) no-repeat 4px 3px;
}
/* plain "a" too: entries whose target isn't hosted here render without href */
#quickLink dt a,
#quickLink dt a:link,
#quickLink dt a:visited {
	color: #FF6600;
}
#quickLink dt a:hover {
	color: #FF3333;
}
#quickLink dd {
	text-align: center;
	border-bottom: 1px #DAD1C7 solid;
}

/*---------------------------------------------------------------------
  06. content helpers (common-class.css)
---------------------------------------------------------------------*/
.outline {
	margin: 0 12px 12px;
	font-size: 12px;
	line-height: 150%;
}
.textin {
	margin: 0 10px 12px;
}
.textin::after {
	content: "";
	display: block;
	clear: both;
}
a.icon {
	display: block;
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 12px;
	line-height: 150%;
	background: url(../image/common/a_default.gif) no-repeat 0 3px;
}

/*---------------------------------------------------------------------
  07. event list (community/event.css)
---------------------------------------------------------------------*/
h3.eventlist {
	width: 554px;
	height: 28px;
	margin-bottom: 12px;
	background: url(../image/community/event/h3_eventlist.gif) no-repeat;
}

.section {
	width: 530px;
	margin-top: 10px;
	background: url(../image/community/event/bg_section.gif) repeat-x center top;
	border-bottom: #ceddf2 solid 1px;
}
.section::after {
	content: "";
	display: block;
	clear: both;
}
.ssLeft {
	float: left;
	width: 200px;
	margin: 0 0 8px;
}
.ssLeft img {
	max-width: 100%;
	height: auto;
}
.rightContents {
	float: right;
	width: 320px;
}
.section h4 {
	margin: 0;
}
.section p {
	color: #03a913;
	margin: 4px 0 12px 8px;
}
.section p.comment {
	margin-bottom: 6px;
	color: #000;
}
ul.qNav {
	margin: 0 0 8px 8px;
	line-height: 0;
	overflow: hidden;
}
ul.qNav li {
	display: inline;
	float: left;
	margin: 0 10px 0 0;
}

/*---------------------------------------------------------------------
  08. accessibility additions
---------------------------------------------------------------------*/
/* hidden visually, still read by assistive tech (original used display:none) */
.visuallyHidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skipLink {
	position: absolute;
	left: 8px;
	top: -40px;
	z-index: 10;
	padding: 6px 12px;
	background: #2a4e9a;
	border: 2px solid #FFFF00;
	font-size: 12px;
	font-weight: bold;
}
.skipLink:link,
.skipLink:visited {
	color: #FFFFFF;
}
.skipLink:focus {
	top: 8px;
}

a:focus-visible {
	outline: 2px solid #FF6600;
	outline-offset: 2px;
	border-radius: 1px;
}
/* dark footer: yellow matches its hover colour */
#footer a:focus-visible {
	outline-color: #FFFF00;
}
#contentsMain:focus {
	outline: none;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/*---------------------------------------------------------------------
  09. narrow desktop / tablet (800–989px)
  The original is a fixed 990px page; the right column would be cut off.
  Keep the two-column frame and move the right column under the left one.
---------------------------------------------------------------------*/
@media (max-width: 989px) {
	#wrapper {
		width: 810px;
	}
	#container {
		display: grid;
		grid-template-columns: 200px 600px;
		grid-template-rows: auto 1fr;
		align-items: start;
	}
	#containerSecondly {
		grid-column: 2;
		grid-row: 1 / span 2;
		float: none;
	}
	#containerPrimary {
		grid-column: 1;
		grid-row: 1;
		float: none;
	}
	#commonNavRight {
		grid-column: 1;
		grid-row: 2;
		position: static;
		margin: 0 20px;
	}
}

/*---------------------------------------------------------------------
  10. mobile (< 800px)
  Single column. Fixed-width frame images are replaced by CSS drawn in
  their colours (sampled from background_main*.gif / background_footer.jpg).
---------------------------------------------------------------------*/
@media (max-width: 799px) {
	body {
		background-image: none;
	}
	#wrapper {
		width: auto;
		background: none;
	}
	#header {
		width: auto;
		margin: 0;
		/* header art only: the lower half of this image is the desktop column frame */
		background: url(../image/community/background_wrapper.jpg) no-repeat left top;
	}

	#container {
		display: flex;
		flex-direction: column;
		width: auto;
		margin: 0;
		padding: 0 10px;
	}
	#containerSecondly {
		width: auto;
		padding: 0;
	}
	#containerBox {
		width: auto;
		background: #fdfdfd;
		border: 1px solid #d6d6d6;
		border-radius: 0 0 6px 6px;
	}
	#pageTitle {
		width: auto;
		background-color: #fafafa;
		background-position: left top;
	}
	#topicPath {
		width: auto;
	}
	#contentsMain {
		width: auto;
		margin: 15px 10px 10px;
	}
	.outline {
		margin: 0 4px 12px;
	}
	h3.eventlist {
		width: auto;
		border-radius: 0 3px 3px 0;
	}
	.textin {
		margin: 0 0 12px;
	}

	.section {
		width: auto;
		padding-bottom: 10px;
		background: none;
	}
	.ssLeft {
		float: none;
		width: auto;
		margin: 0 0 8px;
	}
	.ssLeft img {
		width: 200px;
	}
	/* the heading strip goes with the text once the thumbnail stacks above it */
	.rightContents {
		float: none;
		width: auto;
		background: url(../image/community/event/bg_section.gif) repeat-x left top;
	}
	ul.qNav li {
		float: none;
		display: block;
	}

	#containerBottom {
		width: auto;
		height: 23px;
		padding: 0 0 10px;
		background: none;
	}
	#backToTop {
		width: auto;
		margin: 0 8px;
	}
	#backToTop a {
		margin-left: auto;
	}

	/* side columns: stacked below the listing, banners wrap */
	#containerPrimary,
	#commonNavRight {
		width: auto;
		position: static;
		float: none;
	}
	#commonNavLeft {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
		width: auto;
		margin: 0 0 12px;
	}
	#commonNavLeft li,
	#commonNavLeft #cNavItemDesignContest2010,
	#commonNavLeft #cNavINY,
	#commonNavLeft #cNavPSU {
		margin: 0;
	}
	#commonNavRight {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-start;
		gap: 0 12px;
		margin: 0 0 4px;
	}
	#quickLinkBanner {
		margin-bottom: 8px;
	}
	.quickLinkColumn {
		width: 160px;
	}

	#footer {
		width: auto;
		height: auto;
		margin: 0;
		padding-bottom: 12px;
		background: linear-gradient(#3b6fba, #315da8 55%, #2a4e9a) no-repeat;
	}
	#footerIcon {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 10px 5px;
	}
	#fIconSega,
	#fIconSegapc,
	#fIconPeersec {
		float: none;
		padding: 0;
	}
	/* logos keep their original right-to-left order; copyright drops below */
	#fIconPeersec { order: 1; }
	#fIconSegapc { order: 2; }
	#fIconSega { order: 3; }
	#fIconCopyright {
		float: none;
		order: 4;
		margin-right: auto;
	}
}
