/*------------------------------

    カスタムプロパティ

------------------------------*/

:root {
    --bg-main: url(bg-texture.png), #F1F2F4;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-head: 'Shippori Mincho', serif;
    --sample-img: url('https://placehold.jp/150x150.png');
    --color-main: #335B64;
    --color-sub1: #3D6D79;
    --color-sub2: #65909A;
    --color-font: #002B31;
    --color-deco: linear-gradient(to right, rgb(61 109 121 / 1) 0%, rgb(61 109 121 / .1) 50%);
    --color-bg: url(tex-marble.png), var(--color-main);
    --shadow-main1: 0 0 6px var(--color-main);
    --shadow-main2: 5px 4px 6px rgb(0 0 0 / .1);
}   

p {
    color: var(--color-font);
}

/*------------------------------

    共通

------------------------------*/


* {
    box-sizing: inherit; /* 親要素(この場合はhtml)のbox-sizingを継承する */
}

body {
    background: var(--bg-main);
    background-blend-mode: multiply;
    background-size: 1000px;
    background-repeat: repeat;
    border-bottom: solid 64px var(--color-main);
    border-image: var(--color-bg);
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    color: var(--color-font);
    letter-spacing: .03em;
    scroll-behavior: smooth;
    scroll-padding-top: 2em;
}

span.break {
    display: inline-block;
}

/*-------------------------------------   打ち止め   --------*/

.max-w-1200 {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.max-w-1100 {
    max-width: 1100px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.max-w-1000 {
    max-width: 1000px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

/*-------------------------------------   フォント   --------*/

.font-head {
    font-family: var(--font-head);
}

/*-------------------------------------   カラー   --------*/

#color-main .color-box {
    background: var(--color-main);
}

#color-sub1 .color-box {
    background: var(--color-sub1);
}

#color-sub2 .color-box {
    background: var(--color-sub2);
}

#color-font .color-box {
    background: var(--color-font);
}

#color-deco .color-box {
    background: var(--color-deco);
}

.c-white {
    color: white;
}

.color-bg {
    background: var(--color-bg);
    background-blend-mode: multiply;
    background-size: 300px;
    background-repeat: repeat;
}

/*-------------------------------------   見出し   --------*/

.base-h2 {
    font-family: var(--font-head);
    font-size: clamp(20px, 4vw, 32px);
    color: var(--color-main);
}

.base-h2 b {
    font-family: var(--font-head);
    font-size: 1.5em;
}

.base-h3 {
    font-family: var(--font-head);
    font-size: clamp(18px, 3vw, 24px);
    color: var(--color-sub1);
    letter-spacing: .1em;
}

.text-deco1 {
    display: block;
    width: fit-content;
    padding: 4px 12px;
    color: white;
    background: var(--color-main);
}

/*-------------------------------------   ボタン   --------*/

/* ベースのボタン */

.btn1 {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    margin: 24px 0;
    color: var(--color-main);
    font-weight: bold;
    border: solid 1px var(--color-main);
    width: clamp(250px, 50%, 300px);
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: .3s;
}

.btn1:hover {
    transform: scale(1.05);
}

.btn1 p {
    margin: 0;
    color: var(--color-main);
}

.btn1 img.arrow {
    width: 16px;
}

/* 戻るボタン */

.btn1.return {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.btn1.return img.arrow {
    transform: rotate(180deg);
}

/*-------------------------------------   装飾   --------*/

/* 横線 */

.border-main1 {
    border-bottom: solid 2px var(--color-main);
    border-image: var(--color-deco) 1;
}

.border-main2 {
    border-bottom: solid 2px white;
    border-image: linear-gradient(to right, rgb(255 255 255 / 1) 0%, rgb(255 255 255 / .1) 50%) 1;
}

.border-deco1 {
    border-bottom: dashed 1px var(--color-font);
}

/* 影 */

.shadow-main1 {
    box-shadow: var(--shadow-main1);
}

.shadow-main2 {
    box-shadow: var(--shadow-main2);
}

/* 箇条書き  */

.list-main {
    padding: 16px 32px;
}

.list-main.no-bullet {
    padding: 16px;
}

.list-main li {
    line-height: 1.3;
    padding: 4px 0;
}

.list-main.no-bullet li {
    list-style: none;
}

/*------------------------------   レイアウト　＋　カード   --------*/

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

/* 打ち止めで横3列になるgridレイアウト */

.grid-3-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 0;
}

/*---------------------- カード */

/* 加工事例 */

.cases .item {
    background: white;
    color: var(--color-main);
    text-decoration: none;
    padding: 0 12px 16px;
    box-shadow: var(--shadow-main2);
    width: 100%;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    gap: 0;
}

.cases .top-deco {
    display: block;
    width: 100%;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    height: fit-content;
    color: var(--color-main);
}

