@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;800&display=swap');
* { 
	margin: 0px;
	padding: 0px;
	font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}
body {
	font-size: 75%;
}
html>body {
  font-size: 12px; 
}
body {
	color: #333333; 
}
h1,h2,h3,h4,h5,h6,strong,b {
	font-weight:bold;
}
ul, dl {
}
.clear {
	clear:both;
}
.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
.clearfix {
	display: inline-block;
	min-height: 1%;  
}
* html .clearfix {
	height: 1%;
}
.clearfix {
	display: block;
}
img {
	border:0px;
	margin: 0px;
	padding: 0px;
}
.hide {
	display:none;
}
a {
	text-decoration:underline;
	color: #1f527e;
}
a:hover {
	color: #ee9700;
}
.left {
	float:left;
}
.right {
	float:right;
}
li {
	list-style:none;
}
body {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/body-bg_01.jpg) 0 0 repeat-x;
}
#wrapper {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/bg-bottom_01.jpg) bottom repeat-x;
}
#headBox {
	padding-top:7px;
	padding-bottom:25px;
	width:808px;
        
    margin: 0 auto;     
}
#headL {
	width:400px;
}
#headR {
	width:380px;
}
#headR ul {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/nav-top-bg_02.jpg) 0 0 repeat-x;
	float:right;
}
#headBox #site_title {
	color:#003473;
	font-size:24px;
	padding-top:20px;
	font-weight:bold;
}
#site_title {
	width:400px;
	line-height:130%;
	text-decoration:none;
}
#site_title a {
	color:#003473;
	text-decoration:none;
}
#site_title a:hover {
	color:#003473;
	text-decoration:none;
}
#headR ul li {
	float:left;
}
#headR ul li.head-nav-li {
	padding:15px 16px 0 16px;
}
#lead {
	color:#f48c06;
	font-size:12px;
	font-weight:bold;
	padding-bottom:30px;
	width:808px;
       
    margin: 0 auto;      
	line-height:150%;
}
 
 #nav { display: block; margin: 0; padding: 0; position: relative; }
  #nav li { display: block; list-style: none; margin: 0; padding: 0; float: left; position: relative; }
  #nav a { display: block; }
  #nav ul { display: none; position: absolute; left: 0; margin: 0; padding: 0; }
  * html #nav ul { line-height: 0; } 
  	#nav ul a { zoom: 1; } 
    #nav ul li { float: none;}
    #nav ul ul { top: 0; }
    
#nav ul {
	width:180px;
}
#nav ul ul {
	left:181px;
}
 
#nav { 
    background:url(https://assets.toriaez.jp/thp2/pc/images/39/nav-main-bg_01.jpg) top repeat-x;
	height:42px;
   
	z-index:50;
	padding-bottom:13px;
      
    text-align: center;      
}
#navIn {
	height:42px;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/nav-main-bar_01.jpg) 0px 2px no-repeat;
}
#nav *:hover { 
    background-color: none; 
}
ul#nav li {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/nav-main-bar_01.jpg) right 2px no-repeat;
    display: inline-block;  
    float: none;     
}
	
#nav a { 
	color:#ffffff; 
	font-size:12px; 
	padding:11px 25px 18px 25px;
	line-height:1;
    text-decoration:none; 
}
#nav li.hover a {
	color:#000000;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ico_02.jpg) 13px 13px no-repeat #f79f35;
}
#nav li.hover a.nav-top { 
    color:#000000;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/nav-main-bg_02.jpg) top repeat-x;
}
#nav ul { 
    top:38px; 
}
#nav ul li a { 
    background:url(https://assets.toriaez.jp/thp2/pc/images/39/ico_04.jpg) 13px 13px no-repeat #14264a;
	color:#ffffff;
	padding:8px 8px 5px 25px;
	font-size: 1em;
	line-height:130%;
	display:block;
}
ul#nav li ul li a.hover { 
	text-decoration:underline;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ico_03.jpg) 13px 13px no-repeat #fa7b18;
}
#nav ul a { 
    margin-top:1px;
    margin-bottom:1px;
	opacity: 0.9; 
	filter: alpha(opacity=90); 
	display:block;
	zoom: 1;
	line-height: 1;
}
		
