@charset "UTF-8"; 

/* ---  全体の基本設定  --- */
html{font-size: 62.5%; /* デフォルトの 16px の 62.5% が 10px に相当 */}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #F8F2F2;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.6rem;
}

body.no-scroll {
    overflow: hidden;
    height: 100%;
}

a {
    text-decoration: none;
}
a,a:hover,a:visited{
    color: inherit;
}
ul {
    padding-left: 0;
}
li {
    list-style: none;
}
/* .ja {
    font-family: "Noto Sans JP", sans-serif;
} */
.en {
    font-family: "Josefin Sans", serif;
    font-weight: 700;
    line-height: 1.6em;;
}
:root {
    --red: #ED0303;
    --pink: #F8F2F2;
    --black: #100F10;
    --orange: #FF4E00;
    --white: #ffffff;
    --blue: #215888;
    --ja: "Noto Sans JP", sans-serif;
    --en: "Josefin Sans", sans-serif;
}

/* ---  ヘッダー  --- */
.header {
    display: grid;
    grid-template-columns: 1fr minmax(100px,45%) 100px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 9999;
    align-items: center;
    gap: 1rem;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
}

.header__logo a {
    display: block;
    width: 100%;
    font-weight: 900;
    font-size: clamp(14px,calc(1vw + 10px),1.5em);
    color: var(--black);
    padding: 1rem;
    word-break: keep-all;
    position: relative;
    z-index: 1000;
}

.header__logo--br {
    color: var(--red);
}

.header__tel {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 1em;
    background-color: #fff;
    border-radius: 0 0 45px 30px;
    box-shadow: 0 5px 0 rgba(16, 15, 16, 1);
    padding-left: 1em;
    z-index: 9999;
    width: fit-content;
    transform: translateY(-10px);
    margin:0 3% 0 auto;
}

.header__tel--left {
    position: relative;
    padding-left: 2.2em;
}

.header__tel--left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-image: url('../img/tel_icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.header__tel a {
    font-family: var(--ja);
    font-weight: 500;
    font-size: min(calc(1rem + 1.3vw), 2.0rem);
}

.header__tel--mail {
    width: 75px;
    height: 60px;
    background: linear-gradient(to bottom, #ED0303, #FF4E00);
    border-radius: 45px 0 55px 55px;
    display: grid;
    place-items: center;
}


.header__tel--mail img {
    width: 24px;
    height: auto;
}


/* ↓↓ ハンバーガーボタン ↓↓ */
.header__hm-btn {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--red);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
    cursor: pointer;
    z-index: 9999;
}

.header__hm-btn--line {
    position: absolute;
    top: 52%;
    left: 60%;
    width: 43%;
    height: 2px;
    background: white;
    display: block;
    transform: translateX(-50%);
    z-index: 11;
    transition: 0.4s ease-in-out;
}

.header__hm-btn--line::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    transform: translateY(-8px);
    background: white;
    transition: 0.4s ease-in-out;
}

.active .header__hm-btn--line{
    transform: translateX(-50%) rotate(45deg);
}

.active .header__hm-btn--line::after {
    transform: translateY(0) rotate(-90deg);
}
/* ↑↑ ハンバーガーボタン ↑↑ */

/* ---  レスポンシブ（ヘッダー）  --- */
@media (max-width: 600px) {
    .header__logo--br {
        display: block;
    }

    .header__tel {
        background-color: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    .header__tel--left {
        display: none;
    }
}
/* ---  レスポンシブ（ヘッダー）  --- */

/* ↓↓ ドロワーメニュー ↓↓ */
.header__hm-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    background-color: #F8F2F2;
    transition: 0.4s ease;
    z-index: 900; /* headerより下！ */
    padding: 90px 0 70px;
    clip-path: inset(0 0 100% 0);
}

.header__hm-nav.active {
    clip-path: inset(0 0 0 0);
}

.grid-container {
    width: 90%;
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.7fr;
    gap: 15px 30px;
}

.gli-1 {
    grid-row: 1/3;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    position: relative;
    padding: 7%;
    height: fit-content;
}


.gli-1 h2 {
    text-align: center;
    font-weight: 600;
    font-size:min(calc(2.1rem + 1vw),3.2rem);
    color: var(--blue);
    margin-bottom: 5%;
}

.gli-1__list {
    display: grid;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
}