.cases .top-deco::before {
    position: absolute;
    content: '';
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: calc(100% - 4em);
    height: 1px;
    border-bottom: dashed 1px var(--color-font);
}

.cases .item .head {
    font-family: var(--font-head);
    font-size: clamp(18px, 2vw, 24px);
    background: white;
    color: var(--color-main);
    margin: 0 0 -1.5em;
    z-index: 20;
    position: relative;
    width: fit-content;
    max-width: 80%;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cases .item .head .text-deco1 {
    padding: 4px  0;
    background: white;
    color: var(--color-main);
}

.cases .item .item-img {
    aspect-ratio: 3/2;
    width: min(400px, 100%);
    object-fit: cover;
    margin: 0 auto;
    z-index: 10;
    display: block;
    position: relative;
}

.cases .item .btn1 {
    width: max(200px, 70%);
    margin: -1.5em 0 0 auto;
    background: white;
    z-index: 20;
    position: relative;
    height: fit-content;
}

.cases ul.tags {
    padding: 0;
}

.cases ul.tags li {
    font-size: 14px;
    list-style: none;
    display: inline-block;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    border: solid 1px var(--color-main);
    margin: 4px 2px;
}


/* 数字付きカード */

.grid-3-row.num-card {
    gap: 64px 8px;
    margin-top: 64px;
    padding: 0;
}

.num-card {
    counter-reset: number 0;
}

.num-card .item {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
    background: white;
    padding-top: 32px;
    box-shadow: var(--shadow-main2);
}

.num-card .item .head {
    font-family: var(--font-head);
    color:  var(--color-main);
    font-size: clamp(18px, 2vw, 24px);
    padding: 0;
    margin: 0 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.num-card .item .head::before {
    position: absolute;
    counter-increment: number 1;
    content: "0"counter(number);
    bottom: 100%;
    left: -10px;
    font-size: 64px;
    text-shadow: var(--shadow-main1);
    color: white;
    font-family: var(--font-head);
    letter-spacing: .05em;
}

.num-card .item p.main-text {
    padding: 0 20px;
}

.num-card .item .item-img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
}



/*-------------------------------------   FV   --------*/

/* FV共通 */

.fv {
    height: clamp(300px, 50vh, 400px);
    width: 100%;
    padding: 32px 20px 24px;
    letter-spacing: .1em;
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}

@media (min-width: 640px) {
    .fv {
        margin-top: 80px;
    }
}

.fv h1 {
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 40px);
    text-shadow: 0 0 6px black, 0 0 6px black;
    max-width: 1200px;
    margin: 0;
    border-bottom: solid 1px white;
    padding: 0 8px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* タイトルのみFV */

.title-fv {
    background: linear-gradient(rgb(0 0 0 / .2), rgb(0 0 0 / .2) 75%, rgb(0 43 49 / 1) 100%), var(--sample-img);
    background-size: cover;
    background-position: center;
}

.title-fv h1 {
    margin: auto 0 0;
}

/* タイトル・テキストFV */

.title-text-fv {
    position: relative;
    background: linear-gradient(rgb(0 0 0 / .2), rgb(0 0 0 / .2)), var(--sample-img);
    background-size: 100%;
    background-position: top center;
    height: clamp(300px, 50vh, 500px);
    padding-bottom: 0;
    text-shadow: 0 0 4px rgb(0 0 0);
}

.title-text-fv .fv-txt-area {
    width: 100%;
    box-sizing: content-box;
    margin: auto 0 0 -20px;
    padding: 0;
}

.title-text-fv .fv-txt-area h2 {
    font-family: var(--font-head);
    color: white;
    font-weight: 500;
    background: linear-gradient(to bottom, rgb(0 43 49 / 0),  rgb(0 43 49 / 1) 70%);
    margin: 0;
    width: 100%;
    padding: 16px 20px 8px;
}

.title-text-fv .fv-txt-area p {
    width: 100%;
    color: white;
    font-family: var(--font-head);
    text-shadow: 0 0 4px rgb(0 0 0);
    font-size: clamp(16px, 2vw, 18px);
    background: linear-gradient(to bottom, var(--color-font), var(--color-main));
    margin: 0;
    padding: 8px 20px 16px;
}

@media (min-width: 640px) {

    /* 共通 */

    .title-fv,
    .title-text-fv {
        background-image: linear-gradient(to right, rgb(0 0 0 / .6), rgb(0 0 0 / 0) 30%), linear-gradient(to bottom, rgb(0 0 0 / .2), rgb(0 0 0 / .2)), var(--sample-img);
    }

    /* タイトルのみFV */

    .title-fv {
        height: clamp(300px, 50vh, 500px);
    }

    .title-fv h1 {
        margin: auto auto 0;
    }

    /* タイトル・テキストFV */

    .title-text-fv {
        height: clamp(400px, 60vh, 600px);
        background-size: cover;
        background-position: center;
    }

    .title-text-fv h1 {
        margin: 0 auto;
    }

    .title-text-fv .max-w-1200 {
        margin: auto auto 0;
        padding: 0;
    }

    .title-text-fv .fv-txt-area {
        box-sizing: content-box;
        position: static;
        width: min(60%, 800px);
        padding: 16px 48px 16px 24px;
        margin-left: -32px;
        top: auto;
        background: linear-gradient(to right, rgb(0 43 49 / .5), rgb(0 43 49 / 0));
    }

    .title-text-fv .fv-txt-area h2 {
        background: none;
    }

    .title-text-fv .fv-txt-area p {
        background: none;
        position: static;
    }
}

/*------------------------------

    header

------------------------------*/
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 9999;
    transition: .3s;
}