#contents-bg-top {
	width:808px;
	       
    margin: 0 auto;      
}
#main {
    background:url(https://assets.toriaez.jp/thp2/pc/images/39/contents-bg_02.png) 0 0px repeat-y;
	width:808px;
       
    margin: 0 auto;      
}
#mainIn {
	width:763px;
	margin:0 auto;
	padding:21px 0 6px 0;
}
#mainIn2 {
	width:765px;
	padding:13px 0 6px 13px;
}
#mainIn3 {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/side-bar-bg_02.jpg) 0px 0 repeat-y;
}
#mainIn4 {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/side-bar-bg_01.jpg) left top no-repeat;
}
#mainIn5 {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/side-bar-bg_03.jpg) left bottom no-repeat;
}
#mainR {
    width:553px;
	padding-top:2px;
}
#top-main-area {
	padding-bottom:40px;
}
#main_image {
	width:365px;
	float:left;
}
#main_image img {
    width: 365px;
}
#topics1 {
	float:right;
	width:363px;
}
#topics1 h3 {		
	padding-bottom:20px;
}
#topics1 table {
	width:340px;
	border-collapse:collapse;
	margin-left:6px;
}
#topics1 #topicsIn {
	max-height:140px;
	overflow:auto;
}
#topics1 table th,#topics1 table td {
	vertical-align:top;
	text-align:left;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/lin_01.jpg) repeat-x bottom;
	padding:9px 0 12px 0;
	line-height:130%;
}
#topics1 table td.topics_date {
	width:80px;
	color:#8f8f8f;
	font-family:Arial, Helvetica, sans-serif;
}
#topics1 table td.topics_entry span{
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ico_01.jpg) 0 0 no-repeat;
	padding:1px 10px 2px 22px;
	display:block;
}
.topics_date a, .topics_entry a {
	font-weight:bold;
}
#topics2 {
	width:763px;
	padding-bottom:40px;
}
#topics2 h3 {		
	padding-bottom:20px;
}
#topics2 table {
	width:740px;
	border-collapse:collapse;
	margin-left:3px;
}
#topics2 #topicsIn {
	max-height:140px;
	overflow:auto;
}
#topics2 table th,#topics2 table td {
	vertical-align:top;
	text-align:left;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/lin_01.jpg) repeat-x bottom;
	padding:9px 0 12px 0;
	line-height:130%;
}
#topics2 table td.topics_date {
	padding-left:10px;
	width:60px;
	color:#8f8f8f;	
}
#topics2 table td.topics_entry span{
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ico_01.jpg) 0 0 no-repeat;
	padding:1px 0 2px 22px;
	display:block;
	margin-left:20px;
}
.topics_date a, .topics_entry a {
	font-weight:bold;
}
.mainSlideIn {
	box-sizing:content-box;
	box-sizing:inherit;
	width:763px;
	padding:0px 0 1px;
	margin-top: 0px;
	margin-bottom: -30px;
}
.bx-wrapper {
  margin-bottom:40px !important;
	height:319px !important;
}
#mainSlide{
	margin:0;
}
#mainSlide li {
	height:319px !important;
	width:763px;
	position:relative;
	background:rgba(0,0,0,0.2);
	overflow:hidden;
}
#mainSlide li img {
	position:absolute;
	left:0;
	width:763px;
	height:auto;
}
.bx-wrapper .bx-pager.bx-default-pager a {
	background: #ccc;
	text-indent: -9999px;
	display: block;
	width: 7px;
	height: 7px;
	margin: 0 7.5px;
	outline: 0;
	cursor:pointer;
	border-radius:7px;
}
.bx-wrapper .bx-pager.bx-default-pager a:hover {
	background: #fa7816;
	opacity:1;
}
.bx-wrapper .bx-pager.bx-default-pager a.active {
	background: #fa7816;
	opacity:1;
}
.bx-wrapper .bx-pager {
    bottom: -20px!important;
}
.bx-wrapper .bx-controls-direction a {
	width:42px;
	height:42px;
	margin:0;
	top:138px;
	cursor:pointer;
}
.bx-wrapper .bx-prev {
background:url(https://assets.toriaez.jp/thp2/pc/images/39/btn-slider_001.png) 16px center no-repeat,
-moz-linear-gradient(
top,
#f5a73b 0%,
#fa7816);
background:url(https://assets.toriaez.jp/thp2/pc/images/39/btn-slider_001.png) 16px center no-repeat,
-webkit-gradient(
linear, left top, left bottom,
from(#f5a73b),
to(#fa7816));
left:-42px;
}
.bx-wrapper .bx-prev:hover {
opacity:0.8;
}
.bx-wrapper .bx-next {
background:url(https://assets.toriaez.jp/thp2/pc/images/39/btn-slider_002.png) 16px center no-repeat,
-moz-linear-gradient(
top,
#f5a73b 0%,
#fa7816);
background:url(https://assets.toriaez.jp/thp2/pc/images/39/btn-slider_002.png) 16px center no-repeat,
-webkit-gradient(
linear, left top, left bottom,
from(#f5a73b),
to(#fa7816));
right:-42px;
}
.bx-wrapper .bx-next:hover {
opacity:0.8;
}
#cont_title {
	color:#f2822e;
	font-size:18px;
	font-weight:bold;
	padding:9px 0 9px 15px; 
	margin:16px 0 30px 0;
	border-left:6px solid #f2822e;
	line-height:130%;
}
#cont_title2 {
	color:#f2822e;
	font-size:18px;
	font-weight:bold;
	padding:9px 0 9px 15px; 
	margin:0px 0 15px 0;
	border-left:6px solid #f2822e;
	line-height:130%;
}
#sidebar {
    width:195px;
}
#sidebarIn {
    padding:5px 9px 20px 8px;
}
#sidebar h4 {
	font-weight:bold;
	font-size:14px;
	color:#ffffff;
	margin:15px 0 20px 3px;
	padding:6px 0 6px 15px;
	line-height:130%;
	border-left:4px solid #ffffff;
}
	
#sidebar ul {
	margin:0;
}
#sidebar ul li {
    margin:0;
	list-style:none;
	font-size:12px;
	width:174px;
	padding:0px 0 2px 0;
	
}
#sidebar ul li a {
	width:144px;
	display:block;
	color:#000;
	text-decoration:none;
	padding:6px 10px 7px 20px;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/nav-side_01_off.jpg) 0px 0px no-repeat #e6e7e9;
	border:1px solid #d4d4d4;
	line-height:130%;
}
#sidebar ul li a:hover {
	color:#000;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/nav-side_01_on.jpg) 0px 0px no-repeat #fa7816;
	border:1px solid #fca23f;
}
.box {
	width:753px;
	padding-bottom:40px;
	margin:0 auto;
}
.box .boxIn {
	width:730px;
	margin:0 auto;
}
.box .box_title {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ttl-box-bg_02.jpg) 0 0 repeat-y;
	margin-bottom:17px;
}
.box .box_titleIn {
	padding:7px 10px 5px 9px;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ttl-box-bg_01.jpg) 0 0 no-repeat;
}
.box .box_title h3 {
	color:#FFFFFF;
	font-size:1.175em;
	line-height:130%;
	padding:0px 0px 0px 17px;
	border-left:3px solid #ffb600;
}
.box .box_entry1 {
	width:510px;
	float:left;
	line-height:150%;
	font-size:1em;
}
.box_image {
	width:200px;
	float:right;
}
.box_image div {
	padding-bottom:10px;
}
.box_image span {
	padding-top:4px;
	display:block;
	font-size:0.85em;
	line-height:130%;
	color:#737373;
}
.box .box_entry2 {
	line-height:150%;
	font-size:1em;
}
.box .box_entry2 span {
	line-height:150%;
}
.box2 {
	width:553px;
	padding-bottom:40px;
}
.boxIn2 {
	width:533px;
	margin:0 auto;
}
.box_title2 {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ttl-box-bg_05.jpg) 0 0 repeat-y;
	margin-bottom:17px;
}
.box_titleIn2 {
	padding:7px 10px 5px 9px;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/ttl-box-bg_04.jpg) 0 0 no-repeat;
}
.box_title2 h3 {
	color:#FFFFFF;
	font-size:1.175em;
	line-height:130%;
	padding:0px 0px 0px 17px;
	border-left:3px solid #ffb600;
}
.box_entry3 {
	width:320px;
	float:left;
	line-height:150%;
	font-size:1em;
}
.box_entry4 {
	line-height:150%;
	font-size:1em;
}
#pagetop {
	text-align:right;
	padding:20px 0px 5px 0;
}
#contents-bottom {
	width:800px;
	margin:0 auto;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/contents-bottom-bg_01.jpg) 0 0 repeat-x #233c62;
	padding:12px 0 16px 0;
	border-bottom:1px solid #6e7b91;
}
#contents-bottomIn {
	width:765px;
	margin:0 auto;
}
#blog_info {
	width:199px;
	float:left;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/bg-bar_01.jpg) right repeat-y;
	padding-right:21px;
	padding-bottom:5px;
}
#blog_titleBox {
	width:200px;
}
#blog_info_title {
	float:left;
}
#blog_btn {
	float:right;
	padding-top:6px;
}
#blog {
	width:198px;
	margin:0;
	padding-top:10px;
	color:#949ca9;
}
#blog ul {
	margin:0;
	list-style-type:none;
}
#blog ul li {
	line-height:130%;
	padding-bottom:3px;
	font-size:1em;
	color:#949ca9;
	font-weight:normal;
}
#blog ul li a {
	color:#d5d5d5;
}
#blog ul li a:hover {
	color:#f59428;
}
#QRbox {
	width:275px;
	float:left;
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/bg-bar_01.jpg) right repeat-y;
	padding-right:21px;
	padding-bottom:5px;
}
#QR-left {
	width:142px;
	float:left;
	padding:0px 0px 0px 16px;
}
#QR-left h4 {
	padding-bottom:9px;
}
p.QR_description {
	color:#c6c6c6;
	line-height:130%;
	font-size:11px;
}
#QR_code {
	padding-top:5px;
	width:100px;
	float:right;
}
#inquiry {
	width:195px;
	float:left;
	padding:27px 0 0 21px;
}
#foot {
	background:url(https://assets.toriaez.jp/thp2/pc/images/39/bg-footer_01.jpg) left top repeat-x;
	height:16px;
	padding:17px 0 16px 0;
        
    width: 100%;     
}
#copyright {
       
    text-align: center;      
        
    width: 808px;        
    margin: 0 auto;      
	color:#656565;
	font-size:12px;
}
#form01 table, #map01 table, #profile01 table {
	table-layout: fixed;
	width:550px;
	text-align:left;
	border-collapse: collapse;
	margin:0 0 5px 0px;
	background-color:#fbfef2;
}
#form01 th, #map01 th, #profile01 th {	
	width:130px;	
	border:1px solid #b8b8b8;
	background-color:#ededef;
	font-size: 1em;
	font-weight: normal;
	text-align: center;
	padding: 0.3em;
	color:#000;
}
#form01 td, #map01 td, #profile01 td {
	line-height:150%;
	border:1px solid #b8b8b8;
	padding: 0.3em 0.7em 0.3em 0.7em;
}
#frame {
	margin:0 0 20px 0px;
}
#map01 #frame iframe{
	width:560px;
	height:374px;
}
#profile01 #lead_s{
	line-height:150%;
	margin:0 0 15px 0px;
	font-size:1em;
}
#form01 #lead_s{
	line-height:150%;
	margin:0 0 15px 0px;
	font-size:1em;
}
.validation-advice {
	margin-top: 3px;
	padding-left: 11px;
	color: #cc0000;
}
.warning {
	line-height :150%;
	padding-left:25px;
}
.w_mark {
	color: #333333;
}
.validation_span,.warning span{
	padding-left:2px;
	color:#f59428;
}
.thaks {
	line-height: 150%;
	padding :0 16px 40px 0;
}
#side-area{
}
#foot-area{
   margin:24px 0 24px;
}
#lead_area #cover img {
  width: 365px;
}
#site_image img {
  width: 365px;
}
.site_image img{
  width: 365px;
}
 
 .article_box table {
 	border-collapse:collapse;
 	border:1px #ccc solid;
 }
 .article_box table th,
 .article_box table td {
 	border:1px #ccc solid;
 	padding:1em;
 }
 .article_box table th {
 	text-align:center;
 	background-color:#eee;
 }
