@charset "utf-8";


/* =Display options (ルビ表示切替) ============================= */
html.no-ruby rt,
html.no-ruby rp { display: none; }

/* ルビ非表示時は line-height をルビ前提の値から通常値に戻す */
html.no-ruby .definition .definition-contents-inner,
html.no-ruby .definition .usage {
  line-height: 1.80em;
}
html.no-ruby .content .example {
  margin-bottom: 6px;
}

#display-options {
  display: flex;
  justify-content: flex-end;
  padding: 6px 16px 10px;
}
#display-options #ruby-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #115da6;
  padding: 2px 9px;
  margin: 0;
  cursor: pointer;
  color: #115da6;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
#display-options #ruby-toggle svg {
  width: 17px;
  height: 17px;
  vertical-align: top;
  position: relative;
  top: 0px;
}
#display-options #ruby-toggle .ruby-toggle-label {
  display: inline-block;
  vertical-align: middle;
}

/* ダークモード切替ボタン（ルビ切替ボタンと同じ見た目） */
#display-options #dark-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #115da6;
  padding: 2px 9px;
  margin: 0 0 0 8px;
  cursor: pointer;
  color: #115da6;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
#display-options #dark-toggle:hover { opacity: 0.7; }
#display-options #dark-toggle .dark-toggle-icon {
  display: inline-flex;
  align-items: center;
}
#display-options #dark-toggle .dark-toggle-icon svg {
  width: 15px;
  height: 15px;
  vertical-align: top;
}
#display-options #dark-toggle .dark-toggle-label {
  display: inline-block;
  vertical-align: middle;
}


/* =PDF ダウンロードボタン (見出しページ) ======================= */
.pdf-download {
  width: 693px;             /* nav#main-menu ul と同じ幅 */
  max-width: 100%;
  margin: 12px auto 0;
  padding: 0 8px 0 0;       /* 「このサイトは」(最後の li) の右端に合わせるためのオフセット */
  text-align: right;
  line-height: 1;
}
.pdf-download .pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #115da6;
  padding: 2px 9px;
  margin: 0 0 0 8px;
  cursor: pointer;
  color: #115da6;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
.pdf-download .pdf-btn:hover { opacity: 0.7; }
.pdf-download .pdf-btn i {
  font-size: 17px;
  line-height: 1;
}

@media only screen and (max-width: 959px) {
  .pdf-download {
    width: auto;
    padding: 0 15%;          /* nav#main-menu の左右マージン (15%) と同じ */
  }
}
@media only screen and (max-width: 640px) {
  .pdf-download {
    padding: 0 7.5%;         /* nav#main-menu の左右マージン (7.5%) と同じ */
  }
}


/* =Reset default browser CSS.
Based on work by Eric Meyer: http://meyerweb.com/eric/tools/css/reset/index.html
-------------------------------------------------------------- */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table.table, caption, tbody, tfoot, thead, tr, th, td {border: 0;font-family: inherit;font-size: 100%;font-style: inherit;font-weight: inherit;margin: 0;outline: 0;padding: 0;vertical-align: baseline;}
:focus {outline: 0;}

ol, ul {list-style: none;}
table.table {border-collapse: separate;border-spacing: 0;}
caption, th, td {font-weight: normal;text-align: left;}
blockquote:before, blockquote:after,q:before, q:after {content: "";}
blockquote, q {quotes: "" "";}
a img{border: 0;}
figure{margin:0}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}
/* -------------------------------------------------------------- */

body {
margin: 0;
padding: 0;
color:#333;
font-size:small;
font-family:"Noto Sans JP", Sans-Serif;
line-height:1.5;
background:#ededed;
}
* {
    box-sizing: border-box;
}

/* リンク設定
------------------------------------------------------------*/
a{color:#fff;text-decoration:none;}
a:active, a:focus {outline:0;}


/* 全体
------------------------------------------------------------*/
#wrapper{
margin:0 auto;
padding:0;
width:100%;
height: 100%;
min-height:100vh;
position:relative;
background:#fff;
border-left: 1px solid #e8e8e8;
border-right: 1px solid #e8e8e8;
border-bottom: 1px solid #e8e8e8;
}

.inner{
margin:0 auto;
width:100%;
}

