/* -----------------------------------------------------------------
   カスタムプロパティ
   ----------------------------------------------------------------- */

:root {
    /* カラーパレット */
    --color-primary: #FCA503;
    --color-secondary: #99764D;
    --color-background: #FFF;
    --color-background-secondary: #FFFBF2;

    --color-text: #333333;
    --color-link: #FF8900;
    --color-link-visited: #FF8900;

    /* タイポグラフィ */
    --font-family-base: "Noto Sans", "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    /* --font-family-base: "Noto Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; */
    --font-size-base: 16px;
    --line-height-base: 1.5;

    /* スペーシング */
    --spacing-unit: 1rem;
    --container-padding: 3.5rem;

    /* ブレークポイント */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --container-width: 1000px;
}

/* ベーススタイル */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-background);
}

/* リンク */
a {
    color: var(--color-link);
    text-decoration: none;
    /* transition: opacity 0.3s ease; */
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: var(--color-link-visited);
}

a:hover img {
    opacity: 0.8;
}

/* アンカーリンク（スクロール） */
html {
  scroll-behavior: smooth;
}

/* SP用設定 */
@media screen and (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --font-size-base: 14px;
    }
}


/* -----------------------------------------------------------------
   共通レイアウト
   ----------------------------------------------------------------- */

/* コンテナ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ヘッダー */
#header {
    padding: 1.5rem 0;
    border-top: 8px solid var(--color-secondary);
    text-align: center;
}

#header .logo {
    display: inline-block;
}

@media screen and (max-width: 768px) {
    #header {
        padding: 1rem 0;
    }
}

/* フッター */
#footer {
    background-color: var(--color-secondary);
    text-align: center;
    color: #fff;
    font-size: 0.75rem;
    padding: 1.5rem 0;
}


#footer .text {
    margin-bottom: 1rem;
}

#footer .text p {
    line-height: 2.0;
}

#footer .copyright {
    display: block;
    font-size: 0.65rem;
    font-weight: bold;
}

/* フッターお問い合わせ */
.sub-page #contact {
    margin-top: 5rem;
}

#contact {
    padding: 3.5rem 0;
}

#contact .section-title {
    font-size: 1.75rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: center;
}

#contact .section-text {
    font-size: 0.85rem;
    line-height: 2.0;
    text-align: center;
}

#contact .section-text li {
    margin: auto;
    width: fit-content;
}

@media screen and (max-width: 767px) {
    #contact {
        padding: 2.5rem 0;
    }

    #contact .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #contact .section-text {
        text-align: left;
    }

    #contact .section-text li {
        width: auto !important;
    }
}



/* 下位階層ビジュアル＋ページタイトル */
#main .page-title {
    height: 400px;
    display: flex;
    align-items: center;
    margin-bottom: 3.5rem;
}

#main .page-title .title {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-shadow: #fff 0 0 10px;
}

@media screen and (max-width: 768px) {
    #main .page-title {
        height: 200px;
        margin-bottom: 2rem;
    }

    #main .page-title .title {
        font-size: 1.75rem;
    }
}

/* -----------------------------------------------------------------
   モジュール
   ----------------------------------------------------------------- */

/* ユーティリティクラス */
.text-bold {
    font-weight: bold;
}

.space-top {
    margin-top: 0.75rem;
}
.space-bottom {
    margin-bottom: 0.75rem;
}

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

@media screen and (max-width: 767px) {
    .pc-only {
        display: none;
    }

}

/* --- h2 / h3 / h4 title --- */
.section .main-title {
    font-size: 1.75rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.2;
    background-color: var(--color-secondary);
    color: #fff;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.section .sub-title {
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: #885111;
    background: url("../common/heading_icon01.png") no-repeat 10px center;
    background-size: auto 35px;
    border-bottom: 2px solid var(--color-secondary);
    padding: 1.25rem 0 0.75rem 4rem;
    margin-bottom: 2rem;
}