.box_image img,
.box_pic1img,
.box_pic2 img,
.box_pic3 img,
.box_pic4 img,
.box_img img,
.entryContent_R div img,
.entryImgbox img,
.box-image img,
.article-img img,
.article-figure img,
.article_figure	img {
	width:200px;
}
#map th, #profile th , .map th, .profile th {
width: 20%;
}
#map td, #profile td , .map td, .profile td {
word-break:break-all;
}
#side-area img{
	max-width: 100%;
}
#foot-area img{
	max-width: 100%;
}
.box ul,
.box1 ul,
.box2 ul,
.box3 ul,
.articleBox ul,
.entry_box ul,
.entryBox ul,
.article-box ul,
.article ul,
.article_box ul{
    list-style-type: disc;
}
.box ol,
.box1 ol,
.box2 ol,
.box3 ol,
.articleBox ol,
.entry_box ol,
.entryBox ol,
.article-box ol,
.article ol,
.article_box ol {
    list-style-type: decimal;
}
.box ul,
.box1 ul,
.box2 ul,
.box3 ul,
.articleBox ul,
.entry_box ul,
.entryBox ul,
.article-box ul,
.article ul,
.article_box ul,
.box ol,
.box1 ol,
.box2 ol,
.box3 ol,
.articleBox ol,
.entry_box ol,
.entryBox ol,
.article-box ol,
.article ol,
.article_box ol {
    margin-left: 18px;
}
.box table {
    border-collapse: collapse;
}
.box table th, .box table td {
    border: #ccc 1px solid;
    padding: 5px;
}
#side-area table,.side-area table,
#foot-area table,.foot-area table{
    border-collapse: collapse;
}
#side-area table th,.side-area table th, 
#side-area table td,.side-area table td,
#foot-area table th,.foot-area table th,
#foot-area table td,.foot-area table td
{
    border: #ccc 1px solid;
    padding: 5px;
}
.article_box img {
    max-width: 100%;
}
.box_entry1 img,.box_entry2 img {
    max-width: 100%;
}
.entryText img,.entryTextBox img,.box-entry1 img,.box-entry2 img,.article-txt img,.article-entry img,.entry-box img {
    max-width: 100%;
}
/* =========================================
   B-STADY ブラッシュアップ用 追加CSS v1
   ※既存CSSの一番下に貼り付けてください
========================================= */

:root {
  --brand: #003473;
  --brand-2: #1f527e;
  --accent: #f2822e;
  --accent-2: #f6a23a;
  --text: #2b2f36;
  --muted: #64748b;
  --bg: #f5f7fb;
  --line: #e5e7eb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Yu Gothic", "游ゴシック体",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.8;
  color: var(--text);
  background: linear-gradient(
    180deg,
    #eef5ff 0%,
    #ffffff 240px,
    #f5f7fb 100%
  ) !important;
  -webkit-text-size-adjust: 100%;
}

#wrapper {
  background: none !important;
}

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

a {
  color: var(--brand-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease,
    transform 0.2s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(242, 130, 46, 0.35);
  outline-offset: 3px;
}

/* 共通幅 */
#headBox,
#lead,
#contents-bg-top,
#main,
#contents-bottom,
#copyright {
  width: 808px;
  max-width: calc(100% - 32px);
  margin-left: auto;
  margin-right: auto;
}

/* ヘッダー */
#headBox {
  padding: 22px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#headL,
#headR {
  float: none !important;
}

#headL {
  width: auto !important;
  flex: 1 1 auto;
}

#headR {
  width: auto !important;
  flex: 0 0 auto;
}

#headBox #site_title,
#site_title {
  width: auto !important;
  padding-top: 0 !important;
  color: var(--brand);
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

#site_title a {
  color: var(--brand);
}

#headR ul {
  float: none !important;
  background: none !important;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

#headR ul li {
  float: none !important;
}

#headR ul li.head-nav-li {
  padding: 0 !important;
}

#headR ul li a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(0, 52, 115, 0.14);
  color: var(--brand);
  font-size: 13px;
  text-decoration: none;
}

#headR ul li a:hover {
  background: var(--brand);
  color: #ffffff;
}

/* リード文 */
#lead {
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 20px;
  line-height: 1.8;
}