.content {
margin: 12px 0 40px;
}
.content input {
	font-size: 14px;
	font-family: 'Noto Sans JP', sans-serif;
	margin: 10px 10px 5px 0;
	padding: 5px;
	border:2px solid #c3e2fc;
}
.content #index-buttons {
	width:480px;
	display:flex;
	margin: 0 auto;
}
.content button {
    color: white;
    width: 70px;
    font-size: 90%;
    font-family: "Noto Sans JP", Sans-Serif;
    font-weight: 400;
    padding: 4px 10px;
    background-color: #036eb8;
    border: 1px solid #036eb8;
    cursor: pointer;
    margin-left: 6px;
}
.content button.index {
    color: #036eb8;
    font-weight: 600;
    width: 35px;
    background-color: white;
}
.content button.active {
    color: white;
    background-color: #036eb8;
}
.content button.disabled {
    color: #9dcff1;
    background-color: white;
    border: 1px solid #9dcff1;
	cursor: default;
}
.content .section {
    width: 70%;
    font-size: 110%;
    margin: 8px auto;
    line-height: 2.0em;
    padding: 10px 5px;
    margin-bottom: 30px;
}
.content .section.index {
	border-left: 9px solid #cad5ff;
    border-right: 9px solid #cad5ff;
}
.content .section p {
	margin: 0;
	font-size: 14px;
	line-height: 2.0em;
}
.content .section .subsection {
	margin: 15px 0 5px;
	font-size: 15px;
	font-weight: 600;
}
.content .section .subsection:before{
	font-family: "FontAwesome";
	content: '\f1b2';
	font-weight: 400;
	margin-right: 0.5em;
	color:#0461a1;
	display: inline-block;
}
.content .section ul li {
	margin-left: 1.5em;
	font-size: 13px;
}
.content .section p {
	font-size: 13px;
	/* margin-left: 1.5em; */
	line-height: 1.8em;
}
.connection-table-wrapper {
	overflow-x: auto;
	margin-top: 20px;
	margin-bottom: 30px;
}
.connection-table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid #999;
	font-size: 13px;
	line-height: 1.8em;
}
.connection-table th,
.connection-table td {
	border: 1px solid #999;
	padding: 8px 10px;
	vertical-align: top;
}
.connection-table th {
	background: #eef3ff;
	font-weight: 700;
}
.connection-table td:first-child {
	font-weight: 700;
	white-space: nowrap;
}
.connection-examples p {
	margin-top: 10px !important;
	margin-bottom: 20px !important;
	font-size: 13px;
	line-height: 1.8em !important;
}
.connection-example-line {
	display: inline-block;
	background: #f3f3f3;
	padding: 2px 8px;
	font-size: 13px;
	margin: 8px 0;
}
.content .example {
margin-bottom: 10px;
letter-spacing: 0.06em;
text-indent: -1.00em;    /* 1文字分左にずらす */
padding-left: 1.00em;    /* 1文字分の余白を左に作る */
}

