@import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css);
@import url(https://fonts.googleapis.com/css?family=Modern+Antiqua);

/* reset */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;}
address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;}
ul{list-style:none;}
table{border-collapse:collapse;border-spacing:0;}
caption,th{text-align:left;}
q:before,q:after{content:'';}
object,embed{vertical-align:top;}
legend{display:none;}
h1,h2,h3,h4,h5,h6{font-size:100%;}
img,abbr,acronym,fieldset{border:0;}

body{
	font: 14px/1.9 'Noto Sans JP', Arial, Verdana, 游ゴシック, YuGothic,'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo,sans-serif;
	font-weight: 300;
	-webkit-text-size-adjust:100%;
	overflow-x: hidden;
    background-color: #1a1a1a;
    margin: 0;
    padding: 0;
	color: #fff;
	background: #000;
}

a{
	color: #0066ff;
	text-decoration: none;
}

a:hover, .active{
  text-decoration: underline;
}

a:active, a:focus,input:active, input:focus{outline:0;}


/* ヘッダー
------------------------------------------------------------*/
#mainnav a{
	color: #fff;
	font-family: 'Modern Antiqua', 'Noto Sans JP',serif;
}


/* フッター
------------------------------------------------------------*/
#footer{
	clear: both;
	padding: 50px 10px 50px 0;
	text-align: center;
	font-size: 12px;
}


/* 共通
------------------------------------------------------------*/
h1, h2{
	font-family: 'Modern Antiqua', 'Noto Sans JP',serif;
}

img{
	max-width: 100%;
	height: auto;
}

section{
  clear: both;
}

section h2{
	width: 60%;
	margin: 70px auto;
	font-size: 22px;
	font-weight:normal;
	text-align: center;
}

section h2 span {
	padding-bottom: 20px;
	border-bottom: 3px solid #fff;
}

.inner{
	width: 80%;
	margin: 0 auto;
	padding-bottom: 50px;
}

#sec03 .inner, #sec04 .inner{
	border-bottom: 1px solid #fff;
}

.innerS{
	width: 60%;
	margin: 0 auto;
	padding-bottom: 80px;
}


/* SEC02 Gallery
------------------------------------------------------------*/
#sec02{
	padding: 0 !important;
}

#sec02 header{
	display: none;
}

#gallery{
	overflow: hidden;
}

#gallery li{
	float: left;
	width: calc(100%/3);
	line-height: 0;
}
#gallery li.full{
	width: 100%;
}


#gallery img{
	display: block;
	width: 100%;
	height: auto;
}


/* SEC03 BRAND
------------------------------------------------------------*/
.col4 .img{
	margin: 0 auto;
}



/* SEC04 PROJECT
------------------------------------------------------------*/
#sec04{
	padding-bottom: 0 !important;
}

.article{
	clear: both;
	overflow: hidden;
	padding-bottom: 50px;
}

.article img{
	float: left;
	margin: 5px 20px 20px;
}

.article p{
	margin-bottom: 20px;
}



/* SEC05 COMPANY
------------------------------------------------------------*/
#sec05 p{
	margin-bottom: 5px;
}

.col2 li{
	display: inline-block;
	width: 100%;
  margin: 20px 0;
}

#map{
	position: relative;
	padding-bottom: 75%;
	height: 0;
	overflow: hidden;
	z-index: 0;
}

#map iframe{
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	border: 0;
}



/* RESPONSIVE 設定
------------------------------------------------------------*/

@media only screen and (min-width: 800px){
	body{
		font-size:14px;
	}
	
	#wrapper{
		width: 100%;
	}
	
	#content{
		width: 80%;
	}
	
	#sidebar{
		width: 12%;
		position: fixed;
		top: 0;
		right: 4%;
		background: #000;
	}
	
  a#menu{
		display:none;
	}	

	.panel{
		display:block !important;
	}
	
	#sidebar h1{
		padding: 30px 0;
	}

	#mainnav li{
		font-size: 14px;
		padding: 10px 0;
	}
	
	#sns{
		margin-top: 50px;
	}
	
	#sns li{
		display: inline-block;
		padding-right: 10px;
	}

	#sns a:hover img{
		opacity: .8;
	}
	
	/* SEC03 BRAND
	-----------------*/
	.col4{
		text-align: center;
	}

	.col4 li{
		display: inline-block;
		width: 18%;
		padding: 0 3%;
		vertical-align: top;
		text-align: left;
	}
	
	#map iframe{
		height: 200px !important;
  }
	
  #footer{
		padding: 30px 10px 70px 0;
	}
}


@media only screen and (min-width: 641px){
	.col2 li{
		width: 60%;
		vertical-align: top;
	}
	.col2 li:first-child{
		width: 35%;
		padding-right: 4%;
	}
}