/* グローバルナビ */
#nav {
  height: auto !important;
  min-height: 52px;
  padding: 0 12px !important;
  background: linear-gradient(90deg, #0b356e 0%, #104c91 100%) !important;
  box-shadow: 0 8px 22px rgba(0, 52, 115, 0.16);
  text-align: center;
}

#navIn {
  height: auto !important;
  background: none !important;
}

ul#nav li {
  float: none !important;
  display: inline-block !important;
  background: none !important;
}

#nav a {
  color: #ffffff;
  font-size: 14px;
  padding: 17px 18px;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
}

#nav a:hover,
#nav li.hover > a,
#nav li.hover a.nav-top {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* ドロップダウン */
#nav ul {
  top: 52px !important;
  width: 220px !important;
  padding: 8px 0;
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: left;
}

#nav ul li {
  width: 100%;
  display: block !important;
}

#nav li.hover ul a,
#nav ul li a {
  color: #25324b !important;
  background: #ffffff !important;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

#nav li.hover ul a:hover,
ul#nav li ul li a.hover {
  color: #ffffff !important;
  background: var(--accent) !important;
}

/* メインエリア */
#contents-bg-top {
  background: none !important;
}

#main {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

#mainIn,
#mainIn2 {
  width: auto !important;
  max-width: 100%;
  padding: 28px 24px 18px !important;
}

#mainIn3,
#mainIn4,
#mainIn5 {
  background: none !important;
}

#mainR {
  line-height: 1.8;
}

/* メインビジュアル・スライダー */
.mainSlideIn {
  width: 100% !important;
  max-width: 763px;
  margin: 0 auto 24px;
}

.bx-wrapper {
  height: auto !important;
  margin-bottom: 46px !important;
  border-radius: 16px;
}

.bx-viewport {
  border-radius: 16px;
}

#mainSlide li {
  border-radius: 16px;
  overflow: hidden;
  background: #e5e7eb;
}

#mainSlide li img {
  border-radius: 16px;
}

/* 見出し */
#cont_title,
#cont_title2 {
  color: var(--brand);
  font-size: 26px;
  font-weight: 700;
  padding: 0 0 12px 0;
  margin: 0 0 28px 0;
  border-left: none;
  line-height: 1.45;
  position: relative;
}

#cont_title::after,
#cont_title2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: 0;
  bottom: 0;
}

/* ニュース・トピックス */
#topics1 h3,
#topics2 h3 {
  padding-bottom: 14px;
}

#topics1 table,
#topics2 table {
  width: 100% !important;
  margin-left: 0 !important;
  border-collapse: collapse;
}

#topics1 #topicsIn,
#topics2 #topicsIn {
  max-height: 240px;
  overflow: auto;
  padding-right: 4px;
}

#topics1 table th,
#topics1 table td,
#topics2 table th,
#topics2 table td {
  background: none !important;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  line-height: 1.7;
}

#topics1 table td.topics_date,
#topics2 table td.topics_date {
  color: var(--muted);
  font-size: 13px;
}

/* コンテンツボックス */
.box,
.box2 {
  width: 100% !important;
  padding-bottom: 36px;
}

.box .boxIn,
.boxIn2 {
  width: 100% !important;
}

.box .box_title,
.box_title2 {
  background: none !important;
  margin-bottom: 18px;
}

.box .box_titleIn,
.box_titleIn2 {
  background: linear-gradient(90deg, var(--brand) 0%, #2f6cab 100%) !important;
  padding: 12px 16px;
  border-radius: 12px;
}

.box .box_title h3,
.box_title2 h3 {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.45;
  padding-left: 12px;
  border-left: 4px solid var(--accent-2);
}

.box .box_entry1,
.box .box_entry2,
.box_entry3,
.box_entry4 {
  font-size: 16px;
  line-height: 1.85;
}

.box_image img,
.box_pic1img,
.box_pic2 img,
.box_pic3 img,
.box_pic4 img,
.box_img img,
.entryContent_R div img,
.entryImgbox img,
.box-image img,
.article-img img,
.article-figure img,
.article_figure img {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.1);
}

/* サイドバー */
#sidebarIn {
  padding: 0 0 20px;
}

#sidebar h4 {
  margin: 0 0 12px;
  padding: 10px 13px;
  background: linear-gradient(90deg, var(--brand) 0%, #285b98 100%);
  border-left: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
}

#sidebar ul li {
  width: 100% !important;
  padding-bottom: 8px;
}

#sidebar ul li a {
  width: auto !important;
  display: block;
  color: #25324b;
  background: #ffffff !important;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px 11px 16px;
  text-decoration: none;
}

#sidebar ul li a:hover {
  color: #ffffff;
  background: var(--accent) !important;
  border-color: var(--accent);
}

/* 表・記事内 */
.box table,
.article_box table {
  width: 100%;
  border-collapse: collapse;
}

.box table th,
.box table td,
.article_box table th,
.article_box table td {
  border: 1px solid var(--line);
  padding: 10px;
}

.article_box img,
.box_entry1 img,
.box_entry2 img,
.entryText img,
.entryTextBox img,
.box-entry1 img,
.box-entry2 img,
.article-txt img,
.article-entry img,
.entry-box img {
  max-width: 100%;
  height: auto;
}

/* フォーム・会社概要・地図 */
#form01 table,
#map01 table,
#profile01 table {
  width: 100% !important;
  background-color: #ffffff;
  border-collapse: collapse;
}

#form01 th,
#map01 th,
#profile01 th {
  width: 28%;
  background: #f1f5f9;
  color: #1f2937;
  font-weight: 700;
  padding: 12px;
}

#form01 td,
#map01 td,
#profile01 td {
  padding: 12px 14px;
}

input,
textarea,
select,
button {
  font: inherit;
  max-width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

textarea {
  min-height: 140px;
}

#map01 #frame iframe,
iframe {
  max-width: 100%;
}

/* CTA用：必要に応じてHTML側で使用 */
.cta-box {
  margin: 28px 0;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef5ff 0%, #fff7ed 100%);
  border: 1px solid rgba(242, 130, 46, 0.22);
  text-align: center;
}

.cta-copy {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}

.cta-button {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #f6a23a 100%);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(242, 130, 46, 0.25);
}

.cta-button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* フッター */
#contents-bottom {
  background: #10233f !important;
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  margin-top: 28px;
  padding: 22px 24px;
}

#contents-bottomIn {
  width: 100% !important;
}

#blog_info,
#QRbox {
  background: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

#blog ul li,
p.QR_description {
  color: #cbd5e1;
}

#blog ul li a {
  color: #ffffff;
}

#blog ul li a:hover {
  color: var(--accent-2);
}

#foot {
  background: #0b1220 !important;
  height: auto !important;
  padding: 18px 0;
}

#copyright {
  color: #d1d5db;
  font-size: 12px;
}