/* 例文の音声再生アイコン（headwords_with_audio/ で bullet の代わりに表示） */
i.audio-icon {
  color: #6da611;
  cursor: pointer;
  margin-left: 0.5em;    /* 既存 bullet より少し右に配置 */
  margin-right: 0.75em;  /* アイコンと例文本文の間隔を広めに */
  font-size: inherit;
  vertical-align: baseline;
  position: relative;
  top: -0.1em;
  text-indent: 0;
  display: inline-block;
  transition: color 0.15s, transform 0.15s;
}
i.audio-icon:hover {
  color: #4e7a08;
  transform: scale(1.15);
}
i.audio-icon:focus { outline: none; color: #4e7a08; }
i.audio-icon:focus-visible {
  outline: 1px dotted #6da611;
  outline-offset: 2px;
}
i.audio-icon.playing {
  color: #4e7a08;
  animation: audioPulse 1.0s ease-in-out infinite;
}
i.audio-icon.error {
  color: #c0392b;
  animation: none;
}
@keyframes audioPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@media print {
  i.audio-icon::before { content: "" !important; }
  i.audio-icon {
    background: #6da611 !important;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    margin-left: 0.5em;
    margin-right: 0.75em;
    animation: none !important;
  }
}
/********************************/
.content h1 {
    text-align: center;
    color: #0461a1;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 10px;
}
.content h1 .total-count {
    font-size: 70%;
    font-weight: 400;
}
.content h1 .level-stars {
    color: #8fc31f;
}
.content h1 rt {
	font-weight: 300;
	font-size: 65%;
	position: relative;
	top: -0.20em;
	transform: translateY(-.5em);
}
.content .example-label {
	font-size: 90%;
    border: 1px solid gray;
    padding: 0 4px 1px;
    border-radius: 3px;
    font-weight: 600;
}
.definition .sense-number {
padding: 1px 6px;
border: 1px solid black;
background-color: #424242;
font-weight: 600;
font-size: 115%;
color: white;
scroll-margin-top: 10px;
}
.definition .category {
font-size: 115%;
font-weight: 600;
}
.definition .category rt {
	font-weight: 300;
	font-size: 70%;
	position: relative;
	top: -0.1em;
	transform: translateY(-.5em);
}
.definition .level {
font-size: 120%;
color:#8fc31f;
}
.definition .category.single-sense,
.definition .level.single-sense {
position: relative;
left: -12px;
}
.definition .definition-contents {
margin-top: 0.5em;
margin-left: 0.2em;
padding-left: 1.1em;
padding-top: 0.8em;
padding-bottom: 0.3em;
border-left: 6px solid #acd6ff;
position: relative;
}
.definition .definition-contents::before,
.definition .definition-contents::after {
  content: "";
  position: absolute;
  left: 0;
  width: 6px;
  border-top: 4px solid #acd6ff;
}
.definition .definition-contents::before {
  top: 0;
}
.definition .definition-contents::after {
  bottom: 0;
  border-top: none;
  width: 6px;
  border-bottom: 5px solid #acd6ff;
}
.definition .definition-contents-inner {
margin-bottom: 0.8em;
line-height: 3.00em;
}
.definition .definition-contents-inner rt {
position: relative;
top: -0.4em;
font-size: 0.8em;
}
.definition .definition-contents-inner a {
	color: #333;
	padding-bottom: 0.1em;
	border-bottom: 0.2em dotted #333;
}
.definition .definition-label {
font-size: 95%;
font-weight: 600;
letter-spacing: 0.07em;
border: 1px solid gray;
padding: 3px 7px;
border-radius: 3px;
margin-right: 0.7em;
}
.definition .usage {
padding: 6px 10px;
font-weight: 600;
border: 1px dotted black;
background-color: aliceblue;
line-height: 3.00em;
}
.definition .usage rt {
position: relative;
top: -0.4em;
font-size: 0.8em;
}
.example-section {
  margin-left: 1.70em;
}
.connection-type-div {
font-size: 100%;
padding-bottom: 3px;
border-bottom: 3px solid #8FC31F;
margin-top: 30px;
margin-bottom: 15px;
}
.connection-type .label {
font-size: 100%;
font-weight:600;
padding: 7px 15px 7px 10px;
}
.connection-type {
font-weight: 600;
font-size: 115%;
line-height: 2.40em;
}
.connection-symbol-tooltip {
  position: relative;
  display: inline;
  cursor: help;
  border-bottom: 3px dotted #8fc31f;
}
.connection-symbol-popup {
  display: block;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #424242;
  color: #fff;
  padding: 10px 14px;
  border-radius: 4px;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  width: max-content;
  max-width: min(560px, 90vw);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  border-bottom: none;
  transition: opacity 0.15s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.connection-symbol-popup::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #424242;
}
.connection-symbol-popup-block {
  display: block;
}
.connection-symbol-popup-block + .connection-symbol-popup-block {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #6a6a6a;
}
.connection-symbol-popup-title {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.connection-symbol-popup-example {
  display: block;
  font-size: 80%;
  font-weight: 400;
  white-space: pre-wrap;
}
.connection-symbol-tooltip:hover .connection-symbol-popup,
.connection-symbol-tooltip:focus .connection-symbol-popup,
.connection-symbol-tooltip:focus-within .connection-symbol-popup {
  opacity: 1;
}
.pos {
	padding: 0px 7px 1px;
    border: 1px solid #333;
    background: #333;
    color: white;
    font-weight: 600;
    margin-left: 2px;
    font-size: 85%;
    position: relative;
    top: -1px;
    border-radius: 5px;
}
/********************************/

h1 a {
color: #0461a173;
}
h1 i.right {
font-size:80%;
}
.content #error {
	display: none;
	font-size: 13px;
	color: red;
}
.content .result-wrapper {
width: 70%;
margin: 10px auto;
}
.result-wrapper #noun-note {
	color:#6d6d6d;
	margin-bottom:10px;
	font-weight:600;
}
.result-wrapper #hit-count {
color:#6d6d6d;
margin-left: auto;
margin-bottom:10px;
font-weight:600;
}
.result-wrapper #results {
	width: 100%;
}
.result-wrapper .headword {
	letter-spacing: 0.08em;
}
.result-wrapper .headword rt {
	font-size: 70%;
	position: relative;
	top: -0.3em;
}
.result-wrapper .noun {
	font-size: 90%;
	color: white;
	background-color: #696969;
	padding: 1px 6px;
	margin-left: 0.25em;
	border-radius: 5px;
}
.result-wrapper .count {
	font-size: 70%;
	color: white;
	background-color: #115da6;
	padding: 2px 5px;
	margin-left: 1.00em;
	border-radius: 5px;
}
.result-wrapper .paging-control {
    color:#115da6;
    font-size:18px;
    text-align:center;
    margin-top:20px;
    margin-bottom:20px;
    font-weight:600;
}
.paging-control .current-page,
.paging-control .total-pages {
    position:relative;
    top:-3px;
}
.paging-control .slash {
    margin: 0 3px;
    position:relative;
    top:-3px;
}
.paging-control .fa-solid {
    font-size:26px;
    cursor:pointer;	
}

