@charset "UTF-8";

/* variables - 変数
-----------------------------------*/

:root {
    --color-text: #3C4849;
    --color-main-green: #46827c;  /*#2d5a56*/
    --color-sub-ligtgreen: #7CA947;
    --color-sub-green: #5bb2a7;
    --color-gray-50: #f8fafc;
    --color-dark-800: #0f172a;
    --color-beige: #E9E1D1;
    --bg-color: #fcfbf8;
    --color-link-orange:#f8a555;
}



/* base - 初期設定
-----------------------------------*/

html {
    font-family: poppins, sans-serif;
    scroll-behavior: smooth;
    scroll-padding-block-start: 60px;

    @media (768px <= width) {
    scroll-padding-block-start: 80px;
    }
}

body {
    color:var(--color-text);
    line-height: 160%;
    background-color: var(--bg-color);
    letter-spacing: 0.03em;
}

button {
    padding: 0;
    cursor: pointer;
}



/* layout
-----------------------------------*/

.inner {
    max-inline-size: 640px;  /*要素の横方向のサイズを制限*/
    padding-inline: 32px; /*インライン方向の左右の余白を指定する事が出来る*/
    margin-inline: auto; /*margin: 0 を論理プロパティでかいた方法*/
    z-index: 11;

    @media (768px <= width) {
        box-sizing: unset;
        max-inline-size: 880px;        
    }
}

section {
    padding-block: 60px;
}

@media (min-width:768px) {
    .inner {
    box-sizing: unset;
    max-inline-size: 880px;
    }
}



/* 共通部分
-----------------------------------*/

h1 {
    color: var(--color-main-green);
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
}

h2 {
    color: var(--color-main-green);
    font-size: 2rem;
    /* font-weight: 700; */
    letter-spacing: 0.2rem;
    margin-bottom: 0;
    padding: 0 15px;
    z-index: 15;
}

h2::before, h2::after {
    content: none;
}

.h2--icon::before {
    content: url(../img/icon_footer.webp);
    margin-right: 10px;
}

/* .h2--icon::after {
    content: url(../img/icon_footer.webp);
    margin-left: 6px;
} */

h3 {
    color: var(--color-main-green);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1rem;    
}

.link {
    color: var(--color-link-orange);
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
}

.link:hover {
    opacity: 0.7;
}

.wrap{
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

.btn {
    display: block;
    max-width: 90%;
    width:90%;
    margin: 0 auto;
    background-color: var(--color-sub-green);
    color: var(--color-gray-50);
    /* padding: 1.25rem 3rem; */
    padding-block: 1.25rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 5px 0 var(--color-main-green), 0 15px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-size: 1.375rem;
    
    @media (768px <= width) {
        max-width: 50%;
        font-size: 1.5rem;
    }
}

.btn:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}

dt {
    color: var(--color-main-green);
    font-weight: 700;
}
    


/* メイン背景のふわふわ図形たち
-----------------------------------*/

.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- 高さを380pxに制限 --- */
.bg-shapes {
    position: absolute;
    top: 45%; /* 中央付近に配置 */
    left: 0;
    width: 100%;
    height: 380px; /* 高さを380pxに固定 */
    transform: translateY(-60%); /* 垂直方向の中央揃え */
    z-index: 1; /* 重なり順を低めに設定 */
    pointer-events: none;
    /* overflow: hidden; */
}

.shape {
    position: absolute;
    filter: blur(1px);
    box-shadow: inset -2px -2px 6px rgba(0,0,0,0.05), 2px 2px 8px rgba(0,0,0,0.05);
}

/* 丸い形 */
.circle {
    border-radius: 50%;
    background-color: var(--color-sub-green);
    opacity: 0.4; /* 文字の邪魔をしないように調整 */
}

/* 四角い形 */
.square {
    border-radius: 12px;
    /* 背景に溶け込みすぎないよう、白ではなく少し色を付けたよ */
    background-color: var(--color-sub-ligtgreen); 
    opacity: 0.2; /* 透明度も少し上げたよ */
    transform: rotate(25deg);
}

/* 配置の調整 */
.s1 { width: 80px; height: 80px; left: 5%; top: 5%; animation: float 15s infinite ease-in-out;   opacity: 0.3;}
.s2 { width: 10%; height: 20%; right: 5%; top: 15%; animation: rotate-float 25s infinite ease-in-out reverse;  opacity: 0.3; }
.s3 { width: 40px; height: 40px; left: 12%; bottom: 10%; animation: rotate-float 18s infinite linear; }
.s4 { width: 70px; height: 70px; right: 15%; bottom: 10%; animation: float 20s infinite ease-in-out 2s; }
.s5 { width: 15%; height: 30%; left: 35%; top: 5%; animation: rotate-float 30s infinite linear reverse; }
.s6 { width: 50px; height: 50px; right: 60%; bottom: 5%; animation: float 22s infinite ease-in-out 1s; opacity: 0.3; }