/* スマホ対応 */
@media screen and (max-width: 840px) {
  body {
    font-size: 15px !important;
  }

  #headBox,
  #lead,
  #contents-bg-top,
  #main,
  #contents-bottom,
  #copyright {
    max-width: calc(100% - 24px);
  }

  #headBox {
    display: block;
    text-align: center;
    padding: 18px 0 12px;
  }

  #site_title,
  #headBox #site_title {
    width: 100% !important;
    font-size: 24px;
  }

  #headR ul {
    justify-content: center;
    margin-top: 12px;
  }

  #lead {
    font-size: 13px;
    padding-bottom: 14px;
  }

  #nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 8px !important;
  }

  #nav a {
    padding: 14px 12px;
    font-size: 13px;
  }

  #nav ul {
    position: static !important;
    width: 100% !important;
    box-shadow: none;
    border-radius: 0;
  }

  #main {
    border-radius: 14px;
  }

  #mainIn,
  #mainIn2 {
    padding: 22px 16px 16px !important;
  }

  #mainR,
  #sidebar {
    float: none !important;
    width: 100% !important;
  }

  #sidebar {
    margin-top: 28px;
  }

  #top-main-area {
    padding-bottom: 24px;
  }

  #main_image,
  #topics1,
  #topics2 {
    float: none !important;
    width: 100% !important;
  }

  #main_image img,
  #lead_area #cover img,
  #site_image img,
  .site_image img {
    width: 100% !important;
    height: auto !important;
  }

  .mainSlideIn,
  #mainSlide,
  #mainSlide li {
    width: 100% !important;
  }

  .bx-wrapper,
  .bx-viewport {
    height: auto !important;
  }

  #mainSlide li {
    height: auto !important;
  }

  #mainSlide li img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
  }

  .bx-wrapper .bx-controls-direction a {
    display: none;
  }

  #cont_title,
  #cont_title2 {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .box,
  .box2,
  .box .boxIn,
  .boxIn2 {
    width: 100% !important;
  }

  .box .box_entry1,
  .box_entry3,
  .box_image {
    float: none !important;
    width: 100% !important;
  }

  .box_image {
    margin-top: 16px;
    text-align: center;
  }

  .box_image img,
  .box_pic1img,
  .box_pic2 img,
  .box_pic3 img,
  .box_pic4 img,
  .box_img img,
  .entryContent_R div img,
  .entryImgbox img,
  .box-image img,
  .article-img img,
  .article-figure img,
  .article_figure img {
    width: auto !important;
    max-width: 100% !important;
  }

  #topics1 #topicsIn,
  #topics2 #topicsIn {
    max-height: none;
    overflow: visible;
  }

  #topics1 table td.topics_date,
  #topics2 table td.topics_date {
    display: block;
    width: 100%;
    padding-bottom: 2px;
  }

  #topics1 table td.topics_entry,
  #topics2 table td.topics_entry {
    display: block;
    width: 100%;
  }

  #topics1 table td.topics_entry span,
  #topics2 table td.topics_entry span {
    margin-left: 0;
  }

  #form01 table,
  #map01 table,
  #profile01 table,
  .box table,
  .article_box table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
  }

  #form01 tbody,
  #form01 tr,
  #form01 th,
  #form01 td,
  #map01 tbody,
  #map01 tr,
  #map01 th,
  #map01 td,
  #profile01 tbody,
  #profile01 tr,
  #profile01 th,
  #profile01 td {
    display: block;
    width: 100% !important;
  }

  #form01 th,
  #map01 th,
  #profile01 th {
    text-align: left;
  }

  #map01 #frame iframe,
  iframe {
    width: 100% !important;
    height: 320px;
  }

  #contents-bottom {
    padding: 22px 16px;
    border-radius: 14px 14px 0 0;
  }

  #blog_info,
  #QRbox,
  #inquiry {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 22px;
    border-right: none;
  }

  #QR-left,
  #QR_code {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center;
  }

  #foot {
    padding: 16px 0;
  }
}

/* 動きを減らす設定のユーザー向け */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* =========================================
   B-STADY ブラッシュアップ用 追加CSS v2
   既存CSS・追加CSS v1の一番下に貼り付け
========================================= */

/* ナビ下に出る白い余白・空のドロップダウン対策 */
#contents-bg-top {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#contents-bg-top img {
  display: none !important;
}

#main {
  margin-top: 14px !important;
}

#nav ul:empty,
#nav li.hover > ul:empty {
  display: none !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 上部右側の小ボタンを少しだけ今風に */
#headR img {
  border-radius: 999px;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.08));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#headR a:hover img {
  opacity: 0.75;
  transform: translateY(-1px);
}

/* NEWS & TOPICS の見出しを現代風に */
#topics1 h3,
#topics2 h3 {
  background: linear-gradient(
    90deg,
    var(--brand, #003473) 0%,
    #2f6cab 100%
  ) !important;
  border-radius: 10px;
  padding: 10px 14px !important;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 6px 16px rgba(0, 52, 115, 0.12);
}

#topics1 h3 img,
#topics2 h3 img {
  display: none !important;
}

#topics1 h3::before,
#topics2 h3::before {
  content: "NEWS & TOPICS　最新情報";
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* NEWS内のアイコンをすっきり */
#topics1 table td.topics_entry span,
#topics2 table td.topics_entry span {
  background: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#topics1 table td.topics_entry span::before,
#topics2 table td.topics_entry span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent, #f2822e);
  vertical-align: middle;
}

/* NEWSのスクロールバーを少し細く */
#topics1 #topicsIn,
#topics2 #topicsIn {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

#topics1 #topicsIn::-webkit-scrollbar,
#topics2 #topicsIn::-webkit-scrollbar {
  width: 8px;
}

#topics1 #topicsIn::-webkit-scrollbar-thumb,
#topics2 #topicsIn::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

/* お問い合わせフォームを見やすく */
#form01 table {
  border: 1px solid #e5e7eb !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

#form01 th,
#form01 td {
  border: 1px solid #e5e7eb !important;
}

#form01 th {
  background: #f8fafc !important;
  color: #0f2f5f;
  font-weight: 700;
}

#form01 td {
  background: #ffffff;
}

#form01 input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="hidden"]) {
  width: min(100%, 360px) !important;
  height: 42px !important;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 11px;
  background: #ffffff;
}

#form01 textarea {
  width: min(100%, 430px) !important;
  min-height: 160px !important;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 12px;
  background: #ffffff;
}

#form01 input[type="radio"],
#form01 input[type="checkbox"] {
  width: auto !important;
  height: auto !important;
  margin-right: 4px;
}

/* フォーム送信ボタン */
#form01 input[type="submit"],
#form01 input[type="button"],
#form01 button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--accent, #f2822e) 0%,
    #f6a23a 100%
  );
  color: #ffffff;
  font-weight: 700;
  padding: 10px 24px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(242, 130, 46, 0.25);
}

#form01 input[type="submit"]:hover,
#form01 input[type="button"]:hover,
#form01 button:hover {
  opacity: 0.85;
}

#form01 input[type="reset"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
}

/* PAGE TOPを少し整える */
#pagetop a {
  display: inline-block;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