header.in-fv {
    padding-top: 1em;
}

/* ↓FVとヘッダーが重ならないときだけヘッダーに背景をつける */
header::before {
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    bottom: 0;
    background: var(--bg-main);
    background-blend-mode: multiply;
    background-size: 1000px;
    background-repeat: repeat;
    transition: opacity .3s, bottom .3s;
    opacity: 1;
    z-index: -10;
}

/* ↓FVとヘッダーが重なるときはヘッダーの背景を無くす */
header.in-fv::before {
    opacity: 0;
    bottom: 100%;
}

.head-inner {
    position: relative;
    z-index: 25;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#global-header:has(.open) {
    overflow: hidden;
}

header .logo {
    display: block;
    width: fit-content;
    position: relative;
    z-index: 20;
    transition: .3s;
}

header.open .logo {
    mix-blend-mode: color-burn;
}

header .logo-img {
    margin: 0;
    height: auto;
}

header .btn1 {
    margin: 0 auto;
    width: clamp(150px, 90%, 300px);
    border-color: white;
    justify-content: center;
}

header .btn1 p {
    color: white;
}

.hamburger_btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    height: 50px;
    width: unset;
    color: var(--color-main);
    position: relative;
    z-index: 30;
    box-sizing: border-box;
    background-color: unset;
    cursor: pointer;
}

.hamburger_btn .ham-ico {
    position: relative;
    width: 48px;
    aspect-ratio: 5/4;
}

.hamburger_btn .ham-ico span {
    position: absolute;
    display: block;
    background-color: var(--color-main);
    width: 36px;
    height: 1.5px;
    transition: .3s;
    margin: 0 auto;
    left: 0;
    right: 0;
}

header.in-fv .hamburger_btn .ham-ico span {
    background-color: white;
}

.hamburger_btn span:nth-child(1) {
    top: 9px;
}

.hamburger_btn span:nth-child(2) {
    top: 17px;
    width: 36px;
    left: 0;
}

.hamburger_btn span:nth-child(3) {
    top: 26px;
}

.hamburger_btn > p {
    font-size: 16px;
    line-height: 1em;
}

header.in-fv .hamburger_btn > p {
    color: white;
}

#global-header #ham-ico-menu,
#global-header.open #ham-ico-close {
    display: block;
}

#global-header.open #ham-ico-menu,
#global-header #ham-ico-close {
    display: none;
}

.menu {
    transform: translateX(100%);
    transition: transform 1s, opacity 1s;
    position: fixed;
    z-index: 15;
    top: 0;
    right: 0;
    width: 90%;
    overflow-y: scroll;
    background: var(--color-main);
    padding: 2em 2em 3em;
    flex: 3;
}

.open .menu {
    transform: translateX(0%);
    overscroll-behavior-y: contain;
}

.open #hamburger_btn {
    z-index: 20;
    border-left: none;
}

.open #hamburger_btn p {
    color: white;
}

.open .hamburger_btn span {
    background-color: #fff;
    transition: .3s;
}

.open .hamburger_btn span:nth-child(1) {
    top: 50%;
    transform: rotate(35deg);
}

.open .hamburger_btn span:nth-child(2) {
    width: 0;
    left: -36px;
    opacity: 0;
}

.open .hamburger_btn span:nth-child(3) {
    top: 50%;
    transform: rotate(-35deg);
}

.head_nav {
    margin: 3em auto 3em;
    padding: 0;
    font-weight: 500;
}

.head_nav li {
    list-style: none;
}

.head_nav li a {
    color: #fff;
    display: block;
    text-decoration: none;
    padding: 16px 10px;
    border-bottom: solid .5px var(--color-sub2);
}