/* アニメーションの定義 */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-30px, -15px); }
}

@keyframes rotate-float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -40px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}



/* コンテンツ
-----------------------------------*/

/* header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    /* color: #fff; */
    /* background-color: #fff; */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.4); /* 透過させる */
    backdrop-filter: blur(10px); /* 背景をぼかす（スタイリッシュな定番手法） */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    block-size: 60px;
    padding-inline: max(16px, 5%);
}

.header__logo {
    height: 100%;
    display: flex;
    align-items: center;
}

.header__logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.header__logo img {
    width: auto;
    height: 50%;
    object-fit: contain;
    max-inline-size: 60%;
}

@media (min-width:768px) {
    .header__wrap {
    block-size: 80px;
    }

    .header__logo img {
    height: 65%;
    max-inline-size: 80%;
    }
}


/* nav */
.header__contents {
    position: absolute;
    top: 60px;
    inset-inline: 0;
    block-size: 0;
    overflow-y: hidden;
    background-color: var(--color-sub-ligtgreen);
    transition: block-size 0.5s ease;

    @media (min-width: 768px) {
    position: revert;
    block-size: revert;
    background-color: revert;
    }
}

.header__contents.is-open {
    block-size: 100svb;
    overflow-y: auto;
}

.header__nav {
    padding-block: 40px;

    @media (min-width: 768px) {
    padding-block: revert;
    }
}

.header__list {
    @media (min-width: 768px) {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-top: 3px;
        padding-bottom: 5px;
        padding-left: 3px;
    }

    @media (1024px <= width) {
        gap: 2.3rem;
    }
}

.header__list-item {
    text-align: center;
    transition: transform 0.2s ease;
}

.header__list-item:nth-last-child(1) {
    @media (768px <= width) {
        display: block;
        padding: 0;
        border-color: transparent;
        box-shadow: none;
    }
}

.header__list-item:nth-last-child(1)  .header__link {
    @media (768px <= width) {
        display: block;
        background-color: var(--color-sub-green);
        color: #fff;
        padding: 5px 20px;
        border-radius: 20px;
        box-shadow: 0 3px 2px rgba(0, 0, 0, 0.1);
        transition: opacity 0.3s;
    }
}

.header__list-item:hover {
    transform: translateY(-3px);
}

.header__list-item:nth-last-child(1) .header__link:hover {
    @media (768px <= width) {
        opacity: 0.8; /* ホバーした時に少し透けさせて「押せる感」を出す */
    }
}

.header__link {
    display: block;
    padding-block: 1rlh;
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 1.25rem;
    color: #fff;
    
    @media (min-width: 768px) {
        padding-block: revert;
        font-size: 0.875rem;
        font-weight: revert;
        color: var(--color-main-green);
        letter-spacing: revert;
    }
}



/* menu-button */
.menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    inline-size: 30px;
    block-size: 26px;
    border: none;

    @media (min-width: 768px) {
    display: none;
    }
}

.menu-button__bar {
    inline-size: 100%;
    block-size: 4px;
    background-color: var(--color-sub-ligtgreen);
    border-radius: calc(1px / 0);
    transition: 
        translate 0.5s ease,
        rotate 0.5s ease,
        opacity 0.5s ease
    ;
}

.is-checked .menu-button__bar:first-of-type {
    rotate: 225deg;
    translate: 0 11px;
}

.is-checked .menu-button__bar:nth-of-type(2) {
    opacity: 0;
}

.is-checked .menu-button__bar:last-of-type {
    rotate: -225deg;
    translate: 0 -11px;
}



/* main */
.main {
    padding-block-start: 60px;

    @media (768px <= width) {
    padding-block-start: 80px;
    }
}



/* hero */
    
.hero__contents {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    align-items: flex-start;
    
    @media (768px <= width) {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 40px;
    }
}   

.hero__copy {
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 10;

    @media (768px <= width) {
        width: 50%;
    }
}

.hero__title {
    width: 100%;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-align: center;

    @media (1024px <= width) {
        font-size: 3rem;
    }
}

.hero__title span {
    color: var(--color-main-green);
}

.hero__lead {
    width: 100%;
    margin-top: 5px;
    font-size: 0.875rem;
    text-align: center;
    line-height: 2;

    @media (768px <= width) {
        text-align: left;
    }

    @media (1024px <= width) {
        font-size: 1.25rem;
        width: 480px;
        margin: 0 auto;
    }
}

.hero__image {
    flex-shrink: 0;
    z-index: 1;
    
    @media (768px <= width) {
        width: max(180px, 45%);
        /* max-width: 400px; */
    }
}

.hero__image img {
    display: block;
    margin: 5px auto;
    width: 100%;
    height: auto;
    animation: floating 5s ease-in-out infinite;

    @media (1024px <= width) {
        width: 80%;
        margin: revert;
    }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px);}    
}



/* 事業紹介 */

.business__title h3 {
    display: inline;
}