#pagetop a:hover {
  color: var(--accent, #f2822e);
}

/* スマホ時のフォーム調整 */
@media screen and (max-width: 840px) {
  #headR {
    display: none;
  }

  #main {
    margin-top: 10px !important;
  }

  #form01 input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="reset"]):not([type="button"]):not([type="hidden"]),
  #form01 textarea {
    width: 100% !important;
  }

  #form01 input[type="submit"],
  #form01 input[type="reset"],
  #form01 input[type="button"],
  #form01 button {
    width: 100%;
    margin: 5px 0;
    text-align: center;
  }
}
/* =========================================
   STEP 01：全ページ共通の全体レイアウト調整
   既存CSS・追加CSS v1の一番下に貼り付け
========================================= */

/* ナビ下に出ている白い余白・飾り画像の調整 */
#contents-bg-top {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#contents-bg-top img {
  display: none !important;
}

/* ナビと本文カードの間隔 */
#main {
  margin-top: 14px !important;
}

/* 空のドロップダウンが白く出る場合の対策 */
#nav ul:empty,
#nav li.hover > ul:empty {
  display: none !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* ヘッダー右上のHOME/PROFILE等の小ボタン調整 */
#headR img {
  border-radius: 999px;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.08));
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#headR a:hover img {
  opacity: 0.75;
  transform: translateY(-1px);
}

/* フッター周辺の余白調整 */
#contents-bottom {
  margin-top: 28px !important;
}

/* PAGE TOPの見た目調整 */
#pagetop a {
  display: inline-block;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

#pagetop a:hover {
  color: #f2822e;
}

/* スマホ時の全体調整 */
@media screen and (max-width: 840px) {
  #main {
    margin-top: 10px !important;
  }

  /* スマホでは右上の小さいHOME/PROFILE等は非表示 */
  #headR {
    display: none !important;
  }

  #contents-bottom {
    margin-top: 22px !important;
  }
}
/* =========================================
   STEP 02：中ページの2カラムを1カラム寄りに整える
   「指導コース案内」「入会の流れ」「塾の特徴」などに反映
========================================= */

/* 中ページの古いサイドバー背景を消す */
#mainIn3,
#mainIn4,
#mainIn5 {
  background: none !important;
}

/* 中ページを縦並びにして、本文を広く使う */
#mainIn5 {
  display: flex;
  flex-direction: column;
}

/* 本文エリアを横幅いっぱいに */
#mainR {
  order: 2;
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  padding-top: 0 !important;
}

/* 左サイドメニューを上部の小さな見出し風に変更 */
#sidebar {
  order: 1;
  float: none !important;
  width: 100% !important;
  max-width: 100%;
  margin: 0 0 22px 0 !important;
}

#sidebarIn {
  padding: 0 !important;
}

/* サイドバー見出しを横長ではなく、上部ラベル風に */
#sidebar h4 {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  margin: 0 0 14px 0 !important;
  padding: 8px 16px !important;
  border-left: none !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #003473 0%, #2f6cab 100%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 1.4;
  box-shadow: 0 6px 16px rgba(0, 52, 115, 0.12);
}

/* サイドメニュー内のリンクがある場合は横並びに */
#sidebar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px 0 !important;
}

#sidebar ul li {
  width: auto !important;
  padding: 0 !important;
}

#sidebar ul li a {
  width: auto !important;
  min-width: 0;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  border: 1px solid #dbe3ef !important;
  color: #0f2f5f !important;
  text-decoration: none !important;
}

#sidebar ul li a:hover {
  background: #f2822e !important;
  border-color: #f2822e !important;
  color: #ffffff !important;
}

/* 中ページ内のボックスを本文幅いっぱいに */
#mainR .box2,
#mainR .boxIn2 {
  width: 100% !important;
}

#mainR .box_title2 {
  width: 100% !important;
}

#mainR .box_entry4 {
  width: 100% !important;
}

/* 画像付き文章ページの本文幅調整 */
#mainR .box_entry3 {
  width: calc(100% - 240px) !important;
  max-width: none !important;
}

/* 右側画像のサイズと余白調整 */
#mainR .box_image {
  width: 210px !important;
  margin-left: 24px;
}

#mainR .box_image img {
  width: 210px !important;
  max-width: 100%;
  height: auto !important;
}

/* PAGE TOPの余白調整 */
#pagetop {
  padding-top: 28px !important;
}

/* スマホでは縦並びに戻す */
@media screen and (max-width: 840px) {
  #mainIn5 {
    display: block;
  }

  #sidebar {
    margin-bottom: 18px !important;
  }

  #sidebar h4 {
    display: inline-flex;
    margin-bottom: 12px !important;
  }

  #sidebar ul {
    display: block;
    margin-bottom: 18px !important;
  }

  #sidebar ul li {
    margin-bottom: 8px !important;
  }

  #mainR .box_entry3,
  #mainR .box_image {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  #mainR .box_image {
    margin-top: 14px;
    text-align: center;
  }

  #mainR .box_image img {
    width: auto !important;
    max-width: 100% !important;
  }
}
/* =========================================
   STEP 03：中ページのページタイトルと余白を整える
   「塾の特徴」「指導コース案内」「入会の流れ」などに反映
========================================= */

/* 中ページの並びを通常の1カラム表示に固定 */
#mainIn5 {
  display: block !important;
}

/* 元サイドバー部分をページタイトルエリアとして使う */
#sidebar {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 28px 0 !important;
  padding: 0 !important;
}

#sidebarIn {
  padding: 0 !important;
}

/* 「塾の特徴」「指導コース案内」などをページタイトル化 */
#sidebar h4 {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 13px 0 !important;
  background: none !important;
  border-left: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #003473 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  position: relative;
}

/* ページタイトル下のオレンジライン */
#sidebar h4::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: #f2822e;
  position: absolute;
  left: 0;
  bottom: 0;
}

/* サイドメニューリンクがある場合はタブ風に */
#sidebar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0 0 !important;
  padding: 0 !important;
}

#sidebar ul li {
  width: auto !important;
  padding: 0 !important;
}

#sidebar ul li a {
  width: auto !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  border: 1px solid #dbe3ef !important;
  color: #0f2f5f !important;
  text-decoration: none !important;
}

#sidebar ul li a:hover {
  background: #f2822e !important;
  border-color: #f2822e !important;
  color: #ffffff !important;
}

/* 本文エリアを全幅で安定させる */
#mainR {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 0 !important;
}

/* 中ページの各セクションの余白 */
#mainR .box2 {
  width: 100% !important;
  padding-bottom: 44px !important;
}

#mainR .boxIn2 {
  width: 100% !important;
  margin: 0 !important;
}

/* 青い見出しバー下の不要な線・古い装飾をリセット */
#mainR .box_title2,
#mainR .box_titleIn2 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

#mainR .box_title2::before,
#mainR .box_title2::after,
#mainR .box_titleIn2::before,
#mainR .box_titleIn2::after {
  content: none !important;
  display: none !important;
}