fieldset {
    border: solid 1px #0056ac;
    margin: 15px 5px;
    position: relative;
}
legend {
    color: white;
    font-size: 80%;
    font-weight: 600;
    margin-left: 10px;
    padding: 2px 10px;
    background: #0056ac;
    line-height: 2.0em;
}
f
#results{
border-collapse: collapse;
border-spacing: 0;
width: 100%;
}
#results tr{
border: solid 1px #c3e2fc;
cursor: pointer;
}
#results td{
color:#115da6;
padding: 10px;
font-size: 15px;
font-weight: bold;
letter-spacing: 0.06em;
}
#results td:hover {
background-color:#f5faff;
}
#results .category {
font-size: 90%;
font-weight: 400;
margin-left: 1.0em;
}
#results .sense-number {
	font-size: 80%;
	color: white;
	background-color: #115DA6;
	padding: 0px 5px 1px;
	margin-left: 0.5em;
}
#results .level {
	font-size: 95%;
	color:#8fc31f;
}
.definition {
    font-size:14px;
    margin-top:20px;
    margin-bottom:40px;
    }
.section .definition:last-child{
margin-bottom:0;
} 
.section .definition:last-child .examples{
padding-bottom:0;
}
    .definition rt {
    font-weight:300;
    position: relative;
    top: -.1em;
    font-size: 70%;
    transform: translateY(-.5em);
    }
    /* iOS Safari (WebKit) はデスクトップ Chromium 系ブラウザよりルビと親字の縦間隔を広めに取るため、
       PC で詰めるために加えた rt の上方シフトを WebKit 系でのみ無効化する */
    @supports (-webkit-touch-callout: none) {
      .content h1 rt,
      .definition .category rt,
      .definition .definition-contents-inner rt,
      .definition .usage rt,
      .result-wrapper .headword rt,
      .definition rt {
        top: 0;
        transform: none;
      }
    }
    .definition .definition-number {
    padding: 2px 7px;
    color:white;
    font-weight: 600;
    background-color: #115da6;
    margin-right: 1.0em;
    }
	.definition .additional-info {
	border:1px solid #c6c6c6;
	padding:10px 15px;
	padding-bottom:10px;
	}
    .definition .small {
    font-size:90%;
	line-height:2.80em;
    }
    .definition .examples {
    margin-bottom:15px;
    padding-bottom:15px;
    }
    .examples .label {
    background-color:#115da6;
    }
    .usage div {
	font-size:100%;
	letter-spacing:0.03em;
	margin-left:1.0em;
	line-height:2.8em;
	margin-bottom:0.30em;
	padding-left: 0.5em;
	text-indent: -0.5em;
    }
    .usage .fas {
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    position:relative;
    top:-0.1em;
    margin-right:0.50em;
    }
    
    .bullet {
    background-color:#6da611;
    width: 0.5em;
    height: 0.5em;
    display: inline-block;
    border-radius: 50%;
    position:relative;
    top:-0.1em;
    margin-right:0.30em;
    }

