/* =========================
   Base
========================= */

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    font-family:
        "Yu Gothic",
        "游ゴシック",
        YuGothic,
        "游ゴシック体",
        "ヒラギノ角ゴ Pro W3",
        "メイリオ",
        sans-serif;

    color: #20204e;
    background-color: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

a:hover,
a:visited {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   Sticky Header
========================= */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;

    width: 100%;
    background-color: #fff;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* =========================
   Header
========================= */

header {
    width: 100%;
    position: relative;
    z-index: 2;
}

header a,
header a:hover,
header a:visited {
    color: inherit;
    text-decoration: none;
}

.header {
    width: 100%;
    background-color: #ffffff;
}

.header-section {
    width: min(1600px, calc(100% - 40px));
    min-height: 100px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.header-section1 {
    min-width: 0;
    flex: 1;

    display: flex;
    align-items: center;

    gap: clamp(20px, 3vw, 50px);
}

.header-section2 {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 24px;
}

.header-title-outline {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    padding: 8px 0;
}

.cigotea {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
}

.cigotea img {
    width: 72px;
    height: auto;
    display: block;
}

.header-title {
    min-width: 0;
}

.top-title {
    margin: 0 0 3px 4px;

    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.logo {
    margin-left: 0;
}

.logo img {
    width: clamp(155px, 12vw, 202px);
    height: auto;
    display: block;
}

.header-search {
    flex: 1;
    min-width: 250px;
    max-width: 650px;

    display: flex;
    align-items: center;
}

.header-part2 {
    width: 100%;

    display: flex;
    justify-content: flex-end;

    column-gap: 20px;
}

/* =========================
   Search Form
========================= */

.post-search-form {
    width: 100%;
    max-width: 650px;
    margin: 0;
}

.post-search-inner {
    width: 100%;

    display: flex;
    align-items: stretch;
}

.post-search-keyword {
    flex: 1 1 280px;
    min-width: 220px;
}

.post-search-keyword input {
    width:100%;
    height:42px;

    padding:0 14px;

    border:1px solid #dedede;
    border-radius:0;
}

.post-search-region{
    flex: 0 0 180px;
}

.post-search-region select{
    width:100%;
    height:42px;
    
    padding:0 14px;

    border:1px solid #dedede;

    font-size:14px;

    border-radius:0;

    outline:none;

    box-shadow:none;
}

.post-search-category {
    flex: 0 0 220px;

    display: flex;
}

.post-search-category select{
    width:100%;
    height:42px;

    padding:0 14px;

    border:1px solid #dedede;

    font-size:14px;

    border-radius:0;

    outline:none;

    box-shadow:none;
}

.post-search-keyword input:focus,
.post-search-category select:focus {
    outline: 2px solid rgba(32, 32, 78, 0.25);
    outline-offset: -2px;
}

.post-search-button {
    flex: 0 0 auto;

    height: 42px;
    padding: 0 18px;

    border: none;

    background-color: #20204e;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    white-space: nowrap;

    transition: background-color 0.2s;
    
    border-radius:0;
}

.post-search-button:hover {
    background-color: #4c4c71;
}

/* =========================
   Create Button
========================= */

.post-create-button-wrap {
    flex: 0 0 auto;
}

.post-create-button {
    width: 145px;
    min-height: 64px;

    padding: 8px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 32px;

    background-color: #ffbc19;
    color: #ffffff;

    text-align: center;
    line-height: 1.4;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition:
        background-color 0.2s,
        transform 0.2s;
}

.post-create-button:visited,
.post-create-button:hover,
.post-create-button:active {
    color: #ffffff;
}

.post-create-button:hover {
    background-color: #ffc946;
    transform: translateY(-1px);
}

/* =========================
   Member
========================= */

.member {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    margin: 0;

    color: #20204e;

    text-align: right;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.6;
}

/* =========================
   Navigation
========================= */

nav {
    width: 100%;
    padding: 5px 15px;

    background-color: #20204e;
    color: #ffffff;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: thin;
}

.navigation {
    width: min(1400px, 100%);

    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;

    list-style: none;
}

.navigation li {
    flex: 1 1 0;
    min-width: 130px;

    display: flex;
    align-items: stretch;
    justify-content: center;

    list-style: none;
}

.navigation li a,
.navigation .mypage-group > a {
    width: 100%;
    min-height: 42px;

    padding: 8px 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    text-align: center;
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;

    transition: background-color 0.2s;
}

.navigation li.current a {
    background-color: #000000;
}

.navigation li a:hover,
.navigation .mypage-group > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* =========================
   Badge
========================= */

.mypage-group {
    width: 100%;
    position: relative;

    display: flex;
    align-items: stretch;
}

.badge {
    position: absolute;
    top: 1px;
    right: 8px;
    z-index: 2;

    min-width: 20px;
    height: 20px;

    padding: 0 6px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background-color: #e53935;
    color: #ffffff;

    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

/* =========================
   Main Content
========================= */

.main-content {
    width: 100%;
    min-height: 60vh;
    padding-top: 150px;
}


/* =========================
   Register Button
========================= */

.register-outline {
    display: flex;
    align-items: center;

    margin: 10px;
}

.register {
    height: 70px;

    padding: 0 25px;

    border: none;
    border-radius: 30px;

    background-color: #ffbc19;
    color: #ffffff;

    font-size: 15px;
    font-weight: bold;

    box-shadow: 2px 2px 6px #dedede;

    cursor: pointer;

    transition: background-color 0.3s;
}

.register:hover {
    background-color: #ffc946;
}

/* =========================
   Footer
========================= */

.footer {
    width: 100%;

    padding: 15px;

    display: flex;
    align-items: center;
    flex-direction: column;

    background-color: #20204e;

    font-size: 15px;
}

.footer-list {
    width: min(500px, 100%);

    margin: 0;
    padding: 0.5em;

    display: flex;
    align-items: center;
    justify-content: center;

    column-gap: 40px;

    list-style: none;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.7);

    font-size: 12px;
}

/* =========================
   Medium PC
========================= */

@media screen and (max-width: 1200px) {

    .header-section {
        width: calc(100% - 30px);
        gap: 16px;
    }

    .header-section1 {
        gap: 20px;
    }

    .cigotea img {
        width: 62px;
    }

    .top-title {
        font-size: 12px;
    }

    .header-search {
        min-width: 200px;
    }

    .post-search-category {
        flex-basis: 155px;
    }

    .post-create-button {
        width: 125px;
        min-height: 58px;
        padding: 7px 12px;
        font-size: 14px;
    }

    .member {
        font-size: 13px;
    }

    .navigation li {
        min-width: 120px;
    }
}

/* =========================
   Tablet
========================= */

@media screen and (max-width: 900px) {
    
    .main-content {
        padding-top: 205px;
    }

    .header-section {
        width: calc(100% - 24px);

        padding: 8px 0;

        flex-wrap: wrap;
    }

    .header-section1 {
        width: 100%;
        flex-basis: 100%;

        justify-content: space-between;
        gap: 15px;
    }

    .header-title-outline {
        flex: 0 0 auto;
    }

    .header-search {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .header-section2 {
        width: 100%;

        justify-content: flex-end;

        padding-bottom: 4px;
    }

    .post-create-button {
        width: auto;
        min-width: 120px;
        min-height: 48px;

        padding: 6px 18px;

        border-radius: 25px;
    }

    .navigation {
        width: max-content;
        min-width: 100%;

        justify-content: flex-start;
    }

    .navigation li {
        flex: 0 0 auto;
        min-width: 130px;
    }
}

/* =========================
   Smartphone
========================= */

@media screen and (max-width: 600px) {

    .main-content {
        padding-top: 250px;
    }
    

    .header-section {
        width: calc(100% - 20px);
        gap: 8px;
    }

    .header-section1 {
        flex-direction: column;
        align-items: stretch;
    }

    .header-title-outline {
        justify-content: center;
    }

    .cigotea img {
        width: 52px;
    }

    .logo img {
        width: 165px;
    }

    .top-title {
        font-size: 11px;
    }

    .header-search {
        width: 100%;
    }

    .post-search-inner {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .post-search-keyword {
        flex: 1 1 calc(100% - 90px);
    }

    .post-search-keyword input {
        border-right: 1px solid #dedede;
    }

    .post-search-category {
        flex: 1 1 100%;
    }

    .post-search-category select {
        width: 100%;
    }

    .post-search-button {
        position: absolute;

        width: 0;
        height: 0;

        padding: 0;
        border: 0;

        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .header-section2 {
        justify-content: space-between;
        gap: 12px;
    }

    .post-create-button {
        min-width: 110px;
        min-height: 44px;

        padding: 5px 14px;

        font-size: 13px;
    }

    .member {
        font-size: 12px;
    }

    nav {
        padding: 4px 0;
    }

    .navigation {
        justify-content: flex-start;
    }

    .navigation li {
        min-width: 115px;
    }

    .navigation li a,
    .navigation .mypage-group > a {
        min-height: 40px;
        padding: 7px 12px;

        font-size: 13px;
    }

    .badge {
        top: 0;
        right: 3px;
    }

    .footer-list {
        flex-direction: column;
        row-gap: 10px;
    }
}