#mainR .box_title2 {
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
}

#mainR .box_titleIn2 {
  padding: 0 !important;
}

/* 中ページの青い見出しバーを作り直す */
#mainR .box_title2 h3 {
  display: block !important;
  margin: 0 !important;
  padding: 13px 18px 13px 26px !important;
  background: linear-gradient(90deg, #003473 0%, #2f6cab 100%) !important;
  border-left: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 52, 115, 0.12);
}

/* 見出しバー左のオレンジライン */
#mainR .box_title2 h3::before {
  content: "";
  display: block;
  width: 4px;
  height: 60%;
  border-radius: 999px;
  background: #f6a23a;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* 文章の読みやすさ調整 */
#mainR .box_entry3,
#mainR .box_entry4 {
  line-height: 1.9 !important;
}

/* PAGE TOPまわりの余白 */
#pagetop {
  padding-top: 20px !important;
}

/* スマホ時の調整 */
@media screen and (max-width: 840px) {
  #sidebar {
    margin-bottom: 22px !important;
  }

  #sidebar h4 {
    font-size: 22px !important;
  }

  #mainR .box2 {
    padding-bottom: 34px !important;
  }

  #mainR .box_title2 h3 {
    font-size: 17px !important;
    padding: 12px 15px 12px 24px !important;
  }

  #mainR .box_title2 h3::before {
    left: 10px;
  }
}
/* =========================================
   STEP 04：青い見出しバー下の古い線・装飾を完全に消す
========================================= */

/* 見出し外側の古い背景画像・線・影をリセット */
#mainR .box_title,
#mainR .box_title2,
.box .box_title,
.box_title2 {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* 見出し内側の古い背景画像・線・影をリセット */
#mainR .box_titleIn,
#mainR .box_titleIn2,
.box .box_titleIn,
.box_titleIn2 {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* 古い疑似要素が残っている場合も消す */
#mainR .box_title::before,
#mainR .box_title::after,
#mainR .box_title2::before,
#mainR .box_title2::after,
#mainR .box_titleIn::before,
#mainR .box_titleIn::after,
#mainR .box_titleIn2::before,
#mainR .box_titleIn2::after,
.box .box_title::before,
.box .box_title::after,
.box .box_titleIn::before,
.box .box_titleIn::after,
.box_title2::before,
.box_title2::after,
.box_titleIn2::before,
.box_titleIn2::after {
  content: none !important;
  display: none !important;
}

/* 青い見出しバー本体を作り直す */
#mainR .box_title h3,
#mainR .box_title2 h3,
.box .box_title h3,
.box_title2 h3 {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 13px 18px 13px 28px !important;
  background: linear-gradient(90deg, #003473 0%, #2f6cab 100%) !important;
  background-image: linear-gradient(90deg, #003473 0%, #2f6cab 100%) !important;
  border: none !important;
  border-left: none !important;
  border-bottom: none !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  position: relative !important;
  overflow: hidden !important;
  text-shadow: none !important;
}

/* 見出しバー左のオレンジライン */
#mainR .box_title h3::before,
#mainR .box_title2 h3::before,
.box .box_title h3::before,
.box_title2 h3::before {
  content: "";
  display: block;
  width: 4px;
  height: 60%;
  border-radius: 999px;
  background: #f6a23a;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* 見出しバー内に不要な後ろ線が出る場合の対策 */
#mainR .box_title h3::after,
#mainR .box_title2 h3::after,
.box .box_title h3::after,
.box_title2 h3::after {
  content: none !important;
  display: none !important;
}

/* セクションごとの余白を少し自然にする */
#mainR .box2,
.box {
  padding-bottom: 42px !important;
}

/* 本文との距離 */
#mainR .box_entry3,
#mainR .box_entry4,
.box .box_entry1,
.box .box_entry2 {
  margin-top: 0 !important;
}

/* スマホ時の見出しサイズ */
@media screen and (max-width: 840px) {
  #mainR .box_title h3,
  #mainR .box_title2 h3,
  .box .box_title h3,
  .box_title2 h3 {
    font-size: 17px !important;
    padding: 12px 15px 12px 26px !important;
  }

  #mainR .box_title h3::before,
  #mainR .box_title2 h3::before,
  .box .box_title h3::before,
  .box_title2 h3::before {
    left: 10px;
  }
}
/* =========================================
   STEP 05：ページ全体にメリハリを追加
   セクションのカード化・本文の強調・余白調整
========================================= */

/* メイン内の余白を少しだけ整える */
#mainIn,
#mainIn2 {
  padding-top: 32px !important;
  padding-bottom: 22px !important;
}

/* トップページ・中ページの本文ブロックをカード風に */
#mainIn > .box,
#mainIn2 > .box,
#mainR .box2 {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  border: 1px solid #e6edf5 !important;
  border-radius: 18px !important;
  padding: 24px 26px 28px !important;
  margin: 0 0 32px 0 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

/* カード上部に薄いオレンジのアクセント */
#mainIn > .box::before,
#mainIn2 > .box::before,
#mainR .box2::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #f2822e 0%, #f6a23a 100%);
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  border-radius: 0 0 999px 999px;
  opacity: 0.75;
}

/* カード内の幅調整 */
#mainIn > .box .boxIn,
#mainIn2 > .box .boxIn,
#mainR .boxIn2 {
  width: 100% !important;
  margin: 0 !important;
}

/* 青い見出しバーに少し立体感を出す */
#mainIn > .box .box_title h3,
#mainIn2 > .box .box_title h3,
#mainR .box_title2 h3 {
  box-shadow: 0 8px 18px rgba(0, 52, 115, 0.14) !important;
  letter-spacing: 0.02em;
}

/* 見出しと本文の距離 */
#mainIn > .box .box_title,
#mainIn2 > .box .box_title,
#mainR .box_title2 {
  margin-bottom: 20px !important;
}

/* 本文を少し読みやすく */
#main .box_entry1,
#main .box_entry2,
#main .box_entry3,
#main .box_entry4,
#main .article_box {
  color: #27364a;
  line-height: 1.95 !important;
  letter-spacing: 0.01em;
}

/* 強調文字にマーカー風の装飾 */
#main .box_entry1 strong,
#main .box_entry2 strong,
#main .box_entry3 strong,
#main .box_entry4 strong,
#main .article_box strong,
#main .box_entry1 b,
#main .box_entry2 b,
#main .box_entry3 b,
#main .box_entry4 b,
#main .article_box b {
  color: #0b3b78;
  background: linear-gradient(
    transparent 62%,
    rgba(246, 162, 58, 0.32) 62%
  );
  padding: 0 0.05em;
}

/* 画像を少し引き立てる */
#main .box_image img,
#main .box_pic1img,
#main .box_pic2 img,
#main .box_pic3 img,
#main .box_pic4 img,
#main .box_img img,
#main .article-img img,
#main .article-figure img {
  border: 4px solid #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
}

