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

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

img {
	max-width:100%;
	height: auto;
}
a {
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
    text-decoration-line: underline;
}
a img {
    margin-bottom: 1rem;
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid var(--site-color);
	padding-bottom: 0.5rem;
}

/*ボタン
-------------------------------------*/
.button.arrow-right::after {
    content: "";
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-left: 0.5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg); 
}
.button.button-contact {
    height: 60px;
    line-height: 60px;
    padding: 0 30px;
    font-weight: 600;
}

/*ヘッダー
-------------------------------------*/
.head {
	display: flex;
    flex-direction: row;
    margin: 2rem 0;
}
.head h1 { 
    padding: 1rem 0;
}

.head nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: auto;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: flex-end;
    list-style: none;
	margin-bottom: 0;
    font-size: 1.4rem;
}
nav li {
    display: block;
    flex: 0 0 auto;
    text-align: center;
	margin-bottom: 0;
}
nav li a {
    text-decoration: none;
    text-align: center;
    color: var(--base-color);
    text-decoration-line: none;
}
nav a:hover {
    background-color: var(--back-color);   
    text-decoration-line: none;
}
nav a {
    display: block;
    padding: 1rem;
}

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

/* @media screen and (max-width: 768px){ */
@media screen and (max-width: 991px){
.head {
	flex-direction: column;
    margin-bottom: 20px;
}
.head #navi-open,#navi-close  {
    position: absolute;
    top: 28px;
    right: 12px;
}
.head nav {
    margin-left: 0;
}
nav ul {
	flex-direction: column;
    margin-top: 2rem;
	border-top: 1px solid var(--border-color);
}
nav li {
	padding-top: 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#navi-open {
    display: block;
    width: 30px;
    cursor: pointer;
}
#navi-open span {
    display: block;
    height: 3px;
    background: #333;
    margin: 6px 0;
}
#navi-close {
    display: block;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
#navi-close::before,
#navi-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: #333;
}
#navi-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
#navi-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*ロゴ
-------------------------------------*/
.img-link {
    display: inline-flex;
    align-self: flex-start;
}

img.logo {
    width: 280px;
    margin: 0;
}

/*ヒーロー　スライダー
-------------------------------------*/
.hero-slider {
    position: relative;
    /* height: 60vh; */
    height: clamp(360px, 60vh, 720px);
    overflow: hidden;
}
.slides {
    height: 100%;
}
.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease;
    pointer-events: none;
    z-index: 1;
}
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.slide.active {
    pointer-events: auto;
    opacity: 1;
    z-index: 1;
}
.slide-content {
    position: absolute;
    max-width: 700px;
    margin-left: clamp(15%, 10vw, 25%);
    text-align: left;
    color: #fff;
    z-index: 2;
}
.slide-content h1 {
    margin-bottom: 0.5em;
}
.slide-content p {
    font-size: 1.2em;
    margin-bottom: 1em;
}
.slide-content a {
    color: #fff;
}
.slide-content a:hover {
    color: #fff;
    background-color: transparent;
    text-decoration-line: none;
}
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.2em 0.6em;
    cursor: pointer;
    z-index: 10;
}
button.slide-nav:hover,
button.slide-nav:active,
button.slide-nav:focus {
    background-color: transparent;
}
.slide-nav::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 16px;
    height: 16px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    pointer-events: none;
}
.slide-nav.prev { left: 30px; }
.slide-nav.next { right: 30px; }
.slide-nav.prev::after { 
    transform: rotate(135deg); 
}
.slide-nav.next::after { 
    transform: rotate(-45deg); 
    right: 5px;
}

@media (max-width: 991px) {
.hero-slider {
    height: clamp(260px, 45vh, 420px);
}
.slide {
    justify-content: center;
}
.slide-content {
    transform: none;
    margin: 0 auto;
    text-align: center;
    padding: 0 5rem;
}
.slide-nav.prev { left: 5px; }
.slide-nav.next { right: 5px; }
}

