@charset "UTF-8";

html {
	scroll-behavior: smooth;
}
body {
	font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
	display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
    margin: 0;
	--blue1: #3366cc;
	--blue2: #c2d1f0;
	--blue3: #ebf0fa;
	--f24: clamp(0.75rem, -0.115rem + 1.85vw, 1.5rem);
	--f22: clamp(0.688rem, -0.106rem + 1.69vw, 1.375rem);
	--f20: clamp(0.625rem, -0.096rem + 1.54vw, 1.25rem);
	--f18: clamp(0.625rem, 0.048rem + 1.23vw, 1.125rem);
	--f16: clamp(0.625rem, 0.192rem + 0.92vw, 1rem);
}
main {
	flex: 1;
}
a:link,
a:visited {
	color: #333;
}
.txt_right {
	text-align: right;
}
.txt_center {
	text-align: center;
}
.f_narrow {
	letter-spacing: -0.4em;
}
.link_arrow {
    position: relative;
    display: inline-block;
    padding-left: 1.8em;
    line-height: 1.7;
}

.link_arrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.4em;
    height: 1.4em;
    border-radius: 5px;
    background: var(--blue1);
}

.link_arrow::after {
    content: "";
    position: absolute;
    left: 0.4em;
    top: 0.5em;
    width: 0.35em;
    height: 0.35em;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}
.link_arrow:hover {
	text-decoration: none;
}
ol li {
	margin: 0.5em 0;
}
ol.brackets_num {
	list-style: none;
}
ol.brackets_num > li {
	margin: 0.5em 0;
	text-indent: -2.6em;
	margin-left: 2.6em;
}
dl.indent_3 dt {
	float: left;
	margin: 0;
}
dl.indent_3 dd {
	margin: 0 0 1em 3.5em !important;
}
dl.indent_4 dt {
	float: left;
	margin: 0;
}
dl.indent_4 dd {
	margin: 0 0 1em 4.5em !important;
}
dl.indent_5 dt {
	float: left;
	margin: 0;
}
dl.indent_5 dd {
	margin: 0 0 1em 5.5em !important;
}
dl.indent_7 dt {
	float: left;
	margin: 0;
}
dl.indent_7 dd {
	margin: 0 0 1em 7.5em !important;
}
dl.indent_12 dt {
	float: left;
	margin: 0;
}
dl.indent_12 dd {
	margin: 0 0 1em 12.5em !important;
}
.example_tbl {
	border: none;
}
.example_tbl * {
	border: none;
}
h1 {
	margin-bottom: 1.5em;
	color: var(--blue1);
	font-weight: bold;
	background:linear-gradient(transparent 60%, var(--blue3) 60%);
}
h3 {
	position: relative;
	color: var(--blue1);
	font-weight: bold;
	margin-left: 0;
    padding-left: 1.5em;
}
h3::before {
	position: absolute;
	top: 0.2em;
	left: 0;
	display: inline-block;
	content: "";
	width: 1em;
	height: 1em;
	background: var(--blue1);
}
h3.no_mark {
	padding-left: 0;
}
h3.no_mark::before {
	content: none;
}
h4 {
	font-weight: bold;
}
header {
	background: var(--blue1);
	color: #fff;
}
header nav {
	background: var(--blue2);
	color: #333;
}
header nav ul {
	list-style: none;
	marign: 0;
}
header nav ul li {
	margin: 0;
	text-align: center;
}
header nav ul li a {
	padding: 3px 1.5em;
	border-radius: 10px;
	text-decoration: none;
}
header nav ul li a:hover {
	background: #fff;
	color: var(--blue1);
	transition: .3s;
}
header nav ul li.cu a {
	background: #fff;
	color: var(--blue1);
}
footer {
	background: var(--blue1);
	color: #fff;
}
footer a {
	text-decoration: none;
	color: #fff;
}
.error_msg {
	margin-bottom: 3em;
	padding: 0.5em 1.5em;
	background: #fff4f5;
	color: red;
}
.tab {
	width: 48.5%;
	border-radius: 10px 10px 0 0;
}
.tab-wrapper{
   display: flex;
   justify-content: space-between;
}
.tab:not(:last-of-type) {
   margin: 0;
}
input[name="tab-radio"] {
   display: none;
}
.tab-label-heading {
	margin: 0;
}
.tab-label {
	display: block;
	padding: 0.41em 0;
	border-radius: 10px;
	background: #e6e6e6;
	text-align: center;
	font-weight: bold;
	color: #333;
	cursor: pointer;
}
.tab-label-heading.selected .tab-label {
	padding: 0.74em 0;
	border-radius: 10px 10px 0 0;
	background-color: transparent;
	text-align: center;
	font-weight: bold;
	color: var(--blue1);
}
.tab-panel{
	padding: 1.5%;
	border-radius: 0 10px 10px 10px;
}
.tab-panel > div{
   display: flex;
   height: 100%;
   align-items: center;
}
.panel-ryakugo{
   display: none;
}
input[type="text"],
select {
	padding: 10px 0;
	border-radius: 10px;
}
.cond_group {
	flex-wrap: wrap;
}
.cond_group input[type="text"],
.cond_group select,
.cond_group p {
	margin-right: 1.5em;
}
.search_btn {
	background: var(--blue1);
	color: #fff;
	border: none;
	border-radius: 10px;
	cursor: pointer;
}
.search_btn:hover {
	opacity: 0.8;
	transition: .3s;
}
.clear_btn {
	background: #cccccc;
	border: none;
	border-radius: 10px;
	cursor: pointer;
}
.clear_btn:hover {
	opacity: 0.8;
	transition: .3s;
}
.cond_group input[type="radio"] {
	margin-top: 0;
}
.cond_group input[type="radio"] + label {
	margin-right: 1em;
	cursor: pointer;
}