/* NEWS欄も少しカード風に */
#topics1,
#topics2 {
  background: #ffffff !important;
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 18px 20px 20px !important;
  margin-bottom: 32px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

/* NEWS欄の横幅調整 */
#topics1 table,
#topics2 table {
  width: 100% !important;
}

/* スライダー下の余白を少し確保 */
.mainSlideIn {
  margin-bottom: 34px !important;
}

/* ページタイトルとの距離調整 */
#sidebar {
  margin-bottom: 30px !important;
}

/* フッター前の余白 */
#pagetop {
  padding-top: 24px !important;
}

/* スマホ調整 */
@media screen and (max-width: 840px) {
  #mainIn,
  #mainIn2 {
    padding-top: 22px !important;
  }

  #mainIn > .box,
  #mainIn2 > .box,
  #mainR .box2 {
    padding: 20px 18px 24px !important;
    margin-bottom: 24px !important;
    border-radius: 15px !important;
  }

  #mainIn > .box::before,
  #mainIn2 > .box::before,
  #mainR .box2::before {
    left: 18px;
    right: 18px;
  }

  #topics1,
  #topics2 {
    padding: 16px !important;
    border-radius: 14px;
  }

  #main .box_entry1,
  #main .box_entry2,
  #main .box_entry3,
  #main .box_entry4,
  #main .article_box {
    line-height: 1.9 !important;
  }
}
/* STEP 06：フォント・文字サイズ・読みやすさ調整 */
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  color: #243044 !important;
  font-weight: 400;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* メイン本文 */
#main,
#mainIn,
#mainIn2,
#mainR,
#main .box_entry1,
#main .box_entry2,
#main .box_entry3,
#main .box_entry4,
#main .article_box {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.95 !important;
  letter-spacing: 0.025em;
  color: #27364a !important;
}

/* 見出しを少し力強く */
#main .box_title h3,
#main .box_title2 h3,
#mainR .box_title h3,
#mainR .box_title2 h3 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

/* ページタイトル */
#sidebar h4 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

/* サイトタイトル */
#site_title,
#site_title a {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
}

/* ナビゲーション */
#nav a {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
}

/* 強調文字 */
#main strong,
#main b {
  font-weight: 700 !important;
  color: #0b3b78 !important;
}

/* 小さすぎる文字の補正 */
#main small,
#copyright,
#pagetop a {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif !important;
}

/* スマホ時 */
@media screen and (max-width: 840px) {
  #main,
  #main .box_entry1,
  #main .box_entry2,
  #main .box_entry3,
  #main .box_entry4,
  #main .article_box {
    font-size: 15px !important;
    line-height: 1.9 !important;
  }

  #main .box_title h3,
  #main .box_title2 h3,
  #mainR .box_title h3,
  #mainR .box_title2 h3 {
    letter-spacing: 0.03em !important;
  }
}
/* STEP 07：プロフィールページのブラッシュアップ */
.profile-page {
  max-width: 700px;
  margin: 0 auto !important;
}

/* プロフィール内の基本本文 */
.profile-page p {
  margin: 0 0 0.9em 0;
  line-height: 1.95;
}

/* 最初の理念カード */
.profile-lead {
  position: relative;
  margin: 0 0 28px 0;
  padding: 28px 30px 26px;
  border-radius: 18px;
  border: 1px solid #e6edf5;
  background: linear-gradient(135deg, #eef6ff 0%, #ffffff 58%, #fff7ed 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.profile-lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  right: 26px;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #f2822e 0%, #f6a23a 100%);
}

.profile-eyebrow {
  margin-bottom: 10px;
  color: #f2822e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.profile-maincopy {
  margin-bottom: 14px !important;
  color: #003473;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.6 !important;
  letter-spacing: 0.04em;
}

.profile-maincopy span {
  background: linear-gradient(transparent 62%, rgba(246, 162, 58, 0.32) 62%);
}

/* 各セクションカード */
.profile-section {
  margin: 0 0 26px 0;
  padding: 24px 26px 25px;
  border-radius: 16px;
  border: 1px solid #e6edf5;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.profile-section-title {
  position: relative;
  margin: 0 0 18px 0 !important;
  padding: 0 0 0 16px !important;
  color: #003473 !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.profile-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 5px;
  height: 1.3em;
  border-radius: 999px;
  background: #f2822e;
}

/* 引用風の強調ボックス */
.profile-quote {
  margin: 18px 0;
  padding: 18px 20px;
  border-left: 4px solid #f2822e;
  border-radius: 12px;
  background: #f8fafc;
}

.profile-quote p {
  margin-bottom: 0.45em;
  color: #0f2f5f;
  font-weight: 700;
}

/* スローガンの小カード */
.profile-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.profile-value {
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  text-align: center;
}

.profile-value-num {
  display: inline-block;
  margin-bottom: 7px;
  color: #f2822e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.profile-value strong {
  display: block;
  color: #003473 !important;
  font-size: 15px;
  line-height: 1.55;
}

/* 地域への想いリスト */
.profile-message-list {
  margin: 14px 0 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.profile-message-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
  line-height: 1.8;
}

.profile-message-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2822e;
}

/* 塾情報テーブル */
.profile-info {
  margin-top: 28px;
}

.profile-info table,
#profile01 table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border: 1px solid #dbe3ef !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.profile-info th,
.profile-info td,
#profile01 th,
#profile01 td {
  padding: 15px 16px !important;
  border: none !important;
  border-bottom: 1px solid #e6edf5 !important;
  background-image: none !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.profile-info th,
#profile01 th {
  width: 28% !important;
  background: #f3f7fb !important;
  color: #0f2f5f !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.profile-info td,
#profile01 td {
  background: #ffffff !important;
  color: #27364a !important;
}

.profile-info tr:last-child th,
.profile-info tr:last-child td,
#profile01 tr:last-child th,
#profile01 tr:last-child td {
  border-bottom: none !important;
}

/* プロフィール下の問い合わせ導線 */
.profile-cta {
  margin: 30px 0 4px;
  padding: 24px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #003473 0%, #0f4f91 100%);
  text-align: center;
  color: #ffffff;
}

.profile-cta p {
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 700;
}

.profile-cta-button {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f2822e 0%, #f6a23a 100%);
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(242, 130, 46, 0.28);
}

.profile-cta-button:hover {
  opacity: 0.88;
}

/* スマホ対応 */
@media screen and (max-width: 840px) {
  .profile-page {
    max-width: 100%;
  }

  .profile-lead,
  .profile-section {
    padding: 22px 18px;
    border-radius: 15px;
  }

  .profile-maincopy {
    font-size: 20px;
  }

  .profile-values {
    grid-template-columns: 1fr;
  }

  .profile-info th,
  .profile-info td,
  #profile01 th,
  #profile01 td {
    display: block;
    width: 100% !important;
    text-align: left !important;
  }

  .profile-info th,
  #profile01 th {
    padding-bottom: 8px !important;
  }

  .profile-info td,
  #profile01 td {
    padding-top: 8px !important;
  }
}