:root {
}

/****** 
 共通 
 ******/
 * {
     box-sizing: border-box;
 }

 html {
    font-size: 16px;
}

body {
    margin: 0;
    overflow-x: hidden;
}

.inner-container {
    width: 1200px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 1.2rem;
    letter-spacing: 6px;
    font-size: 2.5rem;
}

h2 {
    position: relative;
    font-size: 2rem;
    margin: 0 auto 3rem auto;
}

h2::before {
    content: '';
    display: inline-block;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: #AD1457;
}

.text-justify {
    text-align: justify;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.pc {
    display: block;
}

.mobile {
    display: none;
}

.tablet {
    display: none;
}

.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.full-height {
    height: 100vh;
}

.full-height > img {
    height: 100%;
    object-fit: cover;
}

.ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

/* ページネーション */
.pagenation-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.pagenation-links > div:first-child {
    text-align: end;
}

.pagenation-links > div:nth-child(1),
.pagenation-links > div:nth-child(3) {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.pagenation-links > div:nth-child(2) {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    margin: 0;
}

.pagenation-links > div:nth-child(2) .current {
    background-color: #eee;
}

.pagenation-links > div:nth-child(2) span,
.pagenation-links > div:nth-child(2) a {
    width: 35px;
    display: inline-block;
    padding: 2px 0px;
    background-color: #fff;
    border: solid 1px #333;
    border-radius: 3px;
    text-align: center;
}

.pagenation-links a:hover {
    text-decoration: none;
}

/*** フェードイン ***/
.fade-in {
    animation-name: fade-in;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(100px);
}

@keyframes fade-in {
    0% {}

    100% {
        opacity: 1;
        transform: translate(0);
    }
}

/*** パララックス ***/
.paralax {
    height: calc(100vh * 0.4);
    position: relative;
}

.paralax-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0px);
}

.paralax-on-text .paralax-inner::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #4F4B49;
    opacity: 0.5;
}

.paralax-image {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-image: url(../../public/images/para.png);
}

/****** 
 ヘッダー 
******/
header {
    padding: 0;
}

header > div.pc {
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    background-color: #44579e;
    top: 0rem;
    left: 0rem;
    z-index: 10;
    padding: 1rem 2rem;
    color: #fff;
    font-weight: bold;
}

.header-logo {
    width: 220px;
}

header .header-menu > a,
header .header-menu > .sub-menu a {
    padding: 1rem 2rem;
}

header .header-menu > .sub-menu a {
    display: block;
}

/* ホバーメニュー */
header .sub-menu {
    position: relative;
}

header .sub-menu > div {
    position: absolute;
    top: 55px;
    right: -15px;
    display: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    z-index: 1000;
}

header .sub-menu:hover div {
    /*Gナビメニューにホバーしたら表示*/
    display: block;
}

header .sub-menu > div > a {
    display: block;
    width: 180px;
    padding: 1rem 0rem !important;
    color: #000;
    border-bottom: 1px solid #ccc;
}

header .sub-menu > .div > a:hover {
    transition: .5s;
    background-color: #CF2E2E;
    color: #fff;
}

/****** 
 フッター 
******/
footer {
    width: auto;
    position: static;
}

footer .sub-menu > a {
    display: block;
}

footer a,
footer a:visited {
    color: #fff;
}

/* コピーライトのブロックの上の要素 */
footer > div:first-child {
    width: var(--container-width);
    margin: var(--container-margin-top) auto var(--container-margin-bottom) auto;
    display: flex;
    gap: 3rem;
}

footer > div:first-child > div:first-child {
    width: 360px;
}

footer > div:first-child > div:last-child {
    width: calc(100% - 360px - 3rem);
}

footer .footer-menu>div>div {
    margin: 15px 0;
}