/* --- search_result ----------------------------*/
#search_result .pagenation_info {
	font-weight: bold;
}
#search_result .hit_count span {
	color: var(--blue1);
}
#search_result .pagenation {
	display: flex;
	justify-content: left;
	align-items: center;
	gap: 25px;
}
#search_result .pagenation * {
	color: #808080;
}
#search_result .pagenation_info a {
	text-decoration: none;
}
#search_result .pagenation_info .current {
	border-bottom: 3px solid var(--blue1);
	color: var(--blue1);
}
#search_result .result_tbl,
#search_result .result_tbl th,
#search_result .result_tbl td {
	border-color: #fff;
}
#search_result .result_tbl {
	border-collapse: separate;
}
#search_result .result_tbl th {
	width: 33.33%;
	color: #fff;
	font-weight: bold;
	text-align: center;
}
#search_result .result_tbl th:nth-child(1) {
	background: #ffa400;
}
#search_result .result_tbl th:nth-child(2) {
	background: #e07e8e;
}
#search_result .result_tbl th:nth-child(3) {
	background: #646464;
}
#search_result .result_tbl td {
	background: var(--blue3);
}
#search_result .back_btn {
	display: inline-block;
	margin: 3em 0 2em;
	padding: 1em 3em;
	border-radius: 10px;
	background: #646464;
	text-decoration: none;
	color: #fff;
}
#search_result .back_btn:hover {
	opacity: 0.8;
	transition: .3s;
}

#search_input #opinions .opinions_btn {
	display: inline-block;
	margin: 1em 0;
	padding: 0.5em 0;
	border-radius: 10px;
	background: var(--blue1);
	text-decoration: none;
	color: #fff;
	text-align: center;
}

#search_input #opinions .opinions_btn:hover {
	opacity: 0.8;
	transition: .3s;
}

/* --- hanrei -----------------------------------*/
#hanrei .note_block {
	margin: 1.5em 0;
	padding: 1.5em 2em;
	border: 2px solid var(--blue2);
}
#hanrei .note_block.fit_box {
	width: fit-content;
}
#hanrei .note_block > *:first-child {
	margin-top: 0;
}
#hanrei ol li ol {
	margin-left: 0;
}
#hanrei dl dd {
	margin-top: 1em;
}
#hanrei ol li dl dt,
#hanrei ol li dl dd {
	text-indent: 0;
}
#hanrei .age_tbl {
	margin: 1.5em 0;
}
#hanrei ol li dl ol {
	margin-left: 2.5em;
}
#hanrei .age_tbl td,
#hanrei .kigou_tbl td {
	border-color: #ccc;
}
#hanrei .kigou_tbl td table,
#hanrei .kigou_tbl td table td {
	border: none;
}
#hanrei .kigou_tbl > tbody > tr > td:first-child:not(:last-child) {
	width: 4em;
}

