@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color:#636363;
    --linkhover-color: #dadada;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}

a.lik{
    color: #0239ff;
}

.p1 ,.p2 ,.p3 {
    font-size: 20px;
    font-weight: bold;
    display: inline;
}

a.p2{
    font-weight: bold;
    text-decoration:underline;
    color: #0239ff;
}

a.p2:hover
a.lik:hover{
    color: #5195E1;
}
a.p2:active
a.lik:active{
    color: #EB4682;
}
a.p2:visited
a.lik:visited{
    color: purple;
}
/*ヘッダー
-------------------------------------*/
.header {
	display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
}
.header-box {
	margin-left: auto;
	margin-top: 8px;
}
.contact-button {
	padding: 1rem;
	border: 2px solid var(--base-color);
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin: 1rem 0 0 0;
}
nav li {
	flex: 1 0 auto;
}
nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 0.5rem;
}

@media screen and (min-width: 769px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.header {
	flex-direction: column;
    margin-bottom: 10px;
}
.header #open,#close  {
    position: absolute;
    top: 20px;
    right: 12px;
}
nav ul {
	flex-direction: column;
}
.header li {
	padding-top: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}
    
/*メイン画像
-------------------------------------*/
.mainimg img {
    width: 100vw;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 0 0;
}
section {
	margin: 5rem 0;
	padding: 3rem 0;
}
.gray-back {
	background-color: var(--back-color);
}


/*キャッチコピー
-------------------------------------*/
.catch {
    text-align: center;
}
.catch h2 {
    padding-bottom: 1rem;
}
.under {
    border-bottom: 0.4rem solid var(--base-color);
    padding:0 1rem 1rem 1rem;
}
.section-title {
  position: relative;
  padding-left: 1rem;
  font-size: 2.0rem;
  font-weight: bold;
  line-height: 1.4;
  border-left: 5px solid var(--base-color);
  margin: 2rem 0 1rem;
  color: #333;
  word-break: break-word;
}
.center {
	text-align: center;
	margin-bottom: 4rem;
}

/*申し込みの流れ
-------------------------------------*/
.flow.row {
	margin-bottom: 3rem;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color); 
    padding: 5rem 0;
}
footer h4 {
    border-bottom: 3px solid var(--border-color);
}

/*お問い合わせ
-------------------------------------*/
.contact-box {
	border: 1px solid var(--border-color);
	text-align: center;
	padding: 2rem 0;
}
.table {
	margin: 4rem 0;
}
.table th {
	width: 250px;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--base-color);
}
.copyright a {
    color: var(--white-color);
    text-decoration: none;
	display: inline;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background-color: var(--base-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}

/* 日本語研修について：カード化 */
.t-cds {
  display: flex;
  row-gap: 24px;
}

.t-cd {
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.t-cd img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.t-cd h3 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.5;
  text-align: left;
  color: blue;
  font-weight: bold;
}

.t-cd p {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.9;
  text-align: left;
  color: #333;
  flex-grow: 1;
}

.t-cd p a {
  display: inline;
  position: static;
  color: #0066cc;
  text-decoration: underline;
}


/* PCでカードの高さ感を揃えやすくする */
.t-cd > *:last-child {
  margin-bottom: 0;
}

/* 受講開始までの流れ：横長カード */
.row.flow.f-cd {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: left;
}

.row.flow.f-cd .col:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px;
}

.row.flow.f-cd img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.row.flow.f-cd p {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.9;
  color: #333;
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){

.p1, .p2, .p3 {
    display: block;
}

/*ヘッダー
-------------------------------------*/
.header-box {
	display: none;
}	
/*お問い合わせ
-------------------------------------*/
.table th {
	width: 100%;
	display: block;
}	
.table td {
	display: block;
}

.t-cds {
row-gap: 20px;
}

.t-cd {
padding: 18px;
border-radius: 16px;
}

.t-cd h3 {
font-size: 1.7rem;
}

.t-cd p {
font-size: 1.3rem;
line-height: 1.8;
}

/* 受講開始までの流れ：横長カード */
.row.flow.f-cd {
padding: 18px;
border-radius: 16px;
}

.row.flow.f-cd .col {
margin-left: 0;
}

.row.flow.f-cd p {
font-size: 1.3rem;
line-height: 1.8;
}


}