@charset "UTF-8";

/* 定義 */
:root {
    --bgcolor: #f8f8ff;
    --accent-color-blue: #C3CFD6;
    --text-color: #66666f;
    --accent-color-gray: #d9d9d9;
    --accent-color-d-gray: #303033;
}

/* 基本設定 */
html {
    scroll-padding-top: 88px;
    scroll-behavior: smooth;
}

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

body {
    padding: 0;
    margin: 0;
    color: var(--text-color);
    font-family: "Montserrat", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(12px, 0.75rem + 0.5vw, 16px);
    letter-spacing: 0.05em;
    line-height: 1.7;
    background-color: var(--bgcolor);
}

h1,h2,h3,h4,h5,h6,
p,
figure,
ul,
li {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

ul,
li {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}


p {
    padding-bottom: clamp(8px, 1.6vw, 16px);
}

img {
    width: 100%;
    border-radius: 8px;
}

.hero_heading {
    font-size: clamp(64px, 8vw, 80px);
    font-weight: 500;
    line-height: 1.3;
}

.main_heading_l {
    font-size: clamp(48px, 4.5vw + 1rem, 64px);
    padding-bottom: clamp(32px, 4vw + 1rem, 48px);
}

.main_heading_l_supplement {
    font-size: clamp(32px, 4vw + 1rem, 48px);
}

.main_heading_m {
    font-size: clamp(24px, 1.37rem + 0.8vw, 32px);
    padding-bottom: clamp(16px, 1rem + 1vw, 24px);
}

.main_heading_s {
    font-size: clamp(16px, 1rem + 1vw, 24px);
    padding-bottom: 16px;
}

.main_heading_xs {
    font-size: clamp(12px, 0.75rem + 0.5vw, 16px);
    padding-bottom: clamp(8px, 1.6vw, 16px);
}

.w-c {
    width: 85%;
    margin: 0 auto;
}

.main {
    padding-bottom: clamp(128px, 20vw, 240px);
    padding-top: clamp(32px, 4vw + 1rem, 48px);
}

/* ヘッダー */
.header {
    padding-top: 15px;
    padding-bottom: 15px;
    position: fixed;
    top: 0;
    z-index: 9999;
    background-color: var(--bgcolor);
    width: 100%;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 120px;
}

nav ul {
    display: flex;
    gap: 56px;
}

nav ul li {
    font-size: 16px;
}



/* ヒーロー */
.hero {
    margin-top: 88px;
    background-image: url(../img/hero_background.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: calc(100vh - 120px);
    overflow: hidden;
    z-index: 1;
    display: flex;
    justify-content: left;
    align-items: center;
}

.herotext {
    margin-left: 25px;
}

.row {
    display: block;
}

.h_s {
    font-size: clamp(16px, 1rem + 1vw, 24px);
}

.h_b {
    font-weight: 600;
}

.h_m {
    padding-bottom: 0;
    font-size: clamp(32px, 1.636rem + 2.18vw, 40px);
}

.h_xs {
    font-size: clamp(0.75rem, 0.5rem + 1.25vw, 1rem);
}



/* プロフィール */
.profile_img {
    text-align: center;
}

.jpn {
    font-size: clamp(24px, 1.37rem + 0.8vw, 32px);
}

.profile_img img {
   max-width: 200px;
    border-radius: 50%;
}

.hobby {
    display: flex;
    flex-direction: column;
}

.hobby_img {
    display: flex;
    gap: 20px;
}

.hobby_img figure {
    width: clamp(100px, 10vw, 150px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0;
}

.hobby_img figure img {
    height: 100%;
    object-fit: cover;
    transition: .4s ease;
}

.hobby_img figure:hover img {
    transform: scale(1.2);
    opacity: 0.5;
}

/* ワーク */
.w-h {
    font-size: clamp(12px, 0.75rem + 0.5vw, 16px);
}

.work {
    background-color: var(--accent-color-blue);
}

.work-list {
    display: grid;
    gap: clamp(64px, 5vw, 72px);
}

.work-item {
    padding: 32px;
    background-color: var(--bgcolor);
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    transition: transform .3s ease, box-shadow .3s ease;
}

.work-item:hover {
      transform: translateY(-10px) scale(1.03);
    box-shadow: 10px 10px #A8B0B2;
}

.more {
    text-align: right;
    padding-top: clamp(24px, 1.37rem + 0.8vw, 32px);
    padding-bottom: 0;
}

.work_m {
    font-size: clamp(1rem, 0.8rem + 1vw, 1.25rem);
}



/* フッター */
.footer {
    background-color: var(--accent-color-gray);
    padding: 24px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.page-top {
    text-align: center;
}

a:hover {
    color: var(--accent-color-d-gray);
}


/* ワーク詳細ページ */
.detail-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(32px, 4vw + 1rem, 48px);
}

.work-detail {
    margin-top: 88px;
    background-color: var(--accent-color-blue);
}

.work-detail h2 {
    line-height: normal;
}

.mockup {
    margin-bottom: clamp(48px, 4vw, 64px);
    display: flex;
    flex-direction: column;
}


.detail-item {
    background-color: var(--bgcolor);
    border-radius: 8px;
    padding: clamp(24px, 1.37rem + 0.8vw, 32px);
}

.design-list {
    display: grid;
    grid-template-columns: 1fr;
}

.design {
    padding-bottom: clamp(24px, 1.37rem + 0.8vw, 32px);
}

.disc {
    margin-left: 1em;
    list-style-type: disc;
}

.disc:last-child {
    padding-bottom: 1em;
}

/* webサイトページ */
.colorlist {
    display: flex;
    justify-content: space-between;
}

.color {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.colorbox {
    display: block;
    aspect-ratio: 1 / 1;
    width: clamp(80px, 10vw, 100px);
}

.colortext {
    font-size: clamp(10px, 1rem + 1vw, 12px);
    text-align: center;
}

.m-color {
    background-color: #798B6C;
}

.b-color {
    background-color: #EFE9DD;
}

.a-color {
    background-color: #B2986F;
}

.ui-item {
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
}

.ui-img {
    display: flex;
    gap: 8px;
}

.ui-img figure {
    flex: 1;
}

.pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* webバナーページ */
.banner_img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner figure {
    max-width: 300px;
}

.banner figure figcaption {
    text-align: center;
}


/* 松合海苔工房 */
.matsuai:first-of-type {
    background-color: transparent;
    padding: 0;
}

.m-color-matsuai {
    background-color: #231714;
}

.b-color-matsuai {
    background-color: #952424;
}

.a-color-matsuai {
    background-color: #CDA742;
}



/* tresyarn */
.tres:first-of-type {
    background-color: transparent;
    padding: 0;
}


/* メディアクエリ */
@media (min-width: 768px) {
    html {
        scroll-padding-top: 90px;
    }

    /* ヘッダー */
    .header {
        padding: 15px 0;
    }

    .logo {
        width: 150px;
    }

    /* ヒーロー */
    .hero {
        margin-top: 90px;
        background-image: url(../img/hero_background_pc.png);
        height: calc(72vh - 90px);
    }

    .wrap_container {
        display: flex;
        gap: 72px;
    }

.profile_img img{
      min-width: 300px;
}


    /* ワーク */
    .work-list {
        grid-template-columns: 1fr 1fr;
    }

    /* フッター */
    .footer-container {
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .copyright p {
        padding-bottom: 0;
    }

    /* ワーク詳細　基本 */
    .work-detail {
        margin-top: 90px;
    }

    .detail-list {
        grid-template-columns: 1fr 1fr;

    }

    .design-list {
        padding: 0;
        grid-template-columns: 1fr 1fr;
        column-gap: calc(40px + clamp(24px, 1.37rem + 0.8vw, 32px));
    }

    .design:nth-of-type(5) {
        grid-column: 1 / 3;
    }

    /* webサイト */
    .site:nth-of-type(5) {
        grid-column: 1 / 3;
    }

    .site:nth-of-type(6) {
        grid-column: 1 / 3;
    }

    .ui-list {
        display: flex;
        gap: 40px;
    }

    .ui-item {
        flex: 1;
    }

    .ui-img {
        gap: 40px;
        display: flex;
    }


    /* webバナーページ */
    .banner_img {
        flex-direction: row;
        gap: 80px;
    }

    .banner:first-of-type {
        grid-column: 1 / 3;
    }

    .banner:nth-of-type(4) {
        grid-column: 1 / 3;
    }

    .banner:last-of-type {
        grid-column: 1 / 3;
    }


    /* 松合海苔工房 */
    .matsuai:first-of-type {
        grid-row: 1 / 3;
    }

    .matsuai:nth-of-type(6) {
        grid-column: 1 / 3;
    }

    .matsuai:nth-of-type(7) {
        grid-column: 1 / 3;
    }

    .matsuai:last-of-type {
        grid-column: 1 / 3;
    }


    /* tresyarn */
    .tres:nth-of-type(5) {
        grid-column: 1 / 3;
    }

    .tres:nth-of-type(6) {
        grid-column: 1 / 3;
    }

    .tres:nth-of-type(7) {
        grid-column: 1 / 3;
    }

    .tres:last-of-type {
        grid-column: 1 / 3;
    }
}

@media (max-width: 850px) {
    .main_heading_l_supplement {
        display: block;
    }
}