/* --- yougo_list -------------------------------*/
#yougo_list .alphabet_index {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	list-style: none;
	margin: 0 auto;
}
#yougo_list .alphabet_index li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	aspect-ratio: 1 / 1;
	background: var(--blue3);
	border-radius: 10px;
	text-decoration: none;
	font-weight: bold;
}
#yougo_list .alphabet_index li a:hover {
	background: var(--blue1);
	color: #fff;
	transition: .3s;
}

/* --- ryakugo -------------------------------*/
.ryakugo_tbl,
.ryakugo_tbl td {
	border-color: #ccc;
}
.ryakugo_tbl td:nth-child(1) {
	font-weight: bold;
}


/*--------------------------------------------------------------------
 *	737px未満用（SP用）の記述
 *--------------------------------------------------------------------*/
@media screen and (max-width: 736px) {

	.wrap {
		margin: 0 4.6%;
	}
	p,
	select,
	label,
	button,
	input,
	ul,
	ol,
	dl {
		font-size: 3.2vw;
	}
	h1 {
		font-size: 3.46vw;
	}
	h3 {
		font-size: 2.9vw;
	}
	h4 {
		font-size: 2.66vw;
	}
	header .logo_block {
		display: flex;
		align-items: center;
		margin-left: 6.66%;
		padding: 1.6% 0;
	}
	header .logo_block #logo {
		display: inline-block;
		width: 19%;
		margin-right: 2.4%;
	}
	header .logo_block #title {
		display: inline-block;
		width: 27.7%;
	}
	header nav ul {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		margin: 0 1.46%;
		font-size: 3.2vw;
	}
	header nav ul li {
		width: 49%;
		padding: 6px 0;
	}
	header nav ul li:nth-child(2n) {
		margin-left: 1.46%;
	}
	header nav ul li a {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
		padding: 3px 0;
		border-radius: 99px;
	}
	footer #copyright {
		padding: 1em 0;
		text-align: right;
		font-size: 2.13vw;
	}
	footer #pagetop {
		position: fixed;
		right: 4.4vw;
		bottom: 11.46vw;
		width: 9vw;
        aspect-ratio: 1 / 1;
	}
	main {
		padding-bottom: 14.6%;
	}
	main form {
		position: relative;
		aspect-ratio: 686 / 342;
		margin-top: 4.93%;
	}
	main form::before {
		position: absolute;
		top: 0;
		left: 0;
		z-index: -1;
		display: block;
		content: "";
		width: 100%;
		aspect-ratio: 686 / 342;
		filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.4));
		background: url('../images/search_box_bg1.svg') no-repeat left center/cover;
		transform: translateZ(0);
		border-radius: 10px;
		opacity: 0;
    	visibility: hidden;
	}
	main form:has(.panel-yougo.selected)::before {
		background: url('../images/search_box_bg1.svg') no-repeat left center/cover;
		opacity: 1;
    	visibility: visible;
	}
	main form:has(.panel-ryakugo.selected)::before {
		background: url('../images/search_box_bg2.svg') no-repeat left center/cover;
		opacity: 1;
    	visibility: visible;
	}
	.tab-panel {
		padding: 0;
	}
	.tab-panel > div {
		display: block;
		height: auto;
	}
	.cond_group {
		margin: 6.74% 4% 0;
	}
	.cond_group > div {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 0.7em
	}
	.cond_group input[type="text"] {
		width: 68%;
		margin: 0;
		padding: 5px;
		box-sizing: border-box;
	}
	.cond_group select {
		width: 26.16%;
		margin: 0;
		padding: 5px 0;
	}
	.cond_group p {
		display: inline-block;
	}
	.tab-label {
		padding: 0.3em 0 0.2em;
		font-size: 3.46vw;
		line-height: 1.5;
	}
	.tab-label-heading.selected .tab-label {
		padding: 0.3em 0 0.5em;
	}
	.exe_buttons {
		display: inline-flex !important;
		gap: 1em;
	}
	.search_btn {
		width: min(22vw, 166px);
        height: 2.5em;
        border-radius: 7px;
	}
	.clear_btn {
		width: min(22vw, 166px);
        height: 2.5em;
        border-radius: 7px;
	}
	.search_target {
		justify-content: left !important;
		margin-top: 0.5em;
	}
	.search_target input[type="radio"] {
		margin: 0 0.2em 0 0;
	}
	.cond_group input[type="radio"] + label {
		margin-right: 0.5em;
		font-size: 2.8vw;
	}
	.opinions_btn {
		width: min(22vw, 166px);
        border-radius: 7px;
	}
	
	/* --- search_result ----------------------------*/
	.hit_count,
	.pagenation * {
		font-size: 3.2vw;
	}
	#search_result .pagenation {
		gap: 3.33vw;
	}
	#search_result .pagenation .pg_number {
		min-width: 4%;
		text-align: center;
	}
	#search_result .pagenation_info .current {
		border-bottom: 2px solid var(--blue1);
	}
	#search_result .sp_scroll {
		overflow-x: scroll;
	}
	#search_result .sp_scroll::-webkit-scrollbar {
		height: 10px;
	}
	#search_result .sp_scroll::-webkit-scrollbar-thumb {
		background: var(--blue1);
	  	border-radius: 20px;
	}
	#search_result .sp_scroll::-webkit-scrollbar-track {
		background: #e6e6e6;
		border-radius: 20px;
	}
	#search_result .result_tbl {
		width: 120vw;
		margin-top: 4%;
		margin-bottom: 0;
		font-size: min(3.46vw, 13px);
	}
	
	/* --- hanrei -----------------------------------*/
	#hanrei main .wrap > ol {
		margin-left: 1.2em;
	}
	#hanrei main ol li ol {
		margin-left: 1.3em !important;
	}
	#hanrei .example_tbl td:nth-child(1) {
		min-width: 3.7em;
	}
	#hanrei .kigou_tbl td:first-child:not(:last-child) {
		width: 4.5em;
	}
	#hanrei ol.brackets_num > li {
		margin-left: 1em;
	}
	#hanrei main dl dd {
		margin-left: 0;
	}
	#hanrei .note_block {
		padding: 1em;
	}
	#hanrei .note_block * {
		margin-left: 0;
		text-indent: 0;
	}
	#hanrei table * {
		font-size: 3.2vw;
	}
	#hanrei .example_tbl .col2 {
		width: 4em;
	}
	#hanrei .example_tbl .kana {
		width: 5.5em;
	}
	#hanrei .example_tbl .nowrap {
		white-space: nowrap;
	}
	#hanrei .example_tbl .w3 {
		width: 2.3em;
        min-width: auto !important;
	}
	#hanrei .sp_indent2 {
		margin-left: 2.5em !important;
		
	}
	
	/* --- yougo_list -------------------------------*/
	#yougo_list .alphabet_index {
		gap: 1em;
	}
	#yougo_list .alphabet_index li {
		width: 17%;
	}
	#yougo_list .alphabet_index li a {
		width: 100%;
		font-size: 4vw;
	}
	
	/* --- ryakugo -------------------------------*/
	.ryakugo_tbl td:nth-child(1) {
		width: 20%;
	}
	.ryakugo_tbl td:nth-child(2),
	.ryakugo_tbl td:nth-child(3) {
		width: 40%;
		word-break: break-word;
	}