.business__container {
    display: grid;
    gap: 20px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .business__container {
        grid-template-columns: 1fr;

    }
}

@media (min-width: 768px) {
    .business__container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.business__card {
    display: grid;
    padding: 30px;
    border-radius: 0 0 0 50px;
    column-gap: 20px;
    row-gap: 10px;
    align-items: center;
    background-color: #fff;
    box-shadow: 
        0 10px 25px rgba(230, 227, 209, 0.5),
        0 4px 10px rgba(255, 255, 255, 0.8);
        transition: transform 0.3s ease , box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.business__title { grid-area: ttl;}
.business__description { grid-area: txt; }
.business__img-area { grid-area: pic; }

.business__description {
    margin: 0;
    line-height: 1.8;
}

.business__icon {
    width: 60px;
    height: 60px;
    display: block;
    align-items: center;
    justify-content: center;

    @media (768px <= width) {
        width: 100px;
        height: 100px;
    }
}

.business__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .business__card {
        grid-template-columns: auto 1fr;
        grid-template-areas: 
            "pic ttl"
            "txt txt";
    }
}

@media (min-width: 768px) {
    .business__card {
        grid-template-columns: 1fr auto;
        grid-template-areas: 
        "ttl ttl"
        "txt pic";
    }
}



/* 実績 */
.works h2::before {
    content: none;
}

.works h2::after {
    content: none;
}

.works__container {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    border-radius: 40px;
    background-color: var(--color-beige);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 40px;
    transition: transform 0.3s ease;
    
    @media (768px <= width) {
        border-radius: 80px;
        flex-direction: row;
        justify-content: center;
    }
}

.works__container:hover {
    transform: translateY(-5px);
}

.works__text-group {
    display: flex;
    flex-direction: column;
    order: 2;

    @media (768px <= width) {
        max-width: 75%;
        border-radius: 50px; 
        order: 1;
    }
}

.works__subtext {
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 15px;

    @media (768px <= width) {
        margin-top: 0;
    }
}


.works__title {
    margin-top: 10px;
    line-height: 1.1;
    
    @media (768px <= width) {
        font-size: 1.75rem;
    }
}

.works__image-box {
    flex-shrink: 0;
    margin-left: 0;
    order: 1;
    
    @media (768px <= width) {
        margin-left: 20px;
        order: 2;
    }
}

.works__icon {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* お知らせ */
.info {
    margin-block: 50px;
}

.info__list {
    display: flex;
    flex-direction: column;
}

.info__list-item {
    border-bottom: 1px dotted var(--color-main-green); 
    padding: 15px 15px;
}

.info__list-item:first-child {
    border-top: 1px dotted var(--color-main-green);
}

.info__list-item dt {
    white-space: nowrap;
    font-size: smaller;
    font-weight: 500;
}

.info__list-item dd {
    margin-top: 5px;
}

/* PC用 */
@media (min-width:768px) {
    .info__list-item {
        display: flex;
        flex-direction: row;
    }

    .info__list-item dt,
    .info__list-item dd {
        margin-top: 0;
        padding: 15px;
        font-size: inherit;
    }

    .info__list-item dt {
        width: 20%;
    }

    .info__list-item dd {
        margin-left: 10px;
        width: 80%;
    }
}


/* 会社概要 */
.company {
    background-color: var(--color-beige);
    padding: 70px 30px 90px 30px;
}

.company__inner {
    display: block;
    background-color: #fff;
    padding-block: 40px;
    padding-inline: 20px;
    border-radius: 10px;

    @media (768px <= width) {
        padding-inline: 40px;
    }
}

.company__list {
    display: flex;
    flex-direction: column;
}

.company__list-item {
    display: flex;
}

.company__list-item:first-child dt,
.company__list-item:first-child dd {
    border-top: 1px solid var(--color-main-green);
}

.company__list-item dt,
.company__list-item dd {
    padding-block: 15px;
    border-bottom: 1px solid var(--color-main-green);
    
    @media (768px <= width) {
        padding: 15px;
    }
}

.company__list-item dt {
    white-space: nowrap;
    width: 25%;
}

.company__list-item dd {
    margin-left: 10px;
    width: 75%;
}

.list-dot {
    list-style-type: disc;
    margin-left: 15px;
    padding-left: 3px;
}



/* コピーライト */
footer {
    margin-bottom: 10px;
}

small {
    color: var(--color-sub-ligtgreen);
}


/* PC向けの微調整 */
@media (min-width: 768px) {
    .container {
        padding: 60px 20px;
    }
    
    .page-title {
        font-size: 32px;
        margin-block: 50px;
    }
}



/* 実績ページ　準備中 */
.works__uconstracting-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    margin-left: 0;
    order: 1;
    margin-top: 100px;
    margin-bottom: 200px;
}

.works__uconstracting-texte {
    color: var(--color-main-green);
    font-weight: 700;
    font-size: 1.25rem;
    margin-block: 20px;
}