@media(min-width:768px) {
    .head-inner {
        padding: 6px 20px;
    }

    .hamburger_btn {
        display: none;
    }

    .menu {
        transform: translateY(0%);
        transition: transform 1s, opacity 1s;
        position: static;
        z-index: 900;
        width: 100%;
        overflow-y: visible;
        background: none;
        padding: 0;
        display: flex;
        justify-content: right;
        align-items: center;
    }

    .inner {
        display: flex;
        justify-content: right;
        align-items: center;
    }

    .head_nav {
        margin: 0;
        padding-right: 16px;
        display: flex;
        flex-wrap: wrap;
        justify-content: right;
        max-width: 848px;
    }

    .head_nav li {
        font-size: 1em;
        position: relative;
    }

    .head_nav li a {
        color: var(--color-main);
        border: none;
        padding: 8px 10px;
    }

    header.in-fv .head_nav li a {
        color: white;
    }

    .head_nav li a:hover {
        color: var(--color-sub2);
    }

    .header-img {
        width: fit-content;
    }

    header .btn1 {
        margin: 0;
        padding: 8px 0;
        width: clamp(180px, 40%, 200px);
        box-sizing: content-box;
        background: var(--color-main);
        border: none;
        justify-content: center;
        font-weight: 400;
    }
}

/*------------------------------

    footer

------------------------------*/

/* お問い合わせエリア */
#contact {
    color: var(--color-main);
    text-align: center;
    margin-bottom: 3em;
}

#contact > img {
    display: block;
    width: min(400px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin: 16px auto;
}

#contact dl dt {
    font-weight: bold;
    text-align: left;
    max-width: 21em;
    width: 100%;
    margin: 0 auto;
    padding: 8px 16px;
}

#contact dl dd {
    font-family: var(--font-head);
    font-weight: bold;
    letter-spacing: .05em;
    font-size: clamp(40px, 8vw, 50px);
    width: 100%;
    display: block;
    border-top: solid 1px var(--color-main);
    margin: 0;
    padding: 4px 0;
}

#contact .btn1 {
    width: min(95%, 300px);
    margin: 16px auto;
    background: rgb(255 255 255 / .7)
}

#contact .img-area img {
    display: block;
    width: min(50%, 250px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

#contact .img-area img:first-child {
    margin: 0 0 0 auto;
}

#contact .img-area img:last-child {
    margin: -40px auto 0 0;
}

@media (min-width: 640px) {
    #contact {
        display: flex;
        justify-content: space-evenly;
        overflow: hidden;
    }

    #contact > img,
    #contact .con-wr {
        flex-basis: 45%;
    }

    #contact .con-wr {
        position: relative;
        z-index: 20;
    }

    #contact .con-wr .txt-area {
        text-align: left;
        padding-bottom: 150px;
    }

    #contact dl dt {
        max-width: none;
    }

    #contact dl dd {
        font-size: min(50px, 5vw);
        padding: 4px 16px;
    }

    #contact .con-wr .btn1 {
        margin: 0 auto 0 0;
    }

    #contact .img-area {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        z-index: -10;
    }
}

/* フッター */

footer {
    color: #555555;
}

footer ul {
    padding: 0;
}

footer ul li {
    list-style: none;
}

footer .com-info .logo {
    width: min(95%, 350px);
    display: block;
    margin: 0 auto;
}

footer .com-info ul.address {
    text-align: center;
}

footer .com-info ul.address li {
    font-weight: 500;
}

footer .com-info ul.address a {
    text-decoration: none;
    color: inherit;
}

footer .com-info .btn1 {
    color: #555555;
    border: unset;
    border-radius: unset;
    border-bottom: solid 1px #555555;
    justify-content: center;
    padding: 0 0 8px 0;
    margin: 16px auto;
    gap: 8px;
    width: fit-content;
}

footer .com-info .btn1 p {
    width: fit-content;
}

footer .foot-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8em, 1fr));
    gap: 0 16px;
}

footer .foot-nav li a {
    text-decoration: none;
    color: #555555;
    display: block;
    width: 100%;
    padding: 16px 8px;
    font-weight: 500;
}

footer .foot-nav li a:hover {
    color: var(--color-sub2);
}

footer .copyright {
    font-size: 14px;
    text-align: center;
}

@media (min-width: 768px) {
    
    footer {
        display: flex;
        justify-content: space-evenly;
    }

    footer > div {
        flex-basis: 48%;
    }

    footer .com-info {
        max-width: 20em;
    }

    footer .com-info .logo {
        margin: 0 auto 0 0;
    }

    footer .com-info ul.address {
        text-align: left;
    }

    footer .com-info .btn1 {
        margin: 32px auto 0 0;
    }

    footer .foot-area {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    footer .foot-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: right;
        gap: 0;
        margin: 0;
    }

    footer .foot-nav li a {
        text-align: center;
        width: fit-content;
        padding: 16px;
    }

    footer .copyright {
        margin: 0 0 0 auto;
    }
}