@charset "utf-8";

/* フォント読み込み */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1:wght@100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=call");

/* ====== 基本設定 ====== */
body {
    margin: 0;
    padding: 0;
    font-family: "M PLUS 1", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro",
                 "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    -webkit-text-size-adjust: none;
    color: #333;
    line-height: 2;
    animation: opa1 0.2s 0.5s both;
}

main {
    background-color: #fff;
    user-select: none;
}

h1{
    text-align: center;
}

/* ====== ヘッダー ====== */
header {
    position: fixed; /* スクロール追従 */
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 左側ロゴ */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 60px;
}

/* ナビゲーション */
nav {
    flex: 1;
    text-align: right;
    margin: 0 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #8b8b8b;
}

/* 右側ボタン群 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.kaede-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kaede-icon img {
    width: 50px;
    height: 50px;
}

.btn {
    padding: 10px 28px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-blue {
    background-color: #6b86b3;
    color: white;
}

.btn-orange {
    background-color: #f7b11b;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* ====== ヘッダー背景画像 ====== */
.header-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: -1;
    overflow: hidden;
    clip-path: ellipse(100% 100% at 50% 0%);
}

.header-image .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 24s infinite;
}

.header-image .slide:nth-child(1) { animation-delay: 0s; }
.header-image .slide:nth-child(2) { animation-delay: 6s; }
.header-image .slide:nth-child(3) { animation-delay: 12s; }
.header-image .slide:nth-child(4) { animation-delay: 18s; }

@keyframes fadeSlide {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    35%  { opacity: 1; }
    45%  { opacity: 0; }
    100% { opacity: 0; }
}

.img-top {
    margin-top: 80px;
    display: block;
}

/* ====== コンテンツ横並び ====== */
.two-contents {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: center;
    margin-bottom: 1rem;
}

.l1, .r1 {
    width: 50%;
    padding: 1rem;
}

h2 {
    margin: 0;
}

/* ====== ビジネスボックス ====== */
.business-boxs {
    display: flex;
    align-items: flex-start;
    text-align: center;
    gap: 1rem;
}

.business-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #ffe3e3;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border: 1px solid black;
}

.business-box img {
    width: 110px;
    height: 110px;
}

.business-box:hover {
    transform: scale(1.05); /* 少し拡大 */
    cursor: pointer;
}

/* ====== ポリシー & 情報ボックス ====== */
.policy {
    background-color: aliceblue;
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
}

.policy p{
    margin-left: 10rem;
    margin-right: 10rem;
}

/* ====== 会社概要 ====== */
.kaedeinc {
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
}

.kaedeinc p{
    margin-left: 10rem;
    margin-right: 10rem;
}

.contact{
    background-color: aliceblue;
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
}

.contact p{
    margin-left: 10rem;
    margin-right: 10rem;
}

.l1 p{
    margin-left: 11rem;
    margin-right: 11rem;
}

.design10 {
 width: 40%;
 text-align: center;
 border-collapse: collapse;
 border-spacing: 0;
 margin-left: auto;
 margin-right: auto;
}
.design10 th {
 padding: 10px;
 border-bottom: solid 1px #778ca3;
 color: #778ca3
}
.design10 td {
 padding: 10px;
 border-bottom: solid 1px #778ca3;
}

/* ====== スマホ対応 ====== */
@media screen and (max-width: 768px) {
    /* ヘッダー */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }

    nav {
        display: none;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        
    }

    .header-right {
        display: none;
    }

    .logo img {
        height: 50px;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    /* ヘッダー背景画像 */
    .header-image {
        height: 50%;
        clip-path: ellipse(100% 100% at 50% 0%);
    }

    .header-image .slide {
        object-fit: cover;
    }

    .img-top {
        margin-top: 80px;
    }

    /* コンテンツ横並び -> 縦並びに変更 */
    .two-contents {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .l1, .r1 {
        width: 90%;
        padding: 0.5rem;
        margin: 0 auto;
    }

    .l1 p, .r1 p, .policy p {
        margin-left: 1rem;
        margin-right: 1rem;
        line-height: 1.6;
    }

    /* ビジネスボックス */
    .business-boxs {
        flex-direction: column;
        gap: 20px;
    }

    .business-box {
        width: 140px;
        height: 140px;
    }

    .business-box img {
        width: 80px;
        height: 80px;
    }

    /* ポリシー */
    .policy {
        padding: 1rem;
    }

    .kaedeinc {
        padding: 1rem;
    }

    .design10 {
        width: 90%;
    }
}