#header{
height:80px;
text-align: center;
}
.title{
width: 100%;
padding-top: 21px;
}
.title img{
width:auto;
}
.title span{display:block;}

i.fa-solid.left,
i.fas.left  {
margin-right:0.5em;
}
i.fa-solid.right {
margin-left:0.5em;
cursor:pointer;
}
	
.link-button {
	display: block;
	text-align: center;
	font-size:13px;
	width:160px;
	height:30px;
	line-height: 30px;
	color: #fff;
	background-color: #8ac43c;
	cursor: pointer;
}
.big-button-wrapper {
    padding: 0px 0 30px;
    text-align: center;
}
.big-button {
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 0.05em;
    background-color: #7ba81a;
    padding: 10px 30px;
    color: white;
    text-align: center;
    cursor: pointer;
    line-height: 66px;
}

#footer{
position: absolute;
bottom: 0;
text-align: center;
width: 95%;
height:2.5em;
}

@media only screen and (min-width: 960px){
  nav#main-menu{
	padding:0;
	clear:both;
	overflow:hidden;
	position:relative;
	background-color: white;
    border-top: 3px dotted #a0c1e3;
    border-bottom: 3px dotted #a0c1e3;
	}

    nav#main-menu ul {
    padding-left:0;
    margin:auto;
    width:693px;
    }

	nav#main-menu ul li{
	float: left;
	margin: 10px 0 10px 10px;
	position: relative;
	cursor: pointer;
	}

	nav#main-menu ul li.active .right{
	display:none;
	}

    nav#menu-items{
    height: 48px;
    }

	nav#main-menu li.last{border-right:1px solid #ebebeb;}

	nav#main-menu ul li{
	display: block;
	text-align: center;
	font-size:13px;
	width:127px;
	line-height: 28px;
	color: #fff;
	background-color: #115da6;
	}

	nav#main-menu ul li a span,nav#main-menu ul li a strong{
	display:block;
	}

	nav#main-menu ul li a span{
	color:#006699;
	font-size:10px;
	}

	nav div#menu-items{
	display:block !important;
	float:left;
	width: 100%;
	}

	a#menu{display:none;}

	nav#main-menu li.active{
	background-color:#7ba81a;
	}
	
	#mainBanner{margin-left:15px;}
	#subpage #mainBanner{margin:15px auto;}

	#wrapper,.inner{
	width:960px;
	padding:0;
	}
	
	#wrapper{padding-bottom:20px;}
	
	#main{
	float:right;
	width:717px;
	padding-right:15px;
	}
	
	#sidebar{
	float:left;
	width:195px;
	padding:15px 0 0 15px;
	overflow:hidden;
	}
	
	#sidebar article{
	padding:7px;
	margin-bottom:20px;
	border:1px solid #ebebeb;
	overflow:hidden;
	}
	
	/* グリッド全体 */
	.gridWrapper{
	width:960px;
	margin:0 0 0 -10px;
	}
	
	#gallery article{padding:10px 0 10px 10px;}
	
	/* グリッド */
	.grid{
	float:left;
	width:300px;
	margin-left:20px;
	}
	
	#subpage .grid{width:auto;}
	
  #gallery .grid{
	width:auto;
	margin:10px 0 2px 10px;
	}
}