footer .footer-menu {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

footer .footer-logo {
    margin: 0 auto;
}

/* フッター内が1カラムの場合 */
footer > div.one-column {
    display: block;
    width: 800px;
    margin: 0rem auto;
    padding: 2rem 0;
}

footer > div.one-column > div:last-child {
    width: 100%;
}

/* sub-menuを囲う親div */
footer > div:first-child > div:last-child > div {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3%;
    font-size: 1em;
}

footer .sub-menu > div:first-child {
    margin-right: 25px;
}

footer .sub-menu > div:not(:first-child) {
    font-size: 0.9em;
}

footer .sub-menu > div:not(:first-child) div {
    margin: 15px 0;
}

/* 灰色のボーダーのデザイン */
footer .sub-menu > div:last-child > div::before {
    content: "";
    height: 2px;
    width: 10px;
    display: inline-block;
    vertical-align: middle;
    background-color: #B0BEC5;
    margin-right: 15px;
}

footer .contact-btn {
    display: block;
    margin: 1rem auto;
    text-align: center;
    background-color: #CF2E2E;
    padding: 6px 0;
    border-radius: 20px;
    color: #fff !important;
}

footer iframe {
    width: 100%;
    height: 100%;
}


/****** 
 個別ページのデザイン 
******/
/*** ブログ一覧（Information） ***/
.information {
    width: 100%;
}

.information > div {
    display: flex;
    gap: var(--default-gap);
    align-items: center;
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: solid 1px #000;
}

/* 記事カテゴリ */
.information > div > div:first-child {
    width: 100px;
    padding: 5px;
    text-align: center;
    background-color: #AD1457;
    color: #fff;
}

/* 記事タイトル */
.information > div:last-child {
    justify-content: right;
    border-bottom: none;
}

table th {
    background-color: #f5f5f5;
    font-weight: normal;
}

table th,
table td {
    text-align: left;
    padding: 0.5rem 0.5rem;
}

/* スライダー */
.slider-container {
    display: block !important;
}

.slider img {
    height: 60vh;
    object-fit: contain;
}

.slider-thumbs img {
    width: 250px !important;
    margin: 15px !important;
}

.slider-thumbs .slick-slide img {
    max-width: 100%;
}

/*** カードデザイン ***/
.card-lists ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 0;
    padding: 0;
    list-style: none;
}

.card-lists ul li {
    background-color: #fff;
    width: calc((100% - 60px) / 4);
    border: solid 1px #000;
    overflow-wrap: anywhere;
}

/* カテゴリ表示が必要なカード */
.card-lists.has-category ul li {
    position: relative;
}

.card-lists ul li a > div:last-child {
    padding: 15px;
}

.card-lists .main-image {
    height: 220px;
}

.card-lists .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-lists.has-category .category {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.3rem 1rem;
    color: #fff;
}

.card-lists .category.info {
    background-color: yellow;
    color: #4F4B49;
}

.card-lists .title {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.card-lists .more {
    width: 120px;
    display: block;
    margin-top: 10px;
    padding: 5px 0;
    background-color: #aaa;
    color: #fff;
    text-align: center;
}

/*詳細へのリンクが画像の場合*/
.card-lists .photo-more {
    width: 50px;
    margin-left: auto;
}

/*背景色*/
.bg-color > div {
    padding: 1.5rem 0;
}

.bg-color.bg-gray {
    background-color: #f5f5f5;
}

.bg-color.bg-blue {
    background-color: #e4f2fb;
}

/*テキストの背景色がブルー*/
.bg-blue-on-text {
    padding: 1.5rem;
    background-color: rgba(228, 242, 251, 0.8);
}

/****** 
 ブログ（投稿）一覧 
******/
.blog-container {
    display: flex;
    gap: 1.5rem;
}

.blog-container h2::before {
    display: none;
}

/* サイドバー（カテゴリ一覧） */
.blog-aside {
    width: 160px;
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.blog-aside .category-title {
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    background-color: #F0F0F0;
}

.blog-aside > ul {
    margin: 0;
    padding-left: 0;
}

.blog-aside > ul > li {
    margin: 0;
    list-style: none;
    border-bottom: solid 1px #ccc;
}

.blog-aside > ul > li > a {
    display: block;
    padding: 15px;
    padding-left: 20px;
    color: #37474F;
    text-decoration: none;
}

/* メイン要素 */
.blog-container > div:last-child {
    width: calc(100% - 160px - 10px);
}

/****** 
 お問い合わせ （contact form 7）
******/
#contact {
    width: 100%;
}

#contact p {
    padding: 0;
    margin: 0;
}

#contact > div {
    width: 100%;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

#contact > div div:first-child {
    width: 180px;
    font-weight: normal;
}

#contact > div div:last-child {
    width: 50%;
}

#contact .wpcf7-text,
#contact .wpcf7-textarea {
    padding: 15px 10px;
}

#contact .wpcf7-list-item {
    margin: 0;
}

#contact .wpcf7-list-item {
    width: 100%;
}

#contact .wpcf7-list-item,
#contact .wpcf7-spinner {
    display: block;
}

#contact .submit {
    text-align: center;
}

#contact .submit input {
    width: 200px;
    margin: 0 auto;
    padding: 15px 0;
    background-color: #fff;
    color: #302f2f;
    text-align: center;
    border: solid 1px grey !important;
}

/****** 
 お問い合わせ（contact form 7 使用しない場合） 
******/
form > div {
    display: flex;
    margin-bottom: 10px;
}

form > div > div:first-child {
    width: 200px;
}

form > div > div:last-child {
    width: 1px;
    flex-grow: 1;
}

form > .submit > input {
    width: 50%;
    padding: 10px 0;
    margin-top: 2rem;
    margin-right: auto;
    margin-left: auto;
    background-color: grey;
    color: #fff;
    border: none;
}