.section .heading {
    font-size: 1.15rem;
    font-weight: bold;
    /* letter-spacing: 0.05em; */
    color: #333;
    border-left: 7px solid #FFB300;
    padding-left: 0.75rem;
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

@media screen and (max-width: 768px) {
    .section .main-title {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
        margin: 0 -0.5rem 1.5rem;
    }
    
    .section .sub-title {
        font-size: 1.15rem;
        background-size: 36px auto;
        background-position: left center;
        padding: 0.75rem 0 0.5rem 2.5rem;
        margin-bottom: 1.5rem;
    }

    .section .heading {
        font-size: 1rem;
        margin-left: 0;
    }
}

.marker-text span,
span.marker-text {
    background: linear-gradient(transparent 60%, #ffeea1 60%);
    padding: 0 0.5em 0.1em;
}

/* --- ul list --- */
.disc-list {
    list-style: disc;
    padding-left: 1.25rem;
}

/* circle list */
.circle-list > li {
    background: url("../common/list_icon01.png") no-repeat left 0.15rem;
    background-size: 20px 20px;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.circle-list > li + li {
    margin-top: 0.75rem;
}

.circle-list.list-space > li + li {
    margin-top: 1.5rem;
}
.disc-list.list-space > li + li {
    margin-top: 1rem;
}

/* --- link button --- */
.link-button {
    text-align: center;
    margin-top: 2.5rem;
}

.link-button a {
   display: inline-flex;
   justify-content: center;
   border-radius: 6px;
   background: #222;
   color: #fff;
   text-decoration: none;
   font-size: 0.75rem;
   font-weight: bold;
   letter-spacing: 0.1em;
   align-items: center;
   min-width: 200px;
   padding: 1rem 2.5rem;
   position: relative;
   overflow: hidden;
}

.link-button a:hover {
   background: #444;
   transform: translateY(1px);
}

/* button icon */
.link-button.next a::after {
   content: '';
   position: absolute;
   right: 1.5rem;
   width: 6px;
   height: 6px;
   border-right: 2px solid #fff;
   border-top: 2px solid #fff;
   transform: rotate(45deg);
}

.link-button.back a::after {
   content: '';
   position: absolute;
   left: 1.5rem;
   width: 6px;
   height: 6px;
   border-left: 2px solid #fff;
   border-top: 2px solid #fff;
   transform: rotate(-45deg);
}

.link-button.blank a {
   background-image: url("../common/link_blank_icon01.svg");
   background-size: 10px auto;
   background-repeat: no-repeat;
   background-position: right 1.5rem center;
}

@media screen and (max-width: 768px) {
    .link-button {
        margin-top: 2rem;
    }
    /* .link-button a {
        min-width: 160px;
        padding: 0.75rem 1.5rem;
    }
    .link-button a::after {
        right: 1rem;
    } */
}

/* --- box --- */
.box-dog-ear {
    background-color: #FFF5CA;
    position: relative;
}

.box-dog-ear::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  border: 0.5rem solid #FFDE85;
  border-right-color: var(--color-background);
  border-bottom-color: var(--color-background);
  box-sizing: border-box;
}



/* -----------------------------------
    works (TOP / works index)
   ----------------------------------- */
#works .works-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    max-width: calc(600px + 1.75rem * 2);
    margin: 2.5rem auto 3.5rem;
}

#works .works-list li {
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#works .works-list li .category {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    color: #fff;
    padding: 0 0.7rem;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.5rem;
}

#works .works-list li .category.website {
    background-color: #FCA503;
}
#works .works-list li .category.webimg {
    background-color: #9CCA41;
}
#works .works-list li .category.print {
    background-color: #FF8982;
}

@media screen and (max-width: 767px) {
    #works .works-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
        
    #works .works-list li .category {
        font-size: 0.7rem;
        line-height: 1.4rem;
        padding: 0 0.5rem;
    }
}

#works .other-career .title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    border-top: 1px solid #eee;
    padding-top: 2.5rem;
    margin-top: 3.5rem;
}

#works .other-career .career-img {
    margin: 2rem auto 0;
    max-width: 750px;
}

@media screen and (max-width: 767px) {
    #works .other-career .title {
        padding-top: 1.5rem;
    }

    #works .other-career .career-img {
        margin: 1rem -1.5rem 0;
    }
}