/* 737px未満用（SP用）の記述 end -------------------------------------*/
}



/*--------------------------------------------------------------------
 *	737px以上用（PC用）の記述
 *--------------------------------------------------------------------*/
@media screen and (min-width: 737px), print {

p,
select,
label,
button,
input,
ul,
ol,
dl {
	font-size: var(--f16);
}
.visible-sp {
	display: none !important;
}
.wrap {
	max-width: 1200px;
	margin: 0 auto;
}
header .logo_block {
	display: flex;
	align-items: center;
	max-width: 1250px;
	margin: 0 auto;
	padding: 14px 0;
}
header .logo_block #logo {
	margin-right: min(22px, 1.57vw);
}
header nav {
	padding: 11px 0;
}
header nav ul {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	font-size: 16px;
}
header nav ul li:nth-child(n+1) {
	margin-left: 1em;
}
main {
	padding-bottom: min(105px, 7.5vw);
}
main .wrap {
	padding: 0 20px;
}
footer #copyright {
	margin: 0;
	padding: 1em 0;
	text-align: right;
	font-size: var(--f16);
}
footer .wrap {
	position: relative;
}
footer #pagetop {
	position: absolute;
	right: 0;
	bottom: calc(100% + min(28px, 2vw));
}
h1 {
	font-size: var(--f24);
}
h2 {
	font-size: var(--f24);
}
h3 {
	font-size: var(--f20);
}
h4 {
	font-size: var(--f18);
}
main form {
	position: relative;
	margin-top: 45px;
}
main form::before {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	display: block;
	content: "";
	width: 100%;
	aspect-ratio: 1200 / 220;
	filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.2));
	border-radius: 10px;
}
main form:has(.panel-yougo.selected)::before {
	background: url('../images/search_box_bg1_pc.svg') no-repeat left center/cover;
	transition: .2s;
}
main form:has(.panel-ryakugo.selected)::before {
	background: url('../images/search_box_bg2_pc.svg') no-repeat left center/cover;
	transition: .2s;
}
.tab-panel {
	padding: 2.9% 0;
}
.cond_group {
	max-width: 1002px;
	width: 85%;
	margin: 0 auto;
}
.cond_group > div {
	display: flex;
	align-items: center;
}
.cond_group input[type="text"] {
	width: 25.3vw;
    max-width: 355px;
	margin-right: 1.5em;
	padding: 10px 5px;
	box-sizing: border-box;
}
.cond_group select {
	width: 11.7vw;
    max-width: 164px;
	margin-right: 1.5em;
}
.cond_group p {
	margin-right: 1.5em;
}
.tab-label {
	font-size: var(--f22);
}
.exe_buttons {
	gap: 1.5em;
}
.search_btn {
	width: 10.625em;
	height: min(3.2em, 44px);
}
.clear_btn {
	width: 10.625em;
	height: min(3.2em, 44px);
}
.opinions_btn {
	width: 10.625em;
}
.search_target {
	margin-top: 1em;
}
.hit_count,
.pagenation {
	font-size: var(--f20);
}
table th {
	font-size: var(--f22);
}
table td {
	font-size: var(--f16);
}