@media only screen and (max-width: 1000px) {
    .tablet {
        display: block;
    }
}

@media only screen and (max-width: 767px) {
    body {
        margin: 0 5px;
    }

    .container {
        width: 100%;
    }

    .inner-container {
        width: 100%;
    }

    .container > div {
        display: block;
    }

    .w-sp-max,
    .w-500px,
    footer > div:first-child > div:first-child,
    .p1,
    form > div > div:first-child {
        width: 100%;
    }

    .pc {
        display: none !important;
    }

    h2 {
        text-align: center;
    }

    table.row-cell th {
        text-align: center;
    }

    .information > div,
    table.row-cell th,
    table.row-cell td {
        display: block;
    }

    .mobile {
        display: block;
    }

    .full-width {
        width: 100%;
        position: relative;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .max-hd-right > p {
        left: 50%;
    }

    .max-hd-center img,
    .max-hd-right img,
    .max-hd-center,
    .max-hd-right {
        height: auto;
    }

    .card-lists,
    .sbs,
    form > div,
    footer > div:first-child > div:last-child > div {
        display: block !important;
    }

    .sbs > div,
    .card-lists > div,
    form > div > div:last-child {
        width: 100%;
        margin-bottom: 10px;
    }

    .full-bg-color > div {
        padding: 4rem 1rem;
    }

    /* ヘッダー */
    header .mobile-header {
        height: 70px;
    }

    header .mobile-menu {
        top: 0;
        right: 0;
        left: 0;
        z-index: 999;
    }

    header .mobile-menu nav {
        z-index: 1010;
        padding-top: 60px;
    }

    header .mobile-header li:hover {
        background-color: transparent;
    }
    
    header .mobile-menu nav > ul > li {
        border-bottom: solid 1px #AD1457 !important;
    }

    header .mobile-menu nav > ul > li a {
        display: block;
        padding: 1rem;
        color: #000;
    }

    header .mobile-menu nav {
        z-index: 1010;
        padding-top: 60px;
        width: 100%;
        position: fixed;
        z-index: 100;
        top: 0px;
        left: 100vw;
        height: 100%;
        background-color: #FCE4EC;
    }
    
    header .mobile-menu-active {
        visibility: visible;
        display: block;
    }

    header .mobile-menu nav > ul {
        height: auto;
        display: block;
        padding-right: 0;
        padding-left: 0px;
        border: 1px solid #ccc;
        border-right: none;
        margin: 0px 0px 0px auto;
        list-style: none;
    }

    header .mobile-menu > a {
        display: block;
        width: 230px;
        font-size: 1.5rem;
        padding-top: 10px;
        color: #fff;
    }

    /* メニューボタン */
    header .menu-btn {
        z-index: 2000;
        display: block;
        position: fixed;
        top: 10px;
        height: 40px;
        right: 13px;
        width: 42px;
        cursor: pointer;
        text-align: center;
    }

    header .menu-btn span {
        display: block;
        position: absolute;
        width: 30px;
        border-bottom: solid 3px #AD1457;
        -webkit-transition: .35s ease-in-out;
        -moz-transition: .35s ease-in-out;
        transition: .35s ease-in-out;
        left: 6px;
    }

    .menu-btn span:nth-child(1) {
        top: 9px;
    }   
    
    .menu-btn span:nth-child(2) {
        top: 18px;
    }

    .menu-btn span:nth-child(3) {
        top: 27px;
    }
        
    .menu-btn span:nth-child(4) {
        border: none;
        color: #AD1457;
        font-size: 9px;
        font-weight: bold;
        top: 34px;
    }

    .mobile-menu-active {
        visibility: visible;
        display: block;
    }

    .menu-btn.mobile-menu-active span:nth-child(1) {
        top: 18px;
        left: 6px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .menu-btn.mobile-menu-active span:nth-child(2),
    .menu-btn.mobile-menu-active span:nth-child(3) {
        top: 18px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    footer > div:first-child > div:last-child {
        width: 100%;
    }

    /****** 
     フッター
    ******/
    footer > div:first-child {
        width: 100%;
        display: block;
        margin: 2rem auto 2rem auto;
    }

    /****** 
     ブログ
    ******/
    .card-lists ul {
        display: block;
    }
    
    .card-lists ul li {
        width: 100%;
    }

    .card-lists ul li:not(:last-child) {
        margin-bottom: 1rem;
    }

    .blog-aside,
    .blog-container > div:last-child {
        width: 100%;
    }

    .container > div.pagenation-links {
        display: flex;
    }

    /****** 
     お問い合わせ
    ******/
    #contact > div div:first-child {
        text-align: start;
    }

    #contact > div {
        display: block;
    }

    #contact > div div:last-child {
        width: auto;
    }

    #contact .wpcf7-text, #contact .wpcf7-textarea {
        padding: 15px 0px;
    }
}