/*メイン画像
-------------------------------------*/
.mainimg {
    position: relative;
}
.mainimg h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    margin:0;
    padding:0;
    color: #fff;
    text-align: center;
}
.mainimg img {
	width: 100vw;
}
.mainimg .dark {
    filter: brightness(70%);
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 3rem 0 3rem 0;
}

/*新着情報
-------------------------------------*/
.news li {
    display: flex;
    list-style-type: none;
	border-bottom: 1px solid var(--border-color);
	padding: 0.5rem 0;
}
.news li time {
    display: inline-block;
    width: 140px;
    margin-right: 1rem;
}

.news-line {
    display: flex;
	border-bottom: 1px solid var(--border-color);
    margin-bottom: 4rem;
    color: #666;
}
.news-line time {
    padding-right: 2rem;
}

/*見出し
-------------------------------------*/
.head-title {
    margin: 5rem 0;
    text-align: center;
}

h2.headline {
    border-bottom: 3px solid var(--site-color);
    line-height: normal;
	padding: 2.5rem 0 0;
}
h3.headline {
    border-bottom: 1px solid var(--border-color);
    line-height: normal;
	padding: 0.5rem 0 0;
}

/*画像コンテンツ
-------------------------------------*/
.media-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f1f1f1;
    border: solid 1px #f1f1f1;
    border-radius: 10px;
    text-decoration: none;
}
.media-card:hover {
    background-color: #f7f7f7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-decoration-line: none;
}
.media-card_image {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}
.media-card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}
.media-card_body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.media-card_title {
    margin: 0 0 8px;
    font-size: 2.0rem;
    font-weight: 600;
}
.media-card_text {
    margin: 0;
    color: #555;
}
.media-card-group {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 550px) {
    .media-card {
        flex-direction: column;
    }
    .media-card_image {
        width: 100%;
    }
}

.media-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    background: #f1f1f1;
    border: solid 1px #f1f1f1;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
}
.media-panel:hover {
    background-color: #f7f7f7;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-decoration-line: none;
}
.media-panel_image {
    max-width: 90px;
    max-height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    margin: 0 auto;
}
.media-panel_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.media-panel_title {
    margin: 0;
    font-size: 2.0rem;
    font-weight: 600;
}
.media-panel_text {
    margin: 0;
    color: #555;
}
.media-panel-group {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .media-panel-group.grid-col3 {
        grid-template-columns: 1fr;
    }
}

/*リスト
-------------------------------------*/
ul p {
    margin-bottom: 1rem;
}

ul.symbol-check {
    list-style: none;
}
ul.symbol-check li {
    position: relative;
    padding-left: 40px;
}
ul.symbol-check li:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0.4em;
    left: 0.5em;
    width: 15px;
    height: 8px;
    border-left: 3px solid var(--site-color);
    border-bottom: 3px solid var(--site-color);
    transform: rotate(-45deg);
}

ul.symbol-disc {
    list-style: none;
}
ul.symbol-disc li {
    position: relative;
    padding-left: 30px;
}
ul.symbol-disc li:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0.4em;
    left: 0.5em;
    width: 10px;
    height: 10px;
    background-color: var(--site-color);
    border-radius: 50%;
}


/*ボックス
-------------------------------------*/
.box {
    gap: 16px;
    padding: 16px;
    background: #f1f1f1;
    border: solid 1px #f1f1f1;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 2rem;
}
.box p {
    margin-bottom: 1rem;
}
.box-title {
    margin: 0 0 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}
.box-list {
    list-style: none;
    padding-left: 20px;
    display: grid;
    gap: 4px 24px;
    margin: 0;
}
.box-list li {
    position: relative;
    padding-left: 30px;
}
.box-list li:before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0.3em;
    left: 0;
    width: 0;
    height: 0;
    border: 0.4em solid transparent;
    border-left: 0.5em solid var(--site-color);
}

@media (max-width: 768px) {
  .box-list.grid-col2,
  .box-list.grid-col3 {
    grid-template-columns: 1fr;
  }
}