/* --- search_result ----------------------------*/
#search_result .pagenation_info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: var(--f20);
}
#search_result .pagenation_info .pg_number {
	width: 32px;
	text-align: center;
}
#search_result .pagenation .f_narrow:last-of-type {
	margin-left: -10px;
    margin-right: 10px;
}
#search_result .result_tbl {
	margin-top: 1.2em;
}
#search_result .result_tbl td {
	padding: 10px;
}

/* --- hanrei -----------------------------------*/
#hanrei .age_tbl {
	margin: 1.5em 0;
}
#hanrei .age_tbl td:nth-child(1) {
	width: 25%;
}
#hanrei .example_tbl.indent_2 {
	margin-left: 2em;
}
#hanrei .note_block * {
	margin-left: 0;
	text-indent: 0;
}
#hanrei #kana_matome {
	margin-left: 7em;
}
#hanrei #kana_matome td:nth-child(1) {
	min-width: 11em;
}
#hanrei #kana_matome td.col2 {
	min-width: 10em;
}
#hanrei #kana_matome td.kana {
	min-width: 7em;
}


/* --- yougo_list -------------------------------*/
#yougo_list .alphabet_index {
	margin-top: 40px;
}
#yougo_list .alphabet_index li a {
	font-size: var(--f20);
}

/* 737px以上用（PC用）の記述 end -------------------------------------*/
}