.bg__1 {
    background: url(../img/jr.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.bg__2 {
    background: url(../img/shinkansen.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.bg__3 {
    background: url(../img/subway.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.bg__4 {
    background: url(../img/hankyu.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.bg__5 {
    background: url(../img/keihan.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.bg__6 {
    background: url(../img/kintetsu.jpg) no-repeat;
    background-size: cover;
    background-position: center;
}

.gli-1__list__item a {
    width: 100%;
    height: 100%;
    padding: 3.3rem 0;
    display: grid;
    place-items: center;
    background: rgba(33,33,33,0.7);
    color: var(--white);
    text-decoration: none;
    font-size: 2rem;
    font-family: var(--ja);
    font-weight: 600;
}

/* ホバー */
.gli-1__list__item:hover a {
    background-color: transparent;
}

/* ↓↓ gli-2 ↓↓ */
.gli-2 {
    grid-column: 2;
    grid-row: 1;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap:  0.5em;
    position: relative;
    padding: 4%;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}


.gli-2__img {
    width: 100px;
    height: 80px;
}

.gli-2__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gli-2 h2 {
    text-align: center;
    font-weight: 600;
    font-size: 2rem;
    color: var(--blue);
}

/* ↓↓ セレクトボックス ↓↓ */
.selectbox {
    position: relative;
}

.selectbox::before,
.selectbox::after {
    position: absolute;
    content: '';
    pointer-events: none;
}

.selectbox::before {
    right: 0;
    display: inline-block;
    width: 2.6em;
    height: 2.2em;
    border-radius: 0 25px 25px 0;
    background-color: #215888;
    content: '';
}

.selectbox::after {
    position: absolute;
    top: 50%;
    right: 1.4em;
    transform: translate(50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    content: '';
}

.selectbox select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 270px;
    height: 2.2em;
    padding: .4em 3.6em .4em .8em;
    border: 2px solid #215888;
    border-radius: 25px;
    color: #8e8e8e;
    font-size: 1em;
    cursor: pointer;
}

.selectbox select:focus {
    outline: 1px solid #215888;
}
/* ↑↑ セレクトボックス ↑↑ */
/* ↑↑ gli-2 ↑↑ */

/* ↓↓ gli-3 ↓↓ */
.gli-3 {
    grid-column: 2 ;
    grid-row: 2 ;
    background-color: var(--white);
    padding: 5%;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    position: relative;
}

.gli-3 h2 {
    text-align: center;
    font-weight: 600;
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 1.5em;
}

.gli-3__list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1rem;
}


.gli-3__list__link {
    display: block;
    width: 160px;
    background-color: var(--white);
    padding: 0.5em;
    border-radius: 10px;
    gap: 1em;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.gli-3__list__link:hover {
    background-color: var(--red);
}

.gli-3__list__inner {
    display: flex;
    flex-direction: column;
    align-items: center;

}


.gli-3__list__img {
    width: 90px;
    height: 90px;
}

.icon-hover {
    display: none;
}

.icon-normal, .icon-hover {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gli-3__list__item p {
    color: var(--black);
    font-size: 1.6rem;
    font-weight: 600;
}

/* ホバー時 */
.gli-3__list__link:hover {
    background-color: var(--red);
}

.gli-3__list__link:hover p {
    color: white;
}

.gli-3__list__link:hover .icon-normal {
    display: none;
}

.gli-3__list__link:hover .icon-hover {
    display: block;
}
/* ホバー時 */
/* ↑↑ gli-3 ↑↑ */

/* ↓↓ gli-4 ↓↓ */
.gli-4{
    grid-row: 1/3;
    display: grid;
    gap: 15px;
}

.li-4 {
    background-color: #215888;
}

.li-5 {
    background-color: #2C88B9;
}

.li-4, .li-5 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 35px;
    transition: transform 0.3s ease, background-color 0.3s ease; 
    transform: scale(1); 
}

.li-4:hover,
.li-5:hover {
    transform: scale(1.05); 
}

.li-4::before, .li-5::before {
    position: absolute;
    content: url(../img/white-arrow.svg);
    width: 10px;
    height: 10px;
    top: 50%;
    right: 30px;
    transform: translatey(-100%);
}

.li-4 p, .li-5 p {
    color: var(--white);
    font-family: var(--en);
    font-size: min(calc(1.8rem + 1.8vw), 4.5rem);
    font-weight: 300;
    line-height: 1.0;
}

.li-4 span, .li-5 span {
    color: var(--white);
}

.li-6 {
    background: linear-gradient(0deg,rgba(237, 3, 3, 1) 0%, rgba(255, 78, 0, 1) 50%, rgba(255, 78, 0, 1) 100%);
    padding: 30px 4%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    height: fit-content;
}


.li-6 p {
    position: relative;
    color: var(--white);
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    text-shadow: 0 1px 3px #444444;
    width: fit-content;
    padding:0 15px;
    margin: auto;
}

.li-6 p::before,
.li-6 p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1.2em;
    height: 2px;
    background-color: #fff;
    transform-origin: center;
}

.li-6 p::before {
    left: 0;
    transform: rotate(65deg); /* 左は＼ */
}

.li-6 p::after {
    right: 0;
    transform: rotate(-65deg);  /* 右は／ */
}

.li-6 span {
    font-size: 2.4rem;
}

.contact-bg {
    background: url(../img/contact.jpg);
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
    text-align: center;

}

.contact-btn {
    position: relative;
    display: inline-block;
    background-color: var(--white);
    color: var(--black);
    font-size: 2rem;
    font-weight: 600;
    padding: 1rem 2.5rem 1rem 5rem;
    border-radius: 100px;
    text-align: center;
    text-decoration: none;
}

.contact-btn:hover {
    background-color: var(--black);   /* 背景を黒に */
    color: var(--white);  
}

.contact-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background: url(../img/mail-blue_icon.svg) no-repeat center;
    background-size: contain;
}
/* ↑↑ gli-4 ↑↑ */

/* ---  レスポンシブ（メニューの中身）（800px~1340px）  --- */
@media (min-width: 800px) and (max-width: 1340px) {
    .header__hm-nav {
        overflow-y: scroll;
        bottom: 0;
    }

    .grid-container {
        grid-template-columns: 1.8fr 1fr; /* 左：右 2:1 */
        gap: 20px;
    }

    .gli-1 {
        grid-column: 1 / 3;  /* 全幅1段目 */
        grid-row: 1;
        padding: 3%;
    }

    .gli-2 {
        grid-column: 1;
        grid-row: 2;
    }

    .gli-3 {
        grid-column: 1;
        grid-row: 3;
    }

    .gli-4{
        grid-column: 2;
        grid-row: 2 / 4;
    }

    .li-6 p {
        padding: 0 1.5em;
    }
}

/* ---  レスポンシブ（メニューの中身）（799px以下）  --- */
@media (max-width: 799px) {
    .header__hm-nav {
        padding-bottom: 240px;
        overflow-y: scroll;
        bottom: 0;
    }

    .grid-container {
        display: block;
    }

    .gli-1,.gli-2,.gli-3,.gli-4 { 
        margin: 3em auto;
    }

    .gli-1__list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .gli-3__list {
        display: block;
    }

    .gli-3__list__item {
        margin-bottom: 1em;
    }

    .gli-3__list__link {
        width: 100%;
    }

    .li-4 {
        grid-column: 1 ;   /* 右1/3 上段 */
        padding: 7% 10% 7% 7%;
    }

    .li-5 {
        grid-column: 2;   /* 右1/3 中段 */
        grid-row: 1 ;
        padding: 7% 10% 7% 7%;
    }

    .li-6 {
        position: fixed;
        bottom: 10px;
        right: 5%;
        padding: 4%;
        width: 90%;
        opacity: 0.9;
    }

    /* ===== hover時のscale無効化 ===== */

    .li-4:hover,
    .li-5:hover {
        transform: none;
    }

}

/* ---  パンくずリスト  --- */
.breadcrumb {
    padding: 0;
    list-style: none;
    max-width: 1200px;
    margin: auto;
}

.breadcrumb li {
    display: inline-block;
    font-weight: 400;
    font-family: var(--ja);
    font-size: 1.4rem;
    padding-left: 1em;
}

.breadcrumb li > span{color: gray;}

.breadcrumb li:after {
    /* >を表示*/
    content: '>';
    padding: 0 0.2em;
    color: var(--red);
}

.breadcrumb li:last-child:after {
    content: '';
}

.breadcrumb li a {
    color: var(--black);
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

@media (max-width:768px) {
    .breadcrumb li {
        font-size: 1.2rem;
    }
}
/* ---  パンくずリスト  --- */


/* ---  CONTACT  --- */
.sec-contact {
    background-color: #FFF;
    padding: 7em 0;
    border-radius: 0 0 80px 80px;
}

.sec-contact a {
    position: relative; 
    overflow: hidden;  
    display: block;
    width: 90%;
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: calc(2rem + 5vw) 0;
    color: white;
    z-index: 0;
}


.sec-contact a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/contact.jpg) no-repeat center;
    background-size: cover;
    transform: scale(1); 
    transition: transform 0.4s ease;
    z-index: -1; 
}

/* ホバー時にscale拡大 */
.sec-contact a:hover::before {
    transform: scale(1.3);
}


.sec-contact__ttl {
    font-family: var(--en);
    font-weight: 300;
    font-size: min(calc(4.8rem + 3vw), 8rem);
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.382);
    letter-spacing: 1px;
}

.sec-contact__subttl {
    font-family: var(--ja);
    display: block;
    font-size: 0.3em;
}

@media (max-width:768px) {
    .sec-contact a:hover::before {
        transform: none;
    }
}

/* ---  CONTACT  --- */

/* ---  footer  --- */
.footer {
    display: grid;
    grid-template-columns: 30% 70%;
    padding-top: 10vh;
    align-items: center;
    color: #fff;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-left h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--black);
}

.footer-left h2 strong {
    font-size: 1.5em;
    color: #d32f2f;
    display: block;
}

.footer-left p {
    font-size: 1.4rem;
    color: #333;
}

.footer-right {
    padding: 4em;
    background: linear-gradient(to bottom, #ED0303, #FF4E00);
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: nowrap;
}

.footer-menu {
    width: fit-content;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu_li1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1em;
}

.footer-menu_li2 {
    position: relative;
    padding-left: 1em;
    margin-left: 1em;
    margin-bottom: 0.7em;
    font-weight: 300;
    font-size: 1.4rem;
}


.footer-menu_li2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 10px;
    height: 1px;
    background-color: #fff;
}

.footer-menu_li2 p {
    font-weight: 300;
    font-size: 1.4rem;
    margin: 0;
}


.footer-menu_li3 {
    font-size: 1.4rem;
    margin-bottom: 0.7em;
}

/* ホバー */
.footer-menu_li2 a,
.footer-menu_li3 a {
    position: relative;
    text-decoration: none;
}

.footer-menu_li2 a::after,
.footer-menu_li3 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.footer-menu_li2 a:hover::after,
.footer-menu_li3 a:hover::after {
    width: 100%;
}

/* ---  レスポンシブ  --- */
@media (max-width: 999px) {
    .footer {
        grid-template-columns: 1fr;
    }

    .footer-left {
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 4rem;
        width: 100%;
        padding: 4rem 1rem;
    }

    .footer-menu {
        width: 100%;
        text-align: center;
    }

    .footer-menu_li1 {
        font-size: 1.7rem;
    }

    .footer-menu_li2 {
        padding-left: 0;
        margin-left: 0;
        text-decoration: underline;
    }

    .footer-menu_li2::before {
        display: none;
    }

    .footer-menu_li2 a::after,
    .footer-menu_li3 a::after {
    /* アニメーション無効 */
        width: 0% !important;
        transition: none !important;
    }

    .footer-menu_li2 a:hover::after,
    .footer-menu_li3 a:hover::after {
        /* hoverしても変化なし */
        width: 0% !important;
    }

    /* ↓ この2つだけ非表示に */
    .footer-menu--railway,
    .footer-menu--adtype,
    .footer-menu--media {
        display: none;
    }
}

/* ---  footer end  --- */


/* ---  404  --- */
.page404 {
    min-height: 50vh ;
    text-align: center;
}

.page404__lead {
    font-size: 3.0rem;
    font-weight: bold;
    margin-bottom: 2.4em;
}

.page404__txt {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 4em;
}

/* ---  レスポンシブ  --- */
@media (max-width: 600px) {
    .page404__lead {
        font-size: 2.4rem;
    }

    .page404__txt {
        font-size: 1.4rem;
    }
}
/* ---  レスポンシブ  --- */
/* ---  404  --- */


/* ---  トップページに戻るボタン  --- */
.btn-home {
    padding: 12px 30px;
    background-color: var(--red);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.btn-home:visited {
    color: #fff;
}

/* ---  サーチ用（奥田部長作成）  --- */
body.top .ft_end_bar{
    opacity: 0;
    visibility: hidden;
}
body.top:has(.scrolled) .ft_end_bar{
opacity: 1;visibility: visible;
}


.ft_end_bar {
  display: block;
  position: fixed;
  z-index: 2000;
  bottom: 0;
  left: 3vw;
  transition: 0.46s ease-in-out;
  transform: translateY(57px);
}

.ft_end_bar:has(:checked){
    transform: translateY(0);
}

.sear_btn {
  display: block;
  background-color: #f5f5f5;
  cursor: pointer;
  width: min(calc(30px + 4vw),60px);
  aspect-ratio: 1;
  padding: 10px;
  box-shadow: 0 -4px 8px #80808029;
  border-radius: 0.3em 0.3em 0 0;
  transition: 0.33s ease-in-out;
}
.sear_btn:hover,input:checked + .sear_btn{
background: rgb(192, 219, 226);
}

.sear_btn img {
  width: 100%;
  object-fit: contain;
}

.searchform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background-color: #f5f5f5;
  box-shadow: 0 -4px 12px #80808038;
  margin: 0;
}

.searchfield {
  width: 200px;
  padding: 6px 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.searchsubmit {
  padding: 6px 12px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.searchsubmit:disabled{
    opacity: 0.6;
    cursor: not-allowed;
}

