:root {
    --container-border-radius-s: 8px;
    --container-border-radius-l: 16px;

    --background-color-primary: #cd130e;
    --background-color-secondary: #5e5e5e;

    --font-size-default: 16px;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: var(--font-size-default);
    background-color: #eeeeee;
    color: #333;
}

main {
    height: auto;
    flex-grow: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* initialize */
select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border: 0;
    margin: 0;
    padding: 0;
    background: none transparent;
    vertical-align: middle;
    font-size: inherit;
    color: inherit;
    box-sizing: content-box;
}

/* Header */
.header {
    /* border-bottom: 1px solid #ddd; */
    font-size: 16px;
    font-weight: bold;
    position: relative;
    width: 100%;
    z-index: 999;
}

.header-inner {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}
.header-inner__logo{
        width: 240px;
}

.header-inner__logo img {
    width: 100%;
}

.header-inner__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.footer-content > div {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.footer-content > div p {
    flex: 1;
    margin-top: 0;
    width: 300px;
}

.p-mark img {
    width: 100%;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-info a {
    padding-right: 5px;
}

.sp-user-info {
    display: none;
    padding: 0 16px;
    background-color: #f6f6f6;
    height: 48px;
}

/* --- ハンバーガーボタン --- */
.hamburger {
    display: block;
    width: 25px;
    height: 20px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger__line:nth-child(1) {
    top: 0;
}

.hamburger__line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger__line:nth-child(3) {
    bottom: 0;
}

/* --- ×ボタンへのアニメーション --- */
.hamburger.is-active .hamburger__line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.is-active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger__line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* --- ナビゲーションメニュー --- */
.nav-menu {
    display: none;
    position: absolute;
    top: 65px;
    right: 32px;
    width: 140px;
    height: auto;
    background-color: #ffffff;
    border: 1px solid #e6e4e4;
    border-radius: 3px;
}

.nav-menu.is-active {
    display: block;
}

.nav-menu ul {
    padding: 24px;
    margin: 0;
}

.nav-menu ul li {
    list-style: none;
}

.nav-menu ul li a {
    display: block;
    padding: 4px 0;
}

/* containers */
.search-section,
.news-section,
.results-section {
    padding: 15px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

footer .container {
    max-width: 1440px;
    padding: 40px;
}

/* elements */
.btn {
    display: block;
    margin: 0 auto;
    border: none;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    width: 120px;
}

.btn-secondary {
    background-color: var(--background-color-secondary);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--background-color-primary);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-with-icon {
    display: flex;
    align-items: center;
    position: relative;
}

.btn-with-icon img {
    width: 15px;
    height: 15px;
    position: absolute;
    right: .75rem;
}

.tag {
    font-size: 0.7em;
    padding: 5px;
    background-color: #c8131a;
    margin: 0 5px;
    color: #fff;
}

.pagination {
    width: 100%;
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 40px 0 35px 0;
}

.pagination-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pagination-item__numbers {
    display: flex;
    gap: 4px;
}

.pagination-item__numbers .number {
    background-color: #fff;
    color: #585858;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #dddddd;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 31px;
    text-align: center;
}

.pagination-item__numbers .number.active {
    background-color: #666666;
    color: #fff;
    border: 1px solid #666666;
}

.pagination path {
    fill: rgba(0, 0, 0, 0.25);
}

.pagination .available path {
    fill: rgba(0, 0, 0, 1);
}

.left-icon,
.right-icon {
    display: flex;
    align-items: center;
}

.left-icon {
    transform: rotateY(180deg);
}

/* Footer */
.footer {
    text-align: left;
    font-size: 12px;
    margin-top: 30px;
    background-color: #d4d4d4;
}

.footer-content {
    display: flex;
    align-items: flex-end;
    justify-content: right;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
}
.footer-content>p {
    flex-grow: 1;
    /* padding-left: 46px; */
    text-align: center;
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.footer p {
    flex-grow: 1;
    /* padding-left: 46px; */
    text-align: left;
}

.p-mark {
    width: 46px;
}
@media screen and (max-width: 1000px) {
    .pagination {
        margin: 40px 0 0 0;
    }
    .footer-content>p{
        position: unset;
        transform: unset;
        order: 2;
    }
    .footer-content>div{
        order: 1;
    }
    .footer-content>div p{
        width:unset;
        order: 2;
        padding: 0;
    }
    .footer-content>div div{
        order: 1;
    }
}
/* Tablet Size */
@media screen and (max-width: 834px) {
    .header-inner {
        padding: 0 32px;
    }

    .container {
        padding: 0 24px;
    }

    .pagination {
        margin: 40px 0 0 0;
    }
}

/* Sp Size */
@media screen and (max-width: 640px) {
    .header{
        font-size: 14px;
    }
    .header-inner {
        padding: 1rem;
        height: unset;
    }

    .header-inner__logo{
        width: 60%;
    }

    .user-info {
        display: none;
    }

    .sp-user-info {
        display: flex;
        justify-content: flex-end;
    }

    .sp-user-info .user-info {
        display: flex;
    }

    footer .container {
        padding: 16px;
    }

    .footer-content {
        align-items: normal;
    }

    .footer-content p {
        padding: 0;
        text-align: center;
        margin-bottom: 0;
    }
    .footer-content>div p{
        text-align: left;
    }
    .footer-content>div {
        order: 1;
    }
    .footer-content>div div {
        order: 1;
    }
    .footer-content>div p {
        width: unset;
        order: 2;
    }
    .footer-content {
        align-items: normal;
    }
    .footer-content p {
        margin-bottom: 0;
    }
}

.pc {
    display: block;
}
.sp {
    display: none;
}
@media screen and (max-width: 640px) {
    .pc {
        display: none;
    }
    .sp {
        display: block;
    }
}