@media only screen and (max-width: 640px){
	.innerS{
		width: 94%;
		padding-bottom: 30px;
	}
	#gallery li{
		float: none;
		width: 100%;
	}
	.article img{
		float: none;
		display: block;
		margin: 0 auto 20px;
	}
	#map iframe{
		width: 96% !important;
		left: 2%;
	}
}

@media only screen and (max-width: 799px){
	#sidebar{
		position: fixed;
		width: 100%;
		z-index:500;
	}
	
	#sidebarWrap{
		position: relative;
		width: 100%;
		height: 60px;
		background: #000;
		border-bottom: 1px solid #333;
	}
	
	#sidebar h1{
		text-align: center;
		padding-top: 15px;
	}
	
	#sidebar h1 img{
		width: auto !important;
		max-height: 25px;
	}
	
  a#menu{
  	display: inline-block;
  	position: relative;
  	width: 40px;
  	height: 40px;
  	margin: 10px;
	}

	#menuBtn{
  	display: block;
  	position: absolute;
  	top: 50%;
  	left: 50%;
  	width: 18px;
  	height: 2px;
  	margin: -1px 0 0 -7px;
  	background: #fff;
  	transition: .2s;
	}

	#menuBtn:before, #menuBtn:after{
  	display: block;
  	content: "";
  	position: absolute;
  	top: 50%;
  	left: 0;
  	width: 18px;
  	height: 2px;
  	background: #fff;
  	transition: .3s;
	}

	#menuBtn:before{
  	margin-top: -7px;
	}

	#menuBtn:after{
  	margin-top: 5px;
	}

	a#menu .close{
  	background: transparent;
	}

	a#menu .close:before, a#menu .close:after{
  	margin-top: 0;
	}

	a#menu .close:before{
  	transform: rotate(-45deg);
  	-webkit-transform: rotate(-45deg);
	}

	a#menu .close:after{
  	transform: rotate(-135deg);
  	-webkit-transform: rotate(-135deg);
	}

	.panel{
		width: 100%;
		display: none;
		overflow: hidden;
		position: relative;
		left: 0;
		top: -10px;
		z-index: 100;
	}

	#mainnav{
		position: absolute;
		top: 0;
		width: 100%;
		text-align: right;
	}

	#mainnav ul{
		border-bottom: 1px solid #ccc;
		background: #000;
		text-align: left;
	}

	#mainnav li a{
		position: relative;
		display: block;
		padding: 15px 25px;
		border-bottom: 1px solid #ccc;
		color: #fff;
		font-weight: 400;
	}
	#mainnav li a:before{
		display: block;
		content: "";
		position: absolute;
		top: 50%;
		left: 5px;
		width: 6px;
		height: 6px;
		margin: -4px 0 0 0;
		border-top: solid 2px #fff;
		border-right: solid 2px #fff;
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg);
	}
	#mainnav #sns li{
		display: inline-block;
	}
	#mainnav #sns li a{
		position: relative;
		display: inline-block;
		padding: 15px 10px 0;
		border: 0;
	}
	#mainnav #sns li a:before{
		border: 0;
	}
	.col4 li{
		margin: 0 auto 50px;
		display: block;
		text-align: center;
	}
	section h2{
		margin: 55px auto;
	}
}

#loading{
	transition: all 1s;
	background-color: #ddd;
	position: fixed;
	z-index: 9999;
	inset: 0;
	display: grid;
	place-items: center;
}
.spinner{
	width: 200px;
	height: 200px;
}
.loaded{
	opacity: 0;
	visibility: hidden;
}

/* --------- クイズアプリのスタイル ---------- */

/* ニックネーム入力画面のスタイル */
#nickname-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#nickname-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    min-width: 400px;
    max-width: 500px;
}

#nickname-form h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

#nickname-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#nickname-input {
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 5px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    min-width: 320px;
}

#nickname-input:focus {
    border-color: #007bff;
}

#nickname-btn {
    padding: 12px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#nickname-btn:hover {
    background-color: #0056b3;
}

#nickname-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
}

/* スタート画面のスタイル */
#start-screen {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

#start-screen h1 {
    font-size: clamp(24px, 4vw, 36px);
    color: #007bff;
    margin-bottom: 20px;
    font-weight: bold;
}

#welcome-message {
    font-size: clamp(18px, 3vw, 24px);
    color: #28a745;
    font-weight: bold;
    margin-bottom: 20px;
}

#start-screen h2 {
    font-size: clamp(20px, 3vw, 28px);
    color: #fff;
    margin-bottom: 30px;
}

#start-screen p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: #fff;
    line-height: 1.6;
    margin-bottom: 40px;
}

#start-btn {
    padding: 20px 40px;
    font-size: clamp(18px, 3vw, 24px);
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#start-btn:hover {
    background-color: #218838;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* ページ中央に画像を表示するためのスタイル */
#wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #1a1a1a;
}

#content {
    text-align: center;
    max-width: 100%;
}

#sec02 {
    margin: 0;
}

#gallery-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

#question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    min-width: 300px;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 問題ヘッダー部分 */
.question-header {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#question-id {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: bold;
    color: #4cc9f0;
    padding: 5px 15px;
    background-color: rgba(76, 201, 240, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* 問題文表示エリア */
.question-content {
    width: 100%;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
}

.question-content::before {
    content: "問題";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #4cc9f0;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 100px;
}

.question-display {
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answer-input-area {
    margin-top: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.answer-input-area::before {
    content: "回答";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #28a745;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 100px;
}

@media (min-width: 600px) {
    .answer-input-area {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    #answer-input {
        margin-bottom: 0;
    }
}

#submit-btn {
    padding: 15px 25px;
    font-size: clamp(16px, 2.5vw, 20px);
    background-color: #4cc9f0;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#submit-btn:hover {
    background-color: #3da8c5;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

#answer-input {
    padding: 15px 20px;
    font-size: clamp(16px, 2.5vw, 18px);
    border: 2px solid #444;
    border-radius: 10px;
    background-color: #222;
    color: white;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#answer-input:focus {
    outline: none;
    border-color: #4cc9f0;
    background-color: #333;
    box-shadow: 0 0 8px rgba(76, 201, 240, 0.5), inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

#answer-input:disabled {
    background-color: #555;
    color: #888;
    border-color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

#submit-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#submit-btn:disabled:hover {
    background-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* 結果エリア */
.result-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#next-btn {
    padding: 15px 25px;
    font-size: clamp(16px, 2.5vw, 20px);
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#next-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

#result-message {
    padding: 15px;
    border-radius: 10px;
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: bold;
    text-align: center;
    min-height: 20px;
    width: 100%;
    box-sizing: border-box;
}

#timer-display {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: bold;
    color: #28a745;
    padding: 10px 15px;
    background-color: rgba(248, 249, 250, 0.95);
    border-radius: 8px;
    border: 2px solid #28a745;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.correct {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    animation: fadeIn 0.5s;
    box-shadow: 0 4px 8px rgba(21, 87, 36, 0.1);
}

.incorrect {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    animation: fadeIn 0.5s;
    box-shadow: 0 4px 8px rgba(114, 28, 36, 0.1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 結果画面のスタイル */
#result-screen {
    text-align: center;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
}

#result-screen h1 {
    font-size: clamp(28px, 5vw, 42px);
    color: #fff;
    margin-bottom: 20px;
    font-weight: bold;
}

#result-nickname {
    font-size: clamp(18px, 3vw, 24px);
    color: #fff;
    font-weight: bold;
    margin-bottom: 30px;
}

#result-summary {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
}

#result-summary p {
    color: #fff;
}

#result-score {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
}

#result-score strong {
    color: #fff;
}

#result-score.excellent {
    color: #28a745 !important;
}

#result-score.excellent strong {
    color: #28a745 !important;
}

#result-score.good {
    color: #ffc107 !important;
}

#result-score.good strong {
    color: #ffc107 !important;
}

#result-score.average {
    color: #fd7e14 !important;
}

#result-score.average strong {
    color: #fd7e14 !important;
}

#result-score.poor {
    color: #fff !important;
}

#result-score.poor strong {
    color: #fff !important;
}

#restart-btn {
    padding: 20px 40px;
    font-size: clamp(18px, 3vw, 24px);
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#restart-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.ranking-link {
    display: inline-block;
    background-color: #f72585;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: clamp(16px, 2.5vw, 20px);
    cursor: pointer;
    margin-top: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.ranking-link:hover {
    background-color: #b5179e;
    box-shadow: 0 6px 20px rgba(247, 37, 133, 0.4);
}

/* スマートフォン向けの調整 */
@media (max-width: 768px) {
    #gallery-container {
        flex-direction: column;
        gap: 20px;
    }
    
    #question-container {
        align-items: center;
        width: 100%;
    }
    
    #wrapper {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    #answer-input {
        font-size: 16px;
        min-width: 280px;
    }
    
    #submit-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    #timer-display {
        top: 10px;
        right: 10px;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    #start-screen {
        padding: 20px;
    }
    
    #start-btn {
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* 問題文の下に表示する補助文章のスタイル */
.question-hint {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.5;
    color: #aaa;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    font-style: italic;
    text-align: center;
}

/* 用語説明エリア */
.term-explanation {
    margin-top: 20px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.6;
}

.term-explanation p {
    margin: 0;
    font-weight: 300;
}

.term-explanation::before {
    content: "ℹ️ 用語説明";
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #4CAF50;
    font-size: 13px;
}