@charset "utf-8";

    footer {
    width: 100%;
    padding: 30px 0 50px;
    background: #fac23f;
    display: block;
    text-align: left;
    color: #333;
}
footer a{
    color: #333!important;
}

div.foot-wrapper{
        display: grid;
    grid-template-columns: 1fr 2fr;
    gap:5%;
        margin: 0 30px;
}

div.logo-info p{
    margin: 0 0 5px;
}
.foot-logo{
    display: block;
    margin-bottom: 5px;
}
div.foot-rightarea ul{
    list-style: none;
    padding: 0;
}

div.foot-rightarea > ul{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}

div.foot-rightarea > ul > li > a {
    margin-bottom: 15px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
    position: relative;
}

/* --- 親リスト(li)の基本設定 --- */
div.foot-rightarea > ul > li {
    position: relative;
    list-style: none;
    padding-left: 0;
    min-height: 45px;   /* アイコンの高さに合わせる */
}

/* --- 共通のアイコン設定 (::before) --- */
div.foot-rightarea > ul > li::before {
    content: "";
    position: absolute;
    top: -5px; /* テキストの高さに合わせて微調整 */
    left: 0;
    width: 45px;
    height: 45px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- 各項目ごとのアイコン画像 --- */
div.foot-rightarea > ul > li:nth-child(1)::before {
    background-image: url(../images/header-icon01.png);
}
div.foot-rightarea > ul > li:nth-child(2)::before {
    background-image: url(../images/header-icon02.png);
}

/* --- ホバーアニメーション --- */
/* 親liにホバーしたら、その中の::beforeを動かす */
div.foot-rightarea > ul > li:hover::before {
    animation: floating-y 1.2s ease-in-out infinite;
}

@keyframes floating-y {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px); /* 上にふわっと浮く */
    }
}

/* --- テキスト（親リンク）の調整 --- */
div.foot-rightarea > ul > li > a {
    margin-left: 55px; /* アイコンの幅 + 余白分だけ右に寄せる */
    margin-bottom: 15px;
    font-weight: 700;
    display: inline-block;
    font-size: 1.1rem;
    color: #333;
}

/* --- サブリストの調整 --- */
.footer-sublist {
    margin-top: 5px;
    padding-left: 10px; /* アイコンの真下あたり、好きな位置に設定可能！ */
}
.footer-sublist li a {
    font-weight: 400;
    font-size: 0.95rem;
    display: block;
    padding: 5px 0 5px 25px; /* 線の分だけ余白 */
    position: relative;
    text-decoration: none;
    color: #333;
}

/* サブリストの横線（::after） */
.footer-sublist li a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 1px;
    background-color: #333;
}

.footer-sublist li a:hover {
    text-decoration: underline;
}
/* hover end */

@media (max-width: 992px) {
    div.foot-wrapper {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 767px) {
    div.foot-rightarea{
    display: none;
  }
      footer {
    padding: 30px 0 150px;
}
}