/*グリッド
-------------------------------------*/
.grid-col2 {
    grid-template-columns: 1fr 1fr;
}
.grid-col3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/*入力フォーム
-------------------------------------*/
.required::after {
    content: "必須";
    color: #ffffff;
    background: #e75050;
    font-size: 0.8em;
    padding: 0.3em;
    border-radius: 0.5em;
    margin-left:1em;
}

.select {
    position: relative;
    display: inline-block;
}
.select select {
    width: 100%;
    padding-right: 60px;
}
.select::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 16px;
    width: 12px;
    height: 12px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    pointer-events: none;
}

.error {
    border: solid 2px #c00;
    color: #c00;
}
.success {
    border: solid 2px #1762d3;
    color: #1762d3;
}
.msg-box {
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 3rem;
}
.msg-box p {
    margin-bottom: 0 !important;
}

.contact-form p {
    margin-bottom: 1rem;
    width: 100%;
    max-width: 650px;
}

/*FAQ
-------------------------------------*/
.faq {
    margin-bottom: 5px;
    border-bottom: 2px solid #d6dde3;
}
.faq summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1em;
    align-items: center;
    position: relative;
    padding: 1em 2em 1em 3em;
    color: #333333;
    font-weight: 600;
    cursor: pointer;
}
.faq summary::before,
.faq p::before {
    position: absolute;
    left: 1em;
    font-weight: 600;
    font-size: 1.3em;
}
.faq summary::before {
    color: #7775ff;
    content: "Q";
}
.faq summary::after {
    content: '';
    transform: translateY(-25%) rotate(45deg);
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #333;
    border-right: 2px solid #333;
}
.faq[open] summary::after {
    transform: rotate(225deg);
}
.faq p {
    position: relative;
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: .3em 3em 1.5em;
    color: #333;
}
.faq[open] p {
    transform: none;
    opacity: 1;
}
.faq p::before {
    color: #ff7373;
    line-height: 1.2;
    content: "A";
}

/*フッター
-------------------------------------*/
footer {
    background-color: #d6d6d6;
    padding: 5rem 0;
}
footer p {
    margin-bottom: 1rem;
}

.navi-footer {
	margin-bottom: 0;
    font-size: 1.4rem;
    color: #666;
}
.navi-footer a:hover {
    background-color: #c1c1c1;   
    text-decoration-line: none;
}
.navi-footer a {
    padding: 0.5rem;
    color: #666;
}

.sns-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    margin-left: 0.5rem;
}
.sns-footer img {
    width: 30px;
    display: block;
    margin-bottom: 0;
}
.sns-footer a:hover img {
    text-decoration-line: none;
    opacity: 0.5;
}

@media ( max-width : 768px ) {
.navi-footer {
    text-align: center;
    margin-top: 1rem;
}
.sns-footer {
    justify-content: center;
}
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: #fff;
    font-size: 1.3rem;
}
.copyright a {
    color: #fff;
    text-decoration: none;
	display: inline-block;
}
.copyright a:hover {
    color: #999;
    text-decoration-line: underline;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 10px;
    right: 10px;
    margin-bottom: 0;
}
#pagetop a {
    display: block;
    background-color: #333;
    opacity: 0.5;
    color: var(--white-color);
    width: 40px;
    padding: 5px 5px;
    text-align: center;
    border-radius: 10px;
}
#pagetop a:hover {
    background-color: #888;
    text-decoration-line: none;
}
#pagetop a::after {
    content: "";
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    margin-top: 15px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(-45deg); 
}

/*パンくずリスト
-----------------------------------*/
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 1.2rem;
}

.breadcrumb li {
    color: #444;
    margin-bottom: 0;
}

.breadcrumb li + li::before {
  content: ">";
  margin: 0 0.5rem;
  color: #777;
}

.breadcrumb a {
  color: #777;
}

/*YouTube
-----------------------------------*/
.youtube {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding-top: 56.25%; /* 16:9 */
}
.youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