@media only screen and (max-width:959px){
	*{
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
         -o-box-sizing: border-box;
        -ms-box-sizing: border-box;
            box-sizing: border-box;
	}
	
	nav#main-menu{
	clear:both;
	margin:0 15%;
	padding:0;
	background-color: #fff;
    border:3px solid #c3e2fc;
	}

	#display-options{
	margin:0 15%;
	padding:6px 0 10px;
	}

	nav#main-menu a.menu{
	width:100%;
    display:block;
	height:36px;
	font-size:14px;
	line-height:36px;
	font-weight: bold;
	text-align:left;
	color:#036EB8;
    background-color:#c3e2fc;
	}

	nav#main-menu a#menu span{padding-left:10px;}
	nav#main-menu a#menu:hover{cursor:pointer;}

	nav #menu-items{
	display:block;
	width:100%;
	position:relative;
	right:0;
	top:0;
	z-index:1;
	}

	nav#main-menu ul li{
	float: none;
	clear:both;
	width:100%;
	line-height:1.0em;
	padding: 10px 10px;
	color:#036EB8;
	font-weight:600; 
    border-bottom: 1px dotted#abe3fc;
    letter-spacing: 0.05em;
	}

	nav#main-menu ul li a,nav#main-menu ul li.current-menu-item li a{
	display: block;
	font-size:14px;
	padding:15px 10px 15px 1.5em;
	text-align:left;
	}
	
	nav#main-menu ul li a span{padding-left:10px;}
	
	nav#main-menu ul li.active a{background-color:#c3e2fc;}

	nav div#menu-items{float:none;}
	
	#subpage #mainBanner{max-width:720px;}
	
	#sidebar article{padding:7px 8px;}
	
	ul.footnav li{float:none;display:inline-block;}
	
	.grid{
	width:32%;
	margin:10px 0 0 1%;
	}
	
	#gallery .grid{
	float:left;
	width:31%;
	margin:0 0 0 1%;
	}
}


/* スマートフォン 横(ランドスケープ) */
@media only screen and (max-width:640px){
	#header{
	height:80px;
	}
	
	#header h1,.logo,.info{text-align:center;}

	nav#main-menu{margin:0 7.5%;}

	#display-options{margin:0 7.5%;}

	.content .section{width: 85%;}

	.content .result-wrapper {
	width: 85%;
	margin: 10px auto;
	}

    #footer {
    font-size:90%;
    position: relative;
    width: 100%;
    height: auto;
    margin-top: 1em;
    padding: 0.6em 14px 0.8em;
    line-height: 1.7em;
    }

	.logo,.info{
	clear:both;
	width:100%;
	float:none;
	}
	
	.logo p{float:none;display:block;}
	.logo img{float:none;padding:0;}
	
	.box img{
	max-width:180px;
	float:left;
	margin-right:5px;
	}
	
	.box h3{padding-top:0;}

  .alignleft,.alignright{
	float:none;
	display:block;
	margin:0 auto 10px;
	}
	
	#gallery .grid{float:left;}
    .link-button {display:none;}

	.content #index-buttons {
		width: auto;
		max-width: 240px;
		flex-direction: column;
		align-items: center;
	}
	.content #index-buttons > div {
		width: 240px !important;
	}

	.content .section #searchString {
		display: block;
		width: 100%;
		max-width: 100%;
		margin: 10px 0 5px 0;
	}
}


/* スマートフォン 縦(ポートレート) */
@media only screen and (max-width:480px){
	.grid{width:100%;}
	.box img{max-width:100px;}
	#mainBanner h2,#mainBanner p{font-size:80%;}
}


/* =Dark mode ==================================================
   html.dark-mode を付与すると暗色配色に切り替わる。
   既存のハードコード色を上書きする方式（配色は結果を見て調整可）。
-------------------------------------------------------------- */
html.dark-mode { color-scheme: dark; }

html.dark-mode body {
  background: #161616;
  color: #d6d6d6;
}
html.dark-mode body,
html.dark-mode #wrapper,
html.dark-mode nav#main-menu {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* 全体レイアウト */
html.dark-mode #wrapper {
  background: #242424;
  border-color: #3a3a3a;
}

/* ロゴ: ダーク時はライト用 <img> を透明化し、.title の背景として
   ダーク版ロゴ(白文字＋緑BB)を表示する。CSS 基準で URL 解決されるため
   全ページ共通で効き、.dark-mode は描画前に付与されるためチラつかない。 */
html.dark-mode #header .title {
  background-image: url(../images/title-dark.svg);
  background-repeat: no-repeat;
  background-position: center 21px;   /* .title の padding-top:21px に合わせる */
}
html.dark-mode #header .title img {
  opacity: 0;
}
html.dark-mode nav#main-menu {
  background-color: #242424;
  border-top-color: #2f4d6b;
  border-bottom-color: #2f4d6b;
}
@media only screen and (max-width:959px){
  html.dark-mode nav#main-menu { border-color: #2f4d6b; }
  html.dark-mode nav#main-menu a.menu {
    color: #cfe6ff;
    background-color: #163049;
  }
  html.dark-mode nav#main-menu ul li { border-bottom-color: #2f4d6b; }
  html.dark-mode nav#main-menu ul li.active a { background-color: #163049; }
}

/* 表示オプションバー / トグルボタン */
html.dark-mode #display-options #ruby-toggle,
html.dark-mode #display-options #dark-toggle,
html.dark-mode .pdf-download .pdf-btn {
  color: #6cb6ff;
  border-color: #6cb6ff;
}

/* 見出し・セクション */
html.dark-mode .content h1,
html.dark-mode .content h1 a { color: #ffffff; }
html.dark-mode h1 a { color: #6cb6ffb0; }
html.dark-mode .content .section.index {
  border-left-color: #274a6b;
  border-right-color: #274a6b;
}
html.dark-mode .content .section .subsection:before { color: #6cb6ff; }

/* インデックス（五十音）ボタン */
html.dark-mode .content button.index {
  color: #6cb6ff;
  background-color: #242424;
  border-color: #274a6b;
}
html.dark-mode .content button.active {
  color: #fff;
  background-color: #036eb8;
}
html.dark-mode .content button.disabled {
  color: #4a6f92;
  background-color: #242424;
  border-color: #33506e;
}

/* 入力欄 */
html.dark-mode .content input {
  background: #2b2b2b;
  color: #d6d6d6;
  border-color: #274a6b;
}
html.dark-mode .content #error { color: #ff6b6b; }

/* 定義ブロック */
html.dark-mode .definition .definition-contents { border-left-color: #3f6f9c; }
html.dark-mode .definition .definition-contents::before { border-top-color: #3f6f9c; }
html.dark-mode .definition .definition-contents::after { border-bottom-color: #3f6f9c; }
html.dark-mode .definition .definition-contents-inner a {
  color: #cfe3ff;
  border-bottom-color: #5a7ea3;
}
html.dark-mode .definition .usage {
  background-color: #16283a;
  border-color: #5a7ea3;
  color: #e2e2e2;
}
html.dark-mode .definition .definition-label { border-color: #888; }
html.dark-mode .definition .additional-info { border-color: #444; }
html.dark-mode .content .example-label { border-color: #888; }

/* 意味分類ブラケット等の黒系インラインSVG（presentation 属性を CSS で上書き） */
html.dark-mode .definition .category svg { stroke: #c9c9c9; }
html.dark-mode .definition .category svg rect { fill: #c9c9c9; }

/* 接続表 */
html.dark-mode .connection-table { border-color: #555; }
html.dark-mode .connection-table th,
html.dark-mode .connection-table td { border-color: #555; }
html.dark-mode .connection-table th { background: #22344a; }
html.dark-mode .connection-example-line { background: #2b2b2b; }

/* 検索・一覧結果テーブル */
html.dark-mode #results tr { border-color: #2f4d6b; }
html.dark-mode #results td { color: #ffffff; }
html.dark-mode #results td:hover { background-color: #1e2a38; }
html.dark-mode .result-wrapper #noun-note,
html.dark-mode .result-wrapper #hit-count { color: #a5a5a5; }

/* fieldset / legend はもともと濃い青なのでそのまま */
html.dark-mode fieldset { border-color: #2f4d6b; }

/* リンク（本文中の点線リンクなど）で黒指定のもの */
html.dark-mode a { color: inherit; }

/* 「このサイト」等でインライン指定された青リンク(#0066cc)を白に上書き
   （インライン style を上回るため !important。内包アイコンも currentColor で白になる） */
html.dark-mode a[style*="#0066cc"] { color: #ffffff !important; }

/* ツールチップは元から暗色のため据え置